:root{
  --mare-ink:#163f58;
  --mare-ink-soft:#36576a;
  --mare-muted:#6e7f88;
  --mare-muted-soft:#87949b;
  --mare-line:#e1e5e8;
  --mare-line-strong:#d9e0e4;
  --mare-surface:#fff;
  --mare-bg:#fff;
  --mare-soft:#f7f9fa;
  --mare-cyan:#147fa8;
  --mare-blue:#147fa8;
  --mare-blue-deep:#163f58;
  --mare-navy:#103b58;
  --mare-sea:#2f8f7d;
  --mare-sea-soft:#eef6f3;
  --mare-sea-soft-2:#f8fbf9;
}

/* ============================================================
   HERO
   ============================================================ */

.mare-hero{
  padding:54px 0;
  background:#fff;
  border-bottom:1px solid var(--mare-line-strong);
}

.mare-hero h1,
.mare-section h2,
.mare-card h3,
.mare-spot-panel h3{
  margin:0;
  color:var(--mare-ink);
  letter-spacing:-.035em;
}

.mare-hero h1{
  font-size:clamp(44px,5vw,62px);
  line-height:1.02;
  font-weight:700;
}

.mare-hero p{
  max-width:790px;
  margin:15px 0 0;
  color:var(--mare-muted);
  font-size:19px;
  line-height:1.55;
}

.mare-kicker{
  display:block;
  margin:0 0 8px;
  color:var(--mare-cyan);
  font-size:14px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:.055em;
  text-transform:uppercase;
}

.mare-section{
  padding:54px 0 62px;
}

.mare-local-section{
  background:#fff;
}

.mare-sardegna-section{
  background:#fff;
  border-top:1px solid var(--mare-line-strong);
}

.mare-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:24px;
}

.mare-section-head h2{
  font-size:clamp(32px,4vw,46px);
  line-height:1.05;
  font-weight:700;
}

.mare-section-head>p{
  max-width:520px;
  margin:0;
  color:var(--mare-muted);
  font-size:16px;
  line-height:1.55;
}

