/* Turtle Bay Lodge — brand stylesheet
 * Palette (approved): Deep Sea #0E5563 · Lagoon #149AB0 · Shallows #7FD1D8
 * Coral Sunset #FF6B47 (CTA) · Sun Gold #F4A93B · Sand #F2E7D3 · Shell #FBF6EC · Ink #1F2A2E
 * Type: Fraunces (headings) + Inter (body)
 */
:root {
  --deep-sea: #0E5563;
  --lagoon: #149AB0;
  --lagoon-dark: #0F7E91;
  --shallows: #7FD1D8;
  --coral: #FF6B47;
  --coral-dark: #E8542F;
  --gold: #F4A93B;
  --sand: #F2E7D3;
  --shell: #FBF6EC;
  --ink: #1F2A2E;
  --driftwood: #5B5247;
  --muted: #8A8275;
  --white: #ffffff;
  --line: rgba(31,42,46,0.10);
  --shadow: 0 2px 12px rgba(14,85,99,0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --max: 720px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--shell);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: var(--nav-h);
  overscroll-behavior-y: contain;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--deep-sea); margin: 0 0 .4em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--lagoon-dark); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- App header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep-sea); color: var(--shell);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; box-shadow: var(--shadow);
}
.app-header .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .3px; color: var(--shell); }
/* Extend the blue down past the iPhone status bar (time / Wi-Fi / battery) so
   the greeting and Reception button are never hidden behind it. The deep-sea
   background fills the safe-area inset; content sits below it. */
