/* Kalender-specifikke styles */
.date-selector-container { max-width: 500px; width: 100%; }

/* Nyt design der matcher city-selector inputfelter nøjagtigt */
.calendar-input-container-new {
    display: flex; 
    align-items: center; 
    background: rgba(76, 29, 149, 0.6); /* Matcher bg-purple-900 bg-opacity-60 */
    border: 1px solid rgba(109, 40, 217, 1); /* Matcher border-purple-700 */
    border-radius: 0.375rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    min-width: 200px;
    width: 100%;
    font-weight: 100; /* font-thin */
    position: relative;
}

.calendar-input-container-new:hover {
    background: rgba(76, 29, 149, 0.7);
}

.calendar-input-container-new:focus-within {
    outline: none;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5); /* Matcher focus-within:ring-2 focus-within:ring-purple-500 */
}

/* Gammel kalender container (behold til bagudkompatibilitet) */
.calendar-input-container {
    display: flex; 
    align-items: center; 
    background: rgba(124, 58, 237, 0.25); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-radius: 12px; 
    padding: 12px 16px; 
    transition: all 0.3s ease;
    min-height: 48px;
    width: 100%;
    max-width: 280px;
}

@media (min-width: 640px) {
    .calendar-input-container {
        padding: 10px 14px;
        min-height: 44px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 639px) {
    .calendar-input-container {
        max-width: 220px;
    }
}

.calendar-input-container:hover {
    background: rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.calendar-location-input {
    background: transparent; 
    color: white; 
    font-weight: 500; 
    border: none; 
    outline: none; 
    font-size: 15px;
    width: 100px;
    min-width: 80px;
}

.calendar-location-input::placeholder {
    color: rgba(196, 181, 253, 0.7);
}

@media (min-width: 640px) {
    .calendar-location-input {
        font-size: 14px;
        width: 90px;
    }
}

/* Nyt kalender date input der matcher det nye design */
.calendar-date-input-new {
    background: transparent;
    color: white;
    border: none;
    outline: none;
    color-scheme: dark;
    font-size: 1rem;
    font-weight: 300;
    width: 140px;
}

.calendar-date-input-new:focus {
    outline: none;
}

/* Gammel kalender date input */
.calendar-date-input { 
    background: transparent; 
    color: white; 
    border: none; 
    outline: none; 
    color-scheme: dark; 
    font-size: 15px;
    width: 140px;
}

@media (min-width: 640px) {
    .calendar-date-input {
        font-size: 14px;
        width: 130px;
    }
}

.calendar-time-input { 
    background: transparent; 
    color: white; 
    border: none; 
    outline: none; 
    color-scheme: dark; 
    font-size: 15px;
    width: 90px;
}

@media (min-width: 640px) {
    .calendar-time-input {
        font-size: 14px;
        width: 80px;
    }
}

.calendar-date-input::-webkit-calendar-picker-indicator,
.calendar-date-input-new::-webkit-calendar-picker-indicator,
.calendar-time-input::-webkit-calendar-picker-indicator { 
    filter: invert(1) brightness(1.2); 
    cursor: pointer; 
    opacity: 0.8;
    padding: 4px;
    border-radius: 4px;
}

.calendar-quick-btn { 
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    color: white; 
    padding: 10px 16px; 
    border-radius: 12px; 
    border: none; 
    font-size: 14px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    white-space: nowrap;
    min-height: 44px;
}

@media (min-width: 640px) {
    .calendar-quick-btn {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 40px;
    }
}

.calendar-quick-btn:hover { 
    background: rgba(255, 255, 255, 0.2); 
    transform: translateY(-1px); 
}

.calendar-search-btn { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(124, 58, 237, 0.9) 100%); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    color: white; 
    padding: 14px 28px; 
    border-radius: 14px; 
    border: none; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    white-space: nowrap;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.2);
    min-height: 48px;
}

@media (min-width: 640px) {
    .calendar-search-btn {
        padding: 12px 24px;
        font-size: 15px;
        min-height: 44px;
    }
}

.calendar-search-btn:hover { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 1) 0%, rgba(124, 58, 237, 1) 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.4); 
}

/* Focus states for tilgængelighed */
.calendar-input-container:focus-within {
    outline: 2px solid rgba(139, 92, 246, 0.6);
    outline-offset: 2px;
}

.calendar-quick-btn:focus,
.calendar-search-btn:focus {
    outline: 2px solid rgba(139, 92, 246, 0.6);
    outline-offset: 2px;
}

