/* Teega Suite by WP Homestay — mobile-first. Palette follows the main site (navy / gold / off-white). */
:root {
  --navy: #0A1F33; --navy-2: #123457; --gold: #C9A05C; --gold-d: #9C7637; --off: #F7F5F1;
  --ink: #16202B; --gray: #5F6B7A; --line: #E7E3DC; --wa: #128C4A; --wa-d: #0E7239;
  --r: 14px; --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--off); line-height: 1.5; font-size: 16px; }
body.has-bar { padding-bottom: 92px; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
ul { list-style: none; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: var(--navy); color: #fff; }
.brand { font-family: var(--serif); font-size: 1.05rem; color: #fff; text-decoration: none; line-height: 1.2; }
.brand span { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.lang { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 7px 13px; color: #fff; font-size: .82rem; font-weight: 600; min-height: 36px; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }

/* hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; opacity: .5; }   /* keeps the window / sea view in frame on wide screens */
.hero-in { position: relative; max-width: 1100px; margin: 0 auto; padding: 30px 18px 74px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.15; text-wrap: balance; }
html[lang="ms"] .hero h1 { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.55rem, 6.2vw, 2.6rem); line-height: 1.2; }  /* BM title is all caps so every letter is the same height */
.sub { margin-top: 10px; max-width: 34em; text-wrap: pretty; color: rgba(255,255,255,.86); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.chips li:last-child { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }
.fee-banner { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--gold); color: var(--navy); font-size: 1.05rem; font-weight: 700; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.incl { margin-top: 14px; font-size: .9rem; color: var(--gold); font-weight: 600; }

/* search */
.search { position: relative; z-index: 2; max-width: 1068px; margin: -48px 14px 0; padding: 14px; background: #fff; border-radius: 18px;
  box-shadow: 0 14px 40px rgba(10,31,51,.18); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1100px) { .search { margin-left: auto; margin-right: auto; } }
.field label, .field .lbl { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); margin-bottom: 4px; }
.field input[type="date"] { width: 100%; height: 48px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--off); font-size: 16px; }
.field.guests { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.field.guests .lbl { flex: 1 0 100%; margin: 0; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.3rem; line-height: 1; color: var(--navy); }
.stepper output { min-width: 40px; text-align: center; font-weight: 600; font-size: 1.1rem; }
.hint { font-size: .82rem; color: var(--gold-d); font-weight: 600; }
.go { grid-column: 1 / -1; height: 52px; border: 0; border-radius: 12px; background: var(--gold); color: var(--navy); font-weight: 600; font-size: 1rem; }
.go:hover { background: #d6ae6e; }
.go[aria-busy="true"] { opacity: .7; }
.formerr { grid-column: 1 / -1; color: #B3261E; font-size: .88rem; font-weight: 500; }
@media (min-width: 760px) {
  .search { grid-template-columns: 1fr 1fr 1.1fr auto; align-items: end; padding: 16px 18px; }
  .field.guests { grid-column: auto; flex-wrap: nowrap; }
  .field.guests .lbl { flex: 0 0 100%; }
  .field.guests { display: block; }
  .go { grid-column: auto; padding: 0 26px; }
  .formerr { grid-column: 1 / -1; }
  #paxHintTop { margin-top: 4px; }
}

/* results */
.filters { max-width: 1100px; margin: 18px auto 0; padding: 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: .88rem; }
.filters .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.linkbtn { background: none; border: 0; color: var(--gold-d); font-weight: 600; text-decoration: underline; padding: 8px; margin-top: 4px; }
#results { max-width: 1100px; margin: 0 auto; padding: 14px 14px 8px; }
.empty { text-align: center; color: var(--gray); padding: 26px 8px; }
.notice { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.notice.left { background: #FFF4E0; color: #7A4B00; border: 1px solid #F1D49A; }
.notice.err { background: #FDECEA; color: #8A1C14; border: 1px solid #F3C1BC; }
.count { font-weight: 600; margin: 4px 2px 12px; color: var(--navy); }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border-radius: 16px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 2px 10px rgba(10,31,51,.08); transition: border-color .15s, box-shadow .15s; }
.card.sel { border-color: var(--gold); box-shadow: 0 6px 20px rgba(201,160,92,.3); }
.car { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1b3a5c, #0A1F33); }
.scroller { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; background: #dcd7cd; cursor: pointer; }
.noimg { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .9rem; }
.fee-badge { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--gold); color: var(--navy); font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: none; }
.pg { position: absolute; right: 10px; bottom: 10px; background: rgba(10,31,51,.72); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.1rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.arrow.p { left: 8px; } .arrow.n { right: 8px; }
@media (hover: hover) { .car:hover .arrow { display: block; } }
.cbody { padding: 12px 14px 14px; }
.crow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cname { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.cmeta { font-size: .85rem; color: var(--gray); }
.price { text-align: right; flex: none; }
.price b { display: block; font-size: 1.2rem; color: var(--navy); line-height: 1.2; }
.price small { display: block; font-size: .72rem; color: var(--gray); max-width: 11em; }
.price.ask b { font-size: 1rem; color: var(--gold-d); }
.cact { display: flex; gap: 8px; margin-top: 12px; }
.cact button { flex: 1; height: 46px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.btn-d { background: #fff; border: 1.5px solid var(--line); color: var(--navy); }
.btn-s { background: var(--navy); border: 1.5px solid var(--navy); color: #fff; }
.card.sel .btn-s { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.skel { height: 300px; border-radius: 16px; background: linear-gradient(90deg, #ece8e0 25%, #f6f3ee 37%, #ece8e0 63%); background-size: 400% 100%; animation: sh 1.3s ease infinite; }
@keyframes sh { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } * { scroll-behavior: auto !important; } }

.wa-link, .wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--wa); color: #fff; font-weight: 600; text-decoration: none; }
.wa-link:hover, .wa:hover { background: var(--wa-d); }
.empty .wa-link { margin-top: 12px; }

/* location + footer */
.loc { max-width: 1100px; margin: 18px auto 0; padding: 18px 14px 8px; }
.loc h2 { font-family: var(--serif); color: var(--navy); font-size: 1.4rem; }
.addr { color: var(--gray); margin-top: 2px; }
.nearby { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.nearby li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; }
.nearby li small { color: var(--gold-d); font-weight: 600; margin-left: 6px; }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e8e4dc; aspect-ratio: 16 / 10; max-height: 380px; width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; }
.foot { text-align: center; color: var(--gray); font-size: .85rem; padding: 18px 16px 30px; }
.foot p + p { margin-top: 2px; }
.foot .small { font-size: .78rem; }

/* sticky booking bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy); color: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.bar-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-txt { min-width: 0; line-height: 1.25; }
.bar-txt strong { display: block; font-size: .95rem; }
.bar-txt span { display: block; font-size: 1.1rem; font-weight: 600; color: var(--gold); }
.bar-txt em { display: block; font-style: normal; font-size: .78rem; color: #FFD99A; }
.bar .wa { flex: none; }
.bar-cta { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 3px; max-width: 58%; }
.bar-cta small { font-size: .75rem; line-height: 1.25; color: #D5DEE8; text-align: center; }
.bar-cta small.multi { color: #FFD99A; font-weight: 700; }
.wa { border: 0; font-size: 1rem; }
.wa[aria-disabled="true"], .wa:disabled { background: #9AA5B1; cursor: not-allowed; }
.wa[aria-disabled="true"]:hover { background: #9AA5B1; }

/* booking-fee confirm window */
.c-pad { padding: 20px 18px 24px; }
.c-pad h2 { font-family: var(--serif); color: var(--navy); font-size: 1.45rem; line-height: 1.25; padding-right: 44px; }
.fee-call { margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: #FFF3DC; border: 1.5px solid var(--gold); color: #5A4115; font-weight: 600; font-size: .92rem; }
.c-units { margin-top: 14px; }
.c-units li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.c-units .linkbtn { margin: 0; padding: 6px 4px; font-size: .88rem; }
.c-rows { margin-top: 12px; }
.c-rows div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: .95rem; }
.c-rows dt { color: var(--gray); }
.c-rows dd { text-align: right; font-weight: 600; color: var(--navy); }
.c-rows .fee dd, .c-rows .fee dt { color: var(--gold-d); font-weight: 700; }
.c-rows .bal { border-top: 1.5px solid var(--line); margin-top: 4px; padding-top: 10px; font-size: 1.02rem; }
.tc { margin-top: 16px; padding: 12px 14px; background: var(--off); border-radius: 12px; font-size: .86rem; color: var(--ink); }
.tc h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin-bottom: 6px; }
.tc ol { padding-left: 18px; }
.tc li { margin-top: 4px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 600; color: var(--navy); cursor: pointer; }
.agree input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--navy); }
.c-go { width: 100%; margin-top: 14px; }

/* detail sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(10,31,51,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-in { position: relative; width: 100%; max-width: 760px; max-height: 94vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; overscroll-behavior: contain; }
@media (min-width: 760px) { .sheet { align-items: center; } .sheet-in { border-radius: 20px; max-height: 90vh; } }
.x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--navy); font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.sheet .car { aspect-ratio: 3 / 2; border-radius: 20px 20px 0 0; }
.sheet-pad { padding: 16px 18px 22px; }
.sheet-pad h2 { font-family: var(--serif); color: var(--navy); font-size: 1.5rem; }
.sheet-pad h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin: 18px 0 8px; }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .92rem; }
.amen li::before { content: '✓'; color: var(--gold-d); font-weight: 700; margin-right: 8px; }
.times { margin-top: 14px; padding: 10px 12px; background: var(--off); border-radius: 10px; font-size: .9rem; font-weight: 500; }
.sheet-pad .cact { margin-top: 16px; }

/* results scroll offset below the sticky header */
#results { scroll-margin-top: 64px; }
