/* Taxi Fare System – Frontend Styles (Complete & Updated) */

:root {
    --tfs-accent: #ff0000;
    --tfs-bg: #1a1a1a;
    --tfs-heading-size: 2.2rem;
    --tfs-text-size: 1rem;
    --tfs-radius: 12px;
    --tfs-spacing: 1.5rem;
}

.tfs-container {
    background: var(--tfs-bg);
    color: #ffffff;
    padding: calc(var(--tfs-spacing) * 1.5);
    font-size: var(--tfs-text-size);
    line-height: 1.6;
}

.tfs-heading {
    font-size: var(--tfs-heading-size);
    margin: 0 0 calc(var(--tfs-spacing) * 0.8);
    color: #ffffff;
}

.tfs-card {
    background: #222;
    border-radius: var(--tfs-radius);
    padding: var(--tfs-spacing);
    margin-bottom: var(--tfs-spacing);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.15s ease;
}

.tfs-card:hover {
    transform: translateY(-3px);
}

/* Airport cards - visual distinction */
.tfs-card.airport {
    background: #1a2a3a;
    border-left: 5px solid #1e90ff;
    border-radius: var(--tfs-radius);
}

.tfs-price {
    color: var(--tfs-accent);
    font-weight: 700;
    font-size: 1.5em;
}

.tfs-swipe-hint {
    text-align: center;
    font-style: italic;
    color: #aaa;
    margin: 0.8em 0 1.2em;
    font-size: 0.95em;
}

.tfs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--tfs-spacing);
}

.tfs-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #1e1e1e;
}

.tfs-table th,
.tfs-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.tfs-table th {
    background: #111;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    color: #ddd;
}

.tfs-table tr:nth-child(even) {
    background: #252525;
}

.tfs-search {
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;
    margin: 1.2em 0 2em;
    border: 1px solid #555;
    border-radius: var(--tfs-radius);
    background: #222;
    color: white;
    font-size: 1.05em;
}

.tfs-search:focus {
    outline: none;
    border-color: var(--tfs-accent);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.15);
}

.tfs-cta-button {
    display: inline-block;
    background: var(--tfs-accent);
    color: white;
    padding: 14px 32px;
    border-radius: var(--tfs-radius);
    text-decoration: none;
    font-weight: bold;
    margin: 1.8em 0;
    transition: background 0.2s, transform 0.15s;
}

.tfs-cta-button:hover,
.tfs-cta-button:focus {
    background: #d00000;
    transform: translateY(-2px);
}

.tfs-footer {
    margin-top: calc(var(--tfs-spacing) * 2.5);
    padding-top: var(--tfs-spacing);
    border-top: 1px solid #444;
    display: flex;
    flex-wrap: wrap;
    gap: var(--tfs-spacing);
    justify-content: space-between;
    align-items: flex-start;
}

.tfs-booking-card {
    background: #222;
    border-radius: var(--tfs-radius);
    padding: var(--tfs-spacing);
    flex: 1 1 300px;
    max-width: 420px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tfs-booking-card h4 {
    margin: 0 0 0.8em;
    color: #ddd;
}

/* Cards grid - responsive */
.tfs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--tfs-spacing);
}

/* Mobile adjustments */
@media (max-width: 680px) {
    .tfs-cards {
        grid-template-columns: 1fr;
    }

    .tfs-footer {
        flex-direction: column;
    }

    .tfs-booking-card {
        max-width: 100%;
    }

    .tfs-heading {
        font-size: calc(var(--tfs-heading-size) * 0.85);
    }
}

/* Optional: better spacing between major sections */
.tfs-container > h3.tfs-heading {
    margin-top: 2.8em;
}

.tfs-container > h3.tfs-heading:first-of-type {
    margin-top: 1.5em;
}