.beach-page {
  --beach-navy: #103b58;
  --beach-blue: #0c6380;
  --beach-sky: #178eaa;
  --beach-aqua: #56c7c4;
  --beach-foam: #eefbfa;
  --beach-sand: #f6ebd2;
  --beach-ink: #163447;
  --beach-muted: #59717f;
  --beach-border: rgba(20, 87, 112, .16);
  --beach-shadow: 0 16px 38px rgba(15, 65, 88, .12);
  color: var(--beach-ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(86, 199, 196, .2), transparent 32rem),
    radial-gradient(circle at 6% 18%, rgba(246, 235, 210, .75), transparent 30rem),
    linear-gradient(160deg, #eff8fb 0%, #f9fcfc 46%, #f8f0df 100%);
}

.beach-page .page-shell { width: min(calc(100% - 28px), 1480px); }
.beach-page main { display: grid; gap: 22px; }
.beach-page a { color: #075b7a; }
.beach-page button:focus-visible,
.beach-page input:focus-visible,
.beach-page select:focus-visible,
.beach-page a:focus-visible { outline: 3px solid rgba(12, 99, 128, .32); outline-offset: 3px; }

.breadcrumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--beach-muted); font-size: .88rem; }
.breadcrumbs a { font-weight: 800; text-decoration: none; }

