/* Drone Map & UAV Forecast Lite — hefferapps.com/dronemap
 *
 * Sits on top of main.css and reuses its tokens (surfaces, ink, hairlines,
 * buttons), so the page reads as part of the site. What it borrows from the
 * app is the teal brand, the tinted icon wells, the layer sheet's
 * switch rows and the flight-check verdict colours.
 */

/* ─────────────────────────────── Shell */

/* Several pieces below set their own display, which would otherwise beat
   the hidden attribute and leave an invisible panel catching map clicks. */
.dm-app [hidden] {
  display: none !important;
}

.dm-app {
  padding: 0;
}

.dm-map-wrap {
  position: relative;
  height: calc(100dvh - 64px - 52px);
  min-height: 460px;
  overflow: hidden;
  isolation: isolate;
  background: var(--dm-muted-surface);
}

.dm-map {
  position: absolute;
  inset: 0;
}

.dm-wind-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.dm-wind {
  display: block;
}

.dm-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Floating surfaces share one look: frosted, hairline rim, soft lift. */
.dm-brand-card,
.dm-search,
.dm-tool,
.dm-zoom-chip,
.dm-wind-chip,
.dm-toast {
  background: var(--dm-float);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--dm-float-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

/* ─────────────────────────────── Top left: brand + search */

.dm-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100% - 24px));
}

.dm-brand-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: 18px;
}

.dm-brand-card img {
  width: 40px;
  height: 40px;
  border-radius: 22.5%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.dm-brand-text {
  flex: 1;
  min-width: 0;
}

.dm-brand-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dm-brand-text p {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.dm-lite {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: #fff;
  background: linear-gradient(120deg, var(--dm-brand), #107db0);
}

.dm-get-app {
  flex-shrink: 0;
}

.dm-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 14px;
  height: 44px;
}

.dm-search .dm-icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}

.dm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.dm-search:focus-within {
  outline: 2px solid var(--dm-brand);
  outline-offset: 1px;
}

.dm-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
}

.dm-search-results button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dm-search-results button:hover,
.dm-search-results button:focus-visible {
  background: var(--dm-muted-surface);
}

.dm-search-results small,
.dm-search-empty {
  color: var(--muted);
  font-size: 13px;
}

.dm-search-empty {
  padding: 10px;
}

/* ─────────────────────────────── Top right: tools */

.dm-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transition: right 0.25s ease;
}

.dm-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dm-tool:hover {
  transform: translateY(-1px);
}

.dm-tool[aria-expanded="true"],
.dm-tool[aria-pressed="true"] {
  background: var(--action);
  color: var(--action-text);
  border-color: transparent;
}

.dm-tool:focus-visible,
.dm-icon-btn:focus-visible {
  outline: 2px solid var(--dm-brand);
  outline-offset: 2px;
}

/* ─────────────────────────────── Chips over the map */

.dm-zoom-chip {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-wind-chip {
  position: absolute;
  left: 12px;
  bottom: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.dm-wind-chip strong {
  color: var(--ink);
}

.dm-wind-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #32ade6;
}

.dm-wind-arrow .dm-icon {
  width: 15px;
  height: 15px;
}

.dm-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: top 0.42s ease;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  z-index: 3;
  pointer-events: none;
  border: 2px solid var(--dm-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(14, 146, 160, 0.2);
}

.dm-crosshair::before,
.dm-crosshair::after {
  content: "";
  position: absolute;
  background: var(--dm-brand);
  left: 50%;
  top: 50%;
}

.dm-crosshair::before {
  width: 2px;
  height: 60px;
  transform: translate(-50%, -50%);
}

.dm-crosshair::after {
  width: 60px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.dm-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 6;
  background: linear-gradient(90deg, transparent, var(--dm-brand), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: dm-progress 1.1s ease-in-out infinite;
}

@keyframes dm-progress {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

/* ─────────────────────────────── Map controls (MapLibre) */

.dm-map .maplibregl-ctrl-group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.12);
}

.dm-map .maplibregl-ctrl-bottom-right {
  bottom: 18px;
}

.dm-user-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007aff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ─────────────────────────────── Side panel / bottom sheet */

.dm-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: var(--dm-panel-w);
  z-index: 8;
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--dm-radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.dm-panel.is-open {
  opacity: 1;
  transform: none;
}

.dm-panel-inner {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dm-map-wrap:has(.dm-panel.is-open) .dm-top-right {
  right: calc(var(--dm-panel-w) + 24px);
}

.dm-map-wrap:has(.dm-panel.is-open) .dm-check {
  left: calc((100% - var(--dm-panel-w) - 24px) / 2);
}

.dm-map-wrap:has(.dm-panel.is-open) .maplibregl-ctrl-bottom-right {
  right: calc(var(--dm-panel-w) + 24px);
}

.dm-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--line);
}

