* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

body {
    padding-top: 60px; /* Push page content below the fixed header */
}


header h1 {
  font-size: 24px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 16px;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  background: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb') no-repeat center center/cover;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 1px 1px 5px black;
}

.hero h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.search-bar {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 90%;
  max-width: 800px;
}

.search-bar input,
.search-bar select,
.search-bar button {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-bar button {
  background: #e67e22;
  color: #fff;
  border: none;
  cursor: pointer;
}

.rooms {
  padding: 30px;
  text-align: center;
}

.rooms h2 {
  margin-bottom: 20px;
}

.room-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.room-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.room-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.room-card .info {
  padding: 15px;
}

.room-card h3 {
  margin-bottom: 8px;
}

.room-card p {
  margin-bottom: 8px;
}

.room-card button {
  background: #3498db;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.room-card button:hover {
  background: #2980b9;
}

footer {
  text-align: center;
  padding: 15px;
  background: #2c3e50;
  color: #fff;
  margin-top: 30px;
}

/* Booking Form Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 15px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

@media(max-width:600px) {
  .hero h2 {
    font-size: 28px;
  }

  .search-bar {
    flex-direction: column;
  }
}

body.dark-mode, 
body.dark-mode * {
    color: #f1f1f1 !important;
}

body.dark-mode .room-card,
body.dark-mode .modal-content,
body.dark-mode .container {
    background: #1e1e1e !important;
}

body.dark-mode header {
    background: #1f1f1f;
}

body.dark-mode nav a {
    color: #f1f1f1;
}

body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #555;
}

body.dark-mode .btn,
body.dark-mode button {
    background: #444 !important;
    color: #fff !important;
}


.offer-bar {
  position: fixed;
  top: 55px; /* Below header */
  width: 100%;
  background: orange;
  padding: 8px 0;
  font-weight: bold;
  font-size: 14px;
  color: white;
  z-index: 999;
  overflow: hidden;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 12s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}





.scroll-rooms {
    width: 100%;
    overflow: hidden;
    background: #f9f9f9;
    padding: 20px 0;
}

.scroll-wrapper {
    display: flex;
    width: calc(250px * 10); /* Adjust based on cards */
    animation: scrollRooms 20s linear infinite;
}

.room-card {
    width: 250px;
    margin: 0 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    flex-shrink: 0;
}

.room-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.room-card h3 {
    margin: 10px 0 5px;
    color: #2c3e50;
}

.room-card p {
    margin-bottom: 10px;
    color: #e67e22;
    font-weight: bold;
}

@keyframes scrollRooms {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scroll half for looping */
}
