/* ===== TRAVEL CALCULATOR CARD STYLES ===== */

/* Scoped to the calculator container to prevent leaks */
#travel-calc-section .wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

#travel-calc-section .wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CARDS within the calculator */
#travel-calc-section .option-card {
    background: var(--card-bg);
    /* Uses existing theme variable */
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

#travel-calc-section .option-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#travel-calc-section .option-details {
    flex: 1;
    z-index: 2;
}

#travel-calc-section .option-icon {
    font-size: 1.75rem;
    z-index: 2;
}

#travel-calc-section .option-details h3 {
    margin-bottom: 0.25rem;
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

#travel-calc-section .option-details p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* MINI MAPS */
#travel-calc-section .mini-map-container {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 10px;
    border: 1px solid var(--border-color);
    z-index: 2;
    flex-shrink: 0;
}

#travel-calc-section .mini-map {
    width: 100%;
    height: 100%;
}

/* BUTTONS */
#travel-calc-section .btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-blue);
    /* Fallback/Variable */
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transition: transform 0.1s;
}

#travel-calc-section .btn-primary:active {
    transform: scale(0.98);
}

#travel-calc-section .btn-secondary {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
}

#travel-calc-section .btn-secondary:hover {
    background: var(--background-color);
}

/* MAPS */
#locationPickerMap {
    height: 250px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    z-index: 1;
    /* Ensure it stays under headers if sticky */
}

#resultTripMap {
    height: 180px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    z-index: 1;
}

/* RESULTS STYLES */
#travel-calc-section .result-highlight {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

#travel-calc-section .ferry-time-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin: 0.5rem 0;
    font-family: inherit;
}

/* HEADER / STEP INDICATOR */
#travel-calc-section .calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

#travel-calc-section .step-indicator {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* MODAL / WARNING overrides for inside-card context */
#travel-calc-section .warning-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Leaflet Fixes */
.leaflet-container {
    font-family: inherit;
    z-index: 1;
}