/* manual.css — House Manual Page */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

.manual-body {
  background: var(--sand);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Guide Nav — uses .site-nav / .nav-inner / .nav-logo from styles.css ── */
/* Sand/nude background so nav pops against the blush page body */
.manual-body .site-nav {
  background: rgba(232, 221, 208, 0.97); /* --sand */
}

/* Desktop: tabs take all remaining space, controls stay right */
.manual-body .nav-inner {
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.guide-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
  flex: 1;
  min-width: 0;
}
.guide-tabs::-webkit-scrollbar { display: none; }

/* Logo inside guide-tabs on desktop */
.guide-tabs .nav-logo {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 1rem;
  white-space: nowrap;
}

.guide-tab {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 0.875rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  transition: color var(--transition);
}
.guide-tab:hover { color: var(--accent); }
.guide-tab.active { color: var(--accent); }

/* Controls group (dark toggle + lang + ATH) */
.guide-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding: 0 0.75rem;
}
/* Remove auto-margin that was for old standalone placement */
.guide-controls .guide-lang-wrap { margin-left: 0; }
/* Match lang-btn style to guide-icon-btn */
.guide-controls .guide-lang-btn {
  background: var(--sand);
  border: 1.5px solid var(--charcoal);
  border-radius: var(--radius-full);
  color: var(--charcoal);
  height: 28px;
  box-sizing: border-box;
}
.guide-controls .guide-lang-btn:hover { background: var(--tan); }

/* Icon button — matches guide-lang-btn size/shape */
.guide-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: var(--sand);
  border: 1.5px solid var(--charcoal);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.6rem;
  height: 28px;
  min-width: 28px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-sizing: border-box;
}
.guide-icon-btn:hover {
  background: var(--tan);
}

/* ── Section Collapse ── */
.section-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.section-collapse-btn svg { pointer-events: none; }
.section-collapse-btn.open { transform: rotate(180deg); }
.manual-section.collapsed .section-body { display: none; }

/* ── Mobile: single-row nav (controls inline with tabs) ── */
@media (max-width: 768px) {
  .guide-controls { padding: 0 0.5rem 0 0; gap: 0.3rem; }
  .guide-tab { padding: 0 0.6rem; font-size: 0.68rem; }
  .guide-icon-btn { padding: 0.25rem 0.5rem; height: 26px; font-size: 0.68rem; }
  .guide-lang-btn { font-size: 0.68rem !important; padding: 0.25rem 0.5rem !important; height: 26px !important; }
  .guide-tabs .nav-logo {
    font-family: var(--font-sans) !important;
    font-size: 0.68rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--charcoal) !important;
    padding: 0 0.6rem 0 0.75rem;
  }
}

/* ── Main Content ── */
.manual-main {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.manual-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.manual-section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

/* ── Quick Info ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}
.quick-card {
  background: var(--blush);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  user-select: none;
  border: 1.5px solid transparent;
}
.quick-card:hover {
  background: #f0e4df;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(184,150,126,0.15);
}
.quick-card:active { transform: scale(0.97); }
.quick-card-link {
  text-decoration: none;
  color: inherit;
}

/* Address card — accent border always visible, subtle tint */
.quick-card-address {
  border-color: var(--accent);
  background: rgba(184,150,126,0.07);
}
.quick-card-address:hover {
  background: rgba(184,150,126,0.14);
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(184,150,126,0.2);
}
.quick-card-address .quick-value {
  font-size: 1.15rem;
}
.quick-card-address .quick-hint {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.quick-card-address .quick-hint svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* WiFi QR — trigger link */
.wifi-qr-trigger {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 0.15rem;
}

/* WiFi QR — modal */
.wifi-qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wifi-qr-modal.open { display: flex; }
.wifi-qr-modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.wifi-qr-close {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  line-height: 1;
  padding: 0.25rem;
}
.wifi-qr-close:hover { color: rgba(0,0,0,0.7); }
.wifi-qr-modal-label {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1008;
  margin: 0;
}
#wifi-qr canvas, #wifi-qr img {
  border-radius: 8px;
  display: block;
}
.wifi-qr-modal-hint {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.4);
  margin: 0;
  text-align: center;
}

