@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --cta: #00b9e6;
  --bg-page: #f9fafb;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --text-light: #8c8c8c;
  --border-light: #f3f3f3;
  --divider-color: #e5e5e5;
  --font-manrope: "Manrope", sans-serif;
  --font-montserrat: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-manrope);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ================= HEADER ================= */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}
@media (min-width: 768px) {
  .navbar {
    padding: 0.75rem 3rem;
  }
}
@media (min-width: 1024px) {
  .navbar {
    padding: 0.75rem 3.5rem;
  }
}
@media (min-width: 1280px) {
  .navbar {
    padding: 0.75rem 4rem;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-logo-img {
  height: 30px;
  width: 30px;
}
.brand-name-text {
  font-family: var(--font-montserrat);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}
@media (max-width: 767px) {
  .brand-name-text {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.btn-navbar {
  border-radius: 9999px;
  border: 1px solid #00b9e6;
  background-color: #e6f9fd;
  color: #00b9e6;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.btn-navbar:hover {
  background-color: #b8effa;
}
.desktop-btn,
.desktop-only {
  font-size: 11px;
  padding: 0.375rem 0.875rem;
}
.mobile-btn {
  font-size: 10px;
  padding: 0.25rem 0.75rem;
}
.hamburger-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #00b9e6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-only {
  display: none;
}
.mobile-btn {
  display: none;
}
@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }
  .desktop-btn {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  .mobile-btn {
    display: inline-flex;
  }
}

/* ================= HERO ================= */
.hero-section {
  position: relative;
  height: 20vh;
  min-height: 140px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 1rem;
}

.search-bar-compact {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  gap: 1rem;
  width: 90%;
  max-width: 800px;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
@media (min-width: 1024px) {
  .search-bar-compact {
    width: 50%;
  }
}
.search-divider {
  color: #9ca3af;
  font-size: 0.875rem;
}
.search-text-flex {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-btn {
  background: var(--cta);
  color: #fff;
  border: none;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.search-btn:hover {
  background: var(--cta-hover);
}

/* ================= MAIN LAYOUT (Centered without sidebar) ================= */
.main-layout {
  padding: 1.5rem 1rem;
  max-width: 1280px; /* Tighter width for cards */
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .main-layout {
    padding: 2rem 1.5rem;
  }
}

.search-header-title {
  text-align: center;
  margin-bottom: 2rem;
}
.search-header-title h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
}
@media (min-width: 768px) {
  .search-header-title h1 {
    font-size: 26px;
  }
}

.properties-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================= HOTEL CARD (Blank Pricing) ================= */
.hotel-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: 0.2s;
}
.hotel-card:hover {
  border-color: #93c5fd;
  background: #f3f4f6;
}
.card-img-wrapper {
  height: 180px;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.2s;
}
.hotel-card:hover .card-img-wrapper img {
  opacity: 0.95;
}

.card-body {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  padding: 0 1rem;
}
.card-loc {
  font-size: 12px;
  color: var(--text-light);
  padding: 0 1rem;
}

.card-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  padding: 0 1rem;
}
.card-stars {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.star-num {
  padding-top: 1px;
}
.star-label {
  padding-left: 4px;
  padding-top: 1px;
}
.card-pill-group {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.card-pill {
  border: 1px solid var(--cta);
  color: var(--cta);
  font-size: 10px;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.card-divider {
  height: 1px;
  background: var(--divider-color);
  margin: 0.75rem 0;
  width: 100%;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}
.blank-price-space {
  min-height: 48px;
}
.btn-select-dates {
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 0.375rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}
.btn-select-dates:hover {
  opacity: 0.9;
}

/* ================= PAGINATION ================= */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: 0.2s;
}
.page-btn:hover:not(:disabled) {
  background: #f3f4f6;
}
.page-btn.active {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================= CALENDAR MODAL ================= */
.modal-overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
}
.modal-overlay-bg.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-window {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 360px;
  width: 100%;
  padding: 1.25rem 0.75rem;
  user-select: none;
  position: relative;
}
.calendar-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
}
.calendar-top-bar h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}
.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 50%;
}
.btn-close-modal:hover {
  color: #111827;
  background: #f3f4f6;
}
.calendar-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}
.cal-nav-btn {
  padding: 0.5rem;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  font-size: 1rem;
}
.cal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}
.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
}
.cal-day {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 9999px;
  font-size: 14px;
  color: #111827;
}
.cal-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.cal-day.in-range {
  background: #dbeafe;
  border-radius: 0;
}
.cal-day.start-date .bg-circle,
.cal-day.end-date .bg-circle {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--cta);
  border-radius: 50%;
  z-index: 1;
}
.cal-day.start-date span,
.cal-day.end-date span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 600;
}
.cal-day.start-date.has-end::after {
  content: "";
  position: absolute;
  right: 0;
  left: 50%;
  top: 0;
  bottom: 0;
  background: #dbeafe;
  z-index: 0;
}
.cal-day.end-date.has-start::before {
  content: "";
  position: absolute;
  left: 0;
  right: 50%;
  top: 0;
  bottom: 0;
  background: #dbeafe;
  z-index: 0;
}