.mare-update{
  color:var(--mare-muted);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

/* ============================================================
   RIEPILOGO LOCALE
   ============================================================ */

.mare-local-summary{
  position:relative;
  overflow:hidden;
  margin-bottom:24px;
  border:1px solid var(--mare-line-strong);
  border-top:4px solid var(--mare-sea);
  border-radius:4px;
  background:#fff;
  color:var(--mare-ink);
}

.mare-local-main{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.05fr .95fr;
}

.mare-local-sst,
.mare-local-tide-state{
  min-height:170px;
  padding:31px 34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.mare-local-sst{
  border-right:1px solid var(--mare-line);
}

.mare-local-sst span,
.mare-local-tide-state div>span{
  display:block;
  color:var(--mare-muted-soft);
  font-size:12px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.mare-local-sst strong{
  display:block;
  margin:8px 0 4px;
  color:var(--mare-ink);
  font-size:52px;
  line-height:.95;
  font-weight:700;
  letter-spacing:-.045em;
}

.mare-local-sst small,
.mare-local-tide-state small{
  color:var(--mare-muted);
  font-size:13px;
  font-weight:600;
}

.mare-local-tide-state{
  flex-direction:row;
  align-items:center;
  gap:17px;
}

.mare-tide-symbol{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:56px;
  height:56px;
  border:1px solid #d8e6e1;
  border-radius:4px;
  background:var(--mare-sea-soft);
  color:var(--mare-sea);
  font-size:34px;
  font-weight:700;
}

.mare-local-tide-state strong{
  display:block;
  margin:4px 0;
  color:var(--mare-ink);
  font-size:30px;
  line-height:1.05;
  font-weight:700;
}

.mare-next-tides{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--mare-line);
  background:var(--mare-sea-soft-2);
}

.mare-next-tide{
  display:flex;
  align-items:center;
  gap:13px;
  padding:19px 34px;
}

.mare-next-tide:first-child{
  border-right:1px solid var(--mare-line);
}

.mare-next-arrow{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:1px solid #d6e4df;
  border-radius:50%;
  background:#f2f7f5;
  color:var(--mare-sea);
  font-size:19px;
  font-weight:700;
}

.mare-next-tide small{
  display:block;
  color:var(--mare-muted-soft);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.mare-next-tide strong{
  display:inline-block;
  margin-top:2px;
  color:var(--mare-ink);
  font-size:23px;
  font-weight:700;
}

.mare-next-tide em{
  margin-left:8px;
  color:var(--mare-muted);
  font-size:13px;
  font-style:normal;
  font-weight:700;
}

/* ============================================================
   CARD
   ============================================================ */

.mare-local-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);
  gap:22px;
  align-items:stretch;
}

.mare-card{
  border:1px solid var(--mare-line);
  border-radius:4px;
  background:#fff;
  box-shadow:none;
}

.mare-tide-card,
.mare-moon-card{
  padding:26px 28px;
}

.mare-card-head{
  margin-bottom:19px;
}

.mare-card-head h3{
  font-size:clamp(26px,3vw,34px);
  line-height:1.12;
  font-weight:700;
}

.mare-card-head-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.mare-range-switch{
  display:inline-flex;
  gap:6px;
}

.mare-range-switch button{
  min-height:38px;
  padding:0 13px;
  border:1px solid var(--mare-line-strong);
  border-radius:4px;
  background:#fff;
  color:#60717b;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.mare-range-switch button.is-active{
  border-color:var(--mare-blue);
  background:var(--mare-blue);
  color:#fff;
}

.mare-tide-chart{
  height:330px;
}

.mare-chart-note{
  margin-top:8px;
  padding-top:12px;
  border-top:1px solid var(--mare-line);
  color:var(--mare-muted-soft);
  font-size:12px;
  line-height:1.45;
}

/* ============================================================
   LUNA
   ============================================================ */

.mare-moon-card{
  background:#fff;
}

.mare-moon-main{
  display:flex;
  align-items:center;
  gap:18px;
  padding:17px 0 19px;
  border-top:1px solid var(--mare-line);
  border-bottom:1px solid var(--mare-line);
}

.mare-moon-icon{
  flex:0 0 auto;
  width:72px;
  min-width:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  background:transparent;
  font-size:58px;
  line-height:1;
  filter:drop-shadow(0 5px 8px rgba(20,47,65,.16));
}

.mare-moon-main strong{
  display:block;
  color:var(--mare-ink);
  font-size:25px;
  line-height:1.1;
  font-weight:700;
}

.mare-moon-main span{
  display:block;
  margin-top:5px;
  color:var(--mare-muted);
  font-size:14px;
  font-weight:600;
}

.mare-moon-timeline{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin:16px 0 18px;
  border:1px solid var(--mare-line);
  border-radius:4px;
  overflow:hidden;
}

.mare-moon-timeline>div{
  padding:15px 16px;
  background:#fff;
}

.mare-moon-timeline>div:nth-child(odd){
  border-right:1px solid var(--mare-line);
}

.mare-moon-timeline>div:nth-child(-n+2){
  border-bottom:1px solid var(--mare-line);
}

.mare-moon-timeline span{
  display:block;
  color:var(--mare-muted-soft);
  font-size:11px;
  font-weight:700;
}

.mare-moon-timeline strong{
  display:block;
  margin-top:4px;
  color:var(--mare-ink);
  font-size:20px;
  font-weight:700;
}

/* ============================================================
   INDICE PESCA
   ============================================================ */

.mare-fishing-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:20px;
  align-items:center;
  padding:21px 22px;
  border:1px solid var(--mare-line-strong);
  border-left:4px solid var(--mare-sea);
  border-radius:4px;
  background:var(--mare-sea-soft-2);
  color:var(--mare-ink);
}