.dm-panel-head[style*="--tint"] {
  border-top: 5px solid var(--tint);
}

.dm-panel-titles {
  flex: 1;
  min-width: 0;
}

.dm-panel-titles h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dm-panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dm-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tint, var(--dm-brand));
}

.dm-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 24px;
}

.dm-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 14px 18px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}

.dm-back .dm-icon {
  width: 16px;
  height: 16px;
}

.dm-flip {
  transform: scaleX(-1);
}

.dm-section-title {
  margin: 6px 0 -4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.dm-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 15px;
}

.dm-card-title .dm-icon {
  width: 18px;
  height: 18px;
  color: var(--dm-brand);
}

.dm-card-warn {
  border-color: rgba(255, 149, 0, 0.35);
  background: rgba(255, 149, 0, 0.06);
}

.dm-card-warn .dm-card-title .dm-icon {
  color: var(--dm-caution);
}

.dm-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.dm-muted {
  color: var(--muted);
}

.dm-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
}

.dm-link .dm-icon {
  width: 14px;
  height: 14px;
}

.dm-kvs {
  display: grid;
  gap: 1px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.dm-kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: var(--surface);
  font-size: 14px;
}

.dm-kv dt {
  color: var(--muted);
}

.dm-kv dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

/* Icon well: the app's tinted rounded square behind a glyph. */

/* ─────────────────────────────── Layers */

.dm-layer-card {
  padding: 0;
  overflow: hidden;
}

.dm-layer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.dm-layer + .dm-layer,
.dm-legend + .dm-layer {
  border-top: 1px solid var(--line);
}

.dm-layer-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.dm-layer-text strong {
  font-size: 15px;
}

.dm-layer-text small {
  color: var(--muted);
  font-size: 13px;
}

.dm-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dm-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dm-switch:checked {
  background: var(--action);
}

.dm-switch:checked::after {
  transform: translateX(18px);
  background: var(--action-text);
}

.dm-switch:focus-visible {
  outline: 2px solid var(--dm-brand);
  outline-offset: 2px;
}

.dm-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--tint) 30%, transparent);
  border-top-color: var(--tint);
  animation: dm-spin 0.8s linear infinite;
}

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

.dm-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px 14px 62px;
  border-top: 1px solid var(--line);
}

.dm-swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  font-size: 13.5px;
  cursor: pointer;
}

.dm-swatch-row.dm-static {
  cursor: default;
}

.dm-swatch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dm-swatch {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--tint);
  background: color-mix(in srgb, var(--tint) 30%, transparent);
}

.dm-swatch-line {
  height: 4px;
  border-radius: 2px;
  border: 0;
  background: var(--tint);
}

.dm-swatch-dashed {
  border-style: dashed;
  background: color-mix(in srgb, var(--tint) 6%, transparent);
}

.dm-swatch-row input:not(:checked) + .dm-swatch {
  background: transparent;
  border-color: color-mix(in srgb, var(--tint) 35%, transparent);
}

.dm-swatch-row input:not(:checked) ~ .dm-swatch-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
}

.dm-swatch-row input:focus-visible + .dm-swatch {
  outline: 2px solid var(--dm-brand);
  outline-offset: 2px;
}

.dm-swatch-text {
  display: flex;
  flex-direction: column;
}

.dm-swatch-text small {
  color: var(--muted);
  font-size: 12.5px;
}