.quick-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal-light);
}
.quick-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--charcoal);
  word-break: break-all;
}
.quick-hint {
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: var(--z-toast);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Accordion ── */
.accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.acc-item {
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  text-align: left;
  background: var(--blush);
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.acc-trigger::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}
.acc-trigger.open::after { transform: rotate(45deg); }
.acc-trigger:hover { background: var(--sand); }
.acc-body {
  display: none;
  padding: 1rem 1.25rem;
  background: var(--white);
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.7;
}
.acc-body.open { display: block; }

/* ── Getting Around ── */
.around-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.around-card {
  background: var(--blush);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.around-icon { font-size: 1.75rem; }
.around-card h3 { font-family: var(--font-serif); font-size: 1.1rem; }
.around-card p { font-size: 0.875rem; color: var(--charcoal-light); }
.around-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background var(--transition);
}
.around-code:hover { background: var(--sand); }
.code-val {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}
.code-hint { font-size: 0.68rem; color: var(--accent); }
.around-cta { margin-top: 0.5rem; font-size: 0.8rem; padding: 0.6rem 1.25rem; }

/* ── Steps (Hot Tub) ── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.steps-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 2px;
}
.step-body {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.6;
  padding-top: 4px;
}
.step-body strong { color: var(--charcoal); }

/* ── Local Guide ── */
.local-filter-tabs {
  display: flex;
  gap: 0.375rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
  padding-bottom: 2px;
}
.local-filter-tabs::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--tan);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--charcoal-light);
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.local-guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.place-card {
  background: var(--blush);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.place-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.place-card-body { padding: 1rem; }
.place-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.place-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.place-card-body p {
  font-size: 0.83rem;
  color: var(--charcoal-light);
  margin-bottom: 0.75rem;
}
.place-directions {
  font-size: 0.72rem;
  padding: 0.4rem 0.875rem;
}

/* ── Around Card SVG Icons ── */
.around-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}
.around-icon svg {
  width: 100%;
  height: 100%;
}

/* ── Beach Tips ── */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.tips-list li {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  padding: 0.75rem 1rem;
  background: var(--blush);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.tip-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 1px;
}
.tip-icon svg {
  width: 100%;
  height: 100%;
}

/* ── Checkout List ── */
.checkout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.checkout-list li {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--blush);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  position: relative;
}
.checkout-list li::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Review Section ── */
.review-thank-you {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.review-thank-you p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  line-height: 1.8;
}
.review-sign {
  margin-top: 0.5rem;
  font-size: 0.9rem !important;
  color: var(--charcoal-light) !important;
}
.review-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  line-height: 1.2;
}
.review-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── Floating Chat Widget ── */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
}
.chat-fab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background var(--transition), transform var(--transition);
}
.chat-fab:hover { background: var(--charcoal-light); }
.chat-fab svg { width: 18px; height: 18px; }
.chat-fab.hidden { display: none; }

/* Chat Overlay (full modal) */
.chat-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 160;
  align-items: flex-end;
  justify-content: flex-end;
}
.chat-overlay.open { display: flex; }
.chat-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45,41,38,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.chat-modal-panel {
  position: relative;
  z-index: 1;
  width: min(600px, 92vw);
  height: min(75vh, 650px);
  max-height: calc(100svh - 2rem);
  margin: auto 1.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: none; /* prevent page scroll while inside modal */
}
.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--charcoal);
  color: var(--white);
  flex-shrink: 0;
}
.chat-modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.chat-modal-title svg { width: 18px; height: 18px; }
.chat-modal-controls { display: flex; gap: 0.25rem; }
.chat-modal-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.chat-modal-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.chat-modal-btn svg { width: 18px; height: 18px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--blush);
  overscroll-behavior: contain;
}
.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.55;
}
.chat-bubble a { color: var(--accent); }
.chat-bot {
  background: var(--white);
  color: var(--charcoal);
  align-self: flex-start;
}
.chat-user {
  background: var(--charcoal);
  color: var(--white);
  align-self: flex-end;
}
.chat-input-row {
  display: flex;
  border-top: 1.5px solid var(--tan);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: none;
  font-family: var(--font-sans);
  font-size: 16px; /* must be ≥16px to prevent iOS auto-zoom */
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  min-width: 0;
}
.chat-input-row button {
  flex-shrink: 0;
  padding: 0.875rem 1.25rem;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity var(--transition);
}
.chat-input-row button:hover { opacity: 0.85; }

