/* ============================================================================
   MAKRAIL MOBILE & TABLET BOTTOM SHEET (KAARTLADE)
   Modern swipeable bottom sheet for campsites, stations, and railway routes.
   Optimized for mobile phones and iPad/tablets (screen width <= 1024px).
   ============================================================================ */

/* Backdrop overlay */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 30, 18, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  z-index: 9998;
}

.bottom-sheet-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* The Bottom Sheet Container */
.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 680px; /* Centered with max-width on tablets */
  margin: 0 auto;
  height: 90dvh;
  max-height: 92vh;
  background: var(--surface-bg, #ffffff);
  border-radius: var(--surface-radius, 8px) var(--surface-radius, 8px) 0 0;
  box-shadow: var(--surface-shadow-sheet, 0 -8px 28px rgba(38, 49, 46, 0.14));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
  touch-action: pan-y;
  border: 1px solid var(--surface-border, rgba(38, 49, 46, 0.14));
  border-bottom: 0;
  overflow: hidden;
}

/* Drag area & grabber pill */
.bottom-sheet-drag-area {
  width: 100%;
  padding: 12px 0 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.bottom-sheet-drag-area:active {
  cursor: grabbing;
}

.bottom-sheet-grabber {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease, width 0.2s ease;
}

.bottom-sheet-drag-area:hover .bottom-sheet-grabber,
.bottom-sheet-drag-area:active .bottom-sheet-grabber {
  background: #94a3b8;
  width: 52px;
}

/* Close button */
.bottom-sheet-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--surface-radius, 8px);
  background: var(--surface-muted, #f6f8f4);
  border: 1px solid var(--surface-border, rgba(38, 49, 46, 0.14));
  color: var(--text-dark, #26312e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.bottom-sheet-close:hover {
  background: #edf2e9;
  color: var(--color-primary-dark, #105c1d);
}

.bottom-sheet-close:active {
  transform: none;
}

/* Scrollable container */
.bottom-sheet-content-scroll {
  --scroll-fade-top: 0px;
  --scroll-fade-bottom: 0px;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px calc(160px + env(safe-area-inset-bottom, 32px)) 20px;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--scroll-fade-top), #000 calc(100% - var(--scroll-fade-bottom)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--scroll-fade-top), #000 calc(100% - var(--scroll-fade-bottom)), transparent 100%);
}

/* Header (Peek content) */
.bottom-sheet-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-border, rgba(38, 49, 46, 0.14));
}

.bottom-sheet-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.bottom-sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #e8f5e9;
  color: #198225;
}

.bottom-sheet-badge.station {
  background: #f1f5f9;
  color: #1e293b;
}

.bottom-sheet-badge.railway {
  background: #eff6ff;
  color: #1d4ed8;
}

.bottom-sheet-badge.supermarket {
  background: #fef3c7;
  color: #b45309;
}

.bottom-sheet-badge.bakery {
  background: #ffedd5;
  color: #c2410c;
}

.bottom-sheet-badge.pub,
.bottom-sheet-badge.bar,
.bottom-sheet-badge.cafe {
  background: #fdf2f8;
  color: #be185d;
}

.bottom-sheet-badge.restaurant {
  background: #fef2f2;
  color: #b91c1c;
}

.bottom-sheet-badge.tourist_info {
  background: #e0f2fe;
  color: #0369a1;
}

.bottom-sheet-distance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #198225;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #dcfce7;
}

.bottom-sheet-title {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
  padding-right: 32px; /* space for close button */
}

.bottom-sheet-subtitle {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

/* Facility chips / tags */
.bottom-sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.sheet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.sheet-chip i {
  color: #198225;
  font-size: 11px;
}

.sheet-chip.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Action buttons */
.bottom-sheet-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-sheet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--surface-radius, 8px);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 46px;
  flex: 1 1 auto;
}

.btn-sheet-primary {
  background: #198225;
  color: #ffffff !important;
  border: 1px solid #176f21;
  box-shadow: 0 2px 5px rgba(25, 130, 37, 0.18);
}

.btn-sheet-primary:hover {
  background: #105c1d;
  box-shadow: 0 3px 8px rgba(25, 130, 37, 0.22);
}

.btn-sheet-primary:active {
  transform: translateY(1px);
}

