/* =====================================================================
   Hotel Saket Villa — Digital Booking & Concierge
   Design language: modern luxury + Kashi heritage
   ===================================================================== */

:root {
  --color-ivory: #F7F9F8;
  --color-sandstone: #E4E9E7;
  --color-maroon: #1B3A5C;
  --color-maroon-dark: #10263D;
  --color-teal: #2E6B5E;
  --color-gold: #B08D57;
  --color-gold-light: #D4B98C;
  --color-ink: #1F2A2E;
  --color-muted: #6B6B6B;
  --color-white: #FFFFFF;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 8px 24px rgba(36, 28, 26, 0.08);
  --shadow-elevated: 0 16px 40px rgba(36, 28, 26, 0.16);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden; /* safety net: no single element can force horizontal scroll/whitespace on any device */
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-maroon);
  color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-maroon); color: #fff; }
.btn-primary:hover { background: var(--color-maroon-dark); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; border-color: var(--color-gold); color: var(--color-maroon); }
.btn-outline:hover { background: var(--color-sandstone); }
.btn-ghost { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: #fff; }

/* ---------------- Video block (standalone embed, not a background) ---------------- */
.gold-rule { height: 3px; width: 100%; background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%); }
.video-block { width: 100%; background: #000; }
.video-embed-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background-size: cover; background-position: center; background-color: var(--color-maroon-dark);
}
.video-embed, #heroVideoPlayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback-poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Fallback play button — stays visible until the video actually starts
   playing, since muted autoplay is not guaranteed on every mobile browser.
   The poster image sits behind everything (video-embed-wrap's own
   background), so there is never a plain black box either way. */
.video-manual-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #D4B98C, var(--color-gold));
  color: var(--color-maroon-dark); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45); z-index: 3; transition: transform 0.15s ease;
}
.video-manual-play svg { margin-left: 3px; }
.video-manual-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-manual-play[hidden] { display: none; }

/* Custom mute/unmute control, replacing YouTube's own control bar (kept
   hidden via controls=0) so its title/channel overlay never shows. */
.video-mute-toggle {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(16,38,61,0.75); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px); transition: background 0.15s ease;
}
.video-mute-toggle:hover { background: rgba(16,38,61,0.92); }

/* River-wave divider: signature transition between video and hero-intro, evokes the Ganges */
.hero-wave { background: #000; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 46px; }
@media (min-width: 768px) { .hero-wave svg { height: 80px; } }

/* ---------------- Hero intro (logo, heading, tagline, CTAs) ---------------- */
.hero-intro {
  position: relative;
  background: linear-gradient(180deg, var(--color-maroon-dark) 0%, var(--color-maroon) 100%);
  padding: 6px 20px 52px; text-align: center;
}
.hero-intro-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: min(520px, 92vw); height: min(320px, 57vw); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(212,185,140,0.30) 0%, rgba(212,185,140,0) 70%);
}
.hero-intro-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }

.hero-logo-frame {
  width: 108px; height: 108px; margin: -54px auto 18px; border-radius: 50%;
  background: #fff; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 2px solid rgba(212,185,140,0.6);
}
.hero-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.hero-eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--color-gold-light);
}
.hero-heading {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(30px, 6.5vw, 52px); line-height: 1.15;
  color: #fff; margin: 0 0 10px;
}
.hero-subheading {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(16px, 2.4vw, 20px); color: var(--color-gold-light); margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn-gold {
  background: linear-gradient(135deg, #D4B98C, var(--color-gold));
  color: var(--color-maroon-dark); box-shadow: 0 6px 16px rgba(176,141,87,0.35);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------------- Social icons (used in the social strip and footer) ---------------- */
.social-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  color: var(--color-maroon); box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, background 0.15s ease; flex-shrink: 0;
}
.social-icon-circle:hover { transform: translateY(-2px); background: var(--color-sandstone); }
.footer-social-icon { width: 36px; height: 36px; }

/* ---------------- Brand strip ---------------- */
.brand-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--color-maroon); padding: 20px 16px; position: relative; z-index: 3;
}
.brand-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 16px 10px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 14px;
}
.brand-pill:hover { background: rgba(255,255,255,0.12); }
.brand-pill-logo {
  width: 148px; height: 70px; object-fit: contain;
  background: #fff; border-radius: 14px; padding: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2); margin-bottom: 4px;
}
@media (min-width: 561px) {
  .brand-pill-logo { width: 180px; height: 122px; }
}
@media (min-width: 900px) {
  .brand-pill-logo { width: 210px; height: 142px; }
}
@media (max-width: 560px) {
  .brand-strip { grid-template-columns: 1fr; }
}
.brand-pill-name { font-weight: 700; }
.brand-pill-tag { font-size: 12px; color: var(--color-gold-light); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* Visually hidden but still announced by screen readers — used when a
   brand's logo image already displays its name graphically, so sighted
   users aren't shown the name twice while it stays accessible. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- Sections ---------------- */
.section {
  max-width: var(--max-width); margin: 0 auto; padding: 64px 20px;
}
.section h2 {
  font-family: var(--font-heading); font-size: clamp(26px, 4vw, 36px);
  color: var(--color-teal); margin: 0 0 6px; text-align: center;
}
.section-subhead { text-align: center; color: var(--color-muted); margin: 0 0 32px; font-size: 16px; }

/* ---------------- Social strip ---------------- */
.social-strip {
  background: var(--color-sandstone); padding: 18px 20px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.google-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.google-actions .btn-ghost { background: var(--color-maroon); }

/* ---------------- OTA grid ---------------- */
.ota-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ota-card {
  background: #fff; border: 1px solid var(--color-sandstone); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; font-weight: 700; color: var(--color-maroon);
  box-shadow: var(--shadow-soft); transition: transform 0.15s ease;
}
.ota-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.ota-card img { height: 32px; margin: 0 auto 10px; object-fit: contain; }

/* ---------------- Forms ---------------- */
.share-form, .enquiry-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 200px; }
input, select, textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--color-sandstone);
  font-size: 15px; font-family: var(--font-body); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-gold); }
.consent-label { font-size: 13px; color: var(--color-muted); display: flex; gap: 8px; align-items: flex-start; }
.form-message { text-align: center; margin-top: 10px; font-weight: 600; min-height: 1.2em; }
.form-message.success { color: #2E6B41; }
.form-message.error { color: var(--color-maroon); }

/* ---------------- Maps ---------------- */
.maps-section { text-align: center; }
.maps-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.maps-embed iframe { width: 100%; height: 320px; border: 0; }
.maps-placeholder { padding: 60px 20px; background: var(--color-sandstone); color: var(--color-muted); }
.maps-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ---------------- Brand sections (hotel/restaurant/cafe) ---------------- */
.brand-section { background: #fff; border-radius: 24px; box-shadow: var(--shadow-soft); }
.hotel-ctas, .brand-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 26px 0; }

.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 10px; }
.room-card { border: 1px solid var(--color-sandstone); border-radius: var(--radius); overflow: hidden; background: var(--color-ivory); }
.room-card img { height: 180px; width: 100%; object-fit: cover; }
.room-card-body { padding: 16px; }
.room-card-body h3 { margin: 0 0 6px; color: var(--color-maroon); }
.room-amenities { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0; }
.room-amenities li { background: var(--color-sandstone); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.room-price { font-weight: 700; color: var(--color-gold); margin: 8px 0; }

.amenities-groups { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.amenity-group-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  color: var(--color-teal); text-align: center; margin: 0 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--color-sandstone);
}
.amenities-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.amenity-chip { background: var(--color-maroon); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; }

.meta-line { text-align: center; color: var(--color-muted); font-size: 14px; margin-bottom: 20px; }
.meta-line span:not(:last-child)::after { content: ' • '; }

/* ---------------- Section photo carousel (Restaurant/Café galleries) ---------------- */
.section-carousel { margin: 20px auto 28px; max-width: 900px; }
.section-carousel-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 2px 2px 10px;
}
.section-carousel-track::-webkit-scrollbar { height: 6px; }
.section-carousel-track::-webkit-scrollbar-thumb { background: var(--color-sandstone); border-radius: 999px; }
.section-carousel-item {
  flex: 0 0 78%; scroll-snap-align: start; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft);
}
.section-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.section-carousel-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-sandstone);
  background: #fff; color: var(--color-maroon); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.section-carousel-nav button:hover { background: var(--color-sandstone); }
@media (min-width: 640px) {
  .section-carousel-item { flex-basis: 46%; }
}
@media (min-width: 960px) {
  .section-carousel-item { flex-basis: 31%; }
}