/* Tidspunkt toggle animationer */
.bounce-arrow-vertical {
    color: #a78bfa;
    transform-origin: center;
    transition: transform 0.3s ease, color 0.3s ease;
}
.bounce-up {
    transform: rotate(0deg);
}
.bounce-down {
    transform: rotate(180deg);
}
#time-toggle-btn:hover .bounce-arrow-vertical {
    color: white;
}
#time-mode-label {
    transition: color 0.3s ease;
    width: 52px; /* Fast bredde til at rumme både "Afgang" og "Ankomst" */
    text-align: center; /* Centrér teksten */
    display: inline-block; /* Sikrer at width virker på span */
}
#time-toggle-btn:hover #time-mode-label {
    color: white;
}

/* Fast bredde på toggle container for at forhindre layout shifts */
#time-toggle-btn {
    width: 52px; /* Matcher time-mode-label bredden */
    display: flex;
    justify-content: center;
}

/* Scroll-funktionalitet for "Alle rejsemuligheder" */
#all-routes-container {
    max-height: 70vh; /* Maksimal højde på 70% af viewport */
    overflow-y: auto; /* Vertikalt scroll når indhold overskrider */
    overflow-x: visible; /* Tillader horisontal overflow for hover-effekter */
    scroll-behavior: smooth; /* Smooth scrolling */
    padding: 12px 20px 12px 12px; /* Top/bottom og venstre/højre padding for hover-effekter, ekstra højre padding for scrollbar */
    margin: -12px -12px; /* Negativ margin for at kompensere for padding */
}

/* Custom scrollbar styling */
#all-routes-container::-webkit-scrollbar {
    width: 8px;
}

#all-routes-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#all-routes-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.6) 0%, rgba(124, 58, 237, 0.6) 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

#all-routes-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.8) 0%, rgba(124, 58, 237, 0.8) 100%);
}

/* Firefox scrollbar */
#all-routes-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.6) rgba(255, 255, 255, 0.1);
}

/* Scroll fade effect for bedre UX */
.scroll-container-wrapper {
    position: relative;
    padding: 12px 12px; /* Ekstra padding omkring wrapper */
    margin: -12px -12px; /* Kompenser padding på wrapper */
}

