/* Bay Luxury Hotel - custom styles on top of Tailwind */

html { scroll-behavior: smooth; }

/* ---------- page transition (gated by .js so content never stays hidden without JS) ---------- */
html.js body { opacity: 0; transition: opacity .4s ease; }
html.js body.page-ready { opacity: 1; }
html.js body.page-leaving { opacity: 0; transition: opacity .18s ease; }
@media (prefers-reduced-motion: reduce) {
  html.js body { opacity: 1 !important; transition: none !important; }
}

/* ---------- scroll reveal (AOS-style, self-contained & offline-safe) ---------- */
html.aos-on [data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: .8s;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
}
html.aos-on [data-aos="fade-up"] { transform: translateY(28px); }
html.aos-on [data-aos="fade-right"] { transform: translateX(-28px); }
html.aos-on [data-aos="fade-left"] { transform: translateX(28px); }
html.aos-on [data-aos="zoom-in"] { transform: scale(.95); }
html.aos-on [data-aos].aos-animate { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.aos-on [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- lazy image fade-in (gated by .aos-on = JS active) ----------
   NOTE: transition list must include transform, otherwise this rule would
   override .zoom-box img and kill the smooth hover zoom. */
html.aos-on img[loading="lazy"] {
  opacity: 0;
  transition: opacity .6s ease, transform 1.2s cubic-bezier(.22,.61,.36,1);
}
html.aos-on img[loading="lazy"].ld { opacity: 1; }

/* ---------- hero Ken Burns ---------- */
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.kenburns { animation: kb 24s ease-in-out infinite alternate; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .kenburns { animation: none; } }

/* ---------- header ---------- */
.nav-link {
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .2s ease;
  padding: 6px 0;
}
.hdr-inner { height: 76px; transition: height .35s ease; }
#site-header.scrolled .hdr-inner { height: 60px; }
.hdr-logo { transition: transform .35s ease; transform-origin: left center; }
#site-header.scrolled .hdr-logo { transform: scale(.85); }

.gold-rule {
  width: 64px; height: 2px;
  background: linear-gradient(90deg, transparent, #C6953F 20%, #E4C27C 50%, #C6953F 80%, transparent);
}

/* ---------- image hover zoom ---------- */
.zoom-box { overflow: hidden; background: #F0E8DA; }
.zoom-box img {
  transform: translateZ(0) scale(1.001);
  transition: opacity .6s ease, transform 1.2s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  backface-visibility: hidden;
}
.zoom-box:hover img { transform: translateZ(0) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .zoom-box img, .zoom-box:hover img { transform: none; transition: opacity .6s ease; } }

/* ---------- card lift ---------- */
.card-shadow { box-shadow: 0 10px 34px rgba(75, 2, 5, .10); }
.lift { transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(75, 2, 5, .16); }
@media (prefers-reduced-motion: reduce) { .lift, .lift:hover { transform: none; } }

/* ---------- form controls ---------- */
.field {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd2c2;
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 14px;
  color: #2B1B14;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus { border-color: #C6953F; box-shadow: 0 0 0 3px rgba(198,149,63,.18); }
label.flabel {
  display: block;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9E7326;
  margin-bottom: 6px;
}

/* ---------- OTA-style booking bar ---------- */
.bb-box {
  position: relative;
  border: 1px solid #E4D9C6;
  border-radius: 3px;
  padding: 9px 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 62px;
}
.bb-box:hover, .bb-box:focus-within { border-color: #C6953F; box-shadow: 0 0 0 3px rgba(198,149,63,.14); }
.bb-label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #9E7326; margin-bottom: 2px; display: flex; align-items: center; gap: 6px;
}
.bb-value { font-size: 15px; font-weight: 500; color: #2B1B14; }
.bb-box select, .bb-box input {
  border: 0; outline: none; background: transparent; width: 100%;
  font-size: 15px; font-weight: 500; color: #2B1B14; padding: 0; cursor: pointer;
}
.bb-nights {
  position: absolute; top: -11px; right: 10px;
  background: #8E060D; color: #F4E8CF;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.bb-nights.show { opacity: 1; transform: none; }

/* guests popover */
.gp-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: auto; z-index: 60;
  min-width: 270px;
  background: #fff; border-radius: 4px; border-top: 3px solid #C6953F;
  box-shadow: 0 24px 60px rgba(75,2,5,.22);
  padding: 18px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.gp-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.gp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.gp-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #C6953F; color: #9E7326; background: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: all .2s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.gp-btn:hover:not(:disabled) { background: #C6953F; color: #4B0205; }
.gp-btn:disabled { opacity: .3; cursor: default; }

/* ---------- flatpickr theming ---------- */
.flatpickr-calendar {
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(75, 2, 5, .25);
  border: 0; border-top: 3px solid #C6953F;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays, span.flatpickr-weekday { background: #fff; color: #4B0205; fill: #4B0205; }
span.flatpickr-weekday { color: #9E7326; font-weight: 600; }
.flatpickr-current-month { font-family: "Cormorant Garamond", serif; font-weight: 600; }
.flatpickr-day { border-radius: 4px; color: #2B1B14; font-weight: 500; }
.flatpickr-day:hover { background: #F4E8CF; border-color: #F4E8CF; }
.flatpickr-day.today { border-color: #C6953F; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
  background: #8E060D; border-color: #8E060D; color: #F4E8CF;
}
.flatpickr-day.inRange {
  background: #F4E8CF; border-color: #F4E8CF; box-shadow: -5px 0 0 #F4E8CF, 5px 0 0 #F4E8CF; color: #4B0205;
}
.flatpickr-day.startRange.selected ~ .endRange { box-shadow: none; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #C9BCA9; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: #C6953F; }

/* ---------- buttons ---------- */
.btn-gold {
  display: inline-block;
  background: #C6953F; color: #4B0205;
  font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 13px 30px; border-radius: 2px;
  transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
  border: 0; cursor: pointer;
}
.btn-gold:hover { background: #E4C27C; box-shadow: 0 8px 22px rgba(198,149,63,.35); }
.btn-gold:active { transform: translateY(1px); }
.btn-outline {
  display: inline-block;
  border: 1px solid #C6953F; color: #9E7326;
  font-weight: 500; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 28px; border-radius: 2px;
  transition: all .3s ease; cursor: pointer; background: transparent;
}
.btn-outline:hover { background: #C6953F; color: #4B0205; }
.btn-outline-light { border-color: #E4C27C; color: #E4C27C; }
.btn-outline-light:hover { background: #E4C27C; color: #4B0205; }

/* ---------- lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28,8,6,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox img {
  max-width: 92vw; max-height: 84vh; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
#lightbox.open img { transform: scale(1); }
#lightbox .lb-btn { position: absolute; color: #E4C27C; font-size: 42px; line-height: 1; cursor: pointer; padding: 12px; user-select: none; background: none; border: 0; transition: color .2s ease, transform .2s ease; }
#lightbox .lb-btn:hover { color: #F4E8CF; transform: scale(1.1); }
#lightbox .lb-close { top: 14px; right: 20px; transform: none !important; }
#lightbox .lb-prev { left: 12px; top: 50%; margin-top: -30px; }
#lightbox .lb-next { right: 12px; top: 50%; margin-top: -30px; }

/* ---------- modal ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(28,8,6,.75);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 4vh 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-wrap.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; width: 100%; max-width: 640px;
  border-radius: 4px; border-top: 3px solid #C6953F;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: translateY(16px);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.modal-wrap.open .modal-card { transform: none; }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 95; background: #4B0205; color: #F4E8CF; border: 1px solid #C6953F; padding: 12px 22px; border-radius: 3px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .35s ease; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- sticky mobile CTA (property pages) ---------- */
#prop-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: #fff; border-top: 1px solid rgba(198,149,63,.4);
  box-shadow: 0 -10px 30px rgba(75,2,5,.14);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
#prop-cta.show { transform: none; }
@media (min-width: 1024px) { #prop-cta { display: none; } }

/* ---------- misc ---------- */
.tabular { font-variant-numeric: tabular-nums; }
::selection { background: #C6953F; color: #4B0205; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #9E7326;
  background: rgba(244,232,207,.6); border: 1px solid rgba(198,149,63,.35);
  border-radius: 99px; padding: 3px 10px;
}
.chip-warn { color: #92400e; background: #fef3c7; border-color: #fcd34d; }


/* ---------- article prose ---------- */
.article-body p { margin: 0 0 20px; line-height: 1.9; color: rgba(43,27,20,.82); font-size: 16px; }
.article-body h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px; font-weight: 600; color: #4B0205;
  margin: 38px 0 16px; line-height: 1.25;
}
.article-body ul { margin: 0 0 20px; padding-left: 4px; list-style: none; }
.article-body ul li { position: relative; padding-left: 24px; margin-bottom: 10px; line-height: 1.75; color: rgba(43,27,20,.82); font-size: 15.5px; }
.article-body ul li::before { content: "✦"; position: absolute; left: 0; color: #C6953F; font-size: 12px; top: 4px; }
.article-body .aq {
  border-left: 3px solid #C6953F; background: rgba(244,232,207,.5);
  padding: 20px 26px; margin: 30px 0; border-radius: 0 3px 3px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-size: 21px; line-height: 1.5; color: #4B0205;
}


/* ---------- demo notice (banner + popup) ---------- */
#demo-banner {
  background: linear-gradient(90deg, #F4E8CF, #F9F0DC, #F4E8CF);
  border-bottom: 1px solid rgba(198,149,63,.45);
  color: #6b4a0f;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 14px;
  line-height: 1.5;
}
#demo-banner a { color: #8E060D; font-weight: 600; white-space: nowrap; }
#demo-banner a:hover { text-decoration: underline; }

#demo-modal .modal-card { max-width: 520px; text-align: center; }
#demo-modal .dm-body { padding: 36px 32px 30px; }
#demo-modal h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; color: #4B0205; font-weight: 600; line-height: 1.25; }
#demo-modal p { font-size: 14px; line-height: 1.75; color: rgba(43,27,20,.78); margin-top: 12px; }
#demo-modal .dm-contact {
  margin-top: 18px; background: rgba(244,232,207,.55);
  border: 1px solid rgba(198,149,63,.35); border-radius: 3px;
  padding: 14px 16px; font-size: 14.5px; color: #2B1B14;
}
#demo-modal .dm-contact a { color: #8E060D; font-weight: 600; }
#demo-modal .dm-contact a:hover { text-decoration: underline; }
