/* Destination pages (overview, one destination, when to go): month strips and rings, destination cards. */

.mstrip { display: inline-grid; grid-template-columns: repeat(12, 8px); gap: 2px; vertical-align: middle; }
.mstrip i { height: 14px; border-radius: 1px; background: var(--line); position: relative; }
.mstrip i.is-best { background: var(--sky); }
.mstrip i.is-now { outline: 1.5px solid var(--ink); outline-offset: 1px; }

.mring-seg { fill: var(--line); stroke: var(--paper); stroke-width: 1; }
.mring-seg.is-best { fill: var(--sky); }
.mring-seg.is-now { stroke: var(--ink); stroke-width: 2; }
.mring-l { font: 600 11px var(--sans); fill: var(--muted); text-anchor: middle; }
.mring-l.is-now { fill: var(--ink); }
.mring-c { font: 400 22px var(--serif); fill: var(--ink); text-anchor: middle; }
.mring-c2 { font: 500 11px var(--sans); fill: var(--muted); text-anchor: middle; }

.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 22px; }
.dcard { display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; }
.dcard-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.dcard:hover .dcard-media img { transform: scale(1.04); }
.dcard-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; margin-top: 6px; }
.dcard-best { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.dcard-meta { font-size: 0.875rem; font-weight: 600; }
.dcard.is-quiet .dcard-meta { color: var(--muted); font-weight: 500; }
.dcard.is-quiet .dcard-media img { filter: saturate(.7); }

.region { padding-top: clamp(56px, 7vw, 96px); }
.region h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 8px; }
.region > p { color: var(--ink-2); margin-bottom: 28px; max-width: 60ch; }

.dchart { padding-top: clamp(56px, 7vw, 96px); }
.dchart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 20px; }
.dchart-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.dm { cursor: pointer; outline: none; }
.dm circle { fill: rgb(4 154 241 / .25); stroke: #0670b4; stroke-width: 1.5; transition: r .3s ease; }
.dm.is-empty circle { fill: transparent; stroke: #7a8892; stroke-dasharray: 2 3; }
.dm:hover circle, .dm:focus-visible circle { fill: rgb(4 154 241 / .5); }
.dm text { font: 600 11px var(--sans); fill: #24323b; paint-order: stroke; stroke: #f1f6f8; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.dm.is-off { opacity: .2; }
@media (prefers-color-scheme: dark) { .dm text { fill: #dfe7ec; stroke: #0c1b26; } .dm circle { stroke: #8fd3ff; } }

/* one destination */
.dfacts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 7vw, 96px); }
.dfacts dl { margin: 0; display: grid; gap: 0; }
.dfacts dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.dfacts dt { font-size: 0.875rem; color: var(--muted); }
.dfacts dd { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.15; }
.dtext { padding-top: clamp(56px, 7vw, 96px); }
.dtext h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 18px; max-width: 24ch; }
.dyachts { padding-top: clamp(56px, 7vw, 96px); }
.dyachts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.dyachts-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.dinset .chart-frame { margin-top: 8px; }
.dmark circle { fill: #049af1; stroke: #fff; stroke-width: 2; }
.dmark text { font: 700 12px var(--sans); fill: #0b1a24; paint-order: stroke; stroke: #f1f6f8; stroke-width: 3px; }
.dother circle { fill: #fff; stroke: #0670b4; stroke-width: 1.5; }
.dother text { font: 600 11px var(--sans); fill: #24323b; paint-order: stroke; stroke: #f1f6f8; stroke-width: 3px; }
@media (prefers-color-scheme: dark) { .dmark text, .dother text { fill: #dfe7ec; stroke: #0c1b26; } .dother circle { fill: #0c1b26; stroke: #8fd3ff; } }
@media (max-width: 760px) {
  .dfacts { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .dfacts dl { width: 100%; }
  .dfacts dl div { grid-template-columns: 110px 1fr; }
}

/* when to go: the big dial */
.when { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: 32px; }
.wdial { position: sticky; top: calc(var(--header-h) + 24px); display: grid; justify-items: center; gap: 16px; }
.wdial-face { position: relative; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--paper-raised) 0 56%, var(--wash) 57% 100%); border: 1px solid var(--line-strong); box-shadow: inset 0 0 0 10px var(--paper), var(--shadow); }
.wdial-face button { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 1px solid transparent; background: transparent; font: 600 0.875rem var(--sans); color: var(--ink-2); cursor: pointer; }
.wdial-face button:hover { border-color: var(--line-strong); }
.wdial-face button[aria-pressed="true"] { background: var(--sky-ink); color: var(--on-sky); }
.wdial-face button.is-now { text-decoration: underline; text-underline-offset: 3px; }
.wdial-hand { position: absolute; left: 50%; top: 50%; width: 3px; height: 30%; margin-left: -1.5px; background: var(--ink); border-radius: 2px; transform-origin: 50% 0; transform: rotate(calc(var(--h) + 180deg)); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.wdial-pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); }
.wdial-name { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem); line-height: 1; }
.wdial-sum { text-align: center; color: var(--ink-2); max-width: 36ch; }
@media (max-width: 960px) {
  .when { grid-template-columns: minmax(0, 1fr); }
  .wdial { position: static; }
}

.when-h { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 24px; }
.dtext h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
