/*
 * Ostfriesland Nordsee Portal 3.0
 * Image-first, mobile-first travel portal design.
 */

:root {
  --blue: #002d5e;
  --blue-strong: #001e42;
  --blue-soft: #eef4f8;
  --yellow: #fab900;
  --yellow-dark: #e4a800;
  --bg: #fbf6f2;
  --surface: #ffffff;
  --surface-soft: #f7f2ed;
  --beige: #f4e5d9;
  --ink: #16304a;
  --muted: #66798b;
  --line: #dce4ea;
  --line-strong: #c5d1da;
  --danger: #b73a48;
  --success: #196e4c;
  --shadow-sm: 0 8px 28px rgba(0,45,94,.08);
  --shadow: 0 18px 60px rgba(0,45,94,.12);
  --radius-sm: 11px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --wide: 1380px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 76px;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Ostfriesland Display", "Trebuchet MS", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--yellow); color: var(--blue); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, .display-heading {
  color: var(--blue);
  font-family: var(--display-font);
  font-weight: 900;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1;
  text-wrap: balance;
}
h2 {
  color: var(--blue);
  font-family: var(--display-font);
  font-weight: 900;
  font-synthesis: none;
  line-height: 1.04;
  text-wrap: balance;
}
h3, h4 { color: var(--blue); line-height: 1.22; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 800; }