.mare-fishing-copy>span{
  display:block;
  color:#6e877f;
  font-size:11px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.mare-fishing-copy>strong{
  display:block;
  margin:5px 0 7px;
  color:var(--mare-ink);
  font-size:28px;
  font-weight:700;
}

.mare-fishing-fish{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:27px;
  margin-bottom:8px;
}

.mare-fishing-fish span{
  display:inline-block;
  font-size:21px;
  line-height:1;
  opacity:.22;
  filter:grayscale(1);
  transform:translateY(0);
}

.mare-fishing-fish span.is-active{
  opacity:1;
  filter:none;
}

.mare-fishing-copy small{
  display:block;
  color:var(--mare-muted);
  font-size:11px;
  line-height:1.45;
}

.mare-fishing-score-wrap{
  text-align:right;
}

.mare-fishing-score{
  color:var(--mare-ink);
  font-size:33px;
  font-weight:700;
  letter-spacing:-.035em;
}

.mare-fishing-meter{
  height:6px;
  margin-top:10px;
  background:#dfe8e4;
  overflow:hidden;
}

.mare-fishing-meter i{
  display:block;
  height:100%;
  width:0;
  background:var(--mare-sea);
  transition:width .35s ease;
}

.mare-fishing-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding:12px 2px 0;
  color:var(--mare-muted);
  font-size:13px;
}

.mare-fishing-meta strong{
  color:var(--mare-ink);
  font-size:20px;
}

/* ============================================================
   7 GIORNI
   ============================================================ */

.mare-events-card{
  margin-top:22px;
  padding:27px 28px;
}

.mare-events-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.mare-events-head p{
  margin:0;
  color:var(--mare-muted);
  font-size:13px;
  font-weight:600;
}

.mare-events-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.mare-event-day{
  display:grid;
  grid-template-columns:128px 1fr;
  gap:18px;
  align-items:center;
  padding:16px 18px;
  border:1px solid var(--mare-line);
  border-radius:4px;
  background:#fff;
}

.mare-event-day h4{
  margin:0;
  color:var(--mare-ink);
  font-size:20px;
  line-height:1.08;
  text-transform:capitalize;
}

.mare-event-day h4 span{
  display:block;
  margin-top:5px;
  color:var(--mare-muted-soft);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}

.mare-event-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px 13px;
}

.mare-event-row{
  display:grid;
  grid-template-columns:17px 48px 1fr;
  gap:5px;
  align-items:center;
  white-space:nowrap;
}

.mare-event-row i{
  color:var(--mare-blue);
  font-size:18px;
  font-style:normal;
  font-weight:700;
}

.mare-event-row b{
  color:var(--mare-ink);
  font-size:13px;
}

.mare-event-row em{
  color:#758797;
  font-size:12px;
  font-style:normal;
  font-weight:700;
  text-align:right;
}

.mare-loading{
  grid-column:1/-1;
  padding:24px;
  color:var(--mare-muted);
  text-align:center;
  font-size:13px;
  font-weight:700;
}

/* ============================================================
   ZONE MARINE
   ============================================================ */

.mare-zone-scroll-hint{
  display:none;
  margin:0 0 7px;
  color:var(--mare-muted-soft);
  font-size:12px;
  font-weight:700;
}

.mare-zone-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 14px;
}

.mare-zone-tabs button{
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--mare-line-strong);
  border-radius:4px;
  background:#fff;
  color:#526773;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.mare-zone-tabs button:hover{
  border-color:#9fb5c0;
  background:#f7f7f7;
}

.mare-zone-tabs button.is-active{
  border-color:var(--mare-blue);
  background:var(--mare-blue);
  color:#fff;
}

.mare-map-note{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  padding:11px 13px;
  border:1px solid var(--mare-line);
  border-radius:4px;
  background:#fff;
  color:#607589;
  font-size:12px;
  font-weight:600;
}

.mare-map-note b{
  color:var(--mare-blue-deep);
}

.mare-map-note-icon{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:28px;
  height:28px;
  border:1px solid #cfe4ed;
  border-radius:4px;
  color:var(--mare-blue);
  font-size:17px;
  font-weight:700;
}

/* ============================================================
   MAPPA
   ============================================================ */

.mare-map-shell{
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(330px,.48fr);
  gap:18px;
  align-items:stretch;
}