/* ── Jump to Top ── */
.jump-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 140;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--tan);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background var(--transition);
  color: var(--charcoal);
}
.jump-top:hover { background: var(--sand); }
.jump-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.jump-top svg { width: 18px; height: 18px; }

/* ── Recommendations Form ── */
.rec-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.rec-field { display: flex; flex-direction: column; gap: 0.375rem; }
.rec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--charcoal-light); }
.rec-input, .rec-textarea {
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.rec-input:focus, .rec-textarea:focus { border-color: var(--accent); }
.rec-textarea { resize: vertical; min-height: 100px; }
.rec-msg { display: none; padding: 0.875rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-top: 0.5rem; }
.rec-msg.success { background: rgba(184,150,126,0.12); color: var(--charcoal); border: 1.5px solid var(--accent); }
.rec-msg.error { background: rgba(220,53,69,0.08); color: #b91c1c; border: 1.5px solid rgba(220,53,69,0.3); }
.rec-msg.show { display: block; }


/* ── Section Title Row (Quick Info with share btn) ── */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-title-row .manual-section-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
  flex: 1;
}
/* Restore border-bottom via pseudo element on the row */
.section-title-row {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

/* ── Share Button ── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Emergency Section ── */
.emergency-intro {
  color: var(--charcoal-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.emg-card {
  background: var(--blush);
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background var(--transition), border-color var(--transition);
}
.emg-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.emg-card-link:hover {
  background: rgba(184,150,126,0.1);
  border-color: var(--accent);
}
.emg-card-red {
  background: rgba(220,53,69,0.08);
  border-color: rgba(220,53,69,0.3);
}
.emg-card-red .emg-number { color: #b91c1c; }
.emg-card-red:hover {
  background: rgba(220,53,69,0.14);
  border-color: rgba(220,53,69,0.5);
}
.emg-card-util {
  background: var(--sand);
  border-color: var(--tan);
}
.emg-card-full {
  grid-column: 1 / -1;
}
.emg-number {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--charcoal);
  font-weight: 500;
}
.emg-number-sm {
  font-size: 1.05rem;
}
.emg-label {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  line-height: 1.4;
}
.emg-hint {
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

/* ── House Rules Card ── */
.rules-card {
  background: var(--blush);
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
}
.rules-title {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal-light);
  margin-bottom: 0.6rem;
}
.rules-pills-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding-bottom: 2px;
}
.rules-pills-row::-webkit-scrollbar { display: none; }
.rules-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: var(--charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}
.rules-pill svg { color: var(--accent); flex-shrink: 0; }

/* ── Where Is It ── */
.whereis-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tan);
}
.whereis-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  color: var(--charcoal);
}
.whereis-subtitle {
  font-size: 0.83rem;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}
.wi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .wi-grid { grid-template-columns: repeat(2, 1fr); }
}
.wi-chip {
  position: relative;
  background: var(--tan);
  border: 1px solid var(--charcoal-lighter);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  line-height: 1.3;
}
.wi-chip:hover { background: var(--sand); border-color: var(--accent); }
.wi-chip.wi-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.wi-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: normal;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  pointer-events: none;
}
.wi-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--charcoal);
}

