:root { --ink:#102a2e; --sea:#0b7b83; --foam:#eef8f5; --sun:#f2b84b; --paper:#fbfaf6; }
* { box-sizing: border-box; }
html, body, main { height: 100%; margin: 0; }
body { color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
main { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; }
.panel { z-index: 2; padding: 42px 36px 30px; box-shadow: 8px 0 35px #1233; display: flex; flex-direction: column; }
.brand { color: var(--sea); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand span { display: inline-grid; width: 28px; height: 28px; place-items: center; margin-right: 8px; border-radius: 50%; color: white; background: var(--sea); }
h1 { margin: 46px 0 18px; font-family: Georgia, serif; font-size: clamp(36px, 4vw, 55px); line-height: .98; letter-spacing: -.04em; }
.intro { margin: 0 0 36px; color: #496267; line-height: 1.6; }
label { margin: 15px 0 7px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
input, select { width: 100%; border: 1px solid #b7ccc9; border-radius: 10px; background: white; padding: 13px 14px; color: var(--ink); font: inherit; outline: none; }
input:focus, select:focus { border-color: var(--sea); box-shadow: 0 0 0 3px #0b7b8320; }
.temperature-filter { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.temperature-filter button { border: 0; border-radius: 10px; padding: 0 14px; color: white; background: var(--sea); font-weight: 750; cursor: pointer; }
.temperature-filter button:disabled { cursor: wait; opacity: .55; }
.temperature-filter .clear { padding: 0 12px; color: var(--ink); background: #dfeae7; font-size: 20px; }
.site-info { margin-top: auto; padding-top: 24px; color: #718487; font-size: 11px; line-height: 1.5; }
.site-info a { color: var(--sea); text-decoration: none; }
.site-info a:hover { text-decoration: underline; }
.site-info .disclaimer { color: #849395; }
.site-info nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-weight: 700; }
.map-wrap, #map { position: relative; width: 100%; height: 100%; }
.status { position: absolute; z-index: 600; top: 18px; left: 50%; transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; background: #102a2edd; color: white; font-size: 13px; box-shadow: 0 5px 20px #0003; }
.status.hidden { display: none; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 12px 35px #102a2e35; }
.popup { min-width: 230px; }
.popup .region { color: var(--sea); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.popup h2 { margin: 5px 0 7px; font: 700 22px/1.08 Georgia, serif; }
.popup .coords { color: #748589; font-size: 12px; }
.temperature { margin: 14px 0 6px; font: 700 34px Georgia, serif; color: var(--sea); }
.forecast { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 12px; }
.forecast span { padding: 5px 2px; border-radius: 5px; background: var(--foam); text-align: center; font-size: 10px; }
.error { color: #a13d32; }
.marker-dot { width: 16px; height: 16px; border: 3px solid white; border-radius: 50%; background: var(--sea); box-shadow: 0 2px 8px #0005; }
@media (max-width: 760px) {
  main { grid-template: auto 1fr / 1fr; }
  .panel { padding: 18px 20px; box-shadow: 0 8px 30px #1233; }
  .brand, .intro { display: none; }
  .site-info { padding-top: 8px; }
  .site-info p { display: none; }
  .site-info nav { margin-top: 0; }
  h1 { margin: 0 0 12px; font-size: 27px; }
  .panel label { display: none; }
  .panel > input, .panel > select { width: calc(50% - 5px); display: inline-block; }
  .temperature-filter { margin-top: 8px; }
}
