* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e8c42a;
    --primary-dark: #c9a820;
    --secondary-color: #252b3f;
    --text-color: #374151;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
}

.hidden { display: none !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 48px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2035 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 span {
    color: var(--primary-color);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.calculator-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.calculator-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

.calculator-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--light-bg);
}

.suggestion-item strong {
    display: block;
    color: var(--secondary-color);
}

.suggestion-item small {
    color: #6b7280;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.result.hidden {
    display: none;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item .label {
    font-weight: 600;
    color: var(--secondary-color);
}

.detail-item .value {
    font-size: 1.1rem;
    color: var(--text-color);
}

.detail-item.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.detail-item.total .label {
    font-size: 1.2rem;
}

.detail-item.total .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.map {
    margin-top: 1.5rem;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.map.hidden {
    display: none;
}

.error {
    margin-top: 1rem;
    padding: 1rem;
    background: #fee2e2;
    border-left: 4px solid var(--error-color);
    border-radius: 8px;
    color: #991b1b;
}

.error.hidden {
    display: none;
}

.about-section {
    padding: 4rem 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.feature p {
    color: var(--text-color);
}

.contact-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    font-size: 1.1rem;
}

footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .features,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Tabs ──────────────────────────────────────────────────── */
.tab-switcher {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    width: fit-content;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: white;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ── Fixed routes ───────────────────────────────────────────── */
.fixed-intro {
    color: #6b7280;
    margin-bottom: 1.2rem;
}

.fixed-route-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    gap: 1rem;
}

.fixed-route-item:hover {
    border-color: var(--primary-color);
    background: #fffbeb;
}

.fixed-route-item.selected {
    border-color: var(--primary-color);
    background: #fffbeb;
}

.route-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.route-from, .route-to {
    font-weight: 500;
    color: var(--secondary-color);
}

.route-arrow {
    color: var(--primary-color);
    font-weight: bold;
}

.route-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 60px;
    text-align: right;
}

.btn-select-route {
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-select-route:hover {
    opacity: 0.85;
}

/* ── Booking form ───────────────────────────────────────────── */
.booking-section {
    padding: 2rem 0;
    background: #f9fafb;
}

.booking-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.booking-summary {
    background: #fffbeb;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-pay {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.payment-note {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
