:root {
  --card-bg: #fff;
  --muted: #666;
  --accent: #b8875b;
}

/* base */
* { box-sizing: border-box; }
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f9f8f6;
  color: #222;
  line-height: 1.7;
}

/* hero / navbar / layout basics (kept small) */
.navbar { background: rgba(0,0,0,0.8); }
.hero-section { position: relative; height: 100vh; overflow: hidden; }
.hero-section .bg-video { position: absolute; top:50%; left:50%; min-width:100%; min-height:100%; transform:translate(-50%,-50%); object-fit:cover; filter:brightness(0.55); }
.overlay { position:absolute; inset:0; background:rgba(0,0,0,0.5); z-index:2; }
.hero-text { position:relative; z-index:3; top:50%; transform:translateY(-50%); max-width:800px; margin:0 auto; text-align:center; color:#fff; }

/* services / cards */
.services-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:1rem; margin-top:0.75rem; }
.card { border-radius:10px; }
.card .card-img-top { object-fit:cover; height:220px; }

/* toggle button */
.toggle-btn {
  display:inline-block;
  border:0;
  background:var(--accent);
  color:#fff;
  padding:0.5rem 0.8rem;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
}

/* inline hidden lists */
.extra-list {
  overflow:hidden;
  transition: max-height 350ms ease, opacity 300ms ease, padding 250ms ease;
  opacity:0;
  max-height:0;
  padding-top:0;
  margin-top:0.75rem;
}
.extra-list.open {
  opacity:1;
  padding-top:.75rem;
  max-height:600px;
}
.extra-list ul { margin:0; padding-left:1.25rem; }
.extra-list li { margin:0.35rem 0; }

/* booking main form adjustments (if needed) */
#booking .form-control { background: #fff; }

/* --- Fullscreen panel (CSS for the existing #full-info-panel markup) --- */
.fullpanel {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.fullpanel.open { display: flex; }
.fullpanel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.56);
  backdrop-filter: blur(4px);
}
.fullpanel-wrap {
  position: relative;
  z-index: 2;
  width: min(1000px, 92%);
  margin: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullpanel-card {
  background: rgba(255,255,255,0.96);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  color: #222;
  max-width: 760px;
  width: 100%;
}
.fullpanel-heading { font-family: 'Playfair Display', serif; font-size: 2.1rem; margin: 0 0 1rem; color: #222; }
.fullpanel-body { font-size: 1rem; line-height: 1.7; color: #444; margin-bottom: 1.4rem; }
.fullpanel-footer { text-align: left; }
.fullpanel-cta { background: var(--accent); color:#fff; padding:.75rem 1.1rem; border-radius:6px; font-weight:600; text-decoration:none; }

/* fullpanel close button  */
.fullpanel-close { position: absolute; top: 14px; right: 14px; z-index:3; background:transparent; border:0; font-size:1.8rem; cursor:pointer; color:#222; }

/* --- transient & success popup styles --- */
.success-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 2000;
}
.success-popup.show { opacity: 1; visibility: visible; }
.popup-box {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: pop 0.4s ease;
}
.popup-box h3 { color:#000; margin-bottom:.5rem; }
.popup-box p { color:#555; font-size:.95rem; }

@keyframes pop { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity:1; } }

/* small utilities */
.no-scroll { overflow: hidden !important; }
.mb-0 { margin-bottom: 0 !important; }

/* responsive */
@media (max-width: 768px) {
  .fullpanel-card { padding: 1.6rem; }
  .fullpanel-heading { font-size: 1.6rem; text-align:center; }
  .fullpanel-body { text-align: center; }
  .card .card-img-top { height: 180px; }
}

/* ---------- Amenities / video overlay: center text on video ---------- */
/* Ensure video section has a visible height */
#amenities.video-section,
.video-section {
  position: relative;
  min-height: 60vh;               /* visible height; adjust to taste */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;                     /* overlay will handle spacing */
  box-sizing: border-box;
}

/* Video: fill the section and sit behind content */
#amenities .bg-video,
.video-section .bg-video {
  position: absolute;
  inset: 0;                       /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  filter: brightness(0.45) saturate(0.95); /* dim video so text reads */
}

/* Overlay container: center content and place above video */
#amenities .video-overlay,
.video-section .video-overlay {
  position: relative;    /* sits above the absolutely-positioned video */
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 2rem;         /* spacing on small screens */
  box-sizing: border-box;
  text-align: center;
}

/* Inner text block for better contrast and readable edges */
#amenities .video-overlay .text-white,
.video-section .video-overlay .text-white {
  max-width: 900px;
  width: calc(100% - 4rem);
  padding: 1.4rem 2rem;
  background: rgba(255,255,255,0.06); /* subtle light panel; increases readability */
  backdrop-filter: blur(4px);         /* soft blur behind the panel */
  color: #fff;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Heading and paragraph styles on top of video */
#amenities .video-overlay .text-white h2,
.video-section .video-overlay .text-white h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem); /* responsive */
  line-height: 1.05;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
#amenities .video-overlay .text-white p,
.video-section .video-overlay .text-white p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* CTA button inside overlay - keep visible above everything */
#amenities .video-overlay .btn,
.video-section .video-overlay .btn {
  margin-top: 1rem;
  z-index: 4;
}

/* Avoid navbar covering the top of the section if navbar is fixed */
nav.navbar.fixed-top ~ #amenities,
nav.navbar.fixed-top ~ .video-section {
  padding-top: calc(var(--navbar-offset, 70px)); /* adjust --navbar-offset if needed */
}

/* Small screen tweaks */
@media (max-width: 768px) {
  #amenities.video-section { min-height: 45vh; }
  #amenities .video-overlay .text-white { padding: 1rem; width: calc(100% - 2rem); }
  #amenities .video-overlay .text-white h2 { font-size: 1.6rem; }
  #amenities .video-overlay .text-white p { font-size: 0.95rem; }
}