/* Fares page */

.fares-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.fares-card {
    background: rgba(2, 6, 23, 0.96);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 20px;
    margin-bottom: 24px;
}

    .fares-card h1,
    .fares-card h2 {
        margin-top: 0;
    }

.fares-lead {
    margin: 0 0 0.8rem;
    font-size: 0.94rem;
    opacity: 0.9;
}

.fares-note {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    opacity: 0.85;
}

/* Header card layout */

.fares-header-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.fares-header-main {
    flex: 1 1 260px;
}

.fares-header-actions {
    flex: 0 0 auto;
}

.fares-print-btn {
    padding: 0.5rem 1.1rem;
}

/* Tables */

.fares-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fares-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

    .fares-table th,
    .fares-table td {
        padding: 0.4rem 0.45rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }

    .fares-table th {
        text-align: left;
        font-weight: 600;
    }

    .fares-table td {
        text-align: right;
    }

    .fares-table thead th {
        border-bottom-color: rgba(148, 163, 184, 0.4);
    }

.ta-right {
    text-align: right;
}

.ta-left {
    text-align: left;
}

/* Calculator */

.fare-calc-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 0.8rem;
}

.fare-calc-field {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

    .fare-calc-field select,
    .fare-calc-field input[type="number"] {
        margin-top: 0.25rem;
        padding: 0.5rem 0.6rem;
        border-radius: 10px;
        border: 1px solid rgba(148, 163, 184, 0.6);
        background: #020617;
        color: inherit;
        font-size: 0.9rem;
    }

        .fare-calc-field select:focus,
        .fare-calc-field input[type="number"]:focus {
            outline: none;
            border-color: rgba(59, 130, 246, 0.9);
            box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.7);
        }

.fare-calc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fare-calc-output {
    font-weight: 600;
    font-size: 1.05rem;
}

/* Image placeholders */

.fares-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0.75rem;
}

.fares-image-slot {
    border-radius: 12px;
    overflow: hidden;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent), #020617;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fares-image-slot img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* Print styling */

@media print {
    /* Hide the print button itself in print view */
    .fares-print-btn {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .fares-grid {
        grid-template-columns: 1fr;
    }

    .fares-image-grid {
        grid-template-columns: 1fr;
    }
}