.mare-map-wrap{
  position:relative;
  overflow:hidden;
  min-height:760px;
  border:1px solid var(--mare-line-strong);
  border-radius:4px;
  background:#d8eaf1;
}

.mare-map{
  width:100%;
  height:760px;
}

.mare-map .leaflet-control-zoom{
  border:0!important;
  border-radius:4px!important;
  overflow:hidden;
  box-shadow:0 5px 16px rgba(12,50,76,.16)!important;
}

.mare-map .leaflet-control-zoom a{
  border:0!important;
  color:var(--mare-ink)!important;
  font-weight:700;
}

.mare-map-loading{
  position:absolute;
  inset:0;
  z-index:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:rgba(244,249,252,.90);
  color:var(--mare-ink);
  font-size:13px;
  font-weight:700;
}

.mare-map-loading.is-hidden{
  display:none;
}

.mare-map-loading span{
  width:18px;
  height:18px;
  border:2px solid #b8dce9;
  border-top-color:var(--mare-blue);
  border-radius:50%;
  animation:mareSpin .8s linear infinite;
}

@keyframes mareSpin{
  to{transform:rotate(360deg)}
}

.mare-map-legend{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:650;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px 13px;
  padding:10px 13px;
  border:1px solid rgba(214,228,235,.94);
  border-radius:4px;
  background:rgba(255,255,255,.95);
}

.mare-map-legend span{
  display:flex;
  align-items:center;
  gap:5px;
  color:#52687a;
  font-size:10px;
  font-weight:700;
}

.mare-map-legend i{
  width:8px;
  height:8px;
  border-radius:50%;
}

