.destination-map-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: auto;
  max-width: none;
  margin: 0 -14px;
}

.destination-map-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.destination-map-frame {
  position: relative;
  min-height: calc(100dvh - 210px);
  height: calc(100dvh - 210px);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.92), transparent 30%),
    radial-gradient(circle at top right, rgba(167, 243, 208, 0.62), transparent 26%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.destination-map-canvas {
  width: 100%;
  height: 100%;
}

.destination-map-top-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 460;
  pointer-events: none;
}

.destination-map-top-overlay-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.destination-map-status-overlay {
  position: absolute;
  inset: 0;
  z-index: 455;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}

.destination-map-status-overlay.has-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08));
}

.destination-map-frame .leaflet-left .leaflet-control {
  margin-left: 14px;
}

.destination-map-frame .leaflet-bottom .leaflet-control {
  margin-bottom: 16px;
}

.destination-map-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: calc(100% - 152px);
}

.destination-map-overlay-tools {
  flex: 0 0 auto;
  pointer-events: auto;
}

.destination-map-refresh-btn {
  min-height: 36px;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.destination-map-refresh-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.destination-map-refresh-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.destination-map-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0.02em;
}

.destination-map-chip.is-alert {
  background: rgba(254, 242, 242, 0.97);
  border-color: rgba(252, 165, 165, 0.9);
  color: #b91c1c;
}

.destination-map-fabs {
  position: absolute;
  right: 18px;
  bottom: 42px;
  z-index: 460;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.destination-map-fab {
  border: none;
  width: 126px;
  min-height: 48px;
  border-radius: 18px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #c8102e;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(200, 16, 46, 0.26);
}

.destination-map-fab.secondary {
  background: rgba(255, 255, 255, 0.97);
  color: #111827;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.destination-map-fab svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.destination-route-mount {
  position: relative;
  z-index: 465;
  margin-top: -122px;
  padding: 0 18px;
}

.destination-route-mount:empty {
  display: none;
}

.destination-map-page.has-route-summary .destination-map-frame {
  min-height: calc(100dvh - 244px);
  height: calc(100dvh - 244px);
}

.destination-map-page.has-route-summary .destination-map-fabs {
  bottom: 162px;
}

.destination-route-actions .pill,
.destination-form-inline .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.destination-route-actions .pill svg,
.destination-form-inline .pill svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.destination-map-fab:disabled,
.destination-route-actions .pill:disabled,
.destination-form-inline .pill:disabled {
  opacity: 0.72;
  cursor: wait;
}

.destination-route-card {
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 12px 14px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 250, 252, 0.985));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.destination-route-card-empty {
  background:
    radial-gradient(circle at top right, rgba(254, 242, 242, 0.78), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 250, 252, 0.985));
}

.destination-route-card-handle {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 0 auto 10px;
}

.destination-route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.destination-sheet-eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.destination-route-title,
.destination-sheet-title {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.destination-route-subtitle,
.destination-sheet-subtitle {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.destination-route-total {
  min-width: 84px;
  padding: 9px 11px 10px;
  border-radius: 18px;
  background: #fff1f3;
  box-shadow: inset 0 0 0 1px rgba(251, 207, 232, 0.65);
  text-align: right;
}

.destination-route-total-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b91c1c;
}

.destination-route-total strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  color: #c8102e;
  line-height: 1;
  letter-spacing: -0.04em;
}

.destination-route-total span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.destination-route-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.destination-route-item {
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  padding: 11px 13px;
}

.destination-route-line {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.destination-route-meta {
  margin-top: 5px;
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}

.destination-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.destination-route-actions.is-compact {
  justify-content: flex-end;
  margin-top: 12px;
}

.destination-route-actions-planner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.destination-mini-btn {
  min-height: 42px;
  padding: 10px 14px;
}

.destination-route-actions.is-compact .destination-mini-btn {
  min-height: 38px;
  padding: 8px 14px;
}

.destination-route-empty {
  margin-top: 14px;
  border-radius: 20px;
  border: 1px dashed #d7dee7;
  background: #f8fafc;
  padding: 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.destination-inline-alert {
  padding: 12px 14px;
  border-radius: 18px;
  color: #b91c1c;
  font-weight: 800;
  border: 1px solid rgba(254, 202, 202, 0.92);
  background: rgba(254, 242, 242, 0.96);
}

.destination-map-status-card {
  width: min(100%, 320px);
  pointer-events: auto;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.destination-inline-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.destination-inline-notice-icon,
.destination-block-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fee2e2, #fff1f2);
  color: #c8102e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.destination-inline-notice-icon svg,
.destination-block-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.destination-inline-notice-main {
  min-width: 0;
}

.destination-inline-notice-title {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
}

.destination-inline-notice-copy {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.destination-block-card {
  padding: 20px;
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.95);
  pointer-events: auto;
}

.destination-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 280px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.destination-block-title {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}

.destination-block-copy {
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.destination-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.destination-sheet-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: min(92vw, 390px);
  max-height: min(76vh, 720px);
  overflow: auto;
  z-index: 1810;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.988), rgba(248, 250, 252, 0.988));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 30px 64px rgba(15, 23, 42, 0.2);
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
}

.destination-sheet-panel-form,
.destination-sheet-panel-chooser {
  width: min(92vw, 420px);
}

.destination-sheet-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #d7dee7;
  margin: 0 auto 14px;
}