.menu-block { max-width: 640px; margin: 0 auto; }
.menu-block h3 { color: var(--color-gold); border-bottom: 1px solid var(--color-sandstone); padding-bottom: 6px; margin-top: 24px; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--color-sandstone); }
.menu-item-price { color: var(--color-maroon); font-weight: 700; }

/* ---------------- Kashi ---------------- */
.kashi-section { background: linear-gradient(180deg, var(--color-ivory), var(--color-sandstone)); border-radius: 24px; }
.kashi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.kashi-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.kashi-card img { height: 170px; width: 100%; object-fit: cover; }
.kashi-card-body { padding: 16px; }
.kashi-card-body h3 { color: var(--color-maroon); margin: 0 0 6px; }

/* ---------------- Gallery ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.empty-state { text-align: center; color: var(--color-muted); grid-column: 1/-1; }

/* ---------------- Reviews ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.review-card { background: #fff; border-left: 4px solid var(--color-gold); border-radius: 10px; padding: 18px; box-shadow: var(--shadow-soft); margin: 0; }
.review-card footer { margin-top: 10px; color: var(--color-muted); font-size: 13px; }
.reviews-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------------- Payment ---------------- */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.payment-card { background: #fff; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-soft); }
.payment-card img { width: 140px; margin: 10px auto; }
.upi-id { font-size: 13px; color: var(--color-muted); }
.copy-upi { border: none; background: var(--color-sandstone); border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; margin-left: 6px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--color-maroon-dark); color: #fff; padding: 48px 20px 100px; text-align: center; }
.footer-logo { width: 60px; margin: 0 auto 14px; border-radius: 50%; background: #fff; padding: 6px; }
.footer-social { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.footer-credit { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 20px; }

/* ---------------- Mobile action bar ---------------- */
.mobile-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-top: 1px solid var(--color-sandstone);
  display: flex; justify-content: space-around; padding: 8px 4px;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
}
.mobile-action-bar a, .mobile-action-bar button {
  background: none; border: none; font-family: var(--font-body);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--color-maroon); font-weight: 600; cursor: pointer;
}
.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; }

/* ---------------- Chatbot ---------------- */
.concierge-widget { position: fixed; bottom: 74px; right: 16px; z-index: 950; }

/* ---------------- Ambient audio toggle ---------------- */
.ambient-audio-toggle {
  position: fixed; bottom: 74px; left: 16px; z-index: 950;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--color-maroon); color: var(--color-gold-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-elevated); cursor: pointer;
}
.ambient-audio-toggle.is-playing { color: #fff; }
.ambient-audio-toggle.is-playing::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--color-gold-light); opacity: 0.6;
  animation: ambient-pulse 2s ease-out infinite;
}
@keyframes ambient-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (min-width: 900px) {
  .ambient-audio-toggle { bottom: 24px; }
}
.concierge-toggle {
  background: var(--color-maroon); color: #fff; border: none; border-radius: 999px;
  padding: 12px 18px; font-weight: 700; box-shadow: var(--shadow-elevated); cursor: pointer; font-size: 13px;
}
.concierge-panel {
  position: fixed; bottom: 74px; right: 16px; left: 16px; max-width: 360px; margin-left: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column; max-height: 70vh; overflow: hidden;
}
.concierge-panel[hidden] { display: none; } /* author rules always beat the UA [hidden] default — must restate it explicitly */
.concierge-header { background: var(--color-maroon); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.concierge-header button { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.concierge-messages { padding: 14px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 85%; font-size: 14px; }
.msg-bot { background: var(--color-sandstone); align-self: flex-start; }
.msg-user { background: var(--color-maroon); color: #fff; align-self: flex-end; }
.concierge-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.suggestion { border: 1px solid var(--color-gold); background: none; border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; color: var(--color-maroon); }
.concierge-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--color-sandstone); }
.concierge-form input { flex: 1; }
.concierge-form button { background: var(--color-maroon); color: #fff; border: none; border-radius: 8px; padding: 0 14px; cursor: pointer; }
.concierge-escalate { display: block; text-align: center; padding: 8px; font-size: 12px; color: var(--color-maroon); background: var(--color-sandstone); }

@media (min-width: 900px) {
  .mobile-action-bar { display: none; }
  .site-footer { padding-bottom: 48px; }
}