.mare-map-legend i[data-level="0"]{background:#10b981}
.mare-map-legend i[data-level="1"]{background:#84cc16}
.mare-map-legend i[data-level="2"]{background:#f97316}
.mare-map-legend i[data-level="3"]{background:#ef4444}
.mare-map-legend i[data-level="4"]{background:#8b2bc5}

/* ============================================================
   MARKER
   ============================================================ */

.mare-wave-marker{
  background:transparent!important;
  border:0!important;
}

.mare-wave-marker-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}

.mare-wave-marker-value{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:43px;
  height:26px;
  padding:0 7px;
  border:2px solid rgba(255,255,255,.98);
  border-radius:7px;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1;
  box-shadow:0 4px 10px rgba(15,45,65,.27);
  white-space:nowrap;
  transition:transform .15s ease,box-shadow .15s ease;
}

.mare-wave-marker.is-selected .mare-wave-marker-value,
.mare-wave-marker:hover .mare-wave-marker-value{
  transform:scale(1.14);
  box-shadow:0 7px 18px rgba(15,45,65,.34);
}

.mare-wave-marker.is-collapsed{
  display:none!important;
}

/* ============================================================
   PANNELLO SPOT
   ============================================================ */

.mare-spot-panel{
  position:relative;
  min-height:760px;
  border:1px solid var(--mare-line);
  border-radius:4px;
  background:#fff;
  overflow:hidden;
  box-shadow:none;
}

.mare-spot-empty{
  height:100%;
  min-height:760px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:34px;
  text-align:center;
  background:#fff;
  color:var(--mare-muted);
}

.mare-spot-empty-icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  margin-bottom:14px;
  border:1px solid #d7e8ef;
  border-radius:4px;
  background:#f5fafc;
  color:var(--mare-cyan);
  font-size:32px;
  font-weight:700;
}

.mare-spot-empty strong{
  color:var(--mare-ink);
  font-size:20px;
  font-weight:700;
}

.mare-spot-empty span{
  max-width:245px;
  margin-top:7px;
  font-size:12px;
  line-height:1.5;
}

.mare-spot-content{
  position:relative;
  height:100%;
  padding:0;
  background:#fff;
}

.mare-spot-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:5;
  display:none;
  width:36px;
  height:36px;
  border:1px solid var(--mare-line-strong);
  border-radius:4px;
  background:#fff;
  color:var(--mare-ink);
  font:inherit;
  font-size:23px;
  line-height:1;
  cursor:pointer;
}

.mare-spot-heading{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:28px 24px 20px;
  border-bottom:1px solid var(--mare-line);
  border-top:4px solid var(--mare-sea);
  background:linear-gradient(180deg,#fbfcfb 0%,#f7faf8 100%);
  color:var(--mare-ink);
}

.mare-spot-heading .mare-kicker{
  color:var(--mare-sea);
  margin-bottom:6px;
}

.mare-spot-heading h3{
  color:var(--mare-ink);
  font-size:30px;
  line-height:1.03;
  font-weight:700;
}

.mare-spot-heading p{
  margin:6px 0 0;
  color:var(--mare-muted);
  font-size:12px;
  font-weight:600;
}

.mare-state-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:29px;
  padding:0 10px;
  border:0;
  border-radius:999px;
  color:#fff;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  box-shadow:0 3px 8px rgba(20,47,65,.14);
}

.mare-spot-hero{
  display:grid;
  grid-template-columns:1fr 62px;
  align-items:center;
  gap:16px;
  padding:22px 24px;
  border-bottom:1px solid var(--mare-line);
  background:var(--mare-sea-soft-2);
  color:var(--mare-ink);
}

.mare-spot-wave-main>span{
  display:block;
  color:#7b8f9f;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.09em;
}

.mare-spot-wave-main strong{
  display:block;
  margin:4px 0 2px;
  color:var(--mare-ink);
  font-size:46px;
  line-height:.95;
  font-weight:700;
  letter-spacing:-.045em;
}

.mare-spot-wave-main small{
  color:#688096;
  font-size:12px;
  font-weight:700;
}

.mare-wave-compass{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border:1px solid #d8e7e1;
  border-radius:50%;
  background:#fff;
  color:var(--mare-sea);
  font-size:32px;
  font-weight:700;
  transition:transform .2s ease;
}

.mare-spot-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:18px 20px;
  background:#fff;
}

.mare-spot-metrics>div{
  min-height:76px;
  padding:14px 14px;
  border:1px solid #e6ece8;
  border-radius:4px;
  background:var(--mare-sea-soft-2);
}

.mare-spot-metrics>div:nth-child(odd){
  border-right:1px solid #e6ece8;
}

.mare-spot-metrics span{
  display:block;
  color:#93a2ae;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.mare-spot-metrics strong{
  display:block;
  margin-top:4px;
  color:var(--mare-ink);
  font-size:15px;
  line-height:1.25;
  font-weight:700;
}

.mare-spot-forecast{
  margin:2px 20px 20px;
  padding:18px 0 0;
  border-top:1px solid #e2ebf0;
}

.mare-spot-forecast-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
  color:var(--mare-ink);
}

.mare-spot-forecast-head strong{
  font-size:14px;
  font-weight:700;
}

.mare-spot-forecast-head span{
  color:#96a4af;
  font-size:9px;
  font-weight:700;
}