.dm-zoom-hint {
  font-size: 13px;
}

.dm-sources {
  margin-top: 4px;
}

/* ─────────────────────────────── Spot detail */

.dm-spot-hero {
  position: relative;
}

.dm-media-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.dm-media-empty {
  display: grid;
  place-items: center;
  height: 120px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #22a9b7, #0b5f8a);
}

.dm-media-empty .dm-icon {
  width: 40px;
  height: 40px;
}

.dm-close-float {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dm-spot-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 24px;
}

.dm-spot-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.dm-flag {
  margin-left: 8px;
  font-size: 0.85em;
}

.dm-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  font-size: 14px;
  font-weight: 600;
}

.dm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.dm-avatar-initial {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #22a9b7, #0b5f8a);
}

.dm-engage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dm-engage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dm-engage-btn:hover {
  background: var(--dm-muted-surface);
  transform: translateY(-1px);
}

.dm-engage-btn:first-child .dm-icon {
  color: #ff2d55;
}

.dm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dm-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dm-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.dm-action-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dm-action-text strong {
  font-size: 14px;
  line-height: 1.25;
}

.dm-action-text small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.dm-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
}

.dm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dm-desc + .dm-chips {
  margin-top: 12px;
}

.dm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  background: var(--dm-muted-surface);
}

.dm-chip .dm-icon {
  width: 15px;
  height: 15px;
}

.dm-chip-brand {
  color: #fff;
  background: var(--dm-brand);
}

.dm-chip-warn {
  color: #9a4b00;
  background: rgba(255, 149, 0, 0.16);
}

@media (prefers-color-scheme: dark) {
  .dm-chip-warn {
    color: #ffc06b;
  }
}

.dm-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.dm-list-row > span:nth-child(2) {
  flex: 1;
  text-align: left;
}

.dm-list-row .dm-well {
  --tint: #8e8e93;
  width: 30px;
  height: 30px;
}

.dm-chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.dm-coords {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
}

.dm-row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-row-btns .dm-icon {
  width: 16px;
  height: 16px;
}

.dm-app-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--dm-brand) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--dm-brand) 25%, var(--line));
}

.dm-app-cta img {
  width: 48px;
  height: 48px;
  border-radius: 22.5%;
}

.dm-app-cta strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.dm-app-cta p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.dm-app-cta .dm-store-row {
  grid-column: 1 / -1;
}

.dm-app-line {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--dm-brand);
}

/* ─────────────────────────────── Zones */

.dm-zone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--tint) 35%, var(--line));
  background: color-mix(in srgb, var(--tint) 6%, var(--surface));
}

.dm-zone-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dm-zone-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.dm-zone-swatch {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid var(--tint);
  background: color-mix(in srgb, var(--tint) 25%, transparent);
}

.dm-zone-swatch[data-dashed] {
  border-style: dashed;
  background: transparent;
}

.dm-faa {
  border: 0;
  padding: 0;
  overflow: hidden;
}

.dm-faa > :not(.dm-faa-head) {
  margin-left: 14px;
  margin-right: 14px;
}

.dm-faa > :last-child {
  margin-bottom: 14px;
}

.dm-faa-head {
  display: flex;
  flex-direction: column;
  padding: 14px;
  color: #fff;
  background: var(--tint);
}

.dm-faa-head .dm-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.dm-faa-ceiling {
  font-size: 28px;
  line-height: 1.1;
}

