@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');


* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #fde6ee, #fcd0dc);
  color: #444;
  -webkit-font-smoothing: antialiased;
}

header {
  background: #ec1943;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(236, 25, 67, 0.4);
}

/* UPDATED: Header container for improved mobile responsiveness */


/* UPDATED: Logo styling with shrink and ellipsis */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures left and right alignment */
  flex-wrap: nowrap;              /* Prevents wrapping unless very narrow */
  width: 100%;
}

.logo {
  min-width: 120px;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  /* No change needed—remains left */
}

nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end; /* Pushes nav items to the right */
  align-items: center;
}

.logo .dot {
  color: #fff5f8;
  font-weight: 900;
  font-size: 30px;
  margin-left: 3px;
  text-shadow: 0 0 6px #fff0f4cc;
}

/* UPDATED: Navigation with wrapping and flexible space */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 120px;
}

nav a {
  margin-left: 0;
  padding: 8px 18px;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 6px rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease;
}

nav a:hover {
  background: #fff;
  color: #ec1943;
}

nav a.signup-btn {
  background: #fff;
  color: #ec1943;
  box-shadow: 0 4px 10px #ec1943aa;
}

nav a.signup-btn:hover {
  background: #f5f5f5;
}

.search-section {
  max-width: 720px;
  margin: 32px auto 12px;
  text-align: center;
}

#searchForm {
  display: flex;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 7px 32px rgba(236,25,67,0.16);
  border: 2.3px solid #ec1943;
  background: white;
}

#search-location {
  flex: 1;
  padding: 14px 24px;
  font-size: 18px;
  border: none;
  font-weight: 500;
  color: #444;
  outline: none;
}

#search-location::placeholder {
  color: #cc4271;
  opacity: 0.7;
}

#searchForm button {
  background: #ec1943;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: 700;
  padding: 0 34px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.3s ease;
}

#searchForm button:hover {
  background: #b91432;
}

.top-locations-slider {
  display: flex;
  overflow-x: auto;
  gap: 18px;
  padding: 12px 0;
  margin-top: 12px;
  scrollbar-width: none;        /* Hide scrollbar in Firefox */
}
.top-locations-slider::-webkit-scrollbar {
  display: none;                /* Hide scrollbar in Chrome/Safari */
}
.location-item {
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;               /* Prevent shrink in scroll */
  transition: transform 0.18s cubic-bezier(0.6,0.3,0.3,1);
}
.location-item img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fa416a;
  box-shadow: 0 2px 14px #fa416a30;
  transition: border-color 0.23s;
}
.location-item span {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 600;
  color: #fa416a;
  letter-spacing: 0.04em;
}
.location-item:hover {
  transform: translateY(-4px) scale(1.09);
}
.location-item:hover img {
  border-color: #ec1943;
}


#offers {
  background: #fff6fa;
  max-width: 780px;
  margin: 38px auto 20px;
  border-radius: 24px;
  padding: 30px 36px 28px;
  box-shadow: 0 10px 32px rgba(236, 25, 67, 0.24);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

#offers h2 {
  color: #ec1943;
  font-size: 28px;
  margin-bottom: 18px;
  letter-spacing: 0.07em;
  text-shadow: 1px 1px 5px rgba(236, 25, 67, 0.3);
}

#offers ul {
  padding-left: 32px;
  color: #d23b3b;
  line-height: 2.2;
}

#offers .coupon {
  background: #f9d7e0;
  color: #ec1943;
  padding: 5px 16px;
  margin-left: 8px;
  border-radius: 9px;
  font-family: monospace;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(236,25,67,0.25);
  transition: background-color 0.3s ease;
}

#offers .coupon:hover {
  background: #ec1943;
  color: #fff;
  box-shadow: 0 8px 30px rgba(255,40,69,0.75);
}

#hotel-list {
  max-width: 1080px;
  margin: 48px auto 60px auto;
  padding: 0 14px;
}

#hotel-list h2 {
  color: #111;
  padding-left: 10px;
  font-size: 2.3rem;
  letter-spacing: 0.09em;
  margin-bottom: 28px;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(0,0,0,0.06);
  user-select: none;
}

#hotels-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0 14px;
  justify-content: center;
}

.hotel {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 13px 35px rgba(92,0,51,0.18);
  overflow: hidden;
  width: 320px;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.hotel:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 55px rgba(92,0,51,0.4);
}

.hotel img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  transition: transform 0.35s ease-out;
}

.hotel:hover img {
  transform: scale(1.1);
}

.hotel h3 {
  margin: 16px 16px 6px 16px;
  color: #d23b3b;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 0 7px #ec1943a0;
}

.hotel p {
  margin: 0 16px 12px 16px;
  color: #555;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.price {
  padding: 0 16px 16px 16px;
  font-size: 20px;
  color: #046944;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.book-btn {
  margin: 0 16px 20px 16px;
  padding: 14px 0;
  background: linear-gradient(90deg, #ec1943, #fa416a);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 28px rgba(236,25,67,0.45);
}

.book-btn:hover {
  background: linear-gradient(90deg, #b31238, #dc3351);
  box-shadow: 0 14px 38px rgba(220,51,81,0.8);
}

#no-results {
  padding: 32px 22px;
  background: #ffd3e9;
  color: #c30029;
  border-radius: 18px;
  font-size: 22px;
  margin: 40px auto 0 auto;
  max-width: 440px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(255,0,50,0.35);
  user-select: none;
}

footer {
  margin-top: 60px;
  background: linear-gradient(90deg, #ec1943, #fa416a);
  padding: 32px 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 17px;
  box-shadow: inset 0 10px 26px rgba(255,255,255,0.22);
  user-select: none;
}

.footer-links {
  margin-top: 16px;
}

.footer-links a {
  color: #ffd9e0;
  margin: 0 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* RESPONSIVE CHANGES */
@media (max-width: 960px) {
  #hotels-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .hotel {
    width: 90%;
    margin-bottom: 30px;
  }
  #searchForm {
    flex-direction: column;
  }
  #search-location {
    border-radius: 30px 30px 0 0 !important;
    padding: 14px 20px;
    font-size: 17px;
  }
  #searchForm button {
    border-radius: 0 0 30px 30px !important;
    padding: 12px;
    font-size: 16px;
  }
  nav a {
    margin-left: 15px;
    padding: 7px 15px;
    font-size: 16px;
  }
}

/* UPDATED: Header responsive fixes */
/* Remove or override: */
@media (max-width: 600px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
  }
  .logo { max-width: 65vw; font-size: 22px; }
  nav { width: auto; gap: 5px; }
  nav a { font-size: 13px; padding: 7px 11px; }
}