/* ── Beach Conditions ── */
.beach-cond-widget-wrap {
  margin-bottom: 1.5rem;
}
.beach-cond-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
  color: var(--charcoal);
}
.beach-cond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}
@media (max-width: 480px) {
  .beach-cond-grid { grid-template-columns: repeat(2, 1fr); }
}
.bc-card {
  background: var(--blush);
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.bc-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-lighter);
}
.bc-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--charcoal);
  line-height: 1.1;
}
.bc-value-sm { font-size: 1.05rem; }
.bc-sub {
  font-size: 0.7rem;
  color: var(--charcoal-light);
}
.bc-loading { background: var(--sand); }
.bc-skel {
  height: 1.2rem;
  background: var(--tan);
  border-radius: 4px;
  animation: bc-pulse 1.2s ease-in-out infinite;
}
.bc-skel-sm { height: 0.8rem; width: 60%; margin-top: 0.25rem; }
@keyframes bc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* UV color coding */
.bc-uv.uv-low { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.35); }
.bc-uv.uv-low .bc-value, .bc-uv.uv-low .bc-sub { color: #166534; }
.bc-uv.uv-moderate { background: rgba(234,179,8,0.12); border-color: rgba(234,179,8,0.35); }
.bc-uv.uv-moderate .bc-value, .bc-uv.uv-moderate .bc-sub { color: #854d0e; }
.bc-uv.uv-high { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.35); }
.bc-uv.uv-high .bc-value, .bc-uv.uv-high .bc-sub { color: #9a3412; }
.bc-uv.uv-very-high { background: rgba(220,53,69,0.1); border-color: rgba(220,53,69,0.3); }
.bc-uv.uv-very-high .bc-value, .bc-uv.uv-very-high .bc-sub { color: #b91c1c; }
.bc-uv.uv-extreme { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.3); }
.bc-uv.uv-extreme .bc-value, .bc-uv.uv-extreme .bc-sub { color: #5b21b6; }
.bc-error {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  padding: 0.75rem;
  background: var(--blush);
  border-radius: var(--radius-sm);
  margin-bottom: 0.875rem;
}
.bc-error a { color: var(--accent); }

/* ── Tide Chart ── */
.bc-tide-wrap {
  margin-top: 0.75rem;
  background: var(--blush);
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem 0.625rem;
}
.bc-tide-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
  margin-bottom: 0.625rem;
}
.bc-tide-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.bc-tide-hour {
  font-size: 9px;
  fill: var(--charcoal-light, #6b6460);
  font-family: var(--font-sans, sans-serif);
}
.bc-tide-lbl {
  font-size: 9.5px;
  font-family: var(--font-sans, sans-serif);
  font-weight: 700;
}
.bc-tide-now-lbl {
  font-size: 8px;
  fill: var(--accent, #b8967e);
  font-family: var(--font-sans, sans-serif);
  font-weight: 600;
}
.bc-tide-hi { fill: #5b9fbb; }
.bc-tide-lo { fill: #8a9aaa; }

/* ── Section label (above forecast strip, etc.) ── */
.bc-section-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
  margin: 0.875rem 0 0.5rem;
}

/* ── 5-Day Forecast Strip ── */
.bc-forecast-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0 0.25rem;
  scrollbar-width: none;
}
.bc-forecast-strip::-webkit-scrollbar { display: none; }
.bc-forecast-day {
  flex: 0 0 auto;
  min-width: 70px;
  background: var(--blush);
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}
.bc-fc-day {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--charcoal-lighter);
  text-transform: uppercase;
}
.bc-fc-icon { display: flex; justify-content: center; align-items: center; margin: 0.2rem 0; }
.bc-fc-temps { display: flex; flex-direction: column; gap: 0.05rem; align-items: flex-start; }
.bc-fc-temp-row { display: flex; align-items: baseline; gap: 3px; }
.bc-fc-temp-lbl {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--charcoal-lighter);
  text-transform: uppercase;
}
.bc-fc-hi {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.bc-fc-lo { font-size: 0.85rem; color: var(--charcoal-light); }
.bc-fc-rain { display: flex; align-items: center; gap: 2px; font-size: 0.65rem; color: #4a8aaa; }
.bc-fc-wind { font-size: 0.65rem; color: var(--charcoal-light); }

/* ── Action Cards (Flags & Cam) ── */
.bc-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 0.875rem;
}
.bc-action-card {
  background: var(--blush);
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.875rem 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--charcoal);
  text-align: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.bc-action-card:hover { background: var(--sand); }
.bc-action-icon { display: flex; justify-content: center; align-items: center; margin-bottom: 0.1rem; }
.bc-action-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.bc-action-hint { font-size: 0.65rem; color: var(--charcoal-light); }

/* ── Spa status widget ── */
#spa-widget {
  margin-bottom: 1.25rem;
}
.spa-widget-card {
  background: #fff8f2;
  border: 1px solid #e8c9a8;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
.spa-widget-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.spa-widget-flame {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.spa-widget-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.spa-widget-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7a4520;
}
.spa-widget-temps {
  font-size: 0.78rem;
  color: var(--charcoal-light);
}
.spa-widget-cd {
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Guestbook ── */
.gb-intro {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.gb-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--blush);
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
}
.gb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 480px) { .gb-row { grid-template-columns: 1fr; } }
.gb-field { display: flex; flex-direction: column; gap: 0.3rem; }
.gb-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
}
.gb-input, .gb-textarea {
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.gb-input:focus, .gb-textarea:focus { border-color: var(--accent); }
.gb-textarea { resize: vertical; min-height: 90px; }
.gb-msg { font-size: 0.8rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); display: none; }
.gb-msg.show { display: block; }
.gb-msg.success { background: rgba(34,197,94,0.1); color: #166534; }
.gb-msg.error   { background: rgba(220,53,69,0.08); color: #b91c1c; }
.gb-entries { display: flex; flex-direction: column; gap: 0.875rem; }
.gb-entry {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.gb-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.gb-guest-name { font-family: var(--font-serif); font-size: 1.05rem; }
.gb-meta { font-size: 0.7rem; color: var(--charcoal-light); white-space: nowrap; flex-shrink: 0; }
.gb-message { font-size: 0.875rem; color: var(--charcoal-light); line-height: 1.65; }
.gb-empty { text-align: center; padding: 2.5rem 1rem; font-size: 0.875rem; color: var(--charcoal-light); }
/* Photo upload */
.gb-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  background: var(--white);
  border: 1.5px dashed var(--tan);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.gb-file-label:hover { border-color: var(--accent); }
.gb-file-input { display: none; }
.gb-photo-wrap { margin-top: 0.875rem; }
.gb-photo {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
}
html.dark .gb-form { background: #2a211c; border-color: #3a2e28; }
html.dark .gb-input, html.dark .gb-textarea { background: #1c1714; border-color: #3a2e28; color: var(--white); }
html.dark .gb-entry { background: #2a211c; border-color: #3a2e28; }
html.dark .gb-file-label { background: #1c1714; border-color: #3a2e28; }

/* ── Guestbook Carousel ── */
.gb-carousel-section {
  background: var(--charcoal, #2d2926);
  border-radius: var(--radius);
  margin-top: 1.75rem;
  overflow: hidden;
  padding: 2rem 0 2rem;
}
.gb-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 1.5rem 0.25rem;
}
.gb-track::-webkit-scrollbar { display: none; }
/* Cards: 2 visible on desktop with 3rd peeking; 1 visible on mobile with next peeking */
.gb-card {
  flex: 0 0 calc(46% - 0.625rem);
  min-width: 260px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--transition, 0.2s);
}
.gb-card:hover { background: rgba(255,255,255,0.08); }
.gb-card-quote {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.75;
  color: var(--accent, #b8967e);
  user-select: none;
  margin-bottom: -0.25rem;
}
.gb-card-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  flex: 1;
}
.gb-card-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}
.gb-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.875rem;
}
.gb-card-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--white, #fff);
}
.gb-card-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.gb-track .gb-empty {
  color: rgba(255,255,255,0.4);
  padding: 2rem 0;
  font-size: 0.875rem;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .gb-card {
    flex: 0 0 82%;
    min-width: unset;
  }
}

/* ── Food Delivery Row ── */
.delivery-row {
  margin-bottom: 1.25rem;
}
.delivery-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
  margin-bottom: 0.625rem;
}
.delivery-btns {
  display: flex;
  gap: 0.625rem;
}
.delivery-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--white);
  transition: opacity var(--transition);
  flex: 1;
  justify-content: center;
}
.delivery-btn:hover { opacity: 0.88; }
.delivery-doordash { background: #e83b2b; }
.delivery-ubereats { background: #142328; }

/* ── Dark Mode Toggle ── */
.dark-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--tan);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  flex-shrink: 0;
  transition: all var(--transition);
  margin-right: 0.5rem;
}
.dark-toggle:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

/* ── ATH Tooltip (Add to Home Screen) ── */
.ath-tooltip {
  position: absolute;
  z-index: 200;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-sm);
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.ath-tooltip strong { color: var(--white); }
.ath-tooltip.ath-tt-visible { opacity: 1; }

/* ── Dark Mode ── */
html.dark {
  --blush: #1c1410;
  --sand: #2a211c;
  --tan: #3a2e28;
  --charcoal: #f0ebe6;
  --charcoal-light: #c0b8b0;
  --charcoal-lighter: #807870;
  --white: #221a16;
  --accent: #d4a882;
}
html.dark body { background: #1c1410; color: #f0ebe6; }
html.dark .site-nav { background: rgba(28,20,16,0.97); border-bottom-color: #3a2e28; }
html.dark .manual-section { background: #221a16; border-color: #3a2e28; }
html.dark .quick-card { background: #2a211c; border-color: #3a2e28; }
html.dark .acc-trigger { background: #2a211c; }
html.dark .acc-trigger:hover { background: #32271f; }
html.dark .acc-body { background: #221a16; }
html.dark .acc-item { border-color: #3a2e28; }
html.dark .filter-btn { background: #2a211c; border-color: #3a2e28; color: #c0b8b0; }
html.dark .filter-btn.active, html.dark .filter-btn:hover { background: #f0ebe6; color: #221a16; border-color: #f0ebe6; }
html.dark .place-card { background: #2a211c; }
html.dark .around-card { background: #2a211c; }
html.dark .around-code { background: #221a16; border-color: #3a2e28; }
html.dark .around-code:hover { background: #2a211c; }
html.dark .tips-list li { background: #2a211c; }
html.dark .checkout-list li { background: #2a211c; }
html.dark .rec-input, html.dark .rec-textarea { background: #2a211c; border-color: #3a2e28; color: #f0ebe6; }
html.dark .chat-messages { background: #2a211c; }
html.dark .chat-bot { background: #32271f; color: #f0ebe6; }
html.dark .rules-card { background: #2a211c; border-color: #3a2e28; }
html.dark .rules-pill { background: #32271f; border-color: #3a2e28; color: #f0ebe6; }
html.dark .emg-card { background: #2a211c; border-color: #3a2e28; }
html.dark .emg-card-util { background: #2a211c; }
html.dark .bc-card { background: #2a211c; border-color: #3a2e28; }
html.dark .bc-tide-wrap { background: #2a211c; border-color: #3a2e28; }
html.dark .bc-tide-hour { fill: #7a6e6a; }
html.dark .bc-tide-lo { fill: #7a8a94; }
html.dark .bc-forecast-day { background: #2a211c; border-color: #3a2e28; }
html.dark .bc-fc-hi { color: #f0ebe6; }
html.dark .bc-fc-lo { color: #9a8a82; }
html.dark .bc-fc-day { color: #7a7370; }
html.dark .bc-fc-wind { color: #7a7370; }
html.dark .bc-action-card { background: #2a211c; border-color: #3a2e28; color: #f0ebe6; }
html.dark .bc-action-card:hover { background: #332620; }
html.dark .bc-action-label { color: #f0ebe6; }
html.dark .bc-action-hint { color: #9a8a82; }
html.dark .wi-chip { background: #2a211c; border-color: #3a2e28; color: #f0ebe6; }
html.dark .wi-chip:hover { background: #32271f; }
html.dark .ath-banner { background: #2a211c; border-top-color: #d4a882; }
html.dark .ath-text { color: #f0ebe6; }
html.dark .jump-top { background: #2a211c; border-color: #3a2e28; color: #f0ebe6; }
html.dark .jump-top:hover { background: #32271f; }
html.dark .event-card { background: #2a211c; border-color: #3a2e28; }
html.dark .beach-fee-card { background: #2a211c; border-color: #3a2e28; }

/* ── Weekly & Monthly Events ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.875rem;
}
.event-card {
  background: var(--blush);
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.event-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.event-freq {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}
.event-time {
  font-size: 0.68rem;
  color: var(--charcoal-light);
  letter-spacing: 0.05em;
}
.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
  margin: 0;
}
.event-card p {
  font-size: 0.83rem;
  color: var(--charcoal-light);
  line-height: 1.5;
  margin: 0;
}
.event-location {
  font-size: 0.75rem;
  color: var(--charcoal-light);
  margin-top: 0.25rem;
}
.event-location a {
  color: var(--accent);
  text-decoration: none;
}
.event-location a:hover { text-decoration: underline; }

/* ── Beach Fees ── */
.beach-fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 1rem;
}
.beach-fee-card {
  background: var(--blush);
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.beach-fee-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
}
.beach-fee-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
}
.beach-fee-note {
  font-size: 0.72rem;
  color: var(--charcoal-light);
  line-height: 1.4;
}

/* ── Meet Your Hosts ── */
.hosts-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.hosts-text {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.hosts-text p {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.75;
  margin: 0;
}
.hosts-greeting {
  font-family: var(--font-serif);
  font-size: 1.15rem !important;
  color: var(--charcoal) !important;
}
.hosts-sign {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-top: 0.25rem !important;
}
.hosts-signature {
  font-family: var(--font-script), 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--charcoal);
  display: block;
  margin-top: 0.2rem;
}
.hosts-photo-wrap {
  flex-shrink: 0;
}
.hosts-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
  display: block;
}
@media (max-width: 600px) {
  .hosts-layout {
    grid-template-columns: 1fr;
  }
  .hosts-photo-wrap { order: -1; }
  .hosts-photo { width: 100%; height: 220px; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .manual-nav-inner { padding: 0 0.75rem; }
  .manual-nav-logo { font-size: 1rem; }
  .manual-main { padding: calc(var(--nav-h) + 1.5rem) 1rem 4rem; gap: 1.5rem; }
  .manual-section { padding: 1.5rem 1rem; }
  .manual-section-title { font-size: 1.5rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .chat-modal-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    align-self: stretch;
  }
  .chat-overlay {
    align-items: stretch;
    justify-content: center;
  }
  .review-actions { flex-direction: column; }
}

/* ── Photo Booth ──────────────────────────────────────── */
.pb-intro {
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

/* Frame style preview cards on start screen */
.pb-frame-preview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.pb-frame-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--charcoal);
  cursor: default;
}
.pb-preview-inner {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 6px;
  border: 2px solid transparent;
}
/* Minimal: double white-on-dark border feel */
.pb-preview-minimal {
  background: linear-gradient(160deg, #3a3028 0%, #1a1008 100%);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,0.18), inset 0 0 0 8px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.4);
}
/* Beach: blue gradient with wave hint */
.pb-preview-beach {
  background: linear-gradient(175deg, #7ecbde 0%, #1a6a9a 70%, #e8f4d0 100%);
  border-color: rgba(255,255,255,0.5);
}
/* Tropical: coral border, green accent */
.pb-preview-tropical {
  background: linear-gradient(160deg, #3aae7a 0%, #74c8a0 60%, #f7f0ec 100%);
  border-color: #d94f38;
  border-width: 3px;
}
/* Polaroid: cream border, thick bottom */
.pb-preview-polaroid {
  background: #7a9ab8;
  outline: 3px solid #e8e2da;
  outline-offset: -3px;
  box-shadow:
    inset 5px 5px 0 #fdf9f3,
    inset -5px 0 0 #fdf9f3,
    inset 0 -22px 0 #fdf9f3;
  border-color: #e8e2da;
}

.pb-open-btn {
  width: 100%;
  margin-bottom: 0.875rem;
}

.pb-privacy-note {
  font-size: 0.72rem;
  color: rgba(0,0,0,0.38);
  text-align: center;
  margin: 0;
}
html.dark .pb-privacy-note { color: rgba(255,255,255,0.28); }

/* Fullscreen overlay */
#pb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #faf8f5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pb-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 52px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pb-overlay-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.pb-close-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--charcoal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.pb-close-btn:hover { background: rgba(0,0,0,0.07); }

/* Frame selector: single no-scroll row, all 5 pills share space equally */
.pb-frame-selector {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  overflow-x: hidden;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.pb-frame-opt {
  flex: 1;
  min-width: 0;
  padding: 0.28rem 0.3rem;
  border-radius: 20px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--charcoal);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-align: center;
}
.pb-frame-opt.active {
  background: var(--accent);
  color: white;
}

/* Camera screen: flex column filling overlay, constrained to phone-like width */
#pb-camera {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0.5rem;
  min-height: 0;
  overflow: hidden;
}

/* Viewfinder: fixed 3:4 ratio, positioned so frame overlay stays anchored */
.pb-viewfinder {
  width: 100%;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

/* Strip viewfinder: flex column, overflow-y auto as fallback */
.pb-strip-vf {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #f0ede8;
}
.pb-strip-vf::-webkit-scrollbar { display: none; }

/* Base slot: auto-sized (each state controls its own height) */
.pb-sslot {
  width: 100%;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ccc;
  transition: height 0.3s ease, opacity 0.3s ease;
}

/* Active slot: square live camera — shows exactly what the final crop will be */
.pb-sslot-active {
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
}

/* Done slot: compact thumbnail strip */
.pb-sslot-done {
  height: 80px;
  background: #d0cdc8;
}

/* Pending slot: ghosted placeholder */
.pb-sslot-pending {
  height: 58px;
  background: #e4e1dc;
  opacity: 0.55;
}

.pb-sslot + .pb-sslot { border-top: 6px solid #f0ede8; }
.pb-sslot > video,
.pb-sslot > canvas.pb-sslot-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}
.pb-sslot-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0,0,0,0.12);
  user-select: none;
  z-index: 1;
  line-height: 1;
}
.pb-sslot-active .pb-sslot-num {
  font-size: 5rem;
  color: rgba(255,255,255,0.08);
}
.pb-sslot-label {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
  z-index: 3;
  pointer-events: none;
  letter-spacing: 0.03em;
}
/* Done-slot label: small checkmark overlay */
.pb-sslot-done .pb-sslot-label {
  bottom: 50%;
  transform: translateY(50%);
  font-size: 1.1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.pb-strip-brand-foot {
  background: white;
  text-align: center;
  padding: 12px 8px 14px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.pb-strip-brand-foot strong {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.02em;
}
.pb-strip-brand-foot span {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  color: #777;
  margin-top: 3px;
  letter-spacing: 0.03em;
}
#pb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pb-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  display: block;
}

/* Camera controls row */
.pb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem;
  flex-shrink: 0;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}
.pb-icon-btn {
  min-width: 64px;
  height: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.08);
  border: 1.5px solid rgba(0,0,0,0.1);
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s;
}
.pb-icon-btn:hover { background: rgba(0,0,0,0.15); }
.pb-btn-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.72;
  line-height: 1;
  pointer-events: none;
}

.pb-capture-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: transform 0.1s, opacity 0.1s;
  padding: 0;
}
.pb-capture-btn:active { transform: scale(0.91); }
.pb-capture-btn:disabled { opacity: 0.4; cursor: default; }
.pb-shutter-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid #ccc;
  background: white;
  display: block;
}

/* Preview screen in overlay */
#pb-preview {
  flex: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Preview */
.pb-result-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 1rem;
}
.pb-action-row {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}
.pb-action-btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--charcoal);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pb-action-btn:hover { background: rgba(184,150,126,0.1); }
.pb-action-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.pb-action-primary:hover { background: #a5846c; }

/* Mobile: limit viewfinder height on tall phones so controls are visible */
@media (max-width: 480px) {
  .pb-viewfinder { max-height: 68vh; }
  .pb-frame-preview-row { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
}