.app-header { padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; }
/* Header now shows the date + contextual welcome instead of the logo */
.hdr-greet { display: flex; flex-direction: column; line-height: 1.15; }
.hdr-date { font-family: var(--font-body, inherit); font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }
.hdr-welcome { font-family: var(--font-head); font-size: 1.2rem; }
.app-header .hdr-book {
  background: var(--coral); color: var(--shell); font-weight: 600; font-size: .85rem;
  padding: 8px 14px; border-radius: 999px; border: none; cursor: pointer;
}
.demo-banner { background: var(--gold); color: #4A3206; font-size: .8rem; text-align: center; padding: 5px 12px; }

/* ---------- Layout ---------- */
.view { max-width: var(--max); margin: 0 auto; padding: 16px 16px 32px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }
.section-intro { color: var(--driftwood); margin-bottom: 1.2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero img { width: 100%; height: 230px; object-fit: cover; }
.hero .hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; background: linear-gradient(to top, rgba(14,85,99,.78), rgba(14,85,99,0) 65%); color: var(--shell);
}
.hero .hero-overlay h1 { color: var(--shell); margin: 0; font-size: 1.7rem; }
.hero .hero-overlay p { color: var(--shell); margin: 4px 0 0; opacity: .95; font-style: italic; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 16px; border: 1px solid var(--line);
}
.card img.card-photo { width: 100%; height: 200px; object-fit: cover; background: var(--sand); }
.card-body { padding: 14px 16px; }
.card-body h3 { margin-bottom: 4px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pill { background: var(--sand); color: var(--deep-sea); font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.pill.accent { background: var(--shallows); color: var(--deep-sea); }
.pill.coral { background: #FFE2D9; color: var(--coral-dark); }
.feature-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.feature-list li { background: var(--shell); border: 1px solid var(--line); color: var(--driftwood); font-size: .78rem; padding: 4px 9px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body);
  font-weight: 600; font-size: .95rem; padding: 12px 18px; border-radius: 999px; border: none; cursor: pointer; width: 100%; }
.btn-primary { background: var(--coral); color: var(--shell); }
.btn-primary:active { background: var(--coral-dark); }
.btn-secondary { background: var(--lagoon); color: var(--shell); }
.btn-outline { background: transparent; border: 1.5px solid var(--lagoon); color: var(--lagoon-dark); }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { width: auto; flex: 1; }

/* ---------- Image gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.gallery img { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; background: var(--sand); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--line); }
/* Collapsible "My stay" profile (click-to-open) */
.stay-details { padding: 0; overflow: hidden; }
.stay-details > .stay-summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 16px 18px; font-family: var(--font-head);
  color: var(--deep-sea); font-size: 1.1rem; }
.stay-details > .stay-summary::-webkit-details-marker { display: none; }
.stay-summary .ss-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stay-summary .ss-left > .ti { color: var(--gold); }
.stay-summary .ss-status { font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: var(--driftwood); background: var(--sand); border-radius: 999px; padding: 2px 10px; }
.stay-summary .ss-chev { color: var(--driftwood); transition: transform .2s; }
.stay-details[open] .stay-summary .ss-chev { transform: rotate(180deg); }
.stay-details .stay-body { padding: 0 18px 18px; }
.stay-readonly .ro-synced { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem;
  font-weight: 600; color: #1B5E36; background: #E6F4EC; border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.stay-ro-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ro-row { display: flex; align-items: baseline; gap: 8px; font-size: .92rem; }
.ro-row > .ti { color: var(--lagoon); font-size: .95rem; flex: none; position: relative; top: 2px; }
.ro-row .ro-label { color: var(--driftwood); font-size: .8rem; min-width: 96px; flex: none; }
.ro-row .ro-val { color: var(--ink); font-weight: 600; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--deep-sea); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--shell); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(20,154,176,.15); }
textarea { resize: vertical; min-height: 80px; }
.field-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-banner { background: var(--shallows); color: var(--deep-sea); padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 14px; }
.error-text { color: var(--coral-dark); font-size: .8rem; margin-top: 4px; }
.success-card { background: #E6F4EC; border: 1px solid #B6DCC4; color: #1B5E36; padding: 18px; border-radius: var(--radius); text-align: center; }
.success-card .ti { font-size: 2.2rem; color: #2E8B57; }

/* ---------- Menu ---------- */
.menu-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 18px; background: var(--sand); }
.menu-section h2 { border-bottom: 2px solid var(--shallows); padding-bottom: 6px; }
.menu-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.menu-item .mi-name { font-weight: 600; color: var(--ink); }
.menu-item .mi-desc { font-size: .88rem; color: var(--driftwood); }
.menu-item .mi-price { font-weight: 600; color: var(--lagoon-dark); white-space: nowrap; }

/* ---------- Map ---------- */
#map { height: 60vh; min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.map-legend span { font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; color: var(--driftwood); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 18px 14px; text-align: center; cursor: pointer; transition: transform .12s; }
.tile:active { transform: scale(.97); }
.tile .ti { font-size: 1.9rem; color: var(--lagoon); }
.tile span { display: block; margin-top: 8px; font-weight: 600; font-size: .92rem; color: var(--deep-sea); }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--white); border-top: 1px solid var(--line);
  display: flex; z-index: 60; box-shadow: 0 -2px 12px rgba(14,85,99,.06);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: .66rem; font-weight: 600; text-decoration: none;
}
.bottom-nav a .ti { font-size: 1.35rem; }
.bottom-nav a.active { color: var(--lagoon-dark); }
.bottom-nav a.active .ti { color: var(--lagoon); }

/* ---------- Footer ---------- */
.app-footer { background: var(--deep-sea); color: var(--shell); padding: 22px 16px; margin-top: 10px; }
.app-footer a { color: var(--shallows); }
.app-footer .ft-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .9rem; }
.app-footer .ti { color: var(--shallows); }
/* Footer social — large square boxes spread full width */
.ft-social-h { text-align: center; color: var(--shell); font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 14px; }
.ft-social-row { display: flex; gap: 10px; }
.app-footer a.ft-social { flex: 1; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,107,71,.6); border-radius: 14px; color: var(--shell);
  box-shadow: 0 0 12px rgba(255,107,71,.22), inset 0 0 10px rgba(255,107,71,.12); transition: background .15s, border-color .15s; }