.dm-runways {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.dm-runways li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.dm-runways span {
  color: var(--muted);
  text-align: right;
}

/* ─────────────────────────────── Toast */

.dm-toast {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  z-index: 9;
  max-width: min(420px, calc(100% - 32px));
  margin: 0;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ─────────────────────────────── Strip under the map */

.dm-scroll-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-elevated);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.dm-scroll-strip img {
  border-radius: 22.5%;
}

.dm-scroll-strip strong {
  color: var(--ink);
}

.dm-scroll-strip .dm-icon {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

/* ─────────────────────────────── Below the map */

.dm-more-head {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 640px) {
  .dm-more-head {
    grid-template-columns: auto 1fr;
    gap: 32px;
  }
}

.dm-more-head .section-lead {
  margin-bottom: 18px;
}

.dm-compare {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

@media (min-width: 760px) {
  .dm-compare {
    grid-template-columns: 1fr 1.2fr;
  }
}

.dm-compare-col {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

.dm-compare-col h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.dm-compare-col ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.7;
}

.dm-compare-app {
  border-color: color-mix(in srgb, var(--dm-brand) 35%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--dm-brand) 9%, var(--surface-elevated)), var(--surface-elevated));
}

.dm-compare-app li::marker {
  color: var(--dm-brand);
}

.dm-faq {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.dm-faq details {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-elevated);
}

.dm-faq summary {
  font-weight: 700;
  cursor: pointer;
}

.dm-faq p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dm-legal-links {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ─────────────────────────────── "Can I fly here?" banner
 *
 * After the iOS FlightCheckBanner: a near-black instrument panel lit by its
 * accent — the brand teal before a check, the verdict colour after. One
 * element animates between the capsule and the panel; its two contents
 * cross-fade inside it. */

.dm-check {
  --accent: #0e92a0;
  --cb-panel: rgb(6, 7, 9);
  --cb-text: #fff;
  --cb-text-2: rgba(255, 255, 255, 0.62);
  --cb-text-3: rgba(255, 255, 255, 0.4);
  --cb-row: rgba(255, 255, 255, 0.06);
  --cb-line: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 7;
  height: 50px;
  transform: translateX(-50%);
  border-radius: 25px;
  overflow: hidden;
  color: var(--cb-text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent 160%),
    color-mix(in srgb, var(--cb-panel) 94%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 65%, transparent),
    0 6px 28px rgba(0, 0, 0, 0.3),
    0 0 20px color-mix(in srgb, var(--accent) 45%, transparent);
  transition:
    width 0.46s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.46s cubic-bezier(0.32, 0.72, 0, 1),
    border-radius 0.46s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.3s ease,
    left 0.25s ease,
    bottom 0.3s ease,
    opacity 0.2s ease;
}

.dm-check[data-state="expanded"] {
  border-radius: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 40%),
    color-mix(in srgb, var(--cb-panel) 94%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 6px 28px rgba(0, 0, 0, 0.35);
}

.dm-check .dm-icon {
  width: 16px;
  height: 16px;
}

/* Collapsed */

.dm-check-pill {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  height: 50px;
  padding: 0 16px 0 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.dm-check[data-state="expanded"] .dm-check-pill {
  opacity: 0;
  pointer-events: none;
}

.dm-cb-orb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

.dm-cb-orb .dm-icon {
  width: 14px;
  height: 14px;
}

.dm-cb-label {
  font-size: 15px;
  font-weight: 700;
}

.dm-cb-free {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cb-text-2);
  background: var(--cb-line);
}

.dm-cb-chev {
  width: 11px !important;
  height: 11px !important;
  color: var(--cb-text-3);
  transform: rotate(-90deg);
}

.dm-check-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: 25px;
}

/* Expanded */

.dm-check-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.dm-check[data-state="expanded"] .dm-check-panel {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease 0.12s, visibility 0s;
}

.dm-cb-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 14px;
}

.dm-cb-hero-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 18%, transparent);
}

.dm-cb-hero-orb .dm-icon {
  width: 22px;
  height: 22px;
}

/* The radar sweep while a check runs. */
.dm-cb-radar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 30%, color-mix(in srgb, var(--tint) 35%, transparent) 31%, transparent 33%),
    radial-gradient(circle, transparent 62%, color-mix(in srgb, var(--tint) 35%, transparent) 63%, transparent 65%),
    conic-gradient(from 0deg, transparent 0deg, transparent 270deg, color-mix(in srgb, var(--tint) 75%, transparent) 360deg);
  animation: dm-spin 1.6s linear infinite;
}

.dm-cb-titles {
  flex: 1;
  min-width: 0;
}

.dm-cb-titles h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--cb-text);
}

.dm-cb-reason {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cb-text-2);
}

.dm-cb-place {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #22b8c7;
}

