/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* PhotoSwipe Lightbox */
@import "photoswipe/dist/photoswipe.css";

@import "tailwindcss";

/* Alpine Editorial Design System */

/* CSS Custom Properties */
:root {
  /* Colors - Alpine Palette */
  --color-pine: #1a4a3a;
  --color-pine-dark: #0f2d24;
  --color-pine-light: #2a6a52;
  --color-terracotta: #c4593a;
  --color-terracotta-light: #e07a5a;
  --color-golden: #d4a05a;
  --color-golden-light: #e8c88a;
  --color-cream: #faf7f2;
  --color-cream-dark: #f0ebe3;
  --color-stone: #e8e2d9;
  --color-charcoal: #2a2a2a;
  --color-slate: #5a5a5a;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* Base Styles */
html {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
}

/* Custom Utility Classes */
@layer components {
  .font-display {
    font-family: var(--font-display);
  }

  .font-body {
    font-family: var(--font-body);
  }

  .bg-pine {
    background-color: var(--color-pine);
  }

  .bg-pine-dark {
    background-color: var(--color-pine-dark);
  }

  .bg-cream {
    background-color: var(--color-cream);
  }

  .bg-cream-dark {
    background-color: var(--color-cream-dark);
  }

  .bg-stone {
    background-color: var(--color-stone);
  }

  .bg-terracotta {
    background-color: var(--color-terracotta);
  }

  .text-pine {
    color: var(--color-pine);
  }

  .text-pine-light {
    color: var(--color-pine-light);
  }

  .text-terracotta {
    color: var(--color-terracotta);
  }

  .text-golden {
    color: var(--color-golden);
  }

  .text-charcoal {
    color: var(--color-charcoal);
  }

  .text-slate {
    color: var(--color-slate);
  }

  .border-pine {
    border-color: var(--color-pine);
  }

  .border-stone {
    border-color: var(--color-stone);
  }

  /* Topographic Pattern Background */
  .topo-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c13.807 0 25 11.193 25 25S43.807 55 30 55 5 43.807 5 30 16.193 5 30 5zm0 8c-9.389 0-17 7.611-17 17s7.611 17 17 17 17-7.611 17-17-7.611-17-17-17zm0 8c-4.971 0-9 4.029-9 9s4.029 9 9 9 9-4.029 9-9-4.029-9-9-9z' fill='%231a4a3a' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  }

  /* Mountain Silhouette Decoration */
  .mountain-silhouette {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 120L50 100L100 110L200 60L280 90L350 40L450 80L520 30L600 70L680 20L750 60L850 10L950 50L1050 5L1150 40L1200 25L1200 120Z' fill='%231a4a3a' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% auto;
  }

  /* Card Styles */
  .alpine-card {
    background-color: white;
    border: 1px solid var(--color-stone);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(42, 42, 42, 0.05), 0 2px 4px -2px rgba(42, 42, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .alpine-card:hover {
    box-shadow: 0 10px 15px -3px rgba(42, 42, 42, 0.08), 0 4px 6px -4px rgba(42, 42, 42, 0.05);
    border-color: var(--color-pine-light);
    transform: translateY(-2px);
  }

  /* Button Styles */
  .btn-primary {
    background-color: var(--color-pine);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-primary:hover {
    background-color: var(--color-pine-dark);
    transform: translateY(-1px);
  }

  .btn-secondary {
    background-color: var(--color-cream-dark);
    color: var(--color-pine);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-stone);
    transition: all 0.2s ease;
  }

  .btn-secondary:hover {
    background-color: var(--color-stone);
  }

  .btn-accent {
    background-color: var(--color-terracotta);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }

  .btn-accent:hover {
    background-color: var(--color-terracotta-light);
  }

  /* Input Styles */
  .alpine-input {
    font-family: var(--font-body);
    background-color: white;
    border: 1px solid var(--color-stone);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
  }

  .alpine-input:focus {
    outline: none;
    border-color: var(--color-pine);
    box-shadow: 0 0 0 3px rgba(26, 74, 58, 0.1);
  }

  .alpine-input::placeholder {
    color: #a0a0a0;
  }

  .alpine-select {
    font-family: var(--font-body);
    background-color: white;
    border: 1px solid var(--color-stone);
    border-radius: 0.5rem;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .alpine-select:focus {
    outline: none;
    border-color: var(--color-pine);
    box-shadow: 0 0 0 3px rgba(26, 74, 58, 0.1);
  }

  /* Label Styles */
  .alpine-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-slate);
    margin-bottom: 0.375rem;
    display: block;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  /* Section Headers */
  .section-header {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-pine);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-stone);
  }

  /* Altitude Badge */
  .altitude-badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-pine);
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-stone) 100%);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--color-stone);
  }

  /* Route Card */
  .route-card {
    background: linear-gradient(135deg, rgba(26, 74, 58, 0.02) 0%, rgba(26, 74, 58, 0.06) 100%);
    border: 1px solid rgba(26, 74, 58, 0.12);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
  }

  .route-card:hover {
    border-color: rgba(26, 74, 58, 0.25);
    box-shadow: 0 4px 12px -2px rgba(26, 74, 58, 0.08);
  }

  .route-card--with-location {
    background: linear-gradient(135deg, rgba(26, 74, 58, 0.04) 0%, rgba(212, 160, 90, 0.06) 100%);
    border-color: rgba(26, 74, 58, 0.18);
  }

  /* Route Stats (simple layout without location) */
  .route-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--color-stone);
  }

  .route-stat__value {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-charcoal);
    line-height: 1.2;
  }

  .route-stat__label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-slate);
    margin-top: 0.125rem;
  }

  /* Trip Timeline (when location is known) */
  .trip-timeline {
    margin-top: 0.25rem;
  }

  .trip-timeline__hero {
    background: linear-gradient(135deg, rgba(26, 74, 58, 0.08) 0%, rgba(26, 74, 58, 0.04) 100%);
    border: 1px solid rgba(26, 74, 58, 0.15);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .trip-timeline__journey {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
  }

  .trip-timeline__segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
  }

  .trip-timeline__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--color-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate);
    margin-bottom: 0.5rem;
  }

  .trip-timeline__icon--highlight {
    background: var(--color-golden);
    border-color: var(--color-golden);
    color: white;
  }

  .trip-timeline__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .trip-timeline__time {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-charcoal);
  }

  .trip-timeline__time--highlight {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-pine);
    font-size: 1rem;
  }

  .trip-timeline__label {
    font-size: 0.6875rem;
    color: var(--color-slate);
    margin-top: 0.125rem;
    white-space: nowrap;
  }

  .trip-timeline__connector {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    flex-shrink: 0;
  }

  /* Responsive adjustments for trip timeline */
  @media (max-width: 480px) {
    .trip-timeline__journey {
      gap: 0.125rem;
    }

    .trip-timeline__icon {
      width: 1.75rem;
      height: 1.75rem;
    }

    .trip-timeline__icon svg {
      width: 0.875rem;
      height: 0.875rem;
    }

    .trip-timeline__time {
      font-size: 0.8125rem;
    }

    .trip-timeline__label {
      font-size: 0.625rem;
    }

    .trip-timeline__connector svg {
      width: 0.75rem;
      height: 0.75rem;
    }
  }

  /* Sort Chips */
  .sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-slate);
    background: white;
    border: 1px solid var(--color-stone);
    border-radius: 9999px;
    transition: all 0.15s ease;
    white-space: nowrap;
  }

  .sort-chip:hover {
    border-color: var(--color-pine);
    color: var(--color-pine);
  }

  .sort-chip--active {
    background: var(--color-pine);
    border-color: var(--color-pine);
    color: white;
  }

  .sort-chip--active:hover {
    background: var(--color-pine-dark);
    border-color: var(--color-pine-dark);
    color: white;
  }

  /* Peak List Header */
  .peak-list-header {
    display: grid;
    grid-template-columns: 1fr 100px 100px 120px 40px;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-cream-dark);
    border-bottom: 1px solid var(--color-stone);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate);
  }

  .peak-list-header--no-location {
    grid-template-columns: 1fr 100px 40px;
  }

  .peak-list-header--with-photo {
    grid-template-columns: 56px 1fr 100px 100px 120px 40px;
  }

  .peak-list-header--with-photo.peak-list-header--no-location {
    grid-template-columns: 56px 1fr 100px 40px;
  }

  /* Peak List Row */
  .peak-list-row {
    display: block;
    transition: background-color 0.15s ease;
  }

  .peak-list-row:hover {
    background-color: var(--color-cream-dark);
  }

  .peak-list-row__grid {
    display: grid;
    grid-template-columns: 1fr 100px 100px 120px 40px;
    gap: 1rem;
    padding: 1rem 1.25rem;
    align-items: center;
  }

  .peak-list-row__grid--no-location {
    grid-template-columns: 1fr 100px 40px;
  }

  .peak-list-row__grid--with-photo {
    grid-template-columns: 56px 1fr 100px 100px 120px 40px;
  }

  .peak-list-row__grid--with-photo.peak-list-row__grid--no-location {
    grid-template-columns: 56px 1fr 100px 40px;
  }

  .peak-list-row__cell {
    min-width: 0;
  }

  /* Peak list animations */
  .peak-list-row {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
  }

  /* Navigation Link */
  .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
  }

  /* Location Status Indicator */
  .location-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .location-status__indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--color-cream-dark);
    border: 1px solid var(--color-stone);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
  }

  .location-status__indicator--loading {
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-stone) 100%);
  }

  .location-status__indicator--success {
    background: linear-gradient(135deg, rgba(26, 74, 58, 0.08) 0%, rgba(26, 74, 58, 0.04) 100%);
    border-color: rgba(26, 74, 58, 0.2);
  }

  .location-status__indicator--error {
    background: linear-gradient(135deg, rgba(196, 89, 58, 0.08) 0%, rgba(196, 89, 58, 0.04) 100%);
    border-color: rgba(196, 89, 58, 0.2);
  }

  .location-status__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate);
  }

  .location-status__icon--success {
    color: var(--color-pine);
  }

  .location-status__icon--error {
    color: var(--color-terracotta);
  }

  .location-status__text {
    color: var(--color-charcoal);
    font-weight: 500;
  }

  .location-status__coords {
    color: var(--color-slate);
    font-size: 0.8125rem;
    padding-left: 0.25rem;
  }

  .location-status__action {
    color: var(--color-pine);
    font-weight: 500;
    font-size: 0.8125rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--color-stone);
    margin-left: 0.25rem;
    transition: color 0.15s ease;
  }

  .location-status__action:hover {
    color: var(--color-pine-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* Responsive adjustments for location status */
  @media (max-width: 480px) {
    .location-status__indicator {
      padding: 0.375rem 0.75rem;
      font-size: 0.8125rem;
    }

    .location-status__coords {
      display: none;
    }
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-slide-in {
  animation: slideInRight 0.4s ease-out forwards;
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s ease-in-out infinite;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }

/* Peak Card specific animation */
.peak-card {
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Personal collection workspace */
.collection-shell { max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 3rem; }
.collection-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.collection-header h1 { font: 600 clamp(2rem, 4vw, 3rem)/1.15 var(--font-display); color: var(--color-pine); overflow-wrap: anywhere; }
.collection-eyebrow { color: var(--color-slate); font-size: .875rem; margin-bottom: .4rem; }
.collection-progress { display: flex; gap: .6rem; align-items: center; color: var(--color-slate); flex-wrap: wrap; }
.collection-progress strong { font: 600 1.75rem var(--font-display); color: var(--color-pine); }
.collection-nav, .collection-types { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.collection-tab, .collection-action { display: inline-flex; gap: .4rem; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--color-stone); border-radius: .6rem; background: white; color: var(--color-pine); font: 500 .9rem var(--font-body); text-decoration: none; cursor: pointer; }
.collection-tab span { opacity: .75; font-variant-numeric: tabular-nums; }
.collection-tab:hover, .collection-action:hover { border-color: var(--color-pine); }
.collection-tab.is-active, .collection-action.is-active { background: var(--color-pine); border-color: var(--color-pine); color: white; }
.collection-action:disabled { opacity: .6; cursor: wait; }
.collection-shell :is(button, a, input, select, summary):focus-visible { outline: 3px solid var(--color-terracotta); outline-offset: 3px; }
.collection-search { background: white; border: 1px solid var(--color-stone); border-radius: .85rem; padding: 1.25rem; margin: 1rem 0 1.6rem; }
.collection-search-main, .collection-search-options { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.collection-search-options { margin-top: 1rem; }
.collection-search-main > div, .collection-search-options > div { flex: 1; min-width: 150px; }
.collection-search-main .collection-search-name { flex: 2; min-width: 200px; }
.collection-search label { display: block; color: var(--color-slate); font-size: .8rem; margin-bottom: .3rem; }
.collection-search input, .collection-search select { min-height: 44px; width: 100%; }
.collection-search input[type=submit] { width: auto; }
.collection-search .alpine-select { max-width: 100%; }
.collection-filters, .collection-location { margin-top: 1rem; border-top: 1px solid var(--color-stone); padding-top: .8rem; }
.collection-search summary { color: var(--color-pine); cursor: pointer; min-height: 32px; font-weight: 500; }
.collection-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-top: .7rem; }
.collection-hint { color: var(--color-slate); font-size: .85rem; line-height: 1.6; margin: .7rem 0; }
.collection-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.collection-results-heading h2, .collection-route-section h2, .collection-sidebar h2 { font: 600 1.5rem var(--font-display); color: var(--color-pine); }
.collection-results-heading p { color: var(--color-slate); font-size: .85rem; }
.collection-list { border: 1px solid var(--color-stone); border-radius: .8rem; background: white; }
.collection-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--color-stone); }
.collection-row:last-child { border-bottom: 0; }
.collection-row > div:first-child { min-width: 0; }
.collection-row h3, .collection-route-card h3 { font: 500 1.2rem/1.35 var(--font-display); color: var(--color-charcoal); overflow-wrap: anywhere; }
.collection-row h3 a:hover { color: var(--color-pine); text-decoration: underline; }
.collection-destination { display: flex; align-items: center; gap: 1rem; }
.collection-thumbnail { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: .5rem; }
.collection-placeholder { display: grid; place-items: center; background: var(--color-cream-dark); color: var(--color-pine); font-size: 2rem; }
.collection-meta { font-size: .82rem; line-height: 1.6; color: var(--color-slate); margin-top: .2rem; overflow-wrap: anywhere; }
.collection-meta > span { display: inline-block; margin-right: .65rem; }
.collection-badge { background: #e5eee7; color: var(--color-pine); border-radius: .3rem; padding: .1rem .4rem; }
.collection-actions { display: flex; gap: .4rem; flex-wrap: wrap; flex-shrink: 0; }
.collection-actions .collection-action { padding: .55rem .65rem; }
.collection-pagination { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.collection-empty { background: white; padding: 2rem; border: 1px solid var(--color-stone); border-radius: .8rem; }
.collection-empty h3 { font: 500 1.5rem var(--font-display); margin-bottom: .5rem; }
.collection-empty p { color: var(--color-slate); margin-bottom: 1rem; }
.collection-empty a { margin: .4rem .4rem 0 0; }
.collection-notice { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--color-pine); }
.collection-notice:not(:empty) { margin: .7rem 0; }
.collection-notice-error { color: #9b3225; }
.collection-back { display: inline-block; margin-bottom: 1.5rem; color: var(--color-pine); min-height: 44px; padding-top: .5rem; }
.collection-personal-panel { border: 1px solid var(--color-stone); background: white; border-radius: .8rem; padding: 1.2rem; margin-bottom: 1.5rem; scroll-margin-top: 90px; }
.collection-date { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.collection-date input[type=date] { width: auto; min-width: 160px; }
.collection-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.5rem; }
.collection-detail-main { min-width: 0; }
.collection-detail-main > div { margin-bottom: 1.5rem; }
.collection-sidebar { align-self: start; background: var(--color-cream-dark); border-radius: .8rem; padding: 1.25rem; display: flex; flex-direction: column; gap: .8rem; }
.collection-route-card { background: white; padding: 1.3rem; border: 1px solid var(--color-stone); border-radius: .8rem; margin: 1rem 0; scroll-margin-top: 90px; }
.collection-route-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: 1rem 0; color: var(--color-slate); font-size: .85rem; }
.collection-route-stats strong { display: block; color: var(--color-pine); font-size: 1.1rem; }
.collection-route-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; color: var(--color-pine); }
.collection-route-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
@media(max-width: 900px) { .collection-row { align-items: start; flex-direction: column; } .collection-detail-layout { grid-template-columns: minmax(0, 1fr); } }
@media(max-width: 500px) {
  .collection-shell { padding: 1.25rem .8rem 2rem; }
  .collection-header { align-items: start; flex-direction: column; gap: .7rem; }
  .collection-search { padding: .8rem; }
  .collection-search-main > div, .collection-search-options > div, .collection-search-main .collection-search-name { min-width: 100%; }
  .collection-row { padding: .9rem; }
  .collection-destination { align-items: start; gap: .7rem; }
  .collection-thumbnail { width: 44px; height: 44px; flex-basis: 44px; }
  .collection-actions { flex-shrink: 1; }
  .collection-actions .collection-action { font-size: .82rem; }
  .collection-date input[type=date] { width: 100%; min-width: 0; }
  .collection-filter-grid { grid-template-columns: minmax(0, 1fr); }
}
