/* ==========================================================================
   Asal River Side Resort & Spa - Custom Stylesheet (MakeMyTrip Style)
   ========================================================================== */

:root {
  --color-brand-50: #f0f9ff;
  --color-brand-100: #e0f2fe;
  --color-brand-200: #bae6fd;
  --color-brand-500: #0284c7;
  --color-brand-600: #0369a1;
  --color-brand-700: #075985;
  --color-brand-800: #0c4a6e;
  
  --color-mmt-blue: #0084ff;
  --color-mmt-darkblue: #0a2240;
  --color-mmt-orange: #ef6614;
  --color-mmt-green: #0a8835;
  --color-mmt-lightgreen: #e6f7ec;
  
  --color-forest-50: #f0fdf4;
  --color-forest-600: #16a34a;
  --color-forest-700: #15803d;
  
  --color-amber-500: #f59e0b;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-600: #475569;
  --color-slate-100: #f1f5f9;
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Custom Scrollbar */
html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
}

body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  transition: background var(--transition-fast);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Navigation */
.glass-nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: rgba(255, 255, 255, 0.96);
}

/* ==========================================================================
   Layout Space Reservation & Navigation Offsets
   ========================================================================== */
.hotel-detail-page {
  /*
   * Reserve layout space for the site's fixed top navigation header (#pnav).
   * Desktop (>= 1024px): var(--nav-h, 72px) + 24px = 96px (clears #pnav height of 93.6px)
   * Mobile & Tablet (< 1024px): var(--nav-h-sm, 60px) + 12px = 72px (clears #pnav height of 67.6px)
   */
  --site-nav-offset: calc(var(--nav-h, 72px) + 24px);
  padding-top: var(--site-nav-offset);
  background-color: #f8fafc;
  min-height: 100vh;
}

@media (max-width: 1023px) {
  .hotel-detail-page {
    --site-nav-offset: calc(var(--nav-h-sm, 60px) + 12px);
    padding-top: var(--site-nav-offset);
  }
}

/* Desktop Hotel Sub-header & Mobile Top Bar:
   Sit naturally in layout space below #pnav without overlapping or conflicting */
.hotel-site-header {
  position: relative;
  z-index: 30;
  background-color: #ffffff;
}

.hotel-android-bar {
  position: relative;
  z-index: 30;
  background-color: #ffffff;
}

/* Sticky Section Navigation:
   Docks seamlessly right underneath the site navigation (#pnav) on scroll.
   Solid white background prevents page content from bleeding underneath. */
.hotel-quick-nav {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  z-index: 40;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

@media (max-width: 1023px) {
  .hotel-quick-nav {
    top: calc(var(--nav-h-sm, 60px) + 10px);
  }
}

/* Sticky Reservation Sidebar on Desktop:
   Docks beside the content below the sticky quick-nav */
@media (min-width: 1024px) {
  .hotel-reservation-sidebar {
    position: sticky;
    top: calc(var(--nav-h, 72px) + 76px);
    z-index: 30;
  }
}

/* Section scroll margins so clicking quick-nav links accounts for both #pnav and #quick-nav */
#overview-section,
#rooms-section,
#amenities-section,
#experiences-section,
#reviews-section,
#location-section,
#faq-section {
  scroll-margin-top: calc(var(--nav-h, 72px) + 70px);
}

@media (max-width: 1023px) {
  #overview-section,
  #rooms-section,
  #amenities-section,
  #experiences-section,
  #reviews-section,
  #location-section,
  #faq-section {
    scroll-margin-top: calc(var(--nav-h-sm, 60px) + 65px);
  }
}

/* ==========================================================================
   MakeMyTrip Search Bar Fields (hsw_inputBox & roomsGuestFld)
   ========================================================================== */
.hsw_inputBox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  min-width: 140px;
}

.hsw_inputBox:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

.hsw_inputBox.roomsGuestFld {
  position: relative;
}

.lbl_input {
  display: block;
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  pointer-events: none;
}

.hsw_inputField {
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.775rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  width: 100%;
}

.hsw_inputField:focus {
  outline: none !important;
}

/* Invalid Date Trigger Warning */
.date-trigger-invalid {
  border-color: #f87171 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

/* Automatic Price Change Animation */
@keyframes pricePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); color: #0284c7; }
  100% { transform: scale(1); }
}