.scroll-container-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px; /* Justeret til at matche venstre padding */
    right: 32px; /* Mere plads til scrollbar */
    height: 20px;
    background: linear-gradient(transparent, rgba(26, 5, 50, 0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-container-wrapper.has-scroll::after {
    opacity: 1;
}

/* Mobile optimering af distance-container og destination styling */
.distance-container {
    position: relative;
    z-index: 3; /* Højere z-index end background logo */
    /* iOS flickering fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .distance-container {
        font-size: 0.875rem; /* Større tekst på mobile (14px) */
        line-height: 1.3;
        margin-top: 0.375rem;
    }
    
    .distance-container .flex {
        gap: 0.25rem; /* Mere gap mellem elementer */
    }
    
    .distance-container span {
        font-size: 0.875rem; /* Konsistent større tekst */
    }
    
    .distance-container i {
        font-size: 0.75rem; /* Større ikoner */
        min-width: 0.75rem; /* Fast bredde for ikoner */
    }
    
    /* Forkorte lange destination navne på mobile */
    .distance-container .text-purple-200 {
        max-width: 7rem; /* Større maksimal bredde for større tekst */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: top;
    }
    
    /* Specifik styling for gade-adresser - behold kun gadenavnet */
    .distance-container .text-purple-200[data-address] {
        max-width: 8rem; /* Mere plads til gadenavne */
    }
}

/* Ekstra små skærme - stadig læselig størrelse */
@media (max-width: 480px) {
    .distance-container {
        font-size: 0.8125rem; /* Stadig læselig størrelse (13px) */
        line-height: 1.25;
    }
    
    .distance-container span {
        font-size: 0.8125rem;
    }
    
    .distance-container i {
        font-size: 0.6875rem; /* Læselige ikoner */
        min-width: 0.6875rem;
    }
    
    .distance-container .text-purple-200 {
        max-width: 6rem; /* Tilstrækkelig plads på små skærme */
    }
    
    .distance-container .flex.flex-col {
        gap: 0.1875rem; /* Behageligt gap mellem linjer */
    }

    .alle-rejsemuligheder-heading {
        font-size: 1rem; /* Justeret fra text-xl til en mindre størrelse */
    }
}

/* Smooth transition når der skiftes mellem desktop og mobile */
.distance-container, 
.distance-container span, 
.distance-container i {
    transition: font-size 0.3s ease, max-width 0.3s ease;
}

/* Subtle fade-in effect for shortened addresses */
.distance-container .text-purple-200 {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.distance-container .text-purple-200.address-shortened {
    animation: fadeInShortened 0.3s ease-out;
}

@keyframes fadeInShortened {
    from {
        opacity: 0.7;
        transform: translateX(-2px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Provider logo mobile styling */
.provider-logo-mobile {
    visibility: hidden; /* Skjul som standard */
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .provider-logo-mobile {
        visibility: visible;
        opacity: 0.8;
        pointer-events: auto;
        display: inline-block;
        width: 1rem;
        height: 1rem;
        margin-left: 0.25rem;
        object-fit: contain;
        filter: brightness(1.2);
    }
    
    /* Behold provider tekst på alle skærme, men juster størrelsen */
    @media (max-width: 480px) {
        .provider {
            font-size: 0.875rem; /* Lidt mindre, men stadig synlig */
            font-weight: 500;
        }
        
        .provider-logo-mobile {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            margin-left: 0.25rem;
        }
    }
}

/* Eksisterende route card styles beholdes her */
.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(107, 33, 168, 0.05);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(147, 99, 171, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 80px;
  /* iOS flickering fix */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

/* Mobile optimering af route-card layout */
@media (max-width: 768px) {
    .route-card {
        padding: 1rem 1.25rem; /* Større padding på mobile */
        min-height: 100px; /* Større min højde */
        margin-bottom: 1rem; /* Mere afstand mellem kort */
        border-radius: 0.75rem; /* Større border-radius */
    }
    
    .card-content {
        padding-right: 5rem; /* Mere plads til det større background logo */
    }
    
    .card-header {
        margin-bottom: 0.5rem; /* Mere afstand mellem elementer */
    }
    
    /* Større provider tekst */
    .provider {
        font-size: 1.125rem; /* 18px */
        font-weight: 600;
    }
    
    /* Større tid og varighed tekst */
    .card-header .flex span {
        font-size: 1rem; /* 16px */
    }
    
    /* Større pris */
    .price {
        font-size: 1.5rem; /* 24px */
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .route-card {
        padding: 0.875rem 1rem; /* Stadig generøs padding */
        min-height: 95px; /* Tilstrækkelig højde */
    }
    
    .card-content {
        padding-right: 4.5rem; /* Tilpasset plads til logo */
    }
    
    .card-header {
        margin-bottom: 0.375rem; /* God afstand mellem elementer */
    }
    
    /* Justeret tekststørrelser for små skærme */
    .provider {
        font-size: 1rem; /* 16px - stadig læselig */
        font-weight: 500;
    }
    
    .card-header .flex span {
        font-size: 0.9375rem; /* 15px */
    }
    
    .price {
        font-size: 1.375rem; /* 22px */
        font-weight: 700;
    }
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.route-card:hover::before {
    left: 100%;
}

.route-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.25), 0 8px 32px rgba(0, 0, 0, 0.2);
  background: rgba(107, 33, 168, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  cursor: pointer;
}

.route-card:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s ease;
}

.route-card:hover .price-container {
    filter: brightness(1.2);
}

.route-card:hover .background-icon {
    transform: scale(1.1) rotate(3deg);
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-content {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  /* iOS flickering fix */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}

.card-label {
  font-size: 1rem;
  font-weight: bold;
  color: white;
}

.provider {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.price-container {
  display: flex;
  align-items: center;
  margin-bottom: 0.1rem;
}

.separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.price {
  font-size: 1.25rem;
  font-weight: bold;
}

.price-low {
  color: #4ade80; /* Grøn farve */
}

.price-medium {
  color: #fb923c; /* Orange farve */
}

.price-high {
  color: #f87171; /* Rød farve */
}

.duration-container {
  display: flex;
  align-items: center;
  margin: 0;
}

.duration {
  font-size: 0.8rem;
  color: white;
  position: relative;
  z-index: 10;
  font-weight: normal;
}

.duration-label {
  font-weight: bold;
}

.background-icon {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Compact cards container styles */
#compact-route-cards-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.compact-container-visible {
    opacity: 1;
    transform: translateY(0);
}

.compact-container-hidden {
    opacity: 0;
    transform: translateY(-20px);
}

/* Route card animations */
.route-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.route-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

/* Scroll container styles */
.scroll-container-wrapper {
    position: relative;
    overflow: hidden;
}

#all-routes-container {
    position: relative;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Scroll progress indicator */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(139, 92, 246, 0.2);
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(124, 58, 237, 0.6));
    transform-origin: left;
    transition: transform 0.1s ease;
}

/* Smooth scroll behavior */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Card visibility transitions */
.route-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Staggered animation delay for cards */
.route-card:nth-child(1) { animation-delay: 0.1s; }
.route-card:nth-child(2) { animation-delay: 0.2s; }
.route-card:nth-child(3) { animation-delay: 0.3s; }
.route-card:nth-child(n+4) { animation-delay: 0.4s; }

/* Scroll snap points for cards */
@media (min-width: 768px) {
    #all-routes-container {
        scroll-snap-type: y proximity;
    }

    .route-card {
        scroll-snap-align: start;
    }
}

/* Optimized performance hints */
.route-card {
    contain: content;
    content-visibility: auto;
    contain-intrinsic-size: 0 150px;
}

/* Specielle styling for kompakte kort kategorier */
#compact-route-cards-container .route-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Generel styling for kategorikort */
#compact-route-cards-container .route-card[data-category] .card-label::before {
    margin-right: 8px;
    font-size: 16px;
}

/* Bedste kort - guldgradient og stjerne */
#compact-route-cards-container .route-card[data-category="Bedste"] {
    background-color: transparent;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.08) 50%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.15);
}
#compact-route-cards-container .route-card[data-category="Bedste"] .card-label::before {
    content: '⭐ ';
}
#compact-route-cards-container .route-card[data-category="Bedste"] .card-label {
    color: #fbbf24;
}