.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; fill: currentColor; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 99999; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.container-wide { width: min(var(--wide), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.content-container { width: min(800px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section, .coast-home-section { padding: clamp(58px, 7vw, 92px) 0; }
.section-compact { padding: clamp(44px, 5vw, 68px) 0; }
.surface-section, .coast-surface-section { background: #fff; }

.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.kicker::before, .eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: var(--yellow); }
.kicker-light, .eyebrow-light { color: #fff; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { background: var(--blue-strong); transform: translateY(-1px); }
.button:active { transform: none; }
.button-yellow { background: var(--yellow); color: var(--blue); }
.button-yellow:hover { background: var(--yellow-dark); }
.button-outline { border-color: var(--blue); background: #fff; color: var(--blue); }
.button-outline:hover { background: var(--blue); color: #fff; }
.button-ghost { background: transparent; color: var(--blue); }
.button-ghost:hover { background: var(--blue-soft); }
.button-full { width: 100%; }
.button-link-delete { border: 0; background: transparent; color: var(--danger); font-weight: 800; cursor: pointer; }
.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}
.icon-button:hover { background: var(--blue-soft); }
.favorite, .coast-favorite {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0,45,94,.13);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--blue);
  box-shadow: 0 5px 16px rgba(0,45,94,.12);
  cursor: pointer;
}
.favorite.is-saved, .coast-favorite.is-saved { border-color: var(--yellow); background: var(--yellow); }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 800; }
.rating .icon { color: #d89f00; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(0,45,94,.08);
  background: rgba(255,255,255,.965);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; min-height: var(--header-h); align-items: center; gap: 26px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { width: 194px; max-height: 56px; }
.desktop-nav { display: flex; align-items: center; gap: 5px; }
.nav-link { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 11px; border-radius: 10px; color: var(--blue); font-size: .875rem; font-weight: 800; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--blue-soft); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-plan-button { min-height: 44px; padding-inline: 18px; }
.avatar { display: grid; width: 40px; height: 40px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--beige); color: var(--blue); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mobile-only { display: none; }

/* Search and drawer overlays -------------------------------------------- */
.search-overlay, .drawer-overlay, .filter-overlay, .mobile-map-overlay, .review-overlay, .gallery-overlay, .overlay {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: none;
  background: rgba(5,25,44,.52);
}
.search-overlay.is-open, .drawer-overlay.is-open, .filter-overlay.is-open, .mobile-map-overlay.is-open, .review-overlay.is-open, .gallery-overlay.is-open, .overlay.is-open { display: block; }
.search-dialog { position: absolute; top: 0; right: 0; left: 0; padding: 24px var(--gutter) 38px; background: #fff; box-shadow: var(--shadow); }
.search-dialog-inner { width: min(920px,100%); margin-inline: auto; }
.search-dialog-head { display: flex; align-items: center; gap: 10px; }
.search-form { display: flex; min-height: 56px; flex: 1; align-items: center; gap: 11px; padding: 5px 5px 5px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,45,94,.08); }
.search-form input { min-width: 0; flex: 1; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; }
.search-form .button { width: 46px; min-width: 46px; min-height: 46px; padding: 0; }
.search-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 30px; }
.suggestion-list { display: grid; }
.suggestion-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 750; }
.search-tiles { display: grid; gap: 11px; }
.search-tile { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; padding: 8px; border-radius: 13px; background: var(--surface-soft); }
.search-tile img { width: 76px; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.search-tile small, .search-tile strong { display: block; }
.search-tile small { color: var(--muted); font-size: .73rem; }
.mobile-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); overflow-y: auto; background: #fff; box-shadow: var(--shadow); }
.drawer-head { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 170px; }
.drawer-nav { display: grid; padding: 20px 18px; }
.drawer-nav a { display: flex; min-height: 54px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--blue); font-weight: 800; }
.drawer-actions { display: grid; gap: 10px; padding: 0 18px 24px; }

/* Home ------------------------------------------------------------------ */
.coast-home { background: #fff; }
.coast-home-hero { padding: 28px 0 80px; background: linear-gradient(180deg,#fff 0%,#fff 74%,var(--bg) 74%,var(--bg) 100%); }
.coast-home-stage { position: relative; min-height: 620px; }
.coast-home-photo { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-lg); background: #dce9ee; box-shadow: var(--shadow-sm); }
.coast-home-photo img { width: 100%; height: 100%; object-fit: cover; }
.coast-home-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,25,54,.72) 0%,rgba(0,25,54,.26) 54%,rgba(0,25,54,.05) 100%); }
.coast-home-copy { position: absolute; z-index: 2; left: clamp(32px,5vw,72px); bottom: 118px; max-width: 650px; color: #fff; }
.coast-home-copy h1 { margin: 0 0 14px; color: #fff; font-size: clamp(3.2rem,5vw,4.9rem); }
.coast-home-copy > p:last-child { max-width: 570px; margin: 0; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.coast-trip-search { position: absolute; z-index: 3; right: clamp(24px,4vw,56px); bottom: -34px; left: clamp(24px,4vw,56px); display: grid; grid-template-columns: minmax(300px,1.55fr) 1fr 1fr auto; align-items: stretch; gap: 0; padding: 9px; border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.coast-trip-search > label { display: grid; align-content: center; padding: 7px 18px; border-left: 1px solid var(--line); }
.coast-trip-search > label:first-child { border-left: 0; }
.coast-trip-search small { color: var(--muted); font-size: .73rem; font-weight: 750; }
.coast-trip-search select, .coast-trip-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--blue); font-weight: 800; }
.coast-trip-query { grid-template-columns: 42px 1fr; align-items: center; gap: 12px; }
.coast-trip-query > span:first-child { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.coast-trip-query span:last-child { min-width: 0; }
.coast-trip-search .button { min-width: 150px; }
.coast-home-moods { background: var(--bg); }
.coast-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.coast-section-head.is-inline { align-items: center; }
.coast-section-head h2 { margin: 0; font-size: clamp(2rem,3vw,2.55rem); }
.coast-section-head p:last-child { margin: 6px 0 0; color: var(--muted); }
.coast-mood-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.coast-mood-card { position: relative; min-height: 220px; overflow: hidden; border-radius: 18px; background: var(--blue); box-shadow: var(--shadow-sm); }
.coast-mood-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 22%,rgba(0,25,54,.82)); }
.coast-mood-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.coast-mood-card:hover img { transform: scale(1.04); }
.coast-mood-card span { position: absolute; z-index: 2; right: 18px; bottom: 16px; left: 18px; color: #fff; }
.coast-mood-card strong, .coast-mood-card small { display: block; }
.coast-mood-card strong { font-size: 1.12rem; }
.coast-mood-card small { margin-top: 2px; color: rgba(255,255,255,.78); }
.coast-card-grid, .travel-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.coast-text-link, .text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; white-space: nowrap; }
.coast-weekend-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px,7vw,96px); align-items: start; }
.coast-weekend-copy h2 { margin: 0 0 14px; font-size: clamp(2.1rem,3.2vw,2.75rem); }
.coast-weekend-copy > p:not(.kicker) { max-width: 480px; margin-bottom: 24px; color: var(--muted); }
.event-list { display: grid; border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 18px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.event-row time { display: grid; width: 60px; height: 64px; place-content: center; border-radius: 12px; background: var(--blue); color: #fff; text-align: center; }
.event-row time strong { font-size: 1.55rem; line-height: 1; }
.event-row time span { margin-top: 4px; font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.event-kind { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.event-row h3 { margin: 2px 0 3px; font-size: 1.15rem; }
.event-row p { color: var(--muted); font-size: .85rem; }
.coast-planner-section { padding-top: 0; }
.coast-planner-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; overflow: hidden; border-radius: var(--radius-lg); background: var(--blue); box-shadow: var(--shadow); }
.coast-planner-copy { display: grid; align-content: center; justify-items: start; padding: clamp(38px,6vw,76px); color: #fff; }
.coast-planner-copy h2 { margin: 0 0 14px; color: #fff; font-size: clamp(2.2rem,3.6vw,3rem); }
.coast-planner-copy p { max-width: 520px; margin-bottom: 24px; color: rgba(255,255,255,.82); }
.coast-planner-card > img { width: 100%; height: 100%; object-fit: cover; }

/* Discovery archive ------------------------------------------------------ */
.coast-discover-page { min-height: 100vh; background: #fff; }
.coast-explore-hero { padding: 28px 0 72px; background: linear-gradient(180deg,#fff 0%,#fff 64%,var(--bg) 64%,var(--bg) 100%); }
.coast-explore-stage { position: relative; min-height: 540px; }
.coast-explore-photo { position: absolute; inset: 0 220px 0 0; overflow: hidden; border-radius: var(--radius-lg); background: #d9e8ed; box-shadow: var(--shadow-sm); }
.coast-explore-photo img { width: 100%; height: 100%; object-fit: cover; }
.coast-explore-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,28,58,.18),rgba(0,28,58,0) 55%); }
.coast-explore-panel { position: absolute; z-index: 2; right: 0; bottom: -34px; width: min(500px,44%); padding: 38px 38px 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.coast-explore-panel h1 { margin: 0 0 13px; font-size: clamp(2.5rem,4vw,3.5rem); }
.coast-explore-panel > p:not(.kicker) { margin: 0 0 24px; color: var(--muted); font-size: 1.04rem; line-height: 1.55; }
.coast-hero-search { display: flex; height: 58px; align-items: center; gap: 11px; padding: 5px 5px 5px 15px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.coast-hero-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,45,94,.08); }
.coast-hero-search > span { color: var(--blue); }
.coast-hero-search input { min-width: 0; flex: 1; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; }
.coast-hero-search button { display: grid; width: 47px; height: 47px; place-items: center; padding: 0; border: 0; border-radius: 11px; background: var(--yellow); color: var(--blue); }
.coast-hero-links { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 15px; color: var(--muted); font-size: .8rem; }
.coast-hero-links a { color: var(--blue); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(0,45,94,.22); text-underline-offset: 3px; }
.coast-quick-section { padding: 50px 0 44px; background: var(--bg); }
.coast-quick-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.coast-quick-card { position: relative; min-height: 148px; overflow: hidden; border-radius: 17px; background: var(--blue); box-shadow: var(--shadow-sm); }
.coast-quick-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 20%,rgba(0,23,49,.84)); }
.coast-quick-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.coast-quick-card:hover img { transform: scale(1.04); }
.coast-quick-card > span { position: absolute; z-index: 2; right: 16px; bottom: 14px; left: 16px; color: #fff; }
.coast-quick-card strong, .coast-quick-card small { display: block; }
.coast-quick-card small { margin-top: 2px; color: rgba(255,255,255,.76); font-weight: 500; }
.coast-results-section { padding: 52px 0 88px; }
.coast-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.coast-results-title { display: grid; gap: 3px; }
.coast-results-title strong { color: var(--blue); font-size: 1.35rem; }
.coast-results-title span { color: var(--muted); font-size: .875rem; }
.coast-toolbar-actions { display: flex; align-items: center; gap: 9px; }
.coast-tool-button, .coast-sort-form select { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; color: var(--blue); font-weight: 800; }
.coast-tool-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; cursor: pointer; }
.coast-tool-button:hover { border-color: var(--blue); background: #f7fafc; }
.coast-tool-button.is-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.coast-tool-button b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue); font-size: .72rem; }
.coast-sort-form select { padding: 0 34px 0 13px; cursor: pointer; }
.coast-mobile-toolbar { display: none; }
.coast-mobile-sort-form { min-width: 0; }
.coast-mobile-sort-form label { display: block; height: 100%; }
.coast-mobile-sort-form select {
  width: 100%;
  height: 100%;
  min-height: 42px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background-color: #fff;
  color: var(--blue);
  font-size: .83rem;
  font-weight: 800;
  cursor: pointer;
}
.coast-results-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(340px,.85fr); gap: 28px; align-items: start; }
.coast-results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.coast-place-card { position: relative; overflow: hidden; border: 1px solid rgba(0,45,94,.1); border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(0,45,94,.06); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.coast-place-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(0,45,94,.12); }
.coast-place-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #dde8ed; }
.coast-place-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.coast-place-card:hover .coast-place-media img { transform: scale(1.035); }
.coast-place-badge { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.95); color: var(--blue); font-size: .72rem; font-weight: 850; }
.coast-place-card .coast-favorite { top: 12px; right: 12px; }
.coast-place-body { padding: 17px 18px 19px; }
.coast-place-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: .8rem; }
.coast-place-card h2 { margin: 0 0 7px; font-family: var(--body-font); font-size: 1.25rem; line-height: 1.22; }
.coast-place-card h2 a { color: var(--blue); }
.coast-place-body > p { display: -webkit-box; margin: 0 0 14px; overflow: hidden; color: var(--muted); font-size: .875rem; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.coast-place-facts { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .75rem; }
.coast-place-facts span { display: inline-flex; align-items: center; gap: 5px; }
.coast-map-card { position: sticky; top: calc(var(--header-h) + 20px); min-height: 610px; overflow: hidden; border-radius: 20px; background: #dbe9ee; box-shadow: var(--shadow-sm); }
.coast-map-card .map-canvas, .coast-map-fallback { width: 100%; height: 610px; }
.coast-map-fallback { position: relative; }
.coast-map-fallback img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); }
.coast-map-fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 65%,rgba(0,32,67,.2)); }
.coast-map-top { position: absolute; z-index: 3; top: 14px; right: 14px; left: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); color: var(--blue); }
.coast-map-top button { border: 0; background: transparent; color: var(--blue); font-weight: 800; cursor: pointer; }
.coast-map-pin { position: absolute; z-index: 2; width: 42px; height: 42px; border: 4px solid #fff; border-radius: 50% 50% 50% 8px; background: var(--blue); box-shadow: 0 8px 20px rgba(0,45,94,.3); transform: rotate(-45deg); }
.coast-map-pin::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--yellow); }
.coast-map-pin.pin-one { top: 34%; left: 30%; }
.coast-map-pin.pin-two { top: 48%; left: 61%; }
.coast-map-pin.pin-three { top: 68%; left: 44%; }
.coast-empty-wrap { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: 22px; background: var(--bg); box-shadow: var(--shadow-sm); }
.coast-empty-wrap > img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.coast-empty-copy { display: grid; align-content: center; padding: 48px; }
.coast-empty-copy h2 { margin: 0 0 12px; font-family: var(--body-font); font-size: 2rem; line-height: 1.15; }
.coast-empty-copy > p:not(.kicker) { margin: 0 0 22px; color: var(--muted); }
.coast-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.coast-empty-ideas { margin-top: 48px; }
.coast-empty-ideas > h2 { margin: 0 0 18px; font-size: 2rem; }
.coast-idea-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.coast-idea-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.coast-idea-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.coast-idea-card > span { display: block; padding: 15px; }
.coast-idea-card strong, .coast-idea-card small { display: block; }
.coast-idea-card strong { color: var(--blue); font-size: 1.08rem; }
.coast-idea-card small { margin-top: 3px; color: var(--muted); }