.dm-cb-place .dm-icon {
  width: 12px;
  height: 12px;
}

.dm-cb-place span {
  color: var(--cb-text-3);
  font-weight: 500;
}

.dm-cb-min {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  color: var(--cb-text-2);
  background: var(--cb-line);
  cursor: pointer;
}

.dm-cb-min .dm-icon {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
}

.dm-cb-min:focus-visible,
.dm-cb-chip:focus-visible,
.dm-cb-row:focus-visible,
.dm-cb-again:focus-visible,
.dm-cb-app:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dm-cb-chips {
  display: flex;
  gap: 8px;
  padding: 2px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.dm-cb-chips::-webkit-scrollbar {
  display: none;
}

.dm-cb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--cb-text);
  background: color-mix(in srgb, var(--tint) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 38%, transparent);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.dm-cb-chip .dm-icon {
  width: 12px;
  height: 12px;
}

.dm-cb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tint);
}

.dm-cb-scroll {
  flex: 1;
  min-height: 0;
  padding: 4px 14px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--cb-line) transparent;
  mask-image: linear-gradient(180deg, transparent, #000 10px, #000 calc(100% - 18px), transparent);
}

.dm-cb-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dm-cb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  color: var(--cb-text);
  background: var(--cb-row);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint, #8e8e93) 28%, transparent);
  font: inherit;
  text-align: left;
}

button.dm-cb-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

button.dm-cb-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dm-cb-row-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--tint, #8e8e93);
  background: color-mix(in srgb, var(--tint, #8e8e93) 18%, transparent);
}

.dm-cb-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dm-cb-row-text strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.dm-cb-row-text small {
  font-size: 12px;
  font-weight: 500;
  color: var(--cb-text-2);
  line-height: 1.35;
}

.dm-cb-row-text .dm-cb-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dm-cb-cat .dm-icon {
  width: 11px;
  height: 11px;
  color: var(--tint);
}

.dm-cb-row-chev {
  width: 12px !important;
  height: 12px !important;
  color: var(--cb-text-3);
}

.dm-cb-skeleton .dm-cb-row-text > * {
  width: fit-content;
  color: transparent;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cb-row), rgba(255, 255, 255, 0.14), var(--cb-row));
  background-size: 200% 100%;
  animation: dm-shimmer 1.2s linear infinite;
}

.dm-cb-failed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--cb-text-2);
  text-align: center;
}

.dm-cb-failed > .dm-icon {
  width: 30px;
  height: 30px;
}

.dm-cb-failed p {
  margin: 0;
  font-size: 13px;
}

.dm-cb-retry,
.dm-cb-again,
.dm-cb-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.dm-cb-retry,
.dm-cb-app {
  color: #fff;
  background: #0e92a0;
}

.dm-cb-again {
  color: var(--cb-text);
  background: var(--cb-line);
}

.dm-cb-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px;
}

.dm-cb-actions {
  display: flex;
  gap: 8px;
}

.dm-cb-actions > * {
  flex: 1;
}

.dm-cb-free-line {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--cb-text-2);
  text-align: center;
}

.dm-cb-disclaimer {
  margin: 0;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--cb-text-3);
  text-align: center;
}

/* ─────────────────────────────── Sub-toggles, badges */

.dm-sublayer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 13.5px;
}

.dm-sublayer .dm-swatch-text {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.dm-switch-small {
  width: 38px;
  height: 23px;
}

.dm-switch-small::after {
  width: 17px;
  height: 17px;
}

.dm-switch-small:checked::after {
  transform: translateX(15px);
}

.dm-app-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  vertical-align: 1px;
  color: #fff;
  background: linear-gradient(120deg, #0e92a0, #107db0);
}

/* ─────────────────────────────── Spot media: the first photo only */

.dm-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #0b1220;
}

.dm-media img,
.dm-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-media-next {
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 50%;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dm-media-next:hover {
  transform: scale(1.08);
}

.dm-media-next .dm-icon {
  width: 18px;
  height: 18px;
}

.dm-author-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 2px 2px;
  margin-left: -2px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dm-author-btn:hover {
  background: var(--dm-muted-surface);
}

/* ─────────────────────────────── Weather preview */

.dm-sample {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--dm-brand) 45%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, #2f7de1 10%, var(--surface)), var(--surface));
}