.mare-forecast-strip{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.mare-forecast-item{
  padding:12px 13px;
  border:1px solid #e3e9e5;
  border-radius:4px;
  background:linear-gradient(180deg,#fff 0%,#fafcfa 100%);
}

.mare-forecast-time{
  color:#718493;
  font-size:9px;
  font-weight:700;
  text-transform:capitalize;
}

.mare-forecast-wave{
  margin:5px 0 6px;
  color:var(--mare-ink);
  font-size:22px;
  font-weight:700;
  letter-spacing:-.03em;
}

.mare-forecast-wave span{
  font-size:11px;
  font-weight:700;
}

.mare-forecast-meta{
  display:grid;
  gap:3px;
  color:#778a9a;
  font-size:9px;
  font-weight:600;
  line-height:1.4;
}

.mare-forecast-loading{
  grid-column:1/-1;
  padding:18px;
  color:var(--mare-muted);
  font-size:11px;
  font-weight:700;
  text-align:center;
}

.mare-spot-metrics strong small{
  font-size:inherit;
}

.mare-fishing-fish span.is-active{
  transform:translateY(-1px);
}

.mare-state-badge.is-neutral{
  background:#8da0aa;
}

.mare-source-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:13px 4px 0;
  color:#8495a4;
  font-size:11px;
  font-weight:700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:1050px){
  .mare-local-grid{
    grid-template-columns:1fr;
  }

  .mare-map-shell{
    grid-template-columns:1fr;
  }

  .mare-map-wrap,
  .mare-map{
    height:690px;
    min-height:690px;
  }

  .mare-spot-panel{
    min-height:0;
    height:auto;
  }

  .mare-spot-empty{
    height:auto;
    min-height:120px;
    display:grid;
    grid-template-columns:52px 1fr;
    grid-template-rows:auto auto;
    column-gap:14px;
    align-items:center;
    justify-items:start;
    padding:20px 22px;
    text-align:left;
  }

  .mare-spot-empty-icon{
    grid-row:1/3;
    width:52px;
    height:52px;
    margin:0;
  }

  .mare-spot-empty strong{
    font-size:18px;
  }

  .mare-spot-empty span{
    max-width:none;
    margin:2px 0 0;
    font-size:12px;
  }

  .mare-spot-content{
    height:auto;
  }

  .mare-spot-close{
    display:grid;
    place-items:center;
  }
}

@media (max-width:700px){
  .mare-hero{
    padding:40px 0 34px;
  }

  .mare-hero h1{
    font-size:38px;
    letter-spacing:-.4px;
  }

  .mare-hero p{
    font-size:17px;
    line-height:1.5;
  }

  .mare-section{
    padding:42px 0 50px;
  }

  .mare-section-head{
    display:block;
    margin-bottom:18px;
  }

  .mare-section-head>p{
    margin-top:10px;
    font-size:15px;
  }

  .mare-update{
    margin-top:8px;
    font-size:12px;
  }

  .mare-local-summary{
    border-radius:4px;
  }

  .mare-local-main{
    grid-template-columns:1fr 1fr;
  }

  .mare-local-sst,
  .mare-local-tide-state{
    min-height:142px;
    padding:22px 20px;
  }

  .mare-local-sst strong{
    font-size:40px;
  }

  .mare-local-tide-state{
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:8px;
  }

  .mare-tide-symbol{
    width:42px;
    height:42px;
    font-size:27px;
  }

  .mare-local-tide-state strong{
    font-size:22px;
  }

  .mare-local-tide-state small{
    display:none;
  }

  .mare-next-tide{
    padding:15px 17px;
    gap:9px;
  }

  .mare-next-arrow{
    width:30px;
    height:30px;
    font-size:16px;
  }

  .mare-next-tide strong{
    font-size:18px;
  }

  .mare-next-tide em{
    display:block;
    margin:1px 0 0;
    font-size:11px;
  }

  .mare-tide-card,
  .mare-moon-card,
  .mare-events-card{
    padding:22px 18px;
  }

  .mare-card-head-row{
    display:block;
  }

  .mare-range-switch{
    margin-top:13px;
  }

  .mare-tide-chart{
    height:280px;
  }

  .mare-chart-note{
    font-size:11px;
  }

  .mare-moon-main{
    padding:16px 0;
  }

  .mare-moon-icon{
    width:62px;
    min-width:62px;
    font-size:50px;
  }

  .mare-moon-main strong{
    font-size:22px;
  }

  .mare-moon-timeline>div{
    padding:12px 13px;
  }

  .mare-moon-timeline strong{
    font-size:18px;
  }

  .mare-fishing-box{
    grid-template-columns:1fr 118px;
    padding:18px;
  }

  .mare-fishing-copy>strong{
    font-size:24px;
  }

  .mare-fishing-fish span{
    font-size:19px;
  }

  .mare-fishing-copy small{
    font-size:10px;
  }

  .mare-fishing-score{
    font-size:28px;
  }

  .mare-fishing-meta{
    font-size:12px;
  }

  .mare-fishing-meta strong{
    font-size:18px;
  }

  .mare-events-head{
    display:block;
  }

  .mare-events-head p{
    margin-top:6px;
  }

  .mare-events-grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  .mare-event-day{
    grid-template-columns:105px 1fr;
    padding:13px 14px;
  }

  .mare-event-day h4{
    font-size:17px;
  }

  .mare-event-list{
    gap:6px 8px;
  }

  .mare-event-row{
    grid-template-columns:15px 43px 1fr;
    gap:3px;
  }

  .mare-event-row b{
    font-size:12px;
  }

  .mare-event-row em{
    font-size:11px;
  }

  .mare-zone-scroll-hint{
    display:block;
  }

  .mare-zone-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:1px 0 8px;
    margin-right:-18px;
    padding-right:18px;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }

  .mare-zone-tabs::-webkit-scrollbar{
    display:none;
  }

  .mare-zone-tabs button{
    flex:0 0 auto;
    min-height:40px;
    padding:0 13px;
    font-size:12px;
    scroll-snap-align:start;
  }

  .mare-map-note{
    font-size:11px;
    line-height:1.35;
  }

  .mare-map-wrap,
  .mare-map{
    height:670px;
    min-height:670px;
  }

  .mare-map-legend{
    left:10px;
    right:10px;
    bottom:10px;
    gap:6px 9px;
    padding:9px 10px;
  }

  .mare-map-legend span{
    font-size:8.5px;
  }

  .mare-wave-marker-value{
    min-width:39px;
    height:23px;
    padding:0 6px;
    font-size:10px;
  }

  .mare-spot-empty{
    min-height:104px;
    padding:17px 18px;
    grid-template-columns:46px 1fr;
    column-gap:12px;
  }

  .mare-spot-empty-icon{
    width:46px;
    height:46px;
    font-size:27px;
  }

  .mare-spot-empty strong{
    font-size:16px;
  }

  .mare-spot-empty span{
    font-size:11px;
  }

  .mare-spot-heading{
    padding:23px 54px 18px 20px;
  }

  .mare-spot-heading h3{
    font-size:27px;
  }

  .mare-state-badge{
    position:absolute;
    right:17px;
    bottom:18px;
    font-size:8px;
    min-height:25px;
    padding:0 8px;
  }

  .mare-spot-hero{
    padding:18px 20px;
    grid-template-columns:1fr 54px;
  }

  .mare-spot-wave-main strong{
    font-size:39px;
  }

  .mare-wave-compass{
    width:51px;
    height:51px;
    font-size:28px;
  }

  .mare-spot-metrics{
    padding:4px 15px 7px;
  }

  .mare-spot-metrics>div{
    min-height:66px;
    padding:11px 10px;
  }

  .mare-spot-metrics strong{
    font-size:14px;
  }

  .mare-spot-forecast{
    margin:7px 15px 17px;
  }

  .mare-source-row{
    display:grid;
    gap:3px;
    padding-left:3px;
  }
}

@media (max-width:410px){
  .mare-local-main{
    grid-template-columns:1fr;
  }

  .mare-local-sst{
    border-right:0;
    border-bottom:1px solid var(--mare-line);
  }

  .mare-local-sst,
  .mare-local-tide-state{
    min-height:118px;
  }

  .mare-local-tide-state{
    flex-direction:row;
    align-items:center;
  }

  .mare-next-tides{
    grid-template-columns:1fr 1fr;
  }

  .mare-next-tide{
    padding:13px 12px;
  }

  .mare-next-arrow{
    display:none;
  }

  .mare-event-day{
    grid-template-columns:1fr;
    gap:9px;
  }

  .mare-event-day h4{
    display:flex;
    align-items:center;
    gap:7px;
  }

  .mare-event-day h4 span{
    margin:0;
  }

  .mare-fishing-box{
    grid-template-columns:1fr;
  }

  .mare-fishing-score-wrap{
    text-align:left;
  }

  .mare-fishing-meter{
    width:100%;
  }

  .mare-forecast-strip{
    grid-template-columns:1fr 1fr;
  }
}
