:root {
  --bg: #f4f7f6;
  --panel: #ffffff;
  --text: #14262d;
  --muted: #607179;
  --line: #d9e5e1;
  --primary: #0f626b;
  --primary-dark: #083f47;
  --accent: #ef7b45;
  --soft: #edf6f3;
  --shadow: 0 16px 36px rgba(20, 50, 57, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

button,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  color: #fff;
  background: linear-gradient(135deg, #0c4650 0%, #156c70 62%, #d46f41 145%);
}

.header-copy {
  min-width: 0;
}

.app-header h1 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  letter-spacing: 0;
  line-height: 1.2;
}

.header-summary {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-header .eyebrow {
  color: #ffd8bd;
}

.header-meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.header-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  color: #073b42;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  min-height: calc(100vh - 96px);
  padding: 18px;
}

.sidebar,
.map-panel {
  min-width: 0;
  min-height: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 229, 225, 0.95);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  overflow: hidden;
}

.sheet-handle {
  display: none;
}

.mobile-sheet-summary {
  display: none;
}

.itinerary-list-section {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.filters-panel {
  flex: 0 0 auto;
  margin-bottom: 12px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.filters-panel summary {
  padding: 11px 12px;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
}

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

.filter-grid label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-grid select,
#resetFilters {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
}

.filter-grid select {
  min-width: 0;
  padding: 0 9px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

#resetFilters {
  align-self: end;
  color: #fff;
  background: var(--primary);
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.carousel-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.carousel-window {
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.itinerary-list {
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transition: transform 0.32s ease;
  will-change: transform;
}

.itinerary-card {
  display: block;
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  padding: 18px;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  scrollbar-width: thin;
}

.itinerary-card:hover,
.itinerary-card.active,
.itinerary-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(18, 99, 107, 0.16);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.itinerary-card h2 {
  margin: 6px 0 10px;
  color: var(--primary-dark);
  font-size: 1.18rem;
  line-height: 1.35;
}

.itinerary-card h3 {
  margin: 16px 0 10px;
  color: var(--text);
  font-size: 0.98rem;
}

.card-description,
.card-line {
  margin: 0 0 10px;
  color: #51666d;
  line-height: 1.65;
}

.card-line strong {
  color: var(--primary-dark);
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.meta-box {
  min-width: 0;
  min-height: 60px;
  padding: 10px 11px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meta-box span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.meta-box strong {
  display: block;
  margin-top: 5px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.comment-box {
  margin: 12px 0;
  padding: 12px 13px;
  background: #fff8f2;
  border: 1px solid #f0d7c6;
  border-radius: 10px;
}

.comment-box span,
.line-bot-panel span {
  display: block;
  color: #a24f25;
  font-size: 0.76rem;
  font-weight: 900;
}

.comment-box p,
.line-bot-panel p {
  margin: 6px 0 0;
  color: #314d54;
  line-height: 1.58;
}

.line-bot-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.line-bot-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.line-import-button,
.spot-import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.line-import-button:disabled,
.spot-import-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.line-import-button:hover,
.line-import-button:focus-visible,
.spot-import-button:hover,
.spot-import-button:focus-visible,
.is-copied {
  background: var(--primary-dark);
}

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

.spot-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spot-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.spot-list span {
  display: block;
  color: #51666d;
  line-height: 1.55;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 84px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(18, 99, 107, 0.2);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.carousel-status {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 900;
}

.map-panel {
  position: relative;
  display: grid;
  min-height: 640px;
  overflow: hidden;
  background: #cfe4ea;
}

.interactive-map {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 640px;
  background: #cfe4ea;
}

.map-info {
  position: absolute;
  z-index: 450;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 229, 225, 0.9);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20, 50, 57, 0.12);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.map-info h2 {
  margin: 3px 0 0;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#spotCount {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.map-marker-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #6377d6;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(20, 50, 57, 0.16),
    0 9px 18px rgba(20, 50, 57, 0.26);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.map-marker-dot.food {
  background: #d95f7d;
}

.map-marker-dot.nature {
  background: #df9d22;
}

.map-marker-dot.water {
  background: #3d95b0;
}

.map-marker-dot.culture {
  background: #32875b;
}

.map-marker-dot.active {
  box-shadow:
    0 0 0 5px rgba(239, 123, 69, 0.28),
    0 12px 26px rgba(20, 50, 57, 0.34);
  transform: scale(1.12);
}

.leaflet-container {
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

.leaflet-control-zoom a {
  color: var(--primary-dark);
  font-weight: 900;
}

.locate-control {
  margin-top: 76px !important;
}

.locate-control-button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  color: var(--primary-dark);
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.locate-control-button:hover,
.locate-control-button:focus-visible {
  color: #fff;
  background: var(--primary);
  outline: none;
}

.user-location-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.user-location-dot::before {
  position: absolute;
  width: 28px;
  height: 28px;
  content: "";
  background: rgba(22, 119, 255, 0.22);
  border-radius: 50%;
  animation: location-pulse 1.8s ease-out infinite;
}

.user-location-dot span {
  position: relative;
  width: 16px;
  height: 16px;
  background: #1677ff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(8, 63, 71, 0.18),
    0 5px 14px rgba(22, 119, 255, 0.45);
}

@keyframes location-pulse {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.location-toast {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 14px;
  color: #fff;
  background: rgba(8, 63, 71, 0.94);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(20, 50, 57, 0.24);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.location-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.location-permission-sheet {
  position: fixed;
  z-index: 980;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(8, 33, 39, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.location-permission-sheet.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.location-permission-card {
  width: min(420px, 100%);
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(217, 229, 225, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20, 50, 57, 0.24);
  transform: translateY(14px);
  transition: transform 0.2s ease;
}

.location-permission-sheet.is-visible .location-permission-card {
  transform: translateY(0);
}

.location-permission-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at center, #1677ff 0 6px, #fff 7px 10px, transparent 11px),
    radial-gradient(circle at center, rgba(22, 119, 255, 0.16) 0 21px, transparent 22px);
  border: 1px solid rgba(22, 119, 255, 0.24);
  border-radius: 50%;
}

.location-permission-card h2 {
  margin: 5px 0 8px;
  color: var(--primary-dark);
  font-size: 1.45rem;
  line-height: 1.22;
}

.location-permission-card p {
  margin: 0;
  color: #53676f;
  line-height: 1.55;
}

.location-permission-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.location-permission-primary,
.location-permission-secondary {
  min-height: 46px;
  padding: 0 15px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.location-permission-primary {
  color: #fff;
  background: var(--primary);
  border: 0;
}

.location-permission-secondary {
  color: var(--primary-dark);
  background: #f4f7f6;
  border: 1px solid var(--line);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.leaflet-popup-content {
  width: min(300px, calc(100vw - 64px)) !important;
  margin: 0;
}

.popup-card {
  position: relative;
  max-width: 100%;
  min-width: 250px;
  padding: 13px;
  overflow-wrap: anywhere;
}

.popup-qr {
  display: none;
}

.popup-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.popup-card h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 1rem;
  line-height: 1.35;
}

.popup-card p {
  margin: 0;
  color: #425e64;
  line-height: 1.55;
}

.popup-card dl {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
}

.popup-card dl div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.popup-card dt {
  color: var(--muted);
  font-weight: 900;
}

.popup-card dd {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-right: 0;
}

.map-error,
.empty-state {
  padding: 18px;
  color: var(--muted);
  background: #f8fbfa;
  border: 1px dashed var(--line);
  border-radius: 12px;
  line-height: 1.6;
}

.map-error {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 32px));
  z-index: 2;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sidebar {
    overflow: visible;
  }

  .carousel-window,
  .itinerary-list {
    height: auto;
  }

  .itinerary-card {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .map-panel,
  .interactive-map {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  body {
    height: 100dvh;
    overflow: hidden;
    background: #d9eef3;
  }

  .app-header {
    display: none;
  }

  .app-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .map-panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .interactive-map {
    height: 100dvh;
    min-height: 100dvh;
  }

  .map-info {
    display: none;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 620;
    display: flex;
    flex-direction: column;
    height: var(--sheet-height, 38dvh);
    max-height: 82dvh;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 0;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 42px rgba(20, 50, 57, 0.22);
    transition: height 0.22s ease;
  }

  .sidebar.is-dragging {
    transition: none;
  }

  .sheet-handle {
    display: grid;
    place-items: center;
    width: 100%;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: ns-resize;
    touch-action: none;
  }

  .sheet-handle::before {
    width: 48px;
    height: 5px;
    content: "";
    background: #cfdadd;
    border-radius: 999px;
  }

  .mobile-sheet-summary {
    display: block;
    flex: 0 0 auto;
    padding: 0 18px 12px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(217, 229, 225, 0.7);
  }

  .mobile-sheet-summary p {
    margin: 0;
    color: #53676f;
    line-height: 1.45;
  }

  .mobile-sheet-summary p:first-child {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .mobile-sheet-summary h2 {
    margin: 5px 0 6px;
    color: #1e2a32;
    font-size: 1.34rem;
    line-height: 1.22;
  }

  .mobile-sheet-summary p:last-child {
    display: block;
  }

  #mobileSheetDescription {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.94rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-sheet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
  }

  .mobile-sheet-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    color: var(--primary-dark);
    background: #e7f6f8;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 900;
  }

  .mobile-sheet-note {
    margin-top: 10px;
    padding: 10px 11px;
    background: #fff8f2;
    border: 1px solid #f0d7c6;
    border-radius: 10px;
  }

  .mobile-sheet-note span {
    display: block;
    color: #a24f25;
    font-size: 0.78rem;
    font-weight: 900;
  }

  .mobile-sheet-note p {
    margin: 4px 0 0;
    color: #314d54;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .mobile-sheet-actions {
    margin-top: 12px;
  }

  .mobile-summary-import {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    font-size: 0.94rem;
    box-shadow: 0 10px 22px rgba(18, 99, 107, 0.16);
  }

  .itinerary-list-section {
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 12px 18px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .section-heading {
    display: none;
  }

  .filters-panel {
    position: fixed;
    z-index: 760;
    top: max(12px, env(safe-area-inset-top));
    left: 14px;
    right: 14px;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(20, 50, 57, 0.18);
  }

  .filters-panel[open] {
    border-radius: 22px;
  }

  .filters-panel summary {
    min-height: 54px;
    padding: 0 58px 0 18px;
    line-height: 54px;
    overflow: hidden;
    color: var(--primary-dark);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filters-panel summary::after {
    position: absolute;
    top: 9px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 36px;
    color: #fff;
    content: "篩選";
    background: var(--primary);
    border-radius: 999px;
    font-size: 0.84rem;
  }

  .filters-panel summary {
    position: relative;
  }

  .filters-panel summary::marker,
  .filters-panel summary::-webkit-details-marker {
    display: none;
    content: "";
  }

  .filter-grid {
    grid-template-columns: 1fr;
    max-height: 58dvh;
    padding: 0 14px 14px;
    overflow-y: auto;
  }

  .carousel-shell {
    display: block;
    min-height: 0;
  }

  .carousel-window {
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    min-height: 0;
  }

  .itinerary-list {
    display: flex;
    align-items: flex-start;
    height: auto;
    min-height: 0;
  }

  .itinerary-card {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 2px 0 0;
    font-size: 0.94rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    touch-action: pan-y;
  }

  .carousel-button {
    display: none;
  }

  .card-topline {
    display: block;
    margin-bottom: 4px;
  }

  .itinerary-card .eyebrow {
    display: none;
  }

  .itinerary-card h2 {
    display: none;
  }

  .card-description {
    display: none;
  }

  .card-meta-grid {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
  }

  .meta-box {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 8px 12px;
    background: #e7f6f8;
    border: 0;
    border-radius: 999px;
  }

  .meta-box span {
    display: none;
  }

  .meta-box strong {
    margin: 0;
    color: var(--primary-dark);
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .card-line {
    display: none;
  }

  .comment-box {
    display: none;
  }

  .itinerary-card h3 {
    margin-top: 16px;
  }

  .spot-list {
    gap: 8px;
    margin-bottom: 14px;
  }

  .spot-list li {
    grid-template-columns: 1fr;
    padding: 11px;
    background: #f8fbfa;
  }

  .spot-import-button {
    display: none;
  }

  .line-bot-panel {
    display: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .line-bot-panel > div {
    display: none;
  }

  .line-import-button {
    width: 100%;
  }

  .line-bot-panel .line-import-button {
    min-height: 46px;
    border-radius: 999px;
    font-size: 0.94rem;
  }

  .carousel-status {
    display: none;
  }

  .leaflet-control-zoom {
    margin-top: 84px !important;
  }

  .locate-control {
    margin-top: 178px !important;
  }

  .leaflet-bottom {
    bottom: calc(var(--sheet-height, 38dvh) + 8px);
  }

  .location-toast {
    bottom: calc(var(--sheet-height, 38dvh) + 18px);
    border-radius: 16px;
  }

  .leaflet-popup {
    max-width: calc(100vw - 32px);
  }

  .leaflet-popup-content {
    width: min(330px, calc(100vw - 48px)) !important;
  }

  .mobile-popup .leaflet-popup-content {
    width: min(276px, calc(100vw - 64px)) !important;
  }

  .popup-card {
    min-width: 220px;
    padding-right: 13px;
    padding-top: 13px;
  }

  .mobile-spot-card {
    min-width: 234px;
    padding: 12px;
  }

  .mobile-spot-card h3 {
    margin-bottom: 6px;
    font-size: 1.08rem;
  }

  .mobile-spot-card p:last-child {
    color: #53676f;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .mobile-spot-card .line-import-button {
    width: 100%;
    min-height: 36px;
    margin-top: 10px;
    border-radius: 999px;
    font-size: 0.86rem;
  }

  .popup-actions {
    margin-right: 0;
  }

  .popup-actions .line-import-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding: 10px;
  }

  .itinerary-card {
    padding: 12px;
  }

  .map-panel,
  .interactive-map {
    min-height: 330px;
    height: 330px;
  }
}