.dm-sample-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a4b00;
  background: rgba(255, 149, 0, 0.18);
}

.dm-wx-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dm-wx-score {
  display: grid;
  place-items: center;
  align-content: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 80%),
    conic-gradient(#34c759 calc(var(--score) * 1%), var(--line) 0);
}

.dm-wx-score strong {
  font-size: 22px;
  line-height: 1;
}

.dm-wx-score small {
  font-size: 11px;
  color: var(--muted);
}

.dm-wx-status {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: #1f9d48;
}

.dm-wx-hero p {
  margin: 2px 0 0;
  font-size: 13.5px;
}

.dm-wx-window {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  background: rgba(255, 149, 0, 0.1);
}

.dm-wx-window .dm-icon {
  color: #f08c00;
  width: 18px;
  height: 18px;
}

.dm-wx-title {
  margin: 4px 0 -4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.dm-wx-hours {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dm-wx-hours li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dm-wx-bar {
  display: flex;
  align-items: flex-end;
  width: 14px;
  height: 56px;
  border-radius: 7px;
  background: var(--dm-muted-surface);
  overflow: hidden;
}

.dm-wx-bar::after {
  content: "";
  width: 100%;
  height: var(--h);
  border-radius: 7px;
  background: var(--c);
}

.dm-wx-hours strong {
  font-size: 13px;
}

.dm-wx-hours small {
  font-size: 10.5px;
  color: var(--muted);
}

.dm-wx-kp {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.dm-wx-cta {
  align-self: stretch;
}

.dm-wx-cta .dm-icon {
  width: 18px;
  height: 18px;
}

/* ─────────────────────────────── SEO / about section */

.dm-about {
  max-width: 760px;
}

.dm-about h1.section-heading {
  font-size: clamp(28px, 4.5vw, 40px);
  margin-bottom: 12px;
}

.dm-seo-grid {
  display: grid;
  gap: 16px;
  margin: 8px 0 56px;
}

@media (min-width: 720px) {
  .dm-seo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dm-seo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dm-seo-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

.dm-seo-grid h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.dm-seo-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.dm-faq-title {
  margin-top: 48px;
}

/* ─────────────────────────────── Phones */

@media (max-width: 720px) {
  .dm-map-wrap {
    height: calc(100dvh - 64px - 52px);
  }

  .dm-top-left {
    right: 12px;
    width: auto;
  }

  .dm-brand-text p {
    display: none;
  }

  .dm-top-right {
    top: 116px;
    flex-direction: column;
  }

  .dm-tool {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .dm-tool .dm-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .dm-zoom-chip {
    top: auto;
    bottom: 96px;
    font-size: 12.5px;
  }

  .dm-check {
    bottom: 16px;
  }

  .dm-check[data-state="expanded"] {
    bottom: 8px;
  }

  .dm-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 80%;
    border-radius: var(--dm-radius) var(--dm-radius) 0 0;
    transform: translateY(16px);
  }

  .dm-panel::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 38px;
    height: 5px;
    margin-left: -19px;
    border-radius: 3px;
    background: var(--line);
    z-index: 3;
  }

  .dm-map-wrap:has(.dm-panel.is-open) .dm-top-right,
  .dm-map-wrap:has(.dm-panel.is-open) .maplibregl-ctrl-bottom-right {
    right: 12px;
  }

  .dm-map-wrap:has(.dm-panel.is-open) .dm-check {
    left: 50%;
    opacity: 0;
    pointer-events: none;
  }

  .dm-feature-list {
    grid-template-columns: 1fr;
  }

  .dm-scroll-strip span {
    font-size: 13px;
  }

  .dm-scroll-strip strong {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-panel,
  .dm-check,
  .dm-check > *,
  .dm-tool,
  .dm-dialog[open],
  .dm-progress,
  .dm-cb-radar,
  .dm-cb-skeleton .dm-cb-row-text > * {
    transition: none;
    animation: none;
  }
}

@keyframes dm-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