.price-pulse {
  display: inline-block;
  animation: pricePulse 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-stay-total-badge {
  color: #0369a1;
  font-weight: 700;
  font-size: 0.725rem;
  letter-spacing: -0.01em;
}

/* Selected Room Card Highlight */
.room-card-selected {
  outline: 2.5px solid var(--color-brand-600) !important;
  box-shadow: 0 10px 25px -3px rgba(3, 105, 161, 0.18) !important;
  background-color: #fbfdff !important;
}

/* ==========================================================================
   MakeMyTrip Dual-Month Interactive Calendar
   ========================================================================== */
.mmt-calendar-popover {
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  animation: calendarPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes calendarPopIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cal-day-cell {
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 120ms ease;
  position: relative;
  user-select: none;
}

.cal-day-cell:hover:not(.cal-disabled):not(.cal-selected-start):not(.cal-selected-end) {
  background-color: #e0f2fe;
  color: #0369a1;
}

.cal-day-cell.cal-disabled {
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  text-decoration: line-through 1px;
  background-color: transparent !important;
  opacity: 0.45;
}

.cal-day-cell.cal-over-90-days {
  color: #f87171 !important;
  opacity: 0.55;
  cursor: not-allowed !important;
}

.cal-day-cell.cal-over-90-days:hover {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
}

.cal-day-cell.cal-today::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background-color: #0284c7;
  border-radius: 50%;
}

.cal-day-cell.cal-selected-start {
  background-color: #0369a1 !important;
  color: #ffffff !important;
  font-weight: 800;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.cal-day-cell.cal-selected-end {
  background-color: #0369a1 !important;
  color: #ffffff !important;
  font-weight: 800;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.cal-day-cell.cal-single-day-selected {
  background-color: #0369a1 !important;
  color: #ffffff !important;
  border-radius: 0.6rem !important;
}

.cal-day-cell.cal-in-range {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-radius: 0 !important;
}

.cal-day-cell.cal-hover-range {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
}

/* Dialog & Backdrop */
dialog[open] {
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: backdropFadeIn 0.2s ease-out forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.3);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-success {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.toast.toast-info {
  background: linear-gradient(135deg, #075985 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.toast.toast-error {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow: 0 12px 30px -5px rgba(220, 38, 38, 0.4);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Lightbox Carousel */
.lightbox-thumb.active {
  outline: 2.5px solid #38bdf8;
  opacity: 1;
}

.lightbox-thumb {
  opacity: 0.6;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.lightbox-thumb:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* Quick Nav Active Indicator */
.nav-link-active {
  color: var(--color-brand-600) !important;
  font-weight: 700 !important;
  position: relative;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-brand-600);
  border-radius: 9999px;
}

/* Currency & Filter Buttons */
.currency-btn.active {
  background-color: var(--color-brand-600);
  color: #ffffff;
}

/* Coupon Badges */
.coupon-tag {
  border: 1.5px dashed #0284c7;
  background-color: #f0f9ff;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.coupon-tag:hover {
  background-color: #e0f2fe;
  border-color: #0369a1;
}

/* ==========================================================================
   Android Native App UI & Material 3 Styling (Mobile Viewport)
   ========================================================================== */

/* No Scrollbar Utility for Touch Carousels & Horizontal Tabs */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Android Top App Bar Elevation */
.android-top-bar {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.android-top-bar.scrolled {
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.12);
}

/* Android Scrim Backdrop */
#android-sheet-backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: androidScrimFadeIn 0.22s ease-out forwards;
}

@keyframes androidScrimFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Android Bottom Sheet Slide-Up Animation (Mobile) */
@media (max-width: 1023px) {
  #mmt-calendar-popover:not(.hidden) > div,
  #mobile-guest-bottom-sheet:not(.hidden) {
    animation: androidSheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes androidSheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Material Design Ripple Effect */
.ripple-surface {
  position: relative;
  overflow: hidden;
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  transform: scale(0);
  animation: rippleSpread 0.55s linear;
  pointer-events: none;
}

.ripple-dark .ripple-circle {
  background: rgba(3, 105, 161, 0.22);
}

@keyframes rippleSpread {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Wishlist Heart Animation */
.wishlist-heart-active {
  fill: #f43f5e !important;
  color: #f43f5e !important;
  stroke: #f43f5e !important;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Android Drag Handle */
.android-drag-handle {
  width: 3rem;
  height: 0.3rem;
  border-radius: 9999px;
  background-color: #cbd5e1;
  margin: 0.25rem auto 0.75rem auto;
  cursor: grab;
}

/* Print Friendly Styles */
@media print {
  header, nav, #quick-nav, #toast-container, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