/* Billigste kort - grøn gradient og pengesæk */
#compact-route-cards-container .route-card[data-category="Billigste"] {
    background-color: transparent;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.18) 50%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.25);
}
#compact-route-cards-container .route-card[data-category="Billigste"] .card-label::before {
    content: '💰 ';
}
#compact-route-cards-container .route-card[data-category="Billigste"] .card-label {
    color: #22c55e;
}

/* Hurtigste kort - rød/orange gradient og lyn */
#compact-route-cards-container .route-card[data-category="Hurtigste"] {
    background-color: transparent;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 127, 0.08) 50%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
}
#compact-route-cards-container .route-card[data-category="Hurtigste"] .card-label::before {
    content: '⚡ ';
}
#compact-route-cards-container .route-card[data-category="Hurtigste"] .card-label {
    color: #ef4444;
}

/* Forbedrede hover-effekter for kompakte kort */
#compact-route-cards-container .route-card:hover {
    transform: translateY(-12px) scale(1.05);
}
#compact-route-cards-container .route-card[data-category="Bedste"]:hover {
    box-shadow: 0 25px 60px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.6);
}
#compact-route-cards-container .route-card[data-category="Billigste"]:hover {
    box-shadow: 0 25px 60px rgba(34, 197, 94, 0.4), 0 0 40px rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.6);
}
#compact-route-cards-container .route-card[data-category="Hurtigste"]:hover {
    box-shadow: 0 25px 60px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Label styling for kompakte kort */
#compact-route-cards-container .card-label {
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtil glød-effekt på labels */
#compact-route-cards-container .route-card:hover .card-label::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Pulse-effekt for pris på hover */
#compact-route-cards-container .route-card:hover .price {
    animation: pulseBright 0.6s ease-in-out;
}


@keyframes pulseBright {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) saturate(1.2); }
}

/* Mobile optimering af tidsvisning i route cards */
@media (max-width: 768px) {
    /* Skub tidsvisning mod højre med position absolute */
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 {
        position: relative !important;
        transform: translateX(20px) !important; /* Skub 20px mod højre */
        font-size: 0.8125rem !important; /* 13px tekst */
    }
    
    /* Mindre tekst og ikoner for tidsvisning på mobile */
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 span {
        font-size: 0.8125rem !important; /* 13px - lidt større tekst */
    }
    
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 i {
        font-size: 0.6875rem !important; /* 11px - mindre ikoner */
    }
    
    /* Justér gap mellem tidelementer */
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 {
        gap: 0.375rem !important; /* Mindre gap mellem elementer */
    }
    
    /* Mindre gap mellem clock/hourglass ikoner og tekst */
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 .flex.items-center i {
        margin-right: 0.15rem !important; /* Mindre margin end standard mr-2 */
    }
}

@media (max-width: 480px) {
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 {
        transform: translateX(75px) !important; /* Mindre skub på små skærme */
        gap: 0.15rem !important; /* Kompakt gap */
    }
    
    /* Optimeret for ekstra små skærme */
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 span {
        font-size: 0.75rem !important; /* 12px - lidt større end før */
    }
    
    .route-card .card-header .flex.items-center.gap-2.text-gray-300 i {
        font-size: 0.625rem !important; /* 10px - lidt større end før */
    }
}

/* Reduceret mellemrum mellem logo og søgeresultater kun for mobil */
@media (max-width: 767px) {
    #results-content-container {
        margin-top: 1rem !important; /* Reduceret fra 4rem (mt-16) til 1rem */
    }
}