.beach-hero { position: relative; min-height: clamp(330px, 48vw, 590px); overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 26px; box-shadow: var(--beach-shadow); background: var(--beach-navy); isolation: isolate; }
.beach-hero-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.beach-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,37,66,.9) 0%, rgba(7,52,82,.68) 39%, rgba(5,46,69,.16) 72%, rgba(5,46,69,.04) 100%); }
.beach-hero-copy { position: relative; z-index: 2; display: grid; align-content: center; width: min(620px, 72%); min-height: inherit; padding: clamp(28px, 6vw, 78px); color: #fff; text-shadow: 0 3px 18px rgba(0,24,45,.3); }
.beach-hero-copy .eyebrow { margin: 0 0 12px; color: #c9fbf5; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.beach-hero-copy h1 { margin: 0; font-size: clamp(2.45rem, 7vw, 6.1rem); line-height: .96; letter-spacing: -.045em; }
.beach-hero-copy p:last-child { max-width: 560px; margin: 22px 0 0; font-size: clamp(1rem, 2vw, 1.32rem); line-height: 1.58; font-weight: 650; }

.beach-page-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; }
.beach-page-nav a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid rgba(12,99,128,.2); border-radius: 999px; background: rgba(255,255,255,.84); color: var(--beach-navy); font-weight: 850; text-decoration: none; box-shadow: 0 6px 16px rgba(21,72,94,.06); }
.beach-page-nav a:hover,
.beach-page-nav a.is-current { background: var(--beach-blue); border-color: var(--beach-blue); color: #fff; }

.beach-intro,
.beach-controls,
.beach-summary-card,
.beach-browser,
.beach-detail,
.beach-guide,
.beach-index,
.beach-sources { border: 1px solid var(--beach-border); border-radius: 22px; background: rgba(255,255,255,.93); box-shadow: var(--beach-shadow); }
.beach-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; align-items: center; padding: clamp(22px, 4vw, 38px); }
.beach-kicker,
.beach-detail-kicker { margin: 0 0 8px; color: var(--beach-blue); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.beach-intro h2,
.beach-guide h2,
.beach-index h2,
.beach-sources h2 { margin: 0; color: var(--beach-navy); font-size: clamp(1.55rem, 3vw, 2.25rem); }
.beach-intro div > p:last-child,
.beach-index p { margin: 12px 0 0; color: var(--beach-muted); line-height: 1.72; }
.beach-alert { margin: 0; padding: 18px 20px; border: 1px solid rgba(179, 108, 36, .24); border-radius: 16px; background: #fff7e5; color: #674316; line-height: 1.62; }

.beach-controls { padding: 18px; }
.beach-controls-grid { display: grid; grid-template-columns: minmax(240px, 1.5fr) minmax(200px, 1fr) auto auto; gap: 12px; align-items: end; }
.beach-control { display: grid; gap: 7px; color: var(--beach-navy); font-size: .84rem; font-weight: 850; }
.beach-control input,
.beach-control select,
.beach-forecast-head select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid rgba(12,99,128,.24); border-radius: 12px; background: #fff; color: var(--beach-ink); }
.beach-action { min-height: 46px; padding: 0 17px; border: 1px solid var(--beach-blue); border-radius: 12px; background: var(--beach-blue); color: #fff; font-weight: 900; }
.beach-action:hover { background: #084e69; }
.beach-action-secondary { background: #fff; color: var(--beach-blue); }
.beach-action-secondary[aria-pressed="true"] { background: #fff1b9; border-color: #b7841f; color: #694900; }
.beach-action:disabled { cursor: not-allowed; opacity: .55; }
.beach-status { margin: 12px 2px 0; color: var(--beach-muted); font-size: .9rem; line-height: 1.5; }
.beach-status[data-tone="loading"]::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: 8px; border: 2px solid rgba(12,99,128,.25); border-top-color: var(--beach-blue); border-radius: 50%; animation: beach-spin .8s linear infinite; }
.beach-status[data-tone="error"] { color: #9e3542; font-weight: 800; }

.beach-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.beach-summary-card { min-width: 0; padding: 17px; }
.beach-summary-card span { display: block; color: var(--beach-muted); font-size: .85rem; font-weight: 700; }
.beach-summary-card strong { display: block; margin-top: 9px; color: var(--beach-navy); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.1; overflow-wrap: anywhere; }
.beach-summary-card small { display: block; min-height: 2.6em; margin-top: 8px; color: var(--beach-muted); line-height: 1.35; }
.beach-score-card { background: linear-gradient(145deg, rgba(213,249,244,.96), rgba(255,255,255,.96)); }
.beach-score-card strong { color: var(--score-color, var(--beach-blue)); }
.beach-place-value { font-size: clamp(1.05rem, 2vw, 1.45rem) !important; }

.beach-workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.beach-browser { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: hidden; }
.beach-browser-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 12px; border-bottom: 1px solid var(--beach-border); }
.beach-browser-head h2 { margin: 0; color: var(--beach-navy); font-size: 1.25rem; }
.beach-count { display: inline-grid; min-width: 34px; height: 34px; place-items: center; border-radius: 99px; background: var(--beach-foam); color: var(--beach-blue); font-weight: 900; }
.beach-list { display: grid; gap: 8px; max-height: calc(100vh - 98px); overflow: auto; padding: 12px; scrollbar-width: thin; }
.beach-list > p { margin: 8px; color: var(--beach-muted); line-height: 1.5; }
.beach-list-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; width: 100%; padding: 12px; border: 1px solid var(--beach-border); border-radius: 14px; background: #fff; color: var(--beach-ink); text-align: left; }
.beach-list-card strong { overflow-wrap: anywhere; }
.beach-list-card small { grid-column: 1; color: var(--beach-muted); }
.beach-list-card > span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--beach-blue); font-weight: 900; }
.beach-list-card:hover,
.beach-list-card.is-selected { border-color: var(--beach-blue); background: var(--beach-foam); transform: translateY(-1px); }

.beach-detail { min-width: 0; overflow: hidden; padding: clamp(18px, 3vw, 28px); }
.beach-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.beach-detail-head h2 { margin: 0; color: var(--beach-navy); font-size: clamp(1.7rem, 4vw, 2.65rem); }
.beach-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.beach-detail-tags span { padding: 6px 10px; border-radius: 999px; background: var(--beach-foam); color: var(--beach-blue); font-size: .78rem; font-weight: 850; }
.beach-coordinates { padding: 7px 10px; border-radius: 10px; background: #edf5f8; color: var(--beach-muted); font-size: .8rem; white-space: nowrap; }
.beach-detail-description { margin: 16px 0 0; color: var(--beach-muted); font-size: 1.02rem; line-height: 1.7; }
.beach-access-note { margin: 12px 0 0; padding: 12px 14px; border-left: 4px solid #d2a14c; border-radius: 0 12px 12px 0; background: #fff8e9; color: #694b19; line-height: 1.55; }
.beach-access-note:empty { display: none; }

.beach-map-shell { position: relative; min-height: 520px; margin-top: 20px; overflow: hidden; border: 1px solid var(--beach-border); border-radius: 18px; background: #cfe6ea; }
.beach-map { width: 100%; min-height: 520px; }
.beach-map-fullscreen { position: absolute; top: 12px; right: 12px; z-index: 800; display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid #fff; border-radius: 13px; background: var(--beach-blue); color: #fff; font-size: 1.35rem; font-weight: 900; box-shadow: 0 7px 20px rgba(0,40,60,.25); }
.beach-map-hint,
.beach-map-message { position: absolute; z-index: 700; margin: 0; border: 1px solid rgba(14,70,94,.16); background: rgba(255,255,255,.93); color: var(--beach-ink); box-shadow: 0 7px 20px rgba(0,40,60,.12); }
.beach-map-hint { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 999px; font-size: .8rem; }
.beach-map-message { inset: 50% auto auto 50%; transform: translate(-50%,-50%); padding: 12px 16px; border-radius: 13px; font-weight: 800; }
.beach-map-shell:fullscreen,
.beach-map-shell.is-pseudo-fullscreen { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
.beach-map-shell:fullscreen .beach-map,
.beach-map-shell.is-pseudo-fullscreen .beach-map { min-height: 100dvh; height: 100dvh; }
body.beach-map-open { overflow: hidden; }
.beach-marker-icon { border: 0; background: transparent; }
.beach-marker-pin { display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 12%; background: var(--beach-blue); color: #fff; font-size: 1rem; box-shadow: 0 5px 14px rgba(0,40,60,.34); transform: rotate(-45deg); }
.beach-marker-pin span { transform: rotate(45deg); }
.beach-marker-icon.is-selected .beach-marker-pin { width: 40px; height: 40px; background: #f2a93b; color: #15384d; box-shadow: 0 0 0 4px rgba(255,255,255,.75), 0 7px 18px rgba(0,40,60,.4); }
.beach-popup { display: grid; gap: 5px; min-width: 150px; }
.beach-popup strong { color: var(--beach-navy); }
.beach-popup span { color: var(--beach-muted); font-size: .86rem; }

.beach-forecast-head,
.beach-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 26px; }
.beach-forecast-head h3,
.beach-section-head h3 { margin: 0; color: var(--beach-navy); font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
.beach-forecast-head label { display: grid; gap: 5px; min-width: 190px; color: var(--beach-muted); font-size: .8rem; font-weight: 800; }
.beach-day-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(145px, 1fr); gap: 10px; margin-top: 14px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
.beach-day-card { display: grid; gap: 7px; min-height: 148px; padding: 13px; border: 1px solid var(--beach-border); border-radius: 15px; background: #fff; color: var(--beach-ink); text-align: left; }
.beach-day-card:hover,
.beach-day-card.is-selected { border-color: var(--beach-blue); background: var(--beach-foam); box-shadow: inset 0 -4px 0 var(--beach-blue); }
.beach-day-card .day-name { color: var(--beach-muted); font-size: .82rem; font-weight: 800; }
.beach-day-card .day-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.beach-day-card .day-icon { font-size: 1.45rem; }
.beach-day-card .day-score { font-size: 1.35rem; color: var(--score-color, var(--beach-blue)); }
.beach-day-card small { color: var(--beach-muted); line-height: 1.35; }

.beach-assessment { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 20px; align-items: start; margin-top: 20px; padding: clamp(18px,3vw,26px); border: 1px solid var(--beach-border); border-radius: 18px; background: linear-gradient(140deg, var(--beach-foam), #fff 58%); }
.beach-assessment > p { grid-column: 1/-1; margin: 0; color: var(--beach-muted); }
.beach-assessment-score { display: grid; width: 104px; height: 104px; place-content: center; border: 9px solid color-mix(in srgb, var(--score-color) calc(var(--score) * 1%), #dce8eb); border-radius: 50%; background: #fff; color: var(--score-color); text-align: center; box-shadow: 0 8px 18px rgba(12,75,95,.12); }
.beach-assessment-score strong { font-size: 2rem; line-height: 1; }
.beach-assessment-score small { color: var(--beach-muted); }
.beach-assessment h3 { margin: 0; color: var(--beach-navy); font-size: 1.45rem; }
.beach-assessment p { margin: 9px 0 0; color: var(--beach-muted); line-height: 1.62; }
.beach-assessment ul { margin: 12px 0 0; padding-left: 19px; color: var(--beach-muted); line-height: 1.55; }
.beach-wind-badge { display: inline-flex; align-items: center; margin-top: 10px; padding: 7px 10px; border-radius: 999px; background: #e8f4f6; color: #075b7a; font-weight: 850; }

.beach-section-head > span,
.beach-section-head > small { max-width: 50%; color: var(--beach-muted); font-size: .84rem; line-height: 1.4; text-align: right; }
.beach-window-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.beach-window-card { padding: 14px; border: 1px solid var(--beach-border); border-radius: 14px; background: #fff; }
.beach-window-card strong { display: block; color: var(--score-color,var(--beach-blue)); font-size: 1.3rem; }
.beach-window-card span,
.beach-window-card small { display: block; margin-top: 5px; color: var(--beach-muted); line-height: 1.4; }

.beach-hourly-scroll { margin-top: 12px; overflow-x: auto; border: 1px solid var(--beach-border); border-radius: 15px; scrollbar-width: thin; }
.beach-hourly table { width: 100%; min-width: 920px; border-collapse: collapse; background: #fff; }
.beach-hourly th,
.beach-hourly td { padding: 11px 12px; border-bottom: 1px solid rgba(12,99,128,.1); text-align: left; vertical-align: top; white-space: nowrap; }
.beach-hourly th { position: sticky; top: 0; z-index: 1; background: #eaf7f8; color: var(--beach-navy); font-size: .8rem; }
.beach-hourly td { color: var(--beach-ink); font-size: .88rem; }
.beach-hourly td small { color: var(--beach-muted); }
.beach-hourly tr:last-child td { border-bottom: 0; }
.hour-score { display: inline-flex; min-width: 48px; justify-content: center; padding: 5px 7px; border-radius: 99px; background: color-mix(in srgb, var(--score-color) 14%, white); color: var(--score-color); font-weight: 900; }

.beach-guide,
.beach-index,
.beach-sources { padding: clamp(22px,4vw,36px); }
.beach-guide-grid,
.beach-source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.beach-guide article,
.beach-source-grid article { padding: 17px; border: 1px solid var(--beach-border); border-radius: 15px; background: #fff; }
.beach-guide h3,
.beach-source-grid h3 { margin: 0; color: var(--beach-navy); font-size: 1.05rem; }
.beach-guide p,
.beach-source-grid p { margin: 9px 0 0; color: var(--beach-muted); line-height: 1.62; }
.beach-source-grid a { font-weight: 800; }

@keyframes beach-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .beach-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .beach-controls-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .beach-workspace { grid-template-columns: 280px minmax(0,1fr); }
}

@media (max-width: 900px) {
  .beach-intro,
  .beach-workspace { grid-template-columns: 1fr; }
  .beach-browser { position: static; max-height: none; }
  .beach-list { grid-auto-flow: column; grid-auto-columns: minmax(210px,70vw); max-height: none; overflow-x: auto; overflow-y: hidden; }
  .beach-guide-grid,
  .beach-source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 660px) {
  .beach-page .page-shell { width: min(calc(100% - 16px), 1480px); padding-top: 14px; }
  .beach-hero { min-height: 390px; border-radius: 19px; }
  .beach-hero-banner { object-position: 63% center; }
  .beach-hero-shade { background: linear-gradient(0deg, rgba(5,37,66,.9) 0%, rgba(5,37,66,.58) 50%, rgba(5,37,66,.08) 100%); }
  .beach-hero-copy { align-content: end; width: 100%; padding: 24px 22px 28px; }
  .beach-hero-copy h1 { font-size: clamp(2.45rem, 15vw, 4rem); }
  .beach-page-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .beach-page-nav a { padding: 8px 9px; font-size: .82rem; text-align: center; }
  .beach-controls-grid,
  .beach-summary-grid,
  .beach-guide-grid,
  .beach-source-grid,
  .beach-window-grid { grid-template-columns: 1fr; }
  .beach-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .beach-summary-card { padding: 14px; }
  .beach-detail { padding: 14px; border-radius: 18px; }
  .beach-detail-head,
  .beach-forecast-head,
  .beach-section-head { align-items: stretch; flex-direction: column; }
  .beach-coordinates { align-self: flex-start; }
  .beach-forecast-head label { min-width: 0; }
  .beach-map-shell,
  .beach-map { min-height: 440px; }
  .beach-map-hint { max-width: calc(100% - 78px); border-radius: 12px; }
  .beach-assessment { grid-template-columns: 1fr; }
  .beach-assessment-score { width: 88px; height: 88px; }
  .beach-section-head > span,
  .beach-section-head > small { max-width: none; text-align: left; }
}

@media (max-width: 390px) {
  .beach-summary-grid { grid-template-columns: 1fr; }
  .beach-page-nav { grid-template-columns: 1fr; }
  .beach-map-shell,
  .beach-map { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  .beach-page *, .beach-page *::before, .beach-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
