:root {
  --primary-color: #253176; /* Indigo */
  --primary-dark: #141b4a;
  --accent-color: #ff4081; /* Pink */
  --background-light: #f4f6f8;
  --text-dark: #333;
  --text-light: #fff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 2px 5px var(--shadow-light);
  position: relative;
  top: 0;
  z-index: 999;
  width: 100vw;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/cityview.png") center / cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar form {
  background-color: var(--text-light);
  padding: 25px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 900px;
  margin: -70px auto 0 auto; /* Pull it up into the hero section */
  position: relative;
  z-index: 10;
}

.search-bar .input-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.search-bar label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

.search-bar input[type="text"],
.search-bar input[type="date"],
.search-bar input[type="number"],
.search-bar select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.search-bar button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  align-self: flex-end; /* Align to the bottom of the search bar */
}

.search-bar button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}
#currency {
  background: #1b803b;
  border: none;
  color: white; /* match your nav link color */
  font-size: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
}

/* optional: dropdown arrow color */
#currency option {
  color: black; /* options still need contrast */
}
.header-flex {
  display: flex;
  justify-content: space-between; /* logo left, menu/hamburger right */
  align-items: center;
  position: relative;
}
/* Hamburger button on mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 5%;
  top: 35%;
}

/* MOBILE */
@media (max-width: 768px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem 0;
    border-radius: 6px;
    z-index: 100;
  }

  #nav-menu.show {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    margin: 0;
    list-style: none;
  }

  .hamburger {
    display: block;
  }
}
.featured-hotels {
  padding: 80px 0;
  text-align: center;
}

.featured-hotels h2 {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.hotel-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px var(--shadow-light);
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hotel-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-light);
}

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

.hotel-card-content {
  padding: 20px;
}

.hotel-card h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.hotel-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

.hotel-card .price {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.hotel-card .price span {
  font-size: 0.8em;
  font-weight: 400;
  color: #777;
}

.hotel-card .book-now {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hotel-card .book-now:hover {
  background-color: #d6306c; /* Darker accent */
}

.cta-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
  margin-top: 50px;
}

.cta-section h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 500;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.cta-button:hover {
  background-color: #d6306c;
  transform: translateY(-2px);
}

footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  text-align: center;
  padding: 40px 0;
  font-size: 0.9em;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
}

.social-icons a {
  color: var(--text-light);
  font-size: 1.5em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1em;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
    margin-top: -50px;
    padding: 20px;
  }

  .search-bar .input-group {
    min-width: unset;
    width: 100%;
  }

  .search-bar button {
    width: 100%;
    margin-top: 15px;
  }

  .featured-hotels h2,
  .cta-section h2 {
    font-size: 2em;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 70px 15px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .search-bar {
    margin-top: -40px;
  }
  .hotel-card img {
    height: 180px;
  }
}