/* Event discovery -------------------------------------------------------- */
.coast-events-page { min-height: 100vh; background: #fff; }
.coast-event-hero { padding: 28px 0 72px; background: linear-gradient(180deg,#fff 0%,#fff 64%,var(--bg) 64%,var(--bg) 100%); }
.coast-event-stage { position: relative; min-height: 520px; }
.coast-event-photo { position: absolute; inset: 0 220px 0 0; overflow: hidden; border-radius: var(--radius-lg); background: #d9e8ed; box-shadow: var(--shadow-sm); }
.coast-event-photo img { width: 100%; height: 100%; object-fit: cover; }
.coast-event-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,28,58,.08),rgba(0,28,58,0) 58%); }
.coast-event-panel { position: absolute; z-index: 2; right: 0; bottom: -34px; width: min(500px,44%); padding: 38px 38px 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.coast-event-panel h1 { margin: 0 0 13px; font-size: clamp(2.45rem,4vw,3.45rem); }
.coast-event-panel > p:not(.kicker) { margin: 0 0 24px; color: var(--muted); font-size: 1.02rem; }
.coast-period-section { padding: 50px 0 44px; background: var(--bg); }
.coast-period-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.coast-period-card { position: relative; min-height: 148px; overflow: hidden; border: 2px solid transparent; border-radius: 17px; background: var(--blue); box-shadow: var(--shadow-sm); }
.coast-period-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 20%,rgba(0,23,49,.86)); }
.coast-period-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.coast-period-card:hover img { transform: scale(1.04); }
.coast-period-card.is-active { border-color: var(--yellow); }
.coast-period-card > span { position: absolute; z-index: 2; right: 16px; bottom: 14px; left: 16px; color: #fff; }
.coast-period-card strong, .coast-period-card small { display: block; }
.coast-period-card small { margin-top: 2px; color: rgba(255,255,255,.76); }
.coast-event-grid .event-travel-card { min-height: 100%; }
.coast-event-grid .travel-card-body { display: grid; align-content: start; }
.coast-event-empty { margin-top: 6px; }

/* Standard cards --------------------------------------------------------- */
.travel-card { position: relative; overflow: hidden; border: 1px solid rgba(0,45,94,.1); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.travel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.travel-card-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.travel-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.travel-card:hover .travel-card-image img { transform: scale(1.035); }
.card-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.95); color: var(--blue); font-size: .73rem; font-weight: 850; }
.travel-card .favorite { top: 12px; right: 12px; }
.travel-card-body { padding: 17px 18px 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: .8rem; }
.travel-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.travel-card p { color: var(--muted); font-size: .9rem; }

/* Event and magazine archives ------------------------------------------- */
.events-page, .magazine-page, .archive-page, .search-page, .article-page, .location-page, .event-detail-page, .community-page, .contact-page, .dashboard-page, .profile-page, .creator-page { background: #fff; }
.archive-hero, .magazine-hero, .community-hero, .creator-header { padding: clamp(48px,7vw,82px) 0; background: var(--bg); }
.archive-hero-inner, .magazine-hero-grid, .community-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.8fr); align-items: center; gap: clamp(36px,6vw,76px); }
.archive-hero h1, .magazine-hero h1, .community-hero h1, .creator-header h1 { margin: 0 0 14px; font-size: clamp(2.4rem,4.4vw,3.6rem); }
.archive-hero p, .magazine-hero p, .community-hero p { max-width: 650px; color: var(--muted); }
.archive-hero img, .magazine-hero img, .community-hero-image { width: 100%; max-height: 380px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-sm); }
.event-grid, .magazine-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.event-period-strip, .explore-filter-strip { position: sticky; z-index: 20; top: var(--header-h); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
.event-period-strip .container, .explore-filter-inner { display: flex; min-height: 64px; align-items: center; gap: 10px; overflow-x: auto; }
.filter-chip { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--blue); font-weight: 800; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }

