﻿/* 交通資訊頁面樣式 */
:root {
    --primary-color: #1a73e8;
    --primary-darker: #1557b0;
    --accent-color: #34a853;
    --light-bg: #f8f9fa;
    --card-border: #e0e0e0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --header-gradient: linear-gradient(135deg, #1a73e8, #34a853);
}

.traffic-container {
    max-width: 1140px; /* 標準 Bootstrap container 寬度 */
    margin: 0 auto;
    padding: 0 15px;
}

.traffic-header {
    background: #fff;
    color: #333;
    border-radius: 10px;
    padding: 2rem;
    margin: 0 auto 2.5rem; /* 居中對齊 */
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 1140px;
    width: 100%;
}

    .traffic-header::before,
    .traffic-header::after {
        display: none;
    }

    .traffic-header .section-title {
        font-size: 1.8rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }

    .traffic-header .section-subtitle {
        font-size: 0.95rem;
        color: #6c757d;
        margin-bottom: 10px;
    }

    .traffic-header .section-divider {
        height: 3px;
        width: 60px;
        background-color: #28a745;
        margin: 0 auto 20px;
    }

    .traffic-header .lead {
        font-size: 1.1rem;
        color: #6c757d;
    }

.section-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* 地址卡片 */
.address-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 5px solid #007bff;
}


    .address-card h2 {
        color: #333; /* 改為黑色 */
        font-size: 1.5rem; /* 稍微縮小一點 */
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .address-card .address {
        font-size: 1.25rem !important;
        color: #333;
        margin-bottom: 2rem;
    }
    .address-card h2 i {
        color: #333;
    }

/* 改進的按鈕樣式 */
.traffic-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.traffic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

    .traffic-btn i {
        margin-right: 8px;
        font-size: 1.1rem;
    }

/* Google Map 按鈕 */
.map-btn {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
    align-self: flex-start;
}

    .map-btn:hover {
        background: linear-gradient(135deg, #3367D6, #0F9D58);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(66, 133, 244, 0.4);
    }

/* 交通選項按鈕 */
.travel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.option-btn {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.car-btn {
    background-color: #f8f9fa;
    color: #3c4043;
    border: 1px solid #dadce0;
}

    .car-btn:hover {
        background-color: #f1f3f4;
        color: #202124;
        border-color: #d2d5d9;
    }

.transit-btn {
    background-color: #e8f0fe;
    color: #1967d2;
    border: 1px solid #d2e3fc;
}

    .transit-btn:hover {
        background-color: #d2e3fc;
        color: #174ea6;
        border-color: #aecbfa;
    }

.campus-btn {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

    .campus-btn:hover {
        background-color: #ceead6;
        color: #0d652d;
        border-color: #a8dab5;
    }

/* 交通標籤頁 */
.traffic-tabs {
    margin-bottom: 2rem;
}

    .traffic-tabs .tab-content {
        padding: 1rem 0;
    }

/* 交通卡片 */
.traffic-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid var(--card-border);
}

    .traffic-card:hover {
        transform: translateY(-5px);
    }

    .traffic-card .card-header {
        background-color: var(--primary-color);
        color: white;
        padding: 1rem 1.5rem;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .traffic-card .card-body {
        padding: 1.5rem;
    }

    .traffic-card p {
        color: #333;
        margin-bottom: 1rem;
    }

    .traffic-card .btn-outline-primary {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

        .traffic-card .btn-outline-primary:hover {
            background-color: var(--primary-color);
            color: white;
        }

/* 公車路線 */
.bus-routes {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bus-company h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.bus-company p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* 校園地圖 */
.campus-map {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.campus-map h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .traffic-header {
        padding: 2rem 1.5rem;
    }

        .traffic-header h1 {
            font-size: 2rem;
        }

    .address-card {
        padding: 1.5rem;
    }

    .travel-options {
        flex-direction: column;
    }

    .option-btn {
        width: 100%;
    }

    .map-btn {
        width: 100%;
        justify-content: center;
    }

    .campus-map {
        padding: 1.5rem;
    }
}
