/* Dealer Locations Tabs CSS - 基礎樣式 */
.dealer-locations-tabs {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 30px 0;
}

.dealer-locations-tabs .tab-titles {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 6px;
    flex-wrap: wrap;
}

.dealer-locations-tabs .tab-btn {
    padding: 10px 28px;
    cursor: pointer;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 1.08em;
    border-radius: 8px 8px 0 0;
    transition: background 0.2s, color 0.2s;
    position: relative;
    top: 2px;
    white-space: nowrap;
}

/* 注意：hover 和 active 狀態的顏色會由 PHP 動態生成覆蓋 */

.dealer-locations-tabs .tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.dealer-locations-tabs .tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dealer-locations-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.dealer-locations-tabs li {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 20px 24px 16px 24px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s, border 0.2s;
}

/* 注意：背景和邊框顏色會由 PHP 動態生成覆蓋 */

.dealer-locations-tabs li:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* 注意：標題和文字顏色會由 PHP 動態生成覆蓋 */

.dealer-locations-tabs li .dealer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 1em;
}

.dealer-locations-tabs li .dealer-info span {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .dealer-locations-tabs .tab-titles {
        flex-direction: column;
        gap: 8px;
    }
    
    .dealer-locations-tabs .tab-btn {
        border-radius: 8px;
        top: 0;
        text-align: center;
    }
    
    .dealer-locations-tabs ul {
        flex-direction: column;
    }
    
    .dealer-locations-tabs li {
        min-width: auto;
        max-width: none;
        flex: none;
    }
}
