/* Stay Bay public site. Shares the console's palette and logo. */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f2f5f7;
  --text: #0f1720;
  --muted: #5d6975;
  --line: #e4e8ec;
  --brand: #0e7490;
  --brand-ink: #0b5a70;
  --brand-soft: #e0f2f7;
  --shadow: 0 1px 2px rgba(15, 23, 32, 0.05), 0 12px 32px rgba(15, 23, 32, 0.08);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1015;
    --surface: #131a21;
    --surface-2: #1a232c;
    --text: #e8edf2;
    --muted: #97a3af;
    --line: #232e39;
    --brand: #38bdd8;
    --brand-ink: #7dd7ea;
    --brand-soft: #0f2a33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }
.container { max-width: 1120px; margin: 0 auto; padding-inline: 1.25rem; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 5rem; padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Home */
.hero { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem); }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); font-weight: 700; margin: 0 0 0.75rem; letter-spacing: -0.035em; }
.hero p { font-size: clamp(1.02rem, 2vw, 1.15rem); color: var(--muted); max-width: 40rem; margin: 0; }
.section-title { font-size: 1.35rem; margin: 0 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.card-link { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-link:hover { transform: translateY(-3px); }
.card-link img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card-body h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.card-body .meta { color: var(--muted); font-size: 0.92rem; }
.card-body .cta { display: inline-block; margin-top: 0.8rem; color: var(--brand); font-weight: 600; font-size: 0.95rem; }

/* Property */
.prop-head { padding-block: 2rem 1.25rem; }
.prop-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.4rem; }
.prop-head .tagline { color: var(--muted); font-size: 1.1rem; margin: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 0.6rem; height: clamp(300px, 46vw, 520px); border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery button { padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.2s; }
.gallery button:hover img { transform: scale(1.03); filter: brightness(0.94); }
.gallery .all { position: absolute; right: 1rem; bottom: 1rem; padding: 0.55rem 1rem; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--line); font: 600 0.9rem/1 inherit; font-family: inherit; box-shadow: var(--shadow); cursor: pointer; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; aspect-ratio: 3 / 2; }
  .gallery button:not(:first-child):not(.all) { display: none; }
  .gallery button:first-child { grid-row: auto; }
}

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3.5rem; padding-top: 2.25rem; align-items: start; }
@media (max-width: 900px) { .prop-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 1.05rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.facts span strong { font-weight: 600; }
.block { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.block p { margin: 0 0 1rem; color: var(--text); }
.block p:last-child { margin-bottom: 0; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.highlight { padding: 1rem 1.1rem; border-radius: 16px; background: var(--surface-2); }
.highlight h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.highlight p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.room { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.room img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.room div { padding: 0.75rem 0.9rem; }
.room strong { display: block; font-size: 0.98rem; }
.room span { color: var(--muted); font-size: 0.9rem; }
.unit span { display: block; }
.amenities { columns: 2 220px; column-gap: 2rem; padding: 0; margin: 0; list-style: none; }
.amenities li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; break-inside: avoid; }
.amenities li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-60%) rotate(-45deg); }

.book { position: sticky; top: 88px; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.book h2 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.book p { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.95rem; }
.book .badge { display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 0.8rem; font-weight: 600; }
.book ul { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.book li { padding: 0.55rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.book li span:first-child { color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 11, 0.94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1.25rem 0.9rem; font-size: 0.9rem; color: #cbd3da; }
.lightbox .stage { display: grid; place-items: center; min-height: 0; padding: 0 3.5rem; }
/* Size against the viewport so tall (portrait) photos fit the screen at their true shape. */
.lightbox .stage img, .lightbox .stage video {
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 8.5rem); max-height: calc(100dvh - 8.5rem);
  object-fit: contain; border-radius: 8px; background: #000;
}
.lightbox .stage img[hidden], .lightbox .stage video[hidden] { display: none; }
.lightbox .caption { text-align: center; padding: 0.9rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); color: #cbd3da; font-size: 0.92rem; }
.lightbox button { background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 999px; width: 2.6rem; height: 2.6rem; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox .prev, .lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 0.75rem; }
.lightbox .next { right: 0.75rem; }
@media (max-width: 600px) { .lightbox .stage { padding: 0 0.5rem; } .lightbox .prev, .lightbox .next { top: auto; bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); transform: none; } }

.notfound { text-align: center; padding-block: 6rem; }
.notfound h1 { font-size: 2.2rem; margin: 0 0 0.5rem; }
.notfound p { color: var(--muted); }

/* Guest book (opened from the NFC tag, so designed for phones first) */
.gb-hero { position: relative; height: min(62vh, 520px); min-height: 320px; overflow: hidden; background: #0b1015; }
.gb-hero img { width: 100%; height: 100%; object-fit: cover; }
.gb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 11, 0) 35%, rgba(5, 8, 11, 0.7) 100%); }
.gb-hero-text { position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 4vw, 2.5rem); z-index: 1; color: #fff; }
.gb-hero-text p { margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.gb-hero-text h1 { margin: 0 0 0.25rem; font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.03em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.gb-hero-text span { opacity: 0.9; }

.gb { max-width: 760px; }
.gb-letter { position: relative; margin-top: -1.5rem; z-index: 2; padding: clamp(1.4rem, 4vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gb-letter h2 { margin: 0 0 0.75rem; font-size: 1.75rem; color: var(--brand); }
.gb-letter p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.7; }
.gb-contacts-intro { margin-top: 1.5rem !important; font-weight: 600; }
.gb-contacts { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.gb-contact { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 0.85rem; border-radius: 16px; background: var(--surface-2); flex-wrap: wrap; }
.gb-avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; flex: none; }
.gb-who { flex: 1; min-width: 9rem; }
.gb-who strong { display: block; }
.gb-who span { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.gb-actions { display: flex; gap: 0.5rem; }
.gb-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--brand-ink); }
.gb-btn:hover { border-color: var(--brand); }
.gb-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gb-closing { margin-bottom: 0.25rem !important; }
.gb-signature { margin: 0 !important; font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive; font-size: 1.9rem !important; color: var(--brand); line-height: 1.3 !important; }

.gb-section { margin-top: 2.5rem; }
.gb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.gb-section-head h2 { margin: 0; font-size: 1.35rem; }
.gb-link { border: 0; background: none; padding: 0; color: var(--brand); font: 600 0.95rem/1 inherit; font-family: inherit; cursor: pointer; }
.gb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.gb-photo { padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gb-photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gb-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gb-photo:hover img { transform: scale(1.04); }
@media (max-width: 600px) {
  /* Swipeable strip on phones */
  .gb-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.6rem; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: none; }
  .gb-photos::-webkit-scrollbar { display: none; }
  .gb-photo, .gb-photo:first-child { flex: 0 0 82%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
}

.gb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.gb-card { padding: 1.25rem 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gb-card h2 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.85rem; font-size: 1.15rem; }
.gb-card h2 svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gb-card h2 svg circle { fill: var(--brand); stroke: none; }
.gb-kv { margin: 0; display: grid; gap: 0.1rem; }
.gb-kv > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.gb-kv > div:first-child { border-top: 0; padding-top: 0; }
.gb-kv dt { color: var(--muted); font-size: 0.92rem; flex: none; }
.gb-kv dd { margin: 0; display: flex; align-items: center; gap: 0.6rem; text-align: right; font-weight: 600; flex-wrap: wrap; justify-content: flex-end; }
.gb-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1rem; letter-spacing: 0.01em; }
.gb-copy { border: 1px solid var(--line); background: var(--surface-2); color: var(--brand-ink); border-radius: 999px; padding: 0.25rem 0.7rem; font: 600 0.8rem/1.2 inherit; font-family: inherit; cursor: pointer; }
.gb-map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gb-map iframe { display: block; width: 100%; height: clamp(240px, 45vw, 360px); border: 0; }
.gb-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.gb-map-foot address { font-style: normal; line-height: 1.45; }

.gb-rules { margin-top: 1rem; }
.gb-rules ol { margin: 0; padding: 0; list-style: none; counter-reset: rule; display: grid; gap: 0.75rem; }
.gb-rules li { counter-increment: rule; display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.75rem; align-items: start; line-height: 1.55; }
.gb-rules li::before { content: counter(rule); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 0.9rem; }

.gb-emergency { margin-top: 1rem; }
.gb-emergency h2 svg { stroke: #d13d3d; }
.gb-emergency dd a:not(.gb-btn) { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.gb-hospital { flex-direction: column; align-items: stretch !important; gap: 0.4rem !important; }
.gb-hospital dd { flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 0.7rem; }
.gb-hospital address { font-style: normal; font-weight: 400; line-height: 1.45; }
.gb-hospital address strong { font-weight: 600; }

.gb-section-intro { margin: -0.35rem 0 0.9rem; color: var(--muted); }
.gb-map iframe.gb-favorites { height: clamp(380px, 70vh, 560px); }

.gb-qr { display: flex; align-items: center; gap: 1rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
/* Always dark-on-white, even in dark mode, so cameras read it reliably */
.gb-qr-code { flex: none; width: 112px; padding: 6px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.gb-qr-code svg { display: block; width: 100%; height: auto; }
.gb-qr p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 0.75rem; }
.video-tile { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: #05080b; cursor: pointer; color: #fff; text-align: left; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-tile:hover img { transform: scale(1.04); }
.video-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.65)); }
.video-tile .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; z-index: 1; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
.video-tile .play svg { width: 1.4rem; height: 1.4rem; fill: #0f1720; margin-left: 3px; }
.video-tile .video-title { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.6rem; z-index: 1; font: 600 0.82rem/1.3 inherit; font-family: inherit; }

.book-contact { margin: 0 0 1.1rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--surface-2); display: grid; gap: 0.15rem; font-size: 0.95rem; }
.book-contact a:not(.book-btn) { color: var(--brand-ink); text-decoration: none; overflow-wrap: anywhere; }
.book-contact a:not(.book-btn):hover { text-decoration: underline; }
.book-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.book-btn { flex: 1; text-align: center; padding: 0.55rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.book-btn:hover { border-color: var(--brand); }
.book-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