.destination-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.destination-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5eaf1;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.destination-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.destination-form-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.destination-planner-hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.destination-planner-hint {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.destination-inline-btn {
  min-height: 48px;
}

.destination-stop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.destination-stop-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 20px;
  padding: 12px 13px;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
}

.destination-stop-index {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #c8102e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.destination-stop-main {
  min-width: 0;
}

.destination-stop-code {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.destination-stop-name {
  margin-top: 3px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.destination-stop-remove {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #94a3b8;
  box-shadow: inset 0 0 0 1px #e5eaf1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.destination-stop-remove svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.destination-chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.destination-choice-card {
  border: 1px solid #e5eaf1;
  border-radius: 22px;
  background: #fff;
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.destination-choice-card svg {
  width: 20px;
  height: 20px;
  color: #c8102e;
  stroke-width: 2.2;
}

.destination-choice-card strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: #111827;
}

.destination-choice-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  font-weight: 700;
}

.destination-detail-head-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.destination-confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.destination-confidence-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.destination-confidence-badge.is-verified {
  background: #ecfdf5;
  color: #047857;
}

.destination-confidence-badge.is-verified-flag {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.destination-confidence-badge.is-review {
  background: #fef2f2;
  color: #b91c1c;
}

.destination-confidence-badge.is-check {
  background: #eef2ff;
  color: #4338ca;
}

.destination-confidence-badge.is-pending {
  background: #f3f4f6;
  color: #475569;
}

.destination-detail-primary-grid,
.destination-detail-grid,
.destination-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.destination-detail-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.destination-detail-card {
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  padding: 12px 13px;
}

.destination-detail-card-highlight {
  grid-column: 1 / -1;
  background: #fff7f8;
  border-color: #fbcfe8;
}

.destination-detail-label,
.destination-field-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.destination-detail-value {
  margin-top: 6px;
  font-size: 13px;
  color: #111827;
  line-height: 1.45;
  font-weight: 800;
}

.destination-sheet-panel-disclaimer {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(92vw, 400px);
  max-height: none;
  overflow: visible;
  padding: 18px 18px 20px;
}

.destination-disclaimer-copy {
  margin-top: 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
}

.destination-disclaimer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.destination-vote-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.destination-vote-btn {
  min-height: 48px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 900;
  color: #334155;
}

.destination-vote-btn.like {
  color: #047857;
  border-color: rgba(167, 243, 208, 0.95);
  background: #ecfdf5;
}

.destination-vote-btn.dislike {
  color: #b91c1c;
  border-color: rgba(252, 165, 165, 0.9);
  background: #fef2f2;
}

.destination-vote-btn.copy {
  color: #111827;
  background: #fff;
}

.destination-vote-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.destination-vote-btn.like.active {
  color: #166534;
  border-color: rgba(134, 239, 172, 0.9);
  background: #dcfce7;
}

.destination-vote-btn.dislike.active {
  color: #b91c1c;
  border-color: rgba(252, 165, 165, 0.9);
  background: #fee2e2;
}

.destination-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.destination-route-stop-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #c8102e;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.destination-route-stop-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c8102e;
  font-size: 12px;
  font-weight: 900;
}

.destination-spin svg {
  animation: destinationSpin 1s linear infinite;
}

@keyframes destinationSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .destination-map-page {
    margin: 0 -14px;
  }

  .destination-map-frame {
    min-height: calc(100dvh - 194px);
    height: calc(100dvh - 194px);
    border-radius: 28px;
  }

  .destination-map-fabs {
    right: 16px;
    left: auto;
    bottom: 36px;
  }

  .destination-route-mount {
    margin-top: -114px;
    padding: 0 12px;
  }

  .destination-map-page.has-route-summary .destination-map-fabs {
    bottom: 150px;
  }

  .destination-map-page.has-route-summary .destination-map-frame {
    min-height: calc(100dvh - 230px);
    height: calc(100dvh - 230px);
  }

  .destination-map-chip-row {
    max-width: none;
  }

  .destination-map-top-overlay-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .destination-inline-notice {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .destination-inline-notice-icon {
    margin: 0 auto;
  }

  .destination-map-frame .leaflet-left .leaflet-control {
    margin-left: 10px;
  }

  .destination-map-frame .leaflet-bottom .leaflet-control {
    margin-bottom: 12px;
  }

  .destination-detail-primary-grid,
  .destination-detail-grid,
  .destination-detail-meta-grid,
  .destination-form-grid,
  .destination-chooser-grid {
    grid-template-columns: 1fr;
  }

  .destination-sheet-panel {
    width: calc(100vw - 18px);
    left: 9px;
    right: 9px;
    transform: none;
    bottom: calc(80px + env(safe-area-inset-bottom));
    border-radius: 26px;
  }

  .destination-sheet-panel-disclaimer {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100vw - 28px);
  }

  .destination-route-head,
  .destination-detail-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .destination-route-total {
    text-align: left;
  }

  .destination-route-actions:not(.destination-route-actions-planner) .pill,
  .destination-map-fab,
  .destination-link-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .destination-form-inline,
  .destination-vote-strip,
  .destination-route-actions-planner {
    grid-template-columns: 1fr;
  }

  .destination-map-fab {
    width: 118px;
  }

  .destination-map-frame {
    min-height: calc(100dvh - 186px);
    height: calc(100dvh - 186px);
  }

  .destination-map-page.has-route-summary .destination-map-frame {
    min-height: calc(100dvh - 222px);
    height: calc(100dvh - 222px);
  }
}