.btn-sheet-secondary {
  background: var(--surface-bg, #ffffff);
  color: var(--text-dark, #26312e) !important;
  border: 1px solid var(--surface-border, rgba(38, 49, 46, 0.14));
}

.btn-sheet-secondary:hover {
  background: var(--surface-muted, #f6f8f4);
  border-color: #94a3b8;
}

/* Expanded body content */
.bottom-sheet-body {
  padding-top: 18px;
}

.bottom-sheet-section {
  margin-bottom: 14px;
}

.bottom-sheet-section-title {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-sheet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sheet-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  color: #1e293b;
}

.sheet-detail-icon {
  width: 20px;
  color: #198225;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.sheet-detail-text {
  flex: 1 1 auto;
  word-break: break-word;
}

.sheet-detail-label {
  font-size: 11px;
  color: #64748b;
  display: block;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.sheet-detail-link {
  color: #198225;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Parsed desktop popup content and nearby sections */
.sheet-parsed-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-parsed-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.sheet-parsed-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sheet-parsed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-parsed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sheet-parsed-item:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.sheet-parsed-distance {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Train route list for stations */
.bottom-sheet-route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottom-sheet-route-list > li { display: flex; align-items: stretch; gap: 6px; }
.bottom-sheet-route-list .sheet-route-item { flex: 1 1 auto; min-width: 0; }
.sheet-route-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 53, 51, 0.3);
  border-radius: 6px;
  background: #ffffff;
  color: #ff3533;
  box-shadow: none;
  cursor: pointer;
}
.sheet-route-pin:hover { background: #fff7f6; transform: none; }
.sheet-route-pin[aria-pressed="true"] { border-color: rgba(255, 53, 51, 0.55); background: #fff0ef; color: #ff3533; }
.sheet-route-pin:focus-visible { outline: 2px solid rgba(255, 53, 51, 0.35); outline-offset: 2px; }
.bottom-sheet-actions #bottom-sheet-pin-btn { flex: 0 0 auto; grid-column: auto; justify-self: start; width: max-content; max-width: 100%; min-width: 0; min-height: 34px; padding: 6px 10px; border-color: rgba(255, 53, 51, 0.3); background: #ffffff; color: #ff3533; box-shadow: none; }
.bottom-sheet-actions #bottom-sheet-pin-btn:only-child { grid-column: auto; width: max-content; justify-self: start; }
.bottom-sheet-actions #bottom-sheet-pin-btn:hover { background: #fff7f6; }
.bottom-sheet-actions #bottom-sheet-pin-btn[aria-pressed="true"] { border-color: rgba(255, 53, 51, 0.55); background: #fff0ef; color: #ff3533 !important; }
.bottom-sheet-actions #bottom-sheet-pin-btn i { color: #ff3533; }

.sheet-route-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 48px;
  box-sizing: border-box;
}

.sheet-route-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.sheet-route-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}

.sheet-route-title i,
.sheet-route-item i {
  color: #198225;
  font-size: 13px;
  flex-shrink: 0;
  margin: 0;
}

.sheet-route-item.active-route {
  background: #fff7ed !important;
  border-color: #ff5500 !important;
  color: #9a2c00 !important;
  box-shadow: 0 0 0 1px #ff5500, 0 3px 8px rgba(255, 85, 0, 0.16) !important;
}

.sheet-route-item.active-route i {
  color: #ff5500 !important;
}

.sheet-route-item.active-route .sheet-route-badge {
  background: #ffedd5 !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
  font-weight: 600 !important;
}

.sheet-route-badge {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  letter-spacing: 0.01em;
}

/* Peek & Expanded states */
.bottom-sheet[data-state="closed"] {
  display: none !important;
  transform: translateY(120%) !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.bottom-sheet-backdrop:not(.visible) {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.bottom-sheet[data-state="peek"] {
  /* Peek state covers ~35% of the viewport height (min 260px, max 380px) */
  transform: translateY(calc(100% - clamp(260px, 35dvh, 380px)));
}

.bottom-sheet[data-state="peek"] .bottom-sheet-content-scroll {
  overflow-y: hidden;
}

.bottom-sheet[data-state="expanded"] {
  /* Fully expanded covers 90% of viewport */
  transform: translateY(0);
}

.bottom-sheet[data-state="expanded"] .bottom-sheet-content-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hide native Leaflet popups on mobile and tablet so bottom sheet takes over */
@media (max-width: 1024px) {
  .leaflet-popup {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Keep mobile and tablet popup actions aligned, compact, and easy to tap. */
.bottom-sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bottom-sheet-actions .btn-sheet {
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bottom-sheet-actions .btn-sheet:only-child {
  grid-column: 1 / -1;
}

.bottom-sheet-actions .btn-sheet:last-child:nth-child(odd):not(:only-child) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 4px);
}

.bottom-sheet .sheet-detail-row {
  gap: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
}

.bottom-sheet .sheet-detail-text {
  min-width: 0;
}

/* Lighter, tighter mobile card: the title carries the category, so nearby
   sections stay simple rows instead of nested cards. */
.bottom-sheet-content-scroll { padding: 6px 16px calc(160px + env(safe-area-inset-bottom, 32px)); }
.bottom-sheet-drag-area { padding: 16px 0 12px; }
.bottom-sheet-header { padding-bottom: 22px; border-bottom: 1px solid rgba(38, 49, 46, .1); }
.bottom-sheet-badge-row { min-height: 0; justify-content: flex-end; margin: 0 0 8px; }
.bottom-sheet-badge-row:empty { display: none; }
.bottom-sheet-badge { display: none !important; }
.bottom-sheet-distance { border: 0; background: transparent; padding: 0; color: #77837a; font-weight: 500; }
.bottom-sheet-title { font-size: 20px; line-height: 1.25; margin-bottom: 12px; padding-right: 36px; }
.bottom-sheet-title-icon { margin-right: 6px !important; font-size: .88em !important; vertical-align: 0 !important; }
.bottom-sheet-subtitle { margin-bottom: 14px; color: #66736a; }
.bottom-sheet-body { padding-top: 20px; }
.bottom-sheet-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 10px; }
.bottom-sheet-contact-actions,
.bottom-sheet-map-actions { display: flex; align-items: center; gap: 6px; }
.bottom-sheet-contact-actions { flex: 1 1 auto; min-width: 0; }
.bottom-sheet-map-actions { flex: 0 0 auto; margin-left: auto; }
.bottom-sheet-actions .btn-sheet {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
}
.bottom-sheet-actions .btn-sheet-primary { order: 0; }
.bottom-sheet-actions .btn-sheet-secondary { order: 1; }
.bottom-sheet-actions #bottom-sheet-pin-btn {
  order: -1;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(38, 49, 46, .13);
  border-radius: 10px;
  background: #f7f8f6;
  color: #49574e;
}
.bottom-sheet-actions #bottom-sheet-pin-btn i { color: inherit; margin: 0; }
.bottom-sheet-actions #bottom-sheet-share-btn { flex: 0 0 36px; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid rgba(38, 49, 46, .13); border-radius: 10px; background: #f7f8f6; color: #526158 !important; }
.bottom-sheet-actions #bottom-sheet-share-btn i { color: inherit; margin: 0; }
.bottom-sheet-actions #bottom-sheet-pin-btn .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.bottom-sheet-actions .btn-sheet-secondary { border-color: transparent; background: transparent; color: #526158 !important; }
.bottom-sheet-actions .btn-sheet-secondary:hover { background: #f3f6f2; border-color: transparent; }
.sheet-parsed-content { gap: 8px; margin-top: 8px !important; }
.sheet-parsed-section { padding: 5px 0 0; border: 0; border-radius: 0; background: transparent; }
.sheet-parsed-section-title { margin: 0 0 2px; color: #77837a; font-size: 10px; letter-spacing: .045em; }
.sheet-parsed-section-title i { display: none; }
.sheet-parsed-list { gap: 0; }
.sheet-parsed-item { min-height: 36px; padding: 7px 0; border: 0; border-bottom: 1px solid rgba(38,49,46,.07); border-radius: 0; background: transparent; font-weight: 400; }
.sheet-parsed-list li:last-child .sheet-parsed-item { border-bottom: 0; }
.sheet-parsed-item:hover { background: #f7f9f6; border-color: rgba(38,49,46,.07); color: #1e293b; }
.sheet-parsed-distance { padding: 0; color: #77837a; background: transparent; font-weight: 500; }

@media (max-width: 1024px) {
  .bottom-sheet {
    max-width: 680px;
    border-radius: 16px 16px 0 0;
  }
  .bottom-sheet-title { font-size: 20px; line-height: 1.25; }
  .bottom-sheet-section { margin-bottom: 24px; }
  .bottom-sheet-section-title {
    margin-bottom: 12px;
    color: #26312e;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    gap: 10px;
  }
  .bottom-sheet-section-title > i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f0f4ef;
    color: #198225;
    font-size: 15px;
  }
  .bottom-sheet-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    margin-top: 16px;
  }
  .bottom-sheet-contact-actions,
  .bottom-sheet-map-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .bottom-sheet-contact-actions { grid-column: 1; }
  .bottom-sheet-map-actions { grid-column: 2; margin-left: 0; }
  .bottom-sheet-actions > .bottom-sheet-contact-actions[hidden] + .bottom-sheet-map-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .bottom-sheet-actions > [hidden] { display: none !important; }
  .bottom-sheet-actions .btn-sheet {
    box-sizing: border-box;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(38, 49, 46, .12);
    border-radius: 9px;
    background: #f4f6f3;
    color: #59665d !important;
    box-shadow: none;
    font-size: 16px;
  }
  .bottom-sheet-actions .btn-sheet:hover { background: #eaf1e9; }
  .bottom-sheet-actions .btn-sheet-primary:hover { background: #105c1d; }
  .bottom-sheet-actions .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .bottom-sheet-actions #bottom-sheet-pin-btn { color: #ff3533 !important; }
  .bottom-sheet-actions #bottom-sheet-pin-btn i { color: #ff3533; }
  .bottom-sheet-actions #bottom-sheet-pin-btn[aria-pressed="true"] { background: #fff0ef; }
  .bottom-sheet-actions #bottom-sheet-pin-btn,
  .bottom-sheet-actions #bottom-sheet-share-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 9px;
  }
  .bottom-sheet-actions #bottom-sheet-route-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    flex: 1 1 auto;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .bottom-sheet-chips { gap: 8px; margin-bottom: 18px; }
  .sheet-chip { min-height: 34px; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
  .bottom-sheet .sheet-detail-row {
    align-items: center;
    min-height: 54px;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e1e7e0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
  }
  .bottom-sheet .sheet-detail-icon { width: 24px; font-size: 16px; }
  .bottom-sheet .sheet-detail-label { margin-bottom: 4px; font-size: 12px; }
  .sheet-parsed-content { gap: 16px !important; margin-top: 12px !important; }
  .sheet-parsed-section { padding: 0 !important; border: 0 !important; background: transparent !important; }
  .sheet-parsed-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #26312e;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }
  .sheet-parsed-section-icon i { display: inline-block; }
  .sheet-parsed-section-icon {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f1f5f0;
    font-size: 16px;
  }
  .sheet-parsed-section-name { min-width: 0; }
  .sheet-parsed-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    margin-left: auto;
    padding: 0 8px;
    border-radius: 7px;
    background: #f1f4f0;
    color: #59665d;
    font-size: 12px;
    font-weight: 600;
  }
  .sheet-parsed-list { gap: 8px !important; }
  .sheet-parsed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid #e1e7e0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #26312e !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(38, 49, 46, .04);
  }
  .sheet-parsed-item:hover,
  .sheet-parsed-item:focus-visible { border-color: #a9c7a9 !important; background: #f8fbf7 !important; outline: none; }
  .sheet-parsed-item-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .sheet-parsed-distance {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 7px;
    background: #f1f5f0;
    color: #405348;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .sheet-parsed-distance i { color: #198225; font-size: 12px; }
  .sheet-parsed-open-icon { flex: 0 0 auto; color: #77837a; font-size: 12px; }
  .bottom-sheet-route-list { gap: 10px; }
  .bottom-sheet-route-list > li { align-items: center; gap: 8px; }
  .sheet-route-item { min-height: 62px; padding: 12px; font-size: 15px; }
  .sheet-route-pin {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 1px solid rgba(38, 49, 46, .12);
    border-radius: 9px;
    background: #f4f6f3;
    color: #ff3533;
    font-size: 16px;
  }
  .sheet-route-pin:hover { background: #ffe8e7; }
}

