@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #FAFAFB;
  color: #120A2A;
  overflow-x: hidden;
}

/* Hide scrollbars for sliders while retaining touch scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth card hover lift */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -10px rgba(18, 10, 42, 0.12);
}

/* Video Reel Aspect Ratio */
.reel-card {
  aspect-ratio: 9 / 16;
}

/* Pulse animation for play buttons */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.play-pulse {
  animation: pulse-ring 2.2s infinite ease-in-out;
}

/* ---------- Form controls ---------- */
.form-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: #F9FAFB;
  border: 1px solid #F3F4F6;
  transition: border-color 0.2s, background-color 0.2s;
}
.form-field:focus-within {
  border-color: #FFDE00;
  background-color: #FFFFFF;
}
.form-field.has-error {
  border-color: #EF4444;
  background-color: #FEF2F2;
}
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input {
  width: 100%;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #120A2A;
  outline: none;
}
.form-input::placeholder {
  color: #9CA3AF;
}
.field-error {
  display: none;
  font-size: 11px;
  font-weight: 700;
  color: #EF4444;
  margin-top: 0.25rem;
}
.form-group.invalid .field-error {
  display: block;
}
.form-group.invalid .form-field {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

/* Custom checkbox / radio accent */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #120A2A;
}

/* Price range slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #E5E7EB;
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #FFDE00;
  border: 3px solid #120A2A;
  cursor: pointer;
}
.range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #FFDE00;
  border: 3px solid #120A2A;
  cursor: pointer;
}

/* Filter chips (selectable pills) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  color: #120A2A;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.chip:hover {
  border-color: #120A2A;
}
.chip.active,
input:checked + .chip {
  background: #120A2A;
  border-color: #120A2A;
  color: #FFDE00;
}

/* Selectable option card (room type, payment method) */
.option-card {
  border: 2px solid #F3F4F6;
  transition: all 0.2s;
  cursor: pointer;
}
.option-card:hover {
  border-color: #E5E7EB;
}
input:checked + .option-card,
.option-card.active {
  border-color: #120A2A;
  background-color: #FFFBEB;
}

/* Filter drawer on mobile */
@media (max-width: 1023px) {
  #filterPanel {
    position: fixed;
    inset: 0 auto 0 0;
    width: 88%;
    max-width: 360px;
    z-index: 60;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  #filterPanel.open {
    transform: translateX(0);
  }
}

/* Mobile menu */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobileMenu.open {
  max-height: 420px;
}

/* Checkout step connector */
.step-line {
  flex: 1;
  height: 2px;
  background: #E5E7EB;
}
.step-line.done {
  background: #120A2A;
}

/* Password strength bar */
.strength-bar span {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  background: #E5E7EB;
  transition: background 0.2s;
}

/* Success tick animation */
@keyframes pop-in {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.pop-in {
  animation: pop-in 0.5s ease-out both;
}

/* Native date picker icon color */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

/* Sticky compact search bar (slides in under the header on scroll) */
.sticky-search {
  position: fixed;
  top: 5rem; /* header height */
  left: 0;
  right: 0;
  z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
  box-shadow: 0 10px 25px -12px rgba(18, 10, 42, 0.25);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-search.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Keep the listing filter sidebar below the sticky search bar */
@media (min-width: 1024px) {
  #filterPanel {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
  body.search-stuck #filterPanel {
    top: 9.5rem;
    max-height: calc(100vh - 11rem);
  }
}
