body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* --- Panel scrollbar --- */
#panel-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.08) transparent;
}
#panel-content::-webkit-scrollbar { width: 4px; }
#panel-content::-webkit-scrollbar-track { background: transparent; }
#panel-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 99px; }
#panel-content::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.15); }

/* --- List items --- */
.list-option {
    transition: all 0.2s ease;
}
.list-option.selected {
    background-color: #fdf8f4;
    border-color: #c4956a;
}

/* Hide the default routing instructions panel */
.leaflet-routing-container {
    display: none;
}

/* --- Map icon styling --- */
.map-icon {
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 0 0 2px white;
    border: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.map-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18), 0 0 0 2px white;
}

.map-icon-number {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #18181b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.map-icon-tours        { background-color: #EFF6FF; color: #2563EB; }
.map-icon-hotels       { background-color: #F9FAFB; color: #6B7280; }
.map-icon-restaurants  { background-color: #FFFBEB; color: #D97706; }
.map-icon-entertainment{ background-color: #FDF2F8; color: #DB2777; }

/* --- Category tabs (pill style) --- */
.tab-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.tab-btn:hover {
    color: #18181b;
    background-color: #f9fafb;
}
.tab-btn.active {
    background-color: #18181b;
    color: white;
    border-color: #18181b;
    font-weight: 600;
}

/* --- Destination tabs (pill toggle) --- */
.dest-tab {
    transition: all 0.25s ease;
    cursor: pointer;
}
.dest-tab.active {
    background-color: white;
    color: #18181b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
.dest-tab.active span { opacity: 1 !important; }

/* --- Route pulse animation --- */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.15; }
    100% { opacity: 0.6; }
}
.pulsing-path {
    animation: pulse 2.5s infinite;
}

/* --- Fare summary in itinerary --- */
#fare-summary:not(:empty) {
    background: linear-gradient(135deg, #fdf8f4 0%, #f5ebe0 100%);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #ead4bd;
}
#fare-summary .text-2xl {
    color: #18181b;
}

/* --- Route segment summaries --- */
.route-segment-summary:not(:empty) {
    cursor: pointer;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}
.route-segment-summary:not(:empty):hover {
    background-color: #f3f4f6;
}

/* --- Smooth transitions for panel views --- */
#panel-content > div {
    animation: panelFadeIn 0.3s ease-out;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