.app-footer a.ft-social:hover { background: rgba(255,107,71,.18); border-color: rgba(255,107,71,.85); }
.app-footer a.ft-social .ti { color: var(--shell); font-size: 2rem; }
/* "See below to request a dive" nudge under each dive section */
.see-below { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; font-size: .85rem; font-weight: 600; color: var(--lagoon); }
.see-below .ti { color: var(--coral); }

/* ---------- Misc ---------- */
.loading { text-align: center; padding: 40px 0; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lagoon-dark); font-weight: 600; margin-bottom: 10px; cursor: pointer; font-size: .9rem; }
.note-box { background: var(--sand); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; color: var(--driftwood); margin: 12px 0; }
hr.soft { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- Price table (dive rates: in-house vs standard) ---------- */
.price-table { overflow-x: auto; margin: 10px 0 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.price-table table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.price-table th, .price-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--deep-sea); color: #fff; font-weight: 600; }
.price-table thead th:nth-child(2) { color: var(--coral-sunset, #FF6B47); background: var(--deep-sea); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: rgba(0,0,0,.025); }
.price-table td:nth-child(2) { font-weight: 700; color: var(--lagoon-dark); white-space: nowrap; }
.price-table td:nth-child(3) { white-space: nowrap; color: var(--muted); }

/* ---------- Bottom nav: centre "Book" accent ---------- */
.bottom-nav a.nav-center .ti {
  background: var(--coral); color: var(--shell);
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -16px; box-shadow: 0 3px 10px rgba(255,107,71,.45); font-size: 1.4rem;
}
.bottom-nav a.nav-center.active { color: var(--coral-dark); }
.bottom-nav a.nav-center.active .ti { color: var(--shell); }

/* ---------- Home: greeting ---------- */
.view-home { padding-top: 14px; }
.greet-card {
  background: linear-gradient(135deg, var(--deep-sea), var(--lagoon));
  color: var(--shell); border-radius: var(--radius); padding: 20px 18px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.greet-date { font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; opacity: .8; margin-bottom: 4px; }
.greet-line { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; }
.greet-card-logo { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 6px; }
.greet-logo { width: min(100%, 530px); height: auto; filter: brightness(0) invert(1); }
.greet-card-logo .greet-sub { margin-top: 12px; }
.greet-sub { margin-top: 6px; font-size: .95rem; opacity: .95; }
.greet-sub a { color: var(--shallows); }
.home-h { margin: 20px 0 12px; font-size: 1.25rem; }

/* ---------- Large stacked action buttons (in-stay home + book hub) ---------- */
.action-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 11px; color: var(--ink);
  transition: transform .12s;
}
.action-btn:active { transform: scale(.98); }
.action-btn > .ti:first-child { font-size: 1.7rem; color: var(--lagoon); width: 30px; text-align: center; flex: none; }
.action-btn .ab-text { flex: 1; display: flex; flex-direction: column; }
.action-btn .ab-text strong { color: var(--deep-sea); font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; }
.action-btn .ab-text small { color: var(--driftwood); font-size: .82rem; line-height: 1.35; }
.action-btn .ab-chev { color: var(--muted); flex: none; }
/* Contact Reception — the priority in-stay action */
.action-reception { background: var(--coral); border-color: var(--coral); }
.action-reception > .ti:first-child { color: var(--shell); }
.action-reception .ab-text strong { color: var(--shell); }
.action-reception .ab-text small { color: rgba(255,255,255,.9); }
.action-reception .ab-chev { color: rgba(255,255,255,.85); }

/* Warm "sunset" action tiles — graded shades of the brand orange. Used for the
   Contact Reception quick-contact boxes so the page feels bright and friendly. */
.action-warm { border: none; box-shadow: 0 4px 14px rgba(232,84,47,.22); }
.action-warm > .ti:first-child { color: var(--shell); }
.action-warm .ab-text strong { color: var(--shell); text-shadow: 0 1px 3px rgba(0,0,0,.18); }
.action-warm .ab-text small { color: rgba(255,255,255,.95); }
.action-warm .ab-chev { color: rgba(255,255,255,.9); }
.action-warm-1 { background: linear-gradient(135deg,#E8542F,#FF6B47); }
.action-warm-2 { background: linear-gradient(135deg,#FF7A45,#FF955C); }
.action-warm-3 { background: linear-gradient(135deg,#F9A03A,#F7B65A); }

/* ---------- Mini cards (my bookings / explore shortcuts on home) ---------- */
.mini-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; color: var(--ink);
}
.mini-card > .ti:first-child { font-size: 1.5rem; color: var(--gold); width: 28px; text-align: center; flex: none; }
.mini-card .mc-text { flex: 1; display: flex; flex-direction: column; }
.mini-card .mc-text strong { color: var(--deep-sea); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.mini-card .mc-text small { color: var(--driftwood); font-size: .82rem; }

/* ---------- Photo-background action tiles (home) ---------- */
.action-photo {
  background-size: cover; background-position: center; border: none; color: var(--shell);
  min-height: 96px; align-items: flex-end; position: relative;
}
.action-photo > .ti:first-child { color: var(--shell); font-size: 1.7rem; }
.action-photo .ab-text strong { color: var(--shell); text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.action-photo .ab-text small { color: rgba(255,255,255,.94); text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.action-photo .ab-chev { color: rgba(255,255,255,.92); }

/* ---------- Live conditions (weather) on Today panel ---------- */
.cond-weather { font-size: 1.5rem; font-weight: 600; color: var(--deep-sea); margin: 2px 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cond-weather > .ti { color: var(--gold); font-size: 1.7rem; }
.cond-weather .cw-range { font-size: .9rem; font-weight: 500; color: var(--driftwood); }
.cond-weather .cw-text { font-size: .9rem; font-weight: 500; color: var(--driftwood); }
.cond-weather .cw-sea { font-size: .9rem; font-weight: 500; color: var(--lagoon, #149AB0); display: inline-flex; align-items: center; gap: 4px; }
.cond-weather .cw-sea .ti { font-size: 1rem; color: inherit; }

/* ---------- Home: Today panel ---------- */
/* One shared photo sits behind all the "today" boxes. */
.today-panel { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px;
  background-size: cover; background-position: center; box-shadow: var(--shadow); }
.today-panel::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,85,99,.38), rgba(14,85,99,.62)); }
.today-panel-inner { position: relative; padding: 12px; }
/* Inside the photo panel the boxes turn frosted-glass so the photo shows through. */
.today-panel .today-card { margin-bottom: 10px; background: rgba(255,255,255,.90);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-color: rgba(255,255,255,.5); }
.today-panel .today-card:last-child { margin-bottom: 0; }
.today-card {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 10px;
}
.today-card.today-mini { padding: 14px 16px; }
.today-card.today-mini .today-head { margin-bottom: 6px; }
.tm-body { margin: 0; font-size: .92rem; color: var(--ink); line-height: 1.5; white-space: pre-line; }
/* Language switcher card (home, under the logo) */
.lang-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; margin-bottom: 10px; }
/* Push-notification opt-in card */
.push-card { display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; }
.push-card > .ti { font-size: 1.6rem; color: var(--coral); flex: none; }
.push-card .pc-text { flex: 1; display: flex; flex-direction: column; }
.push-card .pc-text strong { font-family: var(--font-head); color: var(--deep-sea); font-size: 1rem; }
.push-card .pc-text small { color: var(--driftwood); font-size: .8rem; }
.push-card .btn { width: auto; flex: none; }
.today-head { font-family: var(--font-head); color: var(--deep-sea); font-size: 1.1rem; margin-bottom: 10px; }
.today-head .ti { color: var(--gold); }
.sun-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--driftwood); margin-bottom: 10px; }
.sun-row .ti { color: var(--coral); }
.sun-row .muted { color: var(--muted); }
.sun-row .muted .ti { color: var(--muted); }
.today-special { display: flex; gap: 10px; align-items: flex-start; background: var(--sand);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; color: var(--ink); margin-bottom: 10px; }
.today-special .ti { color: var(--coral); font-size: 1.2rem; margin-top: 2px; }
.whatson { list-style: none; margin: 0; padding: 0; }
.whatson li { display: flex; align-items: flex-start; gap: 6px; font-size: .9rem; color: var(--driftwood); padding: 4px 0; }
.whatson .ti { color: var(--lagoon); font-size: .8rem; margin-top: 5px; }

/* ---------- Home: quick actions ---------- */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 8px; text-align: center; transition: transform .12s; }
.qa:active { transform: scale(.96); }
.qa .ti { font-size: 1.6rem; color: var(--lagoon); }
.qa span { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--deep-sea); }

/* ---------- Explore list ---------- */
.explore-list { display: flex; flex-direction: column; gap: 10px; }
.explore-row { display: flex; align-items: center; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; color: var(--ink); }
.explore-row > .ti:first-child { font-size: 1.5rem; color: var(--lagoon); width: 28px; text-align: center; }
.er-text { flex: 1; display: flex; flex-direction: column; }
.er-text strong { color: var(--deep-sea); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.er-text small { color: var(--driftwood); font-size: .82rem; }
.er-chev { color: var(--muted); }

/* ---------- Explore: photo tiles ---------- */
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.explore-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 132px; padding: 14px; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; color: var(--shell);
  background-color: var(--deep-sea); /* calm fallback while/if the photo can't load */
  box-shadow: var(--shadow); transition: transform .12s;
}
.explore-tile:active { transform: scale(.97); }
.explore-tile > .ti:first-child {
  position: absolute; top: 12px; left: 12px; font-size: 1.5rem; color: var(--shell);
  text-shadow: 0 1px 5px rgba(0,0,0,.4);
}
.explore-tile .et-text { display: flex; flex-direction: column; }
.explore-tile .et-text strong {
  font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; line-height: 1.2;
  color: var(--shell); text-shadow: 0 1px 5px rgba(0,0,0,.45);
}
.explore-tile .et-text small {
  font-size: .76rem; color: rgba(255,255,255,.95); margin-top: 3px; line-height: 1.3;
  text-shadow: 0 1px 5px rgba(0,0,0,.5);
}

/* ---------- Book hub ---------- */
.book-card { display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; color: var(--ink); }
.book-card.book-room { border-left: 4px solid var(--coral); }
.bc-head { display: flex; align-items: center; gap: 14px; }
.bc-head > .ti:first-child { font-size: 1.6rem; color: var(--lagoon); width: 28px; text-align: center; }
.bc-head div { flex: 1; }
.bc-head strong { display: block; color: var(--deep-sea); font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; }
.bc-head small { color: var(--driftwood); font-size: .85rem; }
.book-room .btn { margin-top: 14px; }

/* ---------- Me: profile + my bookings ---------- */
.two-col { display: flex; gap: 10px; }
.two-col > div { flex: 1; }
.mybk-list { display: flex; flex-direction: column; gap: 10px; }
.mybk { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; }
.mybk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mybk-status { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 999px; }
.mybk-status.new { background: var(--sand); color: var(--driftwood); }
.mybk-status.ok { background: #E6F4EC; color: #1B5E36; }
.mybk-status.no { background: #FFE2D9; color: var(--coral-dark); }
.mybk-item { font-weight: 600; color: var(--ink); }
.mybk-when { font-size: .85rem; color: var(--driftwood); margin-top: 4px; }
.mybk-when .ti { color: var(--lagoon); }
/* Post-stay review / thank-you card */
.poststay-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--coral);
  border-radius: var(--radius); padding: 18px 16px; margin: 14px 0; text-align: center; box-shadow: var(--shadow); }
.poststay-card .ps-icon { font-size: 2rem; color: var(--coral); }
.poststay-card h2 { font-family: var(--font-head); color: var(--deep-sea); margin: 6px 0 4px; }
.poststay-card p { color: var(--driftwood); font-size: .92rem; line-height: 1.5; margin: 0 0 14px; }
.ps-reviews { display: flex; flex-direction: column; gap: 8px; }
.ps-reviews .btn { width: 100%; }
.ps-feedback { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: .85rem; color: var(--muted); text-decoration: none; }
.ps-feedback:hover { color: var(--coral-dark); }
/* Feedback star rating */
.fb-stars { display: flex; gap: 8px; margin: 4px 0 8px; }
.fb-star { background: none; border: none; cursor: pointer; padding: 2px; font-size: 1.9rem; line-height: 1; color: var(--line); }
.fb-star.on { color: var(--gold); }
/* Multi-tour booking: each added tour sits in its own card with a remove (×) */
.tour-block { position: relative; }
.tour-block + .tour-block { margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.tour-block-rm { position: absolute; top: 6px; right: 0; width: 30px; height: 30px; border: 1px solid var(--line);
  background: var(--white); border-radius: 50%; color: var(--coral-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tour-block-rm:hover { background: rgba(255,107,71,.1); }
.mybk-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.btn-link { background: none; border: none; cursor: pointer; font: inherit; font-size: .82rem;
  color: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 8px; }
.btn-link:hover { color: var(--coral-dark); background: rgba(255,107,71,.08); }
.mybk-reply { margin-top: 10px; background: var(--sand); border-left: 3px solid var(--lagoon);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: .9rem; color: var(--ink); line-height: 1.5;
  white-space: pre-wrap; }
.mybk-reply-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--deep-sea); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.mybk-reply-head .ti { color: var(--lagoon); }
/* Message thread (two-way chat with reception) */
.mybk-msgs { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.mybk-msgs-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--deep-sea); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.mybk-msgs-h .ti { color: var(--lagoon); }
.mybk-thread { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 8px 11px; border-radius: 14px; font-size: .9rem; line-height: 1.45;
  white-space: pre-wrap; position: relative; }
.msg-staff { align-self: flex-start; background: var(--sand); border-bottom-left-radius: 4px; color: var(--ink); }
.msg-guest { align-self: flex-end; background: var(--lagoon); color: var(--shell); border-bottom-right-radius: 4px; }
.msg-who { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  opacity: .75; margin-bottom: 2px; }
.mybk-reply-box { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.mybk-reply-box .gm-text { flex: 1; min-height: 40px; resize: vertical; padding: 9px 11px; }
.mybk-reply-box .gm-send { width: auto; white-space: nowrap; }
/* Document upload (dive cert / driving licence) */
.upload-field { margin-top: 4px; }
.upload-field .up-btn { width: auto; }
.up-list { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.up-item { font-size: .85rem; color: var(--ink); display: flex; align-items: center; gap: 6px; background: var(--sand);
  border-radius: 8px; padding: 6px 10px; }

/* ---------- Install banner ---------- */
.install-bar { display: flex; align-items: center; gap: 10px; background: var(--deep-sea);
  color: var(--shell); padding: 10px 14px; font-size: .85rem; }
.install-bar > span { flex: 1; display: flex; align-items: center; gap: 6px; }
.install-bar .ti { color: var(--shallows); }
.install-go { background: var(--coral); color: var(--shell); border: none; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: .82rem; }
.install-x { background: transparent; border: none; color: var(--shell); font-size: 1.3rem;
  line-height: 1; cursor: pointer; opacity: .8; padding: 0 2px; }
/* Step-by-step "how to install" overlay (non-technical, no screenshots needed) */
.install-help { position: fixed; inset: 0; background: rgba(15,30,34,.55); z-index: 300;
  display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 600px) { .install-help { align-items: center; padding: 16px; } }
.install-help .ih-card { background: var(--shell); width: 100%; max-width: 460px;
  border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom,0px));
  box-shadow: var(--shadow); }
@media (min-width: 600px) { .install-help .ih-card { border-radius: 18px; } }
.ih-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ih-head strong { font-family: var(--font-head); color: var(--deep-sea); font-size: 1.1rem;
  display: flex; align-items: center; gap: 8px; }
.ih-head .ti { color: var(--lagoon); }
.ih-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--driftwood); cursor: pointer; padding: 0 4px; }
.ih-intro { color: var(--driftwood); font-size: .9rem; margin: 8px 0 14px; line-height: 1.5; }
.ih-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ih-steps li { display: flex; align-items: flex-start; gap: 12px; }
.ih-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lagoon);
  color: var(--shell); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.ih-txt { color: var(--ink); font-size: .95rem; line-height: 1.5; }
.ih-txt .ti { color: var(--coral); margin-right: 2px; }
.ih-txt b { color: var(--deep-sea); }
.install-help .ih-done { width: 100%; }

/* ---------- Guest info ---------- */
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.info-card .info-h { font-family: var(--font-head); color: var(--deep-sea); font-size: 1.1rem; margin-bottom: 6px; }
.info-card .info-h .ti { color: var(--lagoon); }
.info-card p { margin: 0; color: var(--driftwood); font-size: .92rem; }
.info-emerg { border-left: 4px solid var(--coral); }
.info-emerg .info-h .ti { color: var(--coral); }
.emerg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.emerg-row:first-of-type { border-top: none; }
.emerg-row span { font-size: .9rem; color: var(--ink); }
.emerg-row .btn { width: auto; padding: 7px 12px; font-size: .82rem; white-space: nowrap; }

/* ---------- Language switcher ---------- */
.lang-row { display: flex; gap: 8px; }
.lang-row .btn { flex: 1; }

/* ---------- First-open welcome screen ---------- */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: var(--deep-sea); animation: fade .3s ease;
}
.welcome-overlay.closing { opacity: 0; transition: opacity .35s ease; }
.wel-slides { position: absolute; inset: 0; }
.wel-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease; transform: scale(1.05);
}
.wel-slide.active { opacity: 1; animation: welZoom 5s ease forwards; }
@keyframes welZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.wel-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,85,99,.55) 0%, rgba(14,85,99,.15) 35%, rgba(14,85,99,.65) 75%, rgba(14,85,99,.92) 100%);
}
.wel-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: max(48px, env(safe-area-inset-top, 48px)) 24px max(28px, env(safe-area-inset-bottom, 28px));
  text-align: center; color: var(--shell);
}
.wel-top { margin-top: 8vh; }
.wel-logo { display: block; margin: 0 auto 14px; }
.wel-logo-mark { width: 96px; height: 96px; object-fit: contain; border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
/* Wide navy wordmark logo, rendered white over the dark welcome photos */
.wel-logo-brand { width: min(90%, 420px); height: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.wel-wordmark { font-family: var(--font-head); font-size: 2.1rem; line-height: 1.1; color: var(--shell); }
.wel-tag { margin-top: 8px; font-style: italic; opacity: .95; font-size: 1.02rem; }
.wel-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wel-dots { display: flex; gap: 8px; }
.wel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .3s, width .3s; }
.wel-dot.active { background: var(--shell); width: 22px; border-radius: 4px; }
.wel-bottom .btn { max-width: 360px; }

@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hero img { height: 300px; }
}

/* "Reception has replied" banner (home) */
.reply-banner { display: flex; align-items: center; gap: 12px; background: var(--coral, #FF6B47); color: #fff; border-radius: var(--radius, 14px); padding: 14px 16px; margin: 12px 0; text-decoration: none; box-shadow: var(--shadow); animation: rb-pulse 2s ease-in-out 3; }
.reply-banner > .ti { font-size: 1.9rem; flex: none; }
.reply-banner .rb-text { flex: 1; display: flex; flex-direction: column; }
.reply-banner .rb-text strong { font-family: var(--font-head); font-size: 1.1rem; }
.reply-banner .rb-text small { opacity: .95; font-size: .85rem; }
.reply-banner .rb-count { background: #fff; color: var(--coral-dark, #C8432A); font-weight: 700; border-radius: 999px; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
@keyframes rb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