/* Detail pages ----------------------------------------------------------- */
.location-gallery { display: grid; grid-template-columns: 1.45fr .75fr; gap: 10px; padding-top: 26px; }
.gallery-main, .gallery-side { position: relative; overflow: hidden; border-radius: 20px; }
.gallery-main { min-height: 520px; }
.gallery-side { display: grid; gap: 10px; }
.gallery-main img, .gallery-side img { width: 100%; height: 100%; object-fit: cover; }
.location-intro { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 26px; padding-top: 34px; padding-bottom: 28px; }
.location-title h1 { margin: 0 0 12px; font-size: clamp(2.4rem,4.3vw,3.55rem); }
.location-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
.location-actions, .article-actions, .community-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-layout, .event-detail-layout, .article-layout, .contact-grid, .dashboard-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.38fr); gap: clamp(32px,5vw,64px); align-items: start; }
.location-main-content, .event-content, .article-body { min-width: 0; }
.location-aside, .event-aside, .article-aside { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 18px; }
.content-section { padding: 34px 0; border-top: 1px solid var(--line); }
.content-section:first-child { border-top: 0; }
.content-section h2 { margin: 0 0 18px; font-size: clamp(1.8rem,3vw,2.3rem); }
.entry-content { color: var(--text); }
.entry-content > * { max-width: 100%; }
.entry-content p, .entry-content li { color: #334c62; }
.info-facts, .event-facts, .dashboard-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.info-facts > div, .event-facts > div, .dashboard-stats > div { padding: 18px; border-radius: 15px; background: var(--bg); }
.info-facts strong, .info-facts small, .event-facts strong, .event-facts small { display: block; }
.info-facts small, .event-facts small { margin-top: 4px; color: var(--muted); }
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.feature-list > * { padding: 13px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.visit-card, .portal-card, .contact-info-card, .dashboard-welcome, .profile-card, .creator-shell, .community-stats, .editorial-check { padding: 24px; border: 1px solid rgba(0,45,94,.09); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.visit-card h2, .portal-card h2 { margin: 0 0 16px; font-family: var(--body-font); font-size: 1.35rem; }
.visit-row { display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.visit-row:first-of-type { border-top: 0; }
.visit-row strong, .visit-row small { display: block; }
.visit-row small { color: var(--muted); }
.aside-map { position: relative; min-height: 280px; overflow: hidden; border-radius: 18px; background: var(--blue-soft); }
.aside-map img, .aside-map .map-canvas { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.mobile-location-bar, .mobile-event-bar { display: none; }
.event-detail-hero { position: relative; min-height: 560px; margin-top: 26px; overflow: hidden; border-radius: var(--radius-lg); }
.event-detail-hero > img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.event-detail-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 30%,rgba(0,23,49,.82)); }
.event-detail-copy { position: absolute; z-index: 2; right: 42px; bottom: 42px; left: 42px; max-width: 820px; color: #fff; }
.event-detail-copy h1 { margin: 0 0 16px; color: #fff; font-size: clamp(2.5rem,5vw,4.5rem); }
.event-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; }
.event-detail-meta span { display: inline-flex; align-items: center; gap: 7px; }
.event-date-large { display: grid; place-content: center; min-height: 130px; margin-bottom: 16px; border-radius: 16px; background: var(--blue); color: #fff; text-align: center; }
.event-date-large strong { font-size: 3rem; line-height: 1; }
.event-date-large span { margin-top: 6px; font-size: .75rem; font-weight: 850; letter-spacing: .1em; }
.article-hero { padding: clamp(52px,8vw,92px) 0 34px; background: var(--bg); }
.article-hero h1 { margin: 0 0 16px; font-size: clamp(2.6rem,5.5vw,4.8rem); }
.article-lead { color: var(--muted); font-size: 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: .86rem; }
.article-cover { margin-top: 26px; }
.article-cover img { width: 100%; max-height: 680px; border-radius: var(--radius-lg); object-fit: cover; }
.article-layout { padding-top: 48px; padding-bottom: 82px; }

/* Authentication --------------------------------------------------------- */
.auth-template { background: #fff; }
.auth-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px,4vw,52px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.auth-header > a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; }
.auth-header img { width: 190px; max-height: 52px; }
.auth-main { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0,1.08fr) minmax(430px,.92fr); }
.auth-visual { position: relative; min-height: calc(100vh - 72px); overflow: hidden; }
.auth-visual > img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,26,55,.04),rgba(0,26,55,.74)); }
.auth-visual-copy { position: absolute; z-index: 2; right: clamp(28px,5vw,70px); bottom: clamp(34px,7vw,82px); left: clamp(28px,5vw,70px); max-width: 650px; color: #fff; }
.auth-visual-copy h2 { margin: 0; color: #fff; font-size: clamp(2.3rem,4.4vw,3.8rem); }
.auth-panel { display: grid; align-content: center; padding: clamp(34px,6vw,82px); background: #fff; }
.auth-card { width: min(460px,100%); margin-inline: auto; }
.auth-card h1 { margin: 0 0 12px; font-size: clamp(2.2rem,3.6vw,3.05rem); }
.auth-subtitle { margin-bottom: 26px; color: var(--muted); }
.auth-form { display: grid; gap: 17px; }
.auth-switch { margin-top: 22px; color: var(--muted); text-align: center; }
.auth-switch a, .label-row a { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.auth-resend-card { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--bg); }

/* Forms ----------------------------------------------------------------- */
.form-stack { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field > span, .label-row { color: var(--blue); font-size: .87rem; font-weight: 800; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-field input, .form-field select, .form-field textarea, .contact-form input, .contact-form select, .contact-form textarea, .creator-form input, .creator-form select, .creator-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  box-shadow: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-field textarea, .contact-form textarea, .creator-form textarea { min-height: 128px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus, .creator-form input:focus, .creator-form select:focus, .creator-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,45,94,.08); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 52px; }
.password-field button { position: absolute; top: 50%; right: 5px; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--blue); transform: translateY(-50%); }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .9rem; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.honeypot { position: absolute !important; left: -9999px !important; }
.password-meter { display: grid; gap: 6px; }
.password-meter::before { content: ""; height: 6px; border-radius: 99px; background: var(--line); }
.password-meter small { color: var(--muted); }
.notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 14px 15px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.notice-error { background: #fff1f2; color: var(--danger); }
.notice-success { background: #ecf8f2; color: var(--success); }
.notice-warning { background: #fff8df; color: #735600; }

/* Dashboard, profile, community ----------------------------------------- */
.dashboard-welcome, .community-hero-grid { margin-top: 30px; }
.dashboard-welcome h1, .community-hero h1 { margin: 0 0 12px; }
.dashboard-stats { margin: 20px 0 34px; }
.dashboard-stats strong { display: block; color: var(--blue); font-size: 1.7rem; }
.dashboard-stats span { color: var(--muted); }
.dashboard-quick-links, .community-guideline-cards, .community-stats-section, .favorites-grid, .dashboard-recommendations { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.dashboard-quick-links a, .community-guideline-cards > *, .community-stats-section > * { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.dashboard-side-stack { display: grid; gap: 18px; }
.profile-page, .dashboard-page, .community-page, .contact-page, .creator-page { padding-bottom: 82px; }
.profile-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 32px; align-items: start; }
.profile-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.profile-nav a { padding: 10px 11px; border-radius: 9px; color: var(--blue); font-weight: 750; }
.profile-nav a:hover { background: var(--blue-soft); }
.choice-grid, .details-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.choice-card, .option-card { position: relative; min-height: 72px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--blue); font-weight: 750; cursor: pointer; }
.choice-card input, .option-card input { position: absolute; opacity: 0; }
.choice-card.is-selected, .option-card.is-selected, .choice-card:has(input:checked), .option-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }

/* Creator forms ---------------------------------------------------------- */
.creator-header { padding-bottom: 42px; }
.creator-header .container { max-width: 900px; }
.creator-shell { width: min(900px, calc(100% - var(--gutter) * 2)); margin: -28px auto 0; padding: 0; overflow: hidden; }
.creator-progress { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.creator-progress .progress-item { display: grid; place-items: center; min-height: 72px; padding: 10px; color: var(--muted); font-size: .76rem; font-weight: 800; text-align: center; }
.creator-progress .progress-item.is-active { background: #fff; color: var(--blue); }
.creator-form { padding: clamp(24px,4vw,42px); }
.creator-step { display: none; }
.creator-step.is-active { display: block; }
.creator-step > header { margin-bottom: 24px; }
.creator-step h2 { margin: 0 0 7px; font-family: var(--body-font); font-size: 1.7rem; }
.creator-step header p { color: var(--muted); }
.creator-actions, .creator-final-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.creator-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.creator-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.creator-preview > div { padding: 18px; }
.editorial-check { display: flex; gap: 13px; margin-top: 20px; background: var(--bg); box-shadow: none; }

/* Detail interactions and reviews -------------------------------------- */
.location-gallery { position: relative; }
.gallery-count {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.96);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  cursor: pointer;
}
.action-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}
.action-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.detail-table { display: grid; border-top: 1px solid var(--line); }
.detail-table > div { display: grid; grid-template-columns: minmax(150px,.35fr) minmax(0,1fr); gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-table span { color: var(--muted); }
.detail-table strong { color: var(--blue); font-weight: 750; }
.detail-table a { text-decoration: underline; text-decoration-color: rgba(0,45,94,.24); text-underline-offset: 3px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.section-heading.inline { align-items: center; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem,3vw,2.3rem); }
.empty-copy { padding: 18px; border-radius: 13px; background: var(--bg); color: var(--muted); }
.review-summary { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 30px; align-items: center; padding: 24px; border-radius: 18px; background: var(--bg); }
.review-score { display: grid; justify-items: center; gap: 7px; padding-right: 28px; border-right: 1px solid var(--line); text-align: center; }
.review-score > strong { color: var(--blue); font-size: 3.2rem; line-height: 1; }
.review-score small { color: var(--muted); }
.rating-stars { display: inline-flex; gap: 3px; color: #d89f00; }
.rating-stars .icon { width: 18px; height: 18px; }
.review-bars { display: grid; gap: 8px; }
.review-bars > div { display: grid; grid-template-columns: 68px minmax(0,1fr) 28px; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.review-bars i { height: 8px; overflow: hidden; border-radius: 99px; background: #fff; }
.review-bars i b { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.review-bars em { font-style: normal; text-align: right; }
.review-card { margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.review-card h3 { margin: 14px 0 7px; font-family: var(--body-font); font-size: 1.08rem; }
.review-card > p { color: #334c62; }
.review-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; }
.review-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-head strong, .review-head small { display: block; }
.review-head small { color: var(--muted); font-size: .78rem; }
.review-dialog, .gallery-dialog {
  position: absolute;
  top: 50%;
  right: 50%;
  bottom: auto;
  left: auto;
  width: min(660px,calc(100% - 32px));
  max-height: min(90vh,820px);
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translate(50%,-50%);
}
.review-dialog { padding: 0 24px 26px; }
.review-dialog > header, .gallery-dialog > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -24px 22px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.review-dialog h2, .gallery-dialog h2 { margin: 0; font-family: var(--body-font); font-size: 1.55rem; }
.review-form { display: grid; gap: 16px; }
.rating-choice { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.rating-choice legend { width: 100%; margin-bottom: 8px; color: var(--blue); font-size: .87rem; font-weight: 800; }
.rating-choice input { position: absolute; opacity: 0; }
.rating-choice label { color: #cbd3da; cursor: pointer; }
.rating-choice label .icon { width: 32px; height: 32px; }
.rating-choice label:hover, .rating-choice label:hover ~ label, .rating-choice label.is-active { color: var(--yellow); }
.gallery-dialog { width: min(1120px,calc(100% - 32px)); padding: 0 24px 24px; }
.gallery-dialog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.gallery-dialog-grid figure { margin: 0; overflow: hidden; border-radius: 14px; }
.gallery-dialog-grid figure.is-large { grid-column: 1 / -1; }
.gallery-dialog-grid img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.map-pin { position: absolute; display: grid; width: 42px; height: 42px; place-items: center; border: 4px solid #fff; border-radius: 50% 50% 50% 8px; background: var(--blue); color: var(--yellow); box-shadow: 0 8px 22px rgba(0,45,94,.26); transform: rotate(-45deg); }
.map-pin .icon { transform: rotate(45deg); }
.mobile-location-bar > a, .mobile-location-bar > button, .mobile-event-bar > a, .mobile-event-bar > button {
  display: inline-flex;
  min-height: 44px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
}

/* Member portal ---------------------------------------------------------- */
.portal-page { min-height: 72vh; padding: 34px 0 84px; background: var(--bg); }
.portal-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 30px; align-items: start; }
.portal-sidebar { position: sticky; top: calc(var(--header-h) + 20px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.portal-user-card { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.portal-user-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.portal-user-card strong, .portal-user-card small { display: block; }
.portal-user-card small { color: var(--muted); font-size: .78rem; }
.portal-nav { display: grid; padding: 10px; }
.portal-nav-link, .portal-logout { display: flex; min-height: 46px; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; color: var(--blue); font-size: .88rem; font-weight: 750; }
.portal-nav-link:hover, .portal-nav-link.is-active { background: var(--blue-soft); }
.portal-nav-link.is-active { box-shadow: inset 3px 0 0 var(--yellow); }
.portal-logout { margin: 0 10px 10px; color: var(--danger); }
.portal-main { min-width: 0; }
.portal-page-header, .dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.portal-page-header h1, .dashboard-welcome h1 { margin: 0 0 8px; font-size: clamp(2.2rem,4vw,3.2rem); }
.portal-page-header p, .dashboard-welcome p { max-width: 700px; color: var(--muted); }
.portal-card { padding: 24px; border: 1px solid rgba(0,45,94,.09); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.portal-card + .portal-card { margin-top: 18px; }
.portal-card > h2 { margin: 0 0 16px; font-family: var(--body-font); font-size: 1.35rem; }
.portal-card-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.portal-card-head h2 { margin: 0 0 4px; font-family: var(--body-font); font-size: 1.35rem; }
.portal-card-head p { color: var(--muted); font-size: .88rem; }
.dashboard-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.dashboard-stats > a, .dashboard-stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.dashboard-stats > * > span:first-child { grid-row: 1 / 3; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.dashboard-stats strong { font-size: 1.55rem; }
.dashboard-stats small { color: var(--muted); }
.dashboard-recommendations { display: block; }
.recommendation-list { display: grid; gap: 10px; }
.recommendation-item { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; }
.recommendation-item img { width: 68px; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.recommendation-item strong, .recommendation-item small { display: block; }
.recommendation-item small { color: var(--muted); }
.recommendation-item b { color: var(--blue); }
.dashboard-quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dashboard-quick-links a { display: grid; min-height: 94px; align-content: center; justify-items: start; gap: 8px; }
.dashboard-quick-links .icon { width: 22px; height: 22px; }
.profile-progress-card .progress, .profile-completion .progress, .progress { height: 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.profile-progress-card .progress span, .profile-completion .progress span, .progress span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.profile-progress-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.profile-progress-copy strong { color: var(--blue); font-size: 1.8rem; }
.profile-progress-card p { color: var(--muted); font-size: .86rem; }
.submission-create-links { display: flex; flex-wrap: wrap; gap: 8px; }
.submission-list { display: grid; gap: 10px; }
.submission-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; }
.submission-row img { width: 64px; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.submission-row strong { display: block; }
.submission-row span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: .7rem; font-style: normal; font-weight: 800; }
.status-publish { background: #e7f6ef; color: var(--success); }
.status-pending { background: #fff5cf; color: #755800; }
.status-draft { background: #eef1f4; color: #55687a; }
.compact-empty, .empty-state { padding: 24px; border-radius: 16px; background: var(--bg); color: var(--muted); text-align: center; }
.compact-empty .button, .empty-state .button { margin-top: 10px; }
.profile-completion { min-width: 150px; }
.profile-completion > strong, .profile-completion > span { display: block; }
.profile-completion > strong { color: var(--blue); font-size: 1.7rem; }
.profile-completion > span { color: var(--muted); font-size: .78rem; }
.profile-completion .progress { margin-top: 8px; }
.profile-section { margin-bottom: 18px; }
.profile-section-head { display: flex; align-items: start; gap: 13px; margin-bottom: 22px; }
.profile-section-head > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
.profile-section-head h2 { margin: 0 0 4px; font-family: var(--body-font); font-size: 1.35rem; }
.profile-section-head p { color: var(--muted); font-size: .88rem; }
.profile-account-grid { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 24px; align-items: start; }
.profile-avatar-box { display: grid; justify-items: center; gap: 10px; }
.profile-avatar-box img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.profile-avatar-box .button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.profile-subheading { margin: 18px 0 10px; font-family: var(--body-font); font-size: 1rem; }
.profile-choice-grid.compact { grid-template-columns: repeat(4,minmax(0,1fr)); }
.form-details { margin-top: 18px; border-top: 1px solid var(--line); }
.form-details summary { padding: 16px 0; color: var(--blue); font-weight: 800; cursor: pointer; }
.form-details > div { padding-top: 2px; }
.profile-newsletter { margin-top: 18px; }
.profile-save-bar { position: sticky; z-index: 10; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.profile-save-bar > span { color: var(--muted); font-size: .86rem; }
.profile-security-actions { margin-top: 18px; }

/* Planner and onboarding ------------------------------------------------- */
.portal-hero { padding: clamp(48px,7vw,78px) 0; background: var(--bg); }
.portal-hero > .container { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: center; gap: 40px; }
.portal-hero h1 { margin: 0 0 12px; font-size: clamp(2.4rem,4.4vw,3.6rem); }
.portal-hero-copy > p:not(.eyebrow) { max-width: 700px; color: var(--muted); }
.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.planner-summary-card { display: grid; justify-items: center; gap: 8px; padding: 26px; border-radius: 20px; background: var(--blue); color: #fff; text-align: center; box-shadow: var(--shadow); }
.planner-summary-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue); }
.planner-summary-icon .icon { width: 28px; height: 28px; }
.planner-summary-card small { color: rgba(255,255,255,.72); }
.wizard-page-body { min-height: 100vh; background: var(--bg); }
.wizard-page { min-height: 100vh; }
.wizard-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); }
.wizard-aside { display: grid; align-content: space-between; padding: clamp(28px,5vw,62px); background: var(--blue); color: #fff; }
.wizard-brand img { width: 190px; filter: brightness(0) invert(1); }
.wizard-aside h1 { margin: 0 0 14px; color: #fff; font-size: clamp(2.3rem,4vw,3.5rem); }
.wizard-aside > div > p:last-child { color: rgba(255,255,255,.74); }
.wizard-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.wizard-progress .progress-item { height: 6px; border-radius: 99px; background: rgba(255,255,255,.22); }
.wizard-progress .progress-item.is-active, .wizard-progress .progress-item.is-complete { background: var(--yellow); }
.wizard-panel { display: grid; align-content: center; padding: clamp(28px,7vw,88px); background: #fff; }
.wizard-panel > header { position: absolute; top: 24px; right: clamp(28px,5vw,60px); left: calc(36% + 28px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; }
.wizard-step { display: none; width: min(760px,100%); margin-inline: auto; }
.wizard-step.is-active { display: block; }
.wizard-step h2 { margin: 0 0 10px; font-family: var(--body-font); font-size: clamp(1.8rem,3vw,2.4rem); }
.wizard-step > p:not(.step-kicker) { margin-bottom: 24px; color: var(--muted); }
.step-kicker { margin-bottom: 8px; color: var(--blue); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.choice-card small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; font-weight: 500; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.radius-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.radius-options .choice-card { display: grid; place-items: center; min-height: 96px; text-align: center; }

/* Creator supplements ---------------------------------------------------- */
.creator-choice-section { margin-top: 20px; }
.creator-choice-section h3 { margin: 0 0 10px; font-family: var(--body-font); font-size: 1rem; }
.creator-map { min-height: 260px; margin-top: 16px; overflow: hidden; border-radius: 16px; background: var(--blue-soft); }
.creator-map img, .creator-map .map-canvas { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.creator-final-fields { display: grid; gap: 18px; }
.upload-field { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 18px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--bg); color: var(--blue); text-align: center; cursor: pointer; }
.upload-field > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--blue-soft); }
.upload-field small { color: var(--muted); }
.upload-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.creator-remove-image { margin: 12px 0; }
.autosave { color: var(--muted); font-size: .8rem; }
.creator-actions > div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.editorial-check > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.editorial-check strong { display: block; color: var(--blue); }
.editorial-check p { margin-top: 4px; color: var(--muted); font-size: .86rem; }

/* Simple, contact, community and 404 pages ------------------------------- */
.simple-page-hero { padding: clamp(48px,7vw,78px) 0; background: var(--bg); }
.simple-page-hero h1 { margin: 0 0 12px; font-size: clamp(2.35rem,4.5vw,3.65rem); }
.simple-page-hero p, .archive-description { max-width: 760px; color: var(--muted); }
.page-search-form { display: flex; max-width: 720px; min-height: 56px; align-items: center; gap: 10px; margin-top: 22px; padding: 5px 5px 5px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.page-search-form input { min-width: 0; flex: 1; border: 0; outline: 0; }
.contact-form > header { margin-bottom: 20px; }
.contact-form > header h2 { margin: 0 0 5px; font-family: var(--body-font); font-size: 1.35rem; }
.contact-form > header p { color: var(--muted); }
.form-field.full { grid-column: 1 / -1; }
.contact-consent { margin: 18px 0; }
.contact-aside { display: grid; gap: 16px; }
.contact-info-card { padding: 22px; }
.contact-info-card.is-blue { background: var(--blue); color: #fff; }
.contact-info-card.is-blue h2, .contact-info-card.is-blue a { color: #fff; }
.contact-info-card.is-blue p { color: rgba(255,255,255,.76); }
.contact-info-card > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--yellow); color: var(--blue); }
.contact-info-card a { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-weight: 750; }
.community-grid, .community-guidelines-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.community-guidelines-section { padding: 54px 0; background: var(--bg); }
.community-guidelines-grid > * { padding: 20px; border-radius: 16px; background: #fff; }
.not-found-page { display: grid; min-height: calc(100vh - var(--header-h)); align-items: center; padding: 54px 0; background: var(--bg); }
.not-found-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr); align-items: center; gap: clamp(40px,7vw,90px); }
.not-found-grid h1 { margin: 0 0 14px; font-size: clamp(2.6rem,5vw,4.2rem); }
.not-found-grid > div > p:not(.eyebrow) { color: var(--muted); }
.not-found-grid img { width: 100%; max-height: 520px; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ofn-turnstile-wrap { margin: 4px 0; }


/* WordPress compatibility and remaining portal surfaces ---------------- */
.simple-page { background: #fff; }
.header-search-button { flex: 0 0 auto; }
.coast-standard-card { min-width: 0; }
.hero-label { display: inline-flex; margin: 0 0 10px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--blue); font-size: .73rem; font-weight: 850; }
.planner-results-page { background: #fff; }
.portal-hero-compact { padding-block: clamp(42px,6vw,68px); }
.profile-form { display: grid; gap: 18px; }
.profile-page-header { margin-bottom: 24px; }
.profile-details { border-bottom: 1px solid var(--line); }
.profile-security { margin-top: 18px; }
.search-grid { margin-top: 0; }
.submissions-card { margin-top: 18px; }
.wizard-form-grid { align-items: end; }
.coast-event-mobile-toolbar { display: none; }
.radius-options-inline label { position: relative; display: block; cursor: pointer; }
.radius-options-inline input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radius-options-inline label > span { display: grid; min-height: 74px; place-items: center; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--blue); text-align: center; transition: border-color .18s, background .18s, box-shadow .18s; }
.radius-options-inline input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.radius-options-inline input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Filters and modal panels ---------------------------------------------- */
.filter-panel, .mobile-map-panel, .review-overlay > div, .gallery-dialog { position: absolute; right: 0; bottom: 0; left: 0; max-height: min(92vh,820px); overflow-y: auto; border-radius: 24px 24px 0 0; background: #fff; box-shadow: var(--shadow); }
.filter-panel { width: min(760px,100%); margin-left: auto; border-radius: 24px 0 0 24px; top: 0; max-height: none; }
.filter-panel > header, .mobile-map-panel > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.filter-panel h2 { margin: 0; font-family: var(--body-font); font-size: 1.6rem; }
.filter-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 24px; }
.form-field-wide { grid-column: 1 / -1; }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.mobile-map-panel { top: 0; max-height: none; border-radius: 0; }
.mobile-map-canvas { position: relative; height: calc(100vh - 72px); background: var(--blue-soft); }
.mobile-map-canvas > img, .mobile-map-canvas .map-canvas { width: 100%; height: 100%; object-fit: cover; }
.mobile-map-card { position: absolute; right: 16px; bottom: 18px; left: 16px; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.mobile-map-card img { width: 88px; aspect-ratio: 4/3; border-radius: 10px; object-fit: cover; }
.mobile-map-card small, .mobile-map-card strong { display: block; }
.mobile-map-card small { color: var(--muted); }

/* Footer ---------------------------------------------------------------- */
.site-footer { padding: 58px 0 28px; background: var(--blue); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3,1fr); gap: 48px; }
.footer-brand img { width: 190px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 360px; color: rgba(255,255,255,.72); }
.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-col strong { margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.74); font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.62); font-size: .8rem; }

/* Pagination and comments ----------------------------------------------- */
.pagination, .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 34px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); font-weight: 800; }
.page-numbers.current, .page-numbers:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.comments-area { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--line); }
.comment-list { display: grid; gap: 16px; padding: 0; list-style: none; }
.comment-list li { padding: 18px; border: 1px solid var(--line); border-radius: 15px; }

/* Toast ----------------------------------------------------------------- */
.toast-region { position: fixed; z-index: 5000; right: 18px; bottom: 18px; display: grid; gap: 9px; pointer-events: none; }
.toast { max-width: 360px; padding: 13px 16px; border-radius: 12px; background: var(--blue); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--danger); }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1120px) {
  .portal-layout { grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
  .profile-choice-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .wizard-shell { grid-template-columns: minmax(280px,.62fr) minmax(0,1.38fr); }
  .desktop-nav { display: none; }
  .desktop-actions .header-plan-button { display: none; }
  .coast-explore-photo { right: 130px; }
  .coast-explore-panel { width: 52%; }
  .coast-quick-grid { grid-template-columns: repeat(3,1fr); }
  .coast-quick-card:nth-child(n+4) { display: none; }
  .coast-results-layout { grid-template-columns: 1fr; }
  .coast-map-card { display: none; }
  .coast-results-grid { grid-template-columns: repeat(2,1fr); }
  .coast-trip-search { grid-template-columns: minmax(280px,1.5fr) 1fr auto; }
  .coast-trip-search > label:nth-of-type(3) { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .review-dialog, .gallery-dialog { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; transform: none; }
  .gallery-dialog-grid { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; gap: 20px; }
  .review-score { justify-items: start; padding-right: 0; padding-bottom: 18px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .detail-table > div { grid-template-columns: 1fr; gap: 5px; }
  .section-heading { align-items: flex-start; }
  .portal-page { padding-top: 18px; }
  .portal-layout { display: block; }
  .portal-sidebar { position: static; margin-bottom: 18px; }
  .portal-user-card { padding: 14px; }
  .portal-nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .portal-nav::-webkit-scrollbar { display: none; }
  .portal-nav-link { min-height: 42px; flex: 0 0 auto; white-space: nowrap; }
  .portal-logout { display: none; }
  .portal-page-header, .dashboard-welcome { align-items: flex-start; flex-direction: column; }
  .portal-page-header h1, .dashboard-welcome h1 { font-size: 2.15rem; }
  .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-account-grid { grid-template-columns: 1fr; }
  .profile-avatar-box { justify-items: start; }
  .profile-choice-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-save-bar { bottom: 8px; align-items: stretch; flex-direction: column; }
  .portal-hero > .container { grid-template-columns: 1fr; }
  .planner-summary-card { justify-items: start; text-align: left; }
  .wizard-shell { min-height: 100vh; grid-template-columns: 1fr; }
  .wizard-aside { min-height: auto; padding: 18px 18px 20px; gap: 18px; }
  .wizard-aside > div:nth-child(2) { display: none; }
  .wizard-brand img { width: 164px; }
  .wizard-progress { margin-top: 2px; }
  .wizard-panel { position: relative; min-height: 0; align-content: start; padding: 72px 18px 32px; }
  .wizard-panel > header { top: 20px; right: 18px; left: 18px; }
  .wizard-actions { position: sticky; z-index: 4; bottom: 0; margin: 24px -18px -32px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; }
  .creator-actions > div { width: 100%; }
  .not-found-grid { grid-template-columns: 1fr; }
  .not-found-grid img { order: -1; max-height: 280px; }
  .community-grid, .community-guidelines-grid { grid-template-columns: 1fr; }
  .contact-aside { margin-top: 0; }
  .simple-page-hero h1 { font-size: 2.2rem; }
  .page-search-form { flex-wrap: wrap; }
  .coast-event-mobile-toolbar { display: grid; }
  .container, .container-wide, .content-container { width: min(100% - 32px, var(--container)); }
  .header-inner { min-height: 64px; gap: 8px; }
  .brand img { width: 154px; }
  .desktop-actions { display: none; }
  .mobile-only { display: flex; margin-left: auto; }
  .header-actions .icon-button { width: 40px; height: 40px; }

  .search-dialog { padding: 14px 14px 28px; }
  .search-suggestions { grid-template-columns: 1fr; gap: 24px; }
  .search-form { min-height: 52px; }
  .search-tile { grid-template-columns: 64px 1fr auto; }
  .search-tile img { width: 64px; }

  .coast-home-hero { padding: 0 0 72px; background: var(--bg); }
  .coast-home-stage { min-height: 0; width: 100%; }
  .coast-home-photo { position: relative; inset: auto; height: 410px; border-radius: 0; box-shadow: none; }
  .coast-home-shade { background: linear-gradient(180deg,rgba(0,25,54,.03),rgba(0,25,54,.74)); }
  .coast-home-copy { left: 18px; right: 18px; bottom: 104px; }
  .coast-home-copy h1 { font-size: 2.55rem; }
  .coast-home-copy > p:last-child { font-size: .96rem; }
  .coast-trip-search { position: relative; right: auto; bottom: auto; left: auto; grid-template-columns: 1fr auto; width: calc(100% - 32px); margin: -64px auto 0; padding: 8px; border-radius: 17px; }
  .coast-trip-search > label { display: none; }
  .coast-trip-search > label:first-child { display: grid; border: 0; padding: 5px 10px; }
  .coast-trip-search .button { min-width: 52px; width: 52px; padding: 0; font-size: 0; }
  .coast-trip-search .button .icon { width: 20px; height: 20px; }

  .coast-home-section { padding: 50px 0; }
  .coast-section-head { margin-bottom: 18px; }
  .coast-section-head h2 { font-size: 2rem; }
  .coast-mood-grid { display: flex; overflow-x: auto; gap: 12px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .coast-mood-grid::-webkit-scrollbar { display: none; }
  .coast-mood-card { min-width: 190px; min-height: 150px; flex: 0 0 190px; }
  .coast-card-grid, .travel-card-grid, .event-grid, .magazine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coast-weekend-layout { grid-template-columns: 1fr; gap: 34px; }
  .coast-planner-card { grid-template-columns: 1fr; }
  .coast-planner-card > img { max-height: 300px; order: -1; }

  .coast-explore-hero { padding: 0 0 44px; background: var(--bg); }
  .coast-explore-stage { min-height: 0; width: 100%; }
  .coast-explore-photo { position: relative; inset: auto; height: 270px; border-radius: 0; box-shadow: none; }
  .coast-explore-photo::after { background: linear-gradient(180deg,rgba(0,26,54,.03),rgba(0,26,54,.25)); }
  .coast-explore-panel { position: relative; right: auto; bottom: auto; width: auto; margin: -38px 16px 0; padding: 25px 20px 22px; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,45,94,.14); }
  .coast-explore-panel h1 { font-size: 2.1rem; }
  .coast-explore-panel > p:not(.kicker) { margin-bottom: 18px; font-size: .94rem; }
  .coast-hero-search { height: 54px; }
  .coast-hero-links { display: none; }
  .coast-quick-section { padding: 38px 0 34px; }
  .coast-quick-grid { display: flex; overflow-x: auto; gap: 12px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .coast-quick-grid::-webkit-scrollbar { display: none; }
  .coast-quick-card, .coast-quick-card:nth-child(n) { display: block; min-width: 160px; min-height: 126px; flex: 0 0 160px; }
  .coast-event-hero { padding: 0 0 44px; background: var(--bg); }
  .coast-event-stage { min-height: 0; width: 100%; }
  .coast-event-photo { position: relative; inset: auto; height: 270px; border-radius: 0; box-shadow: none; }
  .coast-event-panel { position: relative; right: auto; bottom: auto; width: auto; margin: -38px 16px 0; padding: 25px 20px 22px; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,45,94,.14); }
  .coast-event-panel h1 { font-size: 2.1rem; }
  .coast-event-panel > p:not(.kicker) { margin-bottom: 18px; font-size: .94rem; }
  .coast-period-section { padding: 38px 0 34px; }
  .coast-period-grid { display: flex; overflow-x: auto; gap: 12px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .coast-period-grid::-webkit-scrollbar { display: none; }
  .coast-period-card { min-width: 160px; min-height: 126px; flex: 0 0 160px; }
  .coast-results-section { padding: 34px 0 70px; }
  .coast-results-toolbar { align-items: start; margin-bottom: 13px; }
  .coast-results-title strong { font-size: 1.2rem; }
  .coast-toolbar-actions { display: none; }
  .coast-mobile-toolbar { position: sticky; z-index: 20; top: var(--header-h); display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0 -16px 18px; padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
  .coast-mobile-toolbar button, .coast-mobile-toolbar a { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; color: var(--blue); font-size: .83rem; font-weight: 800; text-align: center; }
  .coast-mobile-toolbar .is-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
  .coast-mobile-toolbar b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue); font-size: .68rem; }
  .coast-results-grid { grid-template-columns: 1fr; gap: 17px; }
  .coast-place-card { border-radius: 16px; }
  .coast-place-media { aspect-ratio: 16/9; }
  .coast-place-body { padding: 15px 16px 17px; }
  .coast-place-card h2 { font-size: 1.18rem; }
  .coast-place-body > p { font-size: .82rem; }
  .coast-empty-wrap { grid-template-columns: 1fr; }
  .coast-empty-wrap > img { min-height: 220px; max-height: 250px; }
  .coast-empty-copy { padding: 28px 22px 30px; }
  .coast-empty-copy h2 { font-size: 1.75rem; }
  .coast-empty-copy > p:not(.kicker) { font-size: .9rem; }
  .coast-empty-actions { display: grid; }
  .coast-empty-actions .button { width: 100%; }
  .coast-empty-ideas { margin-top: 34px; }
  .coast-empty-ideas > h2 { font-size: 1.8rem; }
  .coast-idea-grid { display: flex; overflow-x: auto; gap: 13px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .coast-idea-grid::-webkit-scrollbar { display: none; }
  .coast-idea-card { min-width: 230px; flex: 0 0 230px; }

  .archive-hero-inner, .magazine-hero-grid, .community-hero-grid, .location-intro, .location-layout, .event-detail-layout, .article-layout, .contact-grid, .dashboard-columns, .profile-layout { grid-template-columns: 1fr; }
  .location-gallery { grid-template-columns: 1fr; }
  .gallery-main { min-height: 340px; }
  .gallery-side { display: none; }
  .location-aside, .event-aside, .article-aside, .profile-nav { position: static; }
  .info-facts, .event-facts, .dashboard-stats { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .mobile-location-bar, .mobile-event-bar { position: sticky; z-index: 30; bottom: 0; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); backdrop-filter: blur(14px); }
  .mobile-location-bar .button, .mobile-event-bar .button { flex: 1; }
  .event-detail-hero { min-height: 440px; margin-top: 0; border-radius: 0; }
  .event-detail-hero > img { min-height: 440px; }
  .event-detail-copy { right: 20px; bottom: 26px; left: 20px; }
  .event-detail-copy h1 { font-size: 2.4rem; }

  .auth-header { min-height: 64px; padding: 8px 16px; }
  .auth-header img { width: 158px; }
  .auth-header > a:last-child { font-size: .82rem; }
  .auth-main { min-height: calc(100vh - 64px); grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { align-content: start; padding: 34px 18px 52px; }
  .auth-card h1 { font-size: 2.05rem; }

  .form-grid, .filter-form, .choice-grid, .details-choice-grid { grid-template-columns: 1fr; }
  .form-field-wide, .filter-actions { grid-column: auto; }
  .filter-panel { top: auto; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .filter-actions { position: sticky; bottom: 0; margin: 0 -24px -24px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .creator-shell { width: calc(100% - 24px); margin-top: -20px; }
  .creator-progress { display: flex; overflow-x: auto; }
  .creator-progress .progress-item { min-width: 132px; flex: 0 0 132px; }
  .creator-form { padding: 22px 18px 28px; }
  .creator-actions, .creator-final-actions { position: sticky; z-index: 4; bottom: 0; margin: 26px -18px -28px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col { display: none; }
  .footer-bottom { display: grid; }
  .site-footer { padding-top: 42px; }
}

@media (max-width: 560px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .profile-choice-grid.compact { grid-template-columns: 1fr; }
  .submission-row { grid-template-columns: 54px minmax(0,1fr); }
  .submission-row > .button { grid-column: 1 / -1; width: 100%; }
  .review-head { grid-template-columns: 40px minmax(0,1fr); }
  .review-head .rating-stars { grid-column: 1 / -1; }
  .not-found-grid h1 { font-size: 2.25rem; }
  .page-search-form .button { width: 100%; }
  .creator-actions, .creator-final-actions { align-items: stretch; flex-direction: column; }
  .creator-actions > div { display: grid; }
  .creator-actions .button, .creator-final-actions .button { width: 100%; }
  .wizard-actions .button { min-width: 112px; }
  .radius-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coast-home-photo { height: 380px; }
  .coast-home-copy { bottom: 100px; }
  .coast-home-copy h1 { font-size: 2.25rem; }
  .coast-section-head h2 { font-size: 1.8rem; }
  .coast-card-grid, .travel-card-grid, .event-grid, .magazine-grid { grid-template-columns: 1fr; }
  .coast-explore-photo { height: 248px; }
  .coast-explore-panel h1 { font-size: 2rem; }
  .coast-quick-card, .coast-quick-card:nth-child(n) { min-width: 155px; min-height: 124px; flex-basis: 155px; }
  .coast-event-photo { height: 248px; }
  .coast-event-panel h1 { font-size: 2rem; }
  .coast-period-card { min-width: 155px; min-height: 124px; flex-basis: 155px; }
  .coast-place-card h2 { font-size: 1.15rem; }
  .coast-place-meta { font-size: .76rem; }
  .coast-place-facts { font-size: .72rem; }
  .coast-mobile-toolbar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .coast-mobile-toolbar button, .coast-mobile-toolbar a, .coast-mobile-sort-form select { font-size: .78rem; }
  .coast-empty-copy h2 { font-size: 1.62rem; }
  .location-title h1, .archive-hero h1, .magazine-hero h1, .community-hero h1, .creator-header h1 { font-size: 2.2rem; }
  .article-hero h1 { font-size: 2.45rem; }
  .article-lead { font-size: 1rem; }
  .event-detail-copy h1 { font-size: 2.1rem; }
  .event-row { grid-template-columns: 58px 1fr auto; gap: 12px; }
  .event-row time { width: 52px; height: 56px; }
  .event-row time strong { font-size: 1.35rem; }
  .creator-progress .progress-item { min-width: 120px; flex-basis: 120px; }
}
