/* New Bern Grand Marina — site styles */

:root {
  --navy: #0b2540;
  --navy-dark: #071829;
  --navy-mid: #123a5e;
  --teal: #1c5d6e;
  --gold: #c9a15a;
  --gold-dark: #a9803e;
  --sand: #f4efe6;
  --white: #ffffff;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --line: #e2e6ea;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 64, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top utility bar */
.topbar {
  background: var(--navy-dark);
  color: #cfe0ee;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #cfe0ee; }
.topbar a:hover { color: var(--gold); }
.topbar .sep { opacity: 0.5; margin: 0 6px; }

/* Header / nav */
header.site-header {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand img {
  height: 44px;
  width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 3px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text .name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand-text .tag {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
nav.main-nav a {
  color: #dce6f0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* Anything marked hidden stays hidden, whatever its other styles say. */
[hidden] { display: none !important; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201,161,90,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Member login link */
.member-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.member-login-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Member login modal */
.member-login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 24, 41, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.member-login-overlay.open {
  display: flex;
}
.member-login-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}
.member-login-modal h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.member-login-modal p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.92rem;
}
.member-login-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.member-login-close:hover { color: var(--navy); }
.member-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.member-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.member-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.member-form label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: -8px;
}
.member-login-error {
  color: #b3392f;
  font-size: 0.86rem;
  margin: -4px 0 0;
}
.member-login-note {
  color: #1f6b3a;
  background: #eaf6ee;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
}
.member-form button.btn {
  width: 100%;
  border: none;
  cursor: pointer;
}
.member-login-textlink {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  align-self: center;
}

/* Signed-in member bar (all pages) */
.member-bar {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.88rem;
}
.member-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 7px;
  padding-bottom: 7px;
}
.member-bar-links { display: inline-flex; gap: 16px; align-items: center; }
.member-bar a { color: var(--navy-dark); font-weight: 600; text-decoration: underline; }
.member-bar button {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.member-bar button:hover { background: var(--navy-dark); }

/* Member portal */
.portal-wrap { max-width: 860px; margin: 0 auto; }
.portal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.portal-card h3 { color: var(--navy); margin: 0 0 14px; font-size: 1.4rem; }
.portal-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.portal-details dt { color: var(--muted); font-size: 0.9rem; }
.portal-details dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.portal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.portal-actions .btn { border: none; cursor: pointer; }
/* Dark outline buttons on the white member/admin cards only; the site's white
   outline button (e.g. over the home page photo) keeps its own style. */
.portal-actions .btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy) !important;
}
.portal-card .member-form { max-width: 360px; }
.admin-search { width: 100%; max-width: 320px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; margin-bottom: 14px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.portal-welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.portal-welcome h3 { margin-bottom: 4px; }
.portal-card .note, .admin-table .note { color: var(--muted); font-size: 0.85rem; }
.inactive { color: #b3392f; font-weight: 600; }

/* Badges for event types */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  white-space: nowrap;
}
.badge-meeting { background: #e3edf7; color: #123a5e; }
.badge-vote { background: #f6ecd9; color: #7a5a1f; }
.badge-notice { background: #eef0f2; color: #3c4954; }
.badge-social { background: #e6f3ee; color: #1f6b4a; }
.badge-maintenance { background: #fbe9e7; color: #9a3b2c; }

/* Member event list */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.event-item:first-child { border-top: none; padding-top: 4px; }
.event-item .badge { margin-top: 3px; min-width: 92px; text-align: center; }
.event-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; text-decoration: none; }
.event-title:hover { text-decoration: underline; }
.event-when { color: var(--teal); font-size: 0.9rem; margin-top: 2px; }
.event-summary { margin: 6px 0 0; color: var(--ink); font-size: 0.93rem; }
.event-item.past { opacity: 0.7; }
.past-events { margin-top: 12px; }
.past-events summary, .doc-year summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 0.92rem; }
.event-lead { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin: 18px 0 8px; }
.event-details { line-height: 1.65; margin-top: 12px; overflow-wrap: anywhere; }

/* Member document list */
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.doc-section {
  --doc-accent: var(--navy);
  --doc-tint: #eef3f8;
  border: 1px solid var(--line);
  border-top: 4px solid var(--doc-accent);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.doc-section.doc-minutes { grid-column: 1 / -1; }
.doc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--doc-tint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.doc-head h4 { margin: 0; color: var(--doc-accent); font-size: 1.05rem; letter-spacing: 0.01em; }
.doc-count {
  min-width: 26px; text-align: center; font-size: 0.78rem; font-weight: 700;
  background: var(--doc-accent); color: #fff; border-radius: 999px; padding: 2px 8px;
}
.doc-body { padding: 10px 16px 14px; }
.doc-bylaws     { --doc-accent: #0b2540; --doc-tint: #e9eff6; }
.doc-rules      { --doc-accent: #1c5d6e; --doc-tint: #e6f1f3; }
.doc-minutes    { --doc-accent: #7a5a1f; --doc-tint: #f8f1e3; }
.doc-financials { --doc-accent: #1f6b3a; --doc-tint: #e8f4ec; }
.doc-permits    { --doc-accent: #5b3f8c; --doc-tint: #efeaf7; }
.doc-insurance  { --doc-accent: #9a3b2c; --doc-tint: #f9ebe8; }
.doc-forms      { --doc-accent: #3c4954; --doc-tint: #eef0f2; }
.doc-other      { --doc-accent: #5c6b7a; --doc-tint: #f2f4f6; }
.doc-minutes .doc-year { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 8px 0; }
.doc-minutes .doc-year[open] { padding-bottom: 10px; }
.doc-minutes .doc-year summary { font-size: 1rem; color: var(--doc-accent); }
.doc-minutes .month-head { color: var(--doc-accent); border-bottom: 1px dashed var(--line); padding-bottom: 3px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.doc-list li:last-child { border-bottom: none; }
.doc-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--teal); font: inherit; font-weight: 600; text-align: left; text-decoration: underline;
}
.doc-link::before { content: "\1F4C4\00a0"; text-decoration: none; display: inline-block; }
.doc-year { margin: 6px 0 10px; }
.month-head { margin: 12px 0 4px; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Admin page */
.admin-wrap { max-width: 1100px; margin: 0 auto; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab {
  background: none; border: none; padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.admin-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-panel-head h2 { margin: 0; color: var(--navy); }
.admin-panel-head .btn { border: none; cursor: pointer; }
.admin-form .admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.admin-form label.full { grid-column: 1 / -1; }
.admin-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.admin-form input[type="text"], .admin-form input[type="date"], .admin-form input[type="datetime-local"],
.admin-form select, .admin-form textarea, .admin-form input[type="file"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 400; font-size: 0.95rem; color: var(--ink); background: var(--white);
}
.admin-form textarea { resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--gold); }
.admin-form .member-login-error { margin-top: 12px; }
.row-actions { white-space: nowrap; }
.btn-sm {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
  font: inherit; font-size: 0.82rem; cursor: pointer; color: var(--navy); margin: 2px 4px 2px 0;
}
.btn-sm:hover { border-color: var(--navy); }
.btn-danger { color: #b3392f; }
.btn-danger:hover { border-color: #b3392f; }
.row-inactive td { background: #fafafa; }
.row-inactive td:first-child { opacity: 0.7; }
.portal-card h3 .count { color: var(--muted); font-weight: 400; font-size: 0.9rem; }

/* Admin gallery */
.gal-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gal-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gal-card.hidden-photo { opacity: 0.6; }
.gal-thumb { position: relative; aspect-ratio: 4 / 3; background: #eef1f4; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-pos { position: absolute; top: 8px; left: 8px; background: rgba(7, 24, 41, 0.75); color: #fff; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.gal-flag { position: absolute; top: 8px; right: 8px; background: #b3392f; color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.gal-card textarea { border: none; border-top: 1px solid var(--line); padding: 8px 10px; font: inherit; font-size: 0.85rem; resize: vertical; min-height: 60px; }
.gal-card textarea:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.vid-fields { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); }
.vid-fields input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.85rem; }
.vid-fields input[data-f="title"] { font-weight: 600; color: var(--navy); }
.gal-thumb.video-thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.gal-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 10px; border-top: 1px solid var(--line); }
.gal-actions .btn-sm[disabled] { opacity: 0.35; cursor: default; }

/* Event sign-up sheets */
.signup-box .check { margin-top: 2px; }
.signup-form { max-width: 620px !important; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.signup-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin: 0; }
.signup-grid label.full { grid-column: 1 / -1; }
.signup-grid input:disabled { background: #f2f4f6; color: var(--muted); }
.signup-list-head { margin: 22px 0 8px; color: var(--navy); font-size: 1rem; }
.signup-table tr.mine td { background: #fff8e8; font-weight: 600; }
.vote-tag.signup { background: #e6f3ee; color: #1f6b4a; }
.vote-tag.signup.go { background: #1f6b4a; color: #fff; }
@media (max-width: 560px) { .signup-grid { grid-template-columns: 1fr; } }

/* Visit replay page */
.replay-body { background: #eef2f6; min-height: 100vh; }
.replay-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.replay-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.replay-title h1 { font-size: 1.15rem; margin: 0; color: #fff; }
.replay-back { color: var(--gold); font-weight: 600; text-decoration: none; }
.replay-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.replay-pick input { padding: 6px 8px; border: none; border-radius: 6px; font: inherit; font-size: 0.88rem; width: 140px; }
.replay-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 20px;
}
.replay-controls select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.86rem; max-width: 100%; }
.replay-buttons { display: flex; gap: 4px; }
.rp-btn { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 0.88rem; cursor: pointer; color: var(--navy); }
.rp-btn:hover { border-color: var(--navy); }
.rp-play { background: var(--navy); color: #fff; border-color: var(--navy); min-width: 92px; font-weight: 700; }
.rp-play:hover { background: var(--navy-dark); }
.replay-progress { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; font-size: 0.85rem; color: var(--muted); }
.replay-bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.replay-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.3s; }
.replay-main { padding: 16px 20px 24px; }
.replay-msg { background: var(--white); border-radius: var(--radius); padding: 18px; max-width: 700px; }
.replay-stage { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.replay-steps {
  list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  max-height: calc(100vh - 170px); overflow-y: auto; position: sticky; top: 12px;
}
.replay-steps li { display: flex; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.replay-steps li:hover { background: #f2f6fa; }
.replay-steps li.done { color: var(--muted); }
.replay-steps li.current { background: var(--navy); color: #fff; }
.replay-steps li.current em { color: #fff; }
.rp-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; opacity: 0.8; min-width: 82px; }
.rp-icon { margin-right: 6px; }
.replay-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--gold);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; font-size: 0.95rem;
}
.replay-banner .rp-icon { font-size: 1.4rem; line-height: 1; }
.rp-b-head { color: var(--navy); font-weight: 600; }
.rp-b-sub { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.replay-banner.act-vote_cast { border-left-color: #1f6b3a; }
.replay-banner.act-login_failed { border-left-color: #b3392f; }
.replay-banner.act-open_document { border-left-color: #5b3f8c; }
.replay-banner.act-reserve_click { border-left-color: #c0702a; }
.replay-frame-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 260px); min-height: 420px; }
.replay-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.replay-note { color: var(--muted); font-size: 0.8rem; margin: 8px 0 0; }
@media (max-width: 860px) {
  .replay-stage { grid-template-columns: 1fr; }
  .replay-steps { position: static; max-height: 220px; }
  .replay-frame-wrap { height: 70vh; }
}

/* Activity log */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; }
.stat-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.stat-big { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 4px 0; }
.stat-big small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.stat-sub { font-size: 0.82rem; color: var(--muted); }
.replay-card { border-top-color: var(--navy); display: flex; flex-direction: column; gap: 8px; }
.replay-inputs { display: flex; gap: 6px; }
.replay-inputs input { min-width: 0; flex: 1 1 50%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.85rem; }
.replay-card .btn-sm { align-self: flex-start; }
.replay-link { text-decoration: none; font-size: 0.75rem; color: var(--teal); margin-left: 2px; }
.stat-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.stat-list ol { margin: 8px 0 0; padding-left: 20px; }
.stat-list li { padding: 2px 0; }
.linkish { background: none; border: none; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.log-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; }
.log-filters .portal-actions { align-items: center; }
.log-table td { font-size: 0.86rem; }
.log-table td.nowrap { white-space: nowrap; }
.log-table tr.log-warn td { background: #fdf3f1; }

/* Voting */
.admin-form .full { grid-column: 1 / -1; }
.ballot-box { border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px 16px 16px; background: #fffaf0; margin: 0; }
.ballot-box legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.vote-state { font-size: 0.88rem; margin-top: 4px; color: var(--teal); }
.vote-state.vote-open { color: #1f6b3a; font-weight: 600; }
.vote-state.vote-closed { color: var(--muted); }
.vote-state.vote-upcoming { color: #7a5a1f; }
.vote-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.vote-tag.open { background: #1f6b3a; color: #fff; }
.vote-tag.voted { background: #e6f3ee; color: #1f6b3a; }
.vote-tag.ineligible { background: #fbe9e7; color: #9a3b2c; }
a.vote-tag, a.badge { text-decoration: none; cursor: pointer; }
a.vote-tag:hover, a.badge:hover { filter: brightness(0.92); text-decoration: none; }
a.vote-tag.open { padding: 3px 10px; }
.ballot-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.ballot-choice {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: 1.05rem; font-weight: 600; color: var(--navy);
}
.ballot-choice:hover { border-color: var(--gold); }
.ballot-choice input { width: 20px; height: 20px; accent-color: var(--navy); }
.ballot-choice:has(input:checked) { border-color: var(--navy); background: #f2f6fa; }
.ballot-form .btn { border: none; cursor: pointer; margin-top: 6px; align-self: flex-start; }
.ballot-form.multi { max-width: 560px; }
.ballot-fill { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.ballot-slip { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; margin: 0; }
.ballot-slip legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.ballot-slip-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.ballot-slip-choices .ballot-choice { flex: 1 1 120px; padding: 8px 12px; font-size: 1rem; }
.voted-list div + div { margin-top: 4px; }
.slips-head { margin: 18px 0 6px; color: var(--navy); font-size: 1rem; }
.vc-picks { list-style: none; padding: 0; margin: 0 0 14px; max-height: 260px; overflow-y: auto; }
.vc-picks li { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.vc-picks li strong { font-size: 1.15rem; color: var(--navy); }
.vote-confirm { max-width: 420px; }
.vc-choice { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 4px 0 14px; }
.vc-warning { background: #fdf0e6; border-left: 4px solid #c0702a; padding: 10px 12px; border-radius: 6px; font-size: 0.92rem; color: #5c3410; }
.vote-confirm .portal-actions .btn { border: none; cursor: pointer; }
.result-row { margin-bottom: 12px; }
.result-label { display: flex; justify-content: space-between; margin-bottom: 4px; }
.vr-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 4px; max-width: 360px; }
.vr-bar span { display: block; height: 100%; background: var(--gold); }
.vr-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.attach-upload { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 8px 14px; font-weight: 600; }
.attach-box .reason-select { flex: 1 1 260px; }
.at-title { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.excl-box { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e3c98f; }
.excl-box h4 { margin: 0 0 4px; color: var(--navy); font-size: 0.98rem; }
.excl-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.excl-add input { flex: 1 1 180px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.excl-add select { flex: 2 1 240px; }
.reason-select { padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.86rem; background: var(--white); max-width: 100%; }
.excl-table td { padding: 6px 8px; }
.vr-exclude { border: 1px solid #f1d3cd; background: #fdf6f4; border-radius: 8px; padding: 8px 14px; margin: 0 0 14px; }
.vr-exclude summary { cursor: pointer; font-weight: 600; color: #9a3b2c; }
.vr-exclude-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.vr-exclude-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--navy); flex: 1 1 200px; }
.vr-exclude-form input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400; }
.vr-exclude-form .btn-sm { padding: 8px 14px; }
.ineligible-list { background: #fdf0ee; border-left: 4px solid #b3392f; padding: 10px 12px; border-radius: 6px; color: #6b231a; font-size: 0.92rem; margin-top: 10px; }
.vr-table tfoot td { background: #f7f8fa; }
.vr-total-head td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--navy); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.vr-total.lead td { background: #fff6e3; }
.vr-total-head td:not(:first-child) { text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: var(--muted); }
.vr-turnout { margin: 0 0 14px; padding: 10px 14px; background: #f2f6fa; border-radius: 8px; color: var(--navy); font-size: 1rem; }
.vote-choice { font-weight: 700; color: var(--navy); }
.btn-primary-sm { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary-sm:hover { background: var(--navy-dark); }

@media (max-width: 720px) {
  .admin-form .admin-grid { grid-template-columns: 1fr; }
  .row-actions { white-space: normal; }
}
@media (max-width: 560px) {
  .event-item { flex-direction: column; gap: 6px; }
  .event-item .badge { min-width: 0; }
  .portal-card { padding: 20px 16px; }
  .portal-details { grid-template-columns: 1fr; gap: 2px; }
  .portal-details dd { margin-bottom: 8px; }
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(7,24,41,0.88) 10%, rgba(18,58,94,0.72) 55%, rgba(28,93,110,0.55) 100%),
    url('images/waterview.png');
  background-size: cover;
  background-position: center 87%;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 60%, 5% 55%, 12% 62%, 20% 50%, 30% 62%, 40% 48%, 52% 62%, 62% 50%, 74% 64%, 85% 50%, 93% 62%, 100% 55%, 100% 100%, 0 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 720px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #dce6f0;
  max-width: 560px;
  margin: 0 0 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Quick facts strip */
.facts {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.facts .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.facts .container.facts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.fact {
  text-align: center;
  padding: 0 8px;
}
.facts-row .fact {
  flex: 0 1 180px;
}
.fact .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}
.fact .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
.boat-icon {
  flex: 0 0 auto;
  color: var(--gold-dark);
}
.boat-icon svg {
  width: 48px;
  height: 36px;
  display: block;
}

/* Sections */
section { padding: 76px 0; }
section.alt { background: var(--sand); }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 14px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

/* Amenity cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Info callout */
.callout {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.callout h3 { color: var(--gold); margin-top: 0; }
.callout p { color: #dce6f0; }

/* Photo frame */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  outline: 1px solid var(--line);
}

/* Rates table */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rates-table th, .rates-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.rates-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rates-table tr:last-child td { border-bottom: none; }
.rates-table td.price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.note-list {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}
.note-list ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.note-list p:first-child { margin-top: 0; font-weight: 700; color: var(--navy); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: #dce6f0; margin: 0 0 30px; }

/* Ghost link (for light backgrounds) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--gold-dark); }

/* Checklist */
.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
}
.list-check svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--gold-dark);
  margin-top: 2px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-grid .photo-frame img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.gallery-grid .photo-frame { position: relative; }
.gallery-grid .photo-frame img { cursor: zoom-in; transition: transform 0.25s ease, filter 0.25s ease; }
.gallery-grid .photo-frame:hover img, .gallery-grid .photo-frame img:focus-visible { filter: brightness(1.06); }
.gallery-grid .photo-frame img:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery-grid .photo-frame { margin: 0; background: var(--white); display: flex; flex-direction: column; }
.gallery-grid .photo-frame figcaption {
  padding: 10px 8px 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}
.gallery-grid .photo-frame::after {
  content: "\2922  Full size";
  position: absolute; right: 10px; top: 10px;
  background: rgba(7, 24, 41, 0.7); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  pointer-events: none; opacity: 0.85;
}

/* Gallery: Photos / Videos switch */
.gallery-tabs { display: inline-flex; background: #e9eef3; border-radius: 999px; padding: 4px; margin: 0 0 24px; }
.gallery-tab {
  border: none; background: none; padding: 9px 22px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--navy); font-size: 0.95rem;
}
.gallery-tab.active { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(11, 37, 64, 0.25); }
.gallery-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Video cards */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--white); border: 6px solid var(--white); outline: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); font: inherit; color: var(--ink);
}
.video-card:focus-visible { outline: 3px solid var(--gold); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 6px; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(7, 24, 41, 0.75); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: 5px;
  border: 2px solid rgba(255, 255, 255, 0.85); transition: background 0.2s;
}
.video-card:hover .video-play { background: #c4302b; }
.video-source { position: absolute; left: 8px; bottom: 8px; background: rgba(7, 24, 41, 0.75); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.vt-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.03em; }
.vt-instagram { background: linear-gradient(135deg, #feda75, #d62976 50%, #4f5bd5); }
.vt-tiktok { background: linear-gradient(135deg, #010101, #25f4ee 160%); }
.vt-vimeo { background: linear-gradient(135deg, #1ab7ea, #0b2540); }
.vt-facebook { background: linear-gradient(135deg, #1877f2, #0b2540); }
.video-title { display: block; padding: 10px 8px 2px; font-weight: 700; color: var(--navy); font-size: 0.95rem; line-height: 1.35; }
.video-credit { display: block; padding: 0 8px 6px; color: var(--muted); font-size: 0.82rem; }
.video-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 30px 0; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } .gallery-tab { padding: 8px 18px; } }

/* Video player overlay */
.video-box .vb-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; box-sizing: border-box; }
.vb-frame { width: min(1100px, 100%, calc((100vh - 200px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.vb-frame.vertical { width: min(420px, 100%, calc((100vh - 200px) * 9 / 16)); aspect-ratio: 9 / 16; }
.vb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vb-caption { color: #e8edf2; text-align: center; margin-top: 12px; max-width: 900px; font-size: 0.92rem; line-height: 1.5; }
.vb-caption span { color: #b9c4cf; }
.vb-caption a { color: var(--gold); }

/* Full-size photo viewer */
.lb-lock, .lb-lock body { overflow: hidden; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 14, 24, 0.94);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 64px 72px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lb-caption { color: #e8edf2; font-size: 0.92rem; text-align: center; margin-top: 12px; max-width: 900px; }
.lb-count { position: absolute; top: 18px; left: 20px; color: #c9d3dd; font-size: 0.85rem; }
.lb-close {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 4px 10px;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 64px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 2.4rem; line-height: 1;
}
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.22); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 600px) {
  .lb-figure { padding: 52px 8px 64px; }
  .lb-nav { width: 40px; height: 52px; font-size: 2rem; background: rgba(255, 255, 255, 0.18); }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
}

.gallery-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 10px 0 0;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.contact-card h3 {
  color: var(--navy);
  margin-top: 0;
  font-size: 1.05rem;
}
.contact-card .row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.96rem;
}
.contact-card .row strong { color: var(--navy); min-width: 82px; display: inline-block; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b7c6d4;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}
.footer-grid p, .footer-grid a { color: #b7c6d4; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid .flink { display: block; margin-bottom: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #7c8ea0;
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 64px 0 54px;
}
.page-hero .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { color: #dce6f0; margin: 12px 0 0; max-width: 560px; }

.map-caption {
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts .container { grid-template-columns: 1fr 1fr; }
  .boat-icon { display: none; }
}

@media (max-width: 1280px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 6px; }

  /* Surface Marina Map right under Home in the mobile menu */
  nav.main-nav a:nth-child(1) { order: 1; }
  nav.main-nav a:nth-child(2) { order: 3; }
  nav.main-nav a:nth-child(3) { order: 4; }
  nav.main-nav a:nth-child(4) { order: 2; }
  nav.main-nav a:nth-child(5) { order: 5; }
  nav.main-nav a:nth-child(6) { order: 6; }
  nav.main-nav a:nth-child(7) { order: 7; }
  nav.main-nav a:nth-child(8) { order: 8; }
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts .container { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 0 70px; }
}

#bridge { scroll-margin-top: 110px; }

/* Mobile quick-action bar */
.mobile-action-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 66px; }
  .mobile-action-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.25);
  }
  .mobile-action-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 4px 8px;
    color: #dce6f0;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .mobile-action-bar a svg {
    width: 19px;
    height: 19px;
  }
  .mobile-action-bar a.primary {
    background: var(--gold);
    color: var(--navy-dark);
  }
}

@media (max-width: 480px) {
  .nav-wrap { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-text .name {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text .tag { display: none; }
  .brand img { height: 36px; }
}

/* Slip finder */
.slip-finder {
  max-width: 1100px;
  margin: 0 auto;
}
.slip-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.slip-form label { font-weight: 700; letter-spacing: 0.5px; }
.slip-form input {
  font: inherit;
  font-size: 1.1rem;
  padding: 11px 14px;
  width: 220px;
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid var(--gold);
  text-transform: uppercase;
}
.slip-form .btn { border: 0; cursor: pointer; }
.slip-form .slip-reset {
  background: transparent;
  color: #dce6f0;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.slip-hint { width: 100%; text-align: center; font-size: 0.85rem; color: #b9c8d8; margin: 0; }
.slip-info {
  display: none;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  background: var(--sand);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 1rem;
}
.slip-info.found, .slip-info.error { display: flex; }
.slip-info.error { background: #fdecec; color: #8a1f1f; display: block; }
.slip-tag {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.slip-map {
  background: #a9d2e6;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.slip-map svg, .slip-map img { width: 100%; height: auto; display: block; }
.slip-map .slip { transition: opacity 0.4s; }
.slip-map svg.finding .slip:not(.hit) { opacity: 0.35; }
.slip-map .slip.hit polygon, .slip-map .slip.hit rect:first-child {
  fill-opacity: 0.95;
  stroke: #ffd400;
  stroke-width: 4;
  stroke-opacity: 1;
}
.slip-map .pulse {
  fill: none;
  stroke: #ffd400;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: slipPulse 1.6s ease-out infinite;
  pointer-events: none;
}
.slip-map .pulse.p2 { animation-delay: 0.8s; }
@keyframes slipPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}
.section-subhead { text-align: center; margin: 56px 0 18px; }
.slip-finder .map-photo { border-radius: 0 0 var(--radius) var(--radius); }
.slip-map[hidden], .map-photo[hidden], .slip-reset[hidden] { display: none; }
.slip-map .ring { fill: none; stroke: #ffd400; stroke-width: 5; stroke-dasharray: 10 6; pointer-events: none; }
.slip-map { position: relative; }
.slip-stage { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slip-map.zoomed .slip-stage { touch-action: none; cursor: grab; }
.slip-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--gold); border-radius: 999px;
  padding: 9px 16px; font: inherit; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3); cursor: pointer; line-height: 1.2;
}
.slip-zoom:hover { background: var(--navy-mid); }
.slip-gesture-hint {
  margin: 0; padding: 8px 12px; line-height: 1.4;
  font-size: 0.82rem; color: var(--muted); text-align: center; background: var(--white);
}
.slip-gesture-hint .hint-in, .slip-map.zoomed .slip-gesture-hint .hint-out { display: none; }
.slip-map.zoomed .slip-gesture-hint .hint-in { display: inline; }
#slipPin3d { pointer-events: none; }
.pin-drop { animation: pinDrop 0.75s cubic-bezier(.3,1.6,.5,1) both; }
.pin-bob { animation: pinBob 2.4s ease-in-out 0.8s infinite; }
.pin-shadow { transform-box: fill-box; transform-origin: center; animation: pinShadow 0.75s ease-out both, pinShadowBob 2.4s ease-in-out 0.8s infinite; }
@keyframes pinDrop { 0% { transform: translateY(-140px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(0); } }
@keyframes pinBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pinShadow { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pinShadowBob { 0%,100% { transform: scale(1); } 50% { transform: scale(0.82); } }
@media (prefers-reduced-motion: reduce) {
  .pin-drop, .pin-bob, .pin-shadow, .slip-map .pulse { animation: none; }
}
