/* 地圖組件基本樣式 */
.section-google-map {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 地圖主容器 - 三等分布局 */
.map-wrapper {
    display: flex;
    width: 100%;
    min-height: 60vh;
}

/* 左側說明面板 (1/3 寬度) */
.map-info-panel {
    flex: 0 0 30%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem;
    color: white;
}

/* 說明內容 */
.map-info-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.map-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.8);
}

.map-description {
    font-size: 1.55rem;
    color: rgba(0, 0, 0, 0.9);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.8);
}

/* 中間聯絡面板 (1/3 寬度) */
.contact-panel {
    flex: 0 0 30%;
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)); */
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-content {
    width: 100%;
}

.contact-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 10px;
}

.contact-icon {
    font-size: 1.7rem;
    width: 150px;
    text-align: left;
}

/* 聯絡按鈕基本樣式 */
.contact-btn {
    /* background: rgba(255, 255, 255, 0.9); */
    color: #333;
    padding: 10px 30px;
    border-radius: 120px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    display: block;
    text-align: center;
    min-width: 120px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    /* background: rgba(255, 255, 255, 1); */
}

/* 各種聯絡方式的彩色按鈕 */
.tel-btn {
    border-color: #2196F3;
    color: #2196F3;
}

.tel-btn:hover {
    background: #E3F2FD;
    border-color: #1976D2;
    color: #1976D2;
}

.mobile-btn {
    border-color: #FF9800;
    color: #FF9800;
}

.mobile-btn:hover {
    background: #FFF3E0;
    border-color: #F57C00;
    color: #F57C00;
}

.addr-btn {
    border-color: #4CAF50;
    color: #4CAF50;
}

.addr-btn:hover {
    background: #E8F5E8;
    border-color: #388E3C;
    color: #388E3C;
}

.line-btn {
    border-color: #00C300;
    color: #00C300;
}

.line-btn:hover {
    background: #E8F8E8;
    border-color: #00A000;
    color: #00A000;
}

.email-btn {
    border-color: #F44336;
    color: #F44336;
}

.email-btn:hover {
    background: #FFEBEE;
    border-color: #D32F2F;
    color: #D32F2F;
}

/* 營業時間樣式 */
.hours-item {
    margin-top: 1.7rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hours-text {
    color: #666;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 500;
}

/* 右側地圖顯示區域 (1/3 寬度) */
.map-display-area {
    flex: 0 0 40%;
    position: relative;
}

.map-display-area iframe {
    display: block;
}

/* 導航按鈕容器 */
.map-navigation-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

/* 導航按鈕樣式 */
.nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn-view {
    color: #1976d2;
}

.nav-btn-view:hover {
    background: #e3f2fd;
}

.nav-btn-directions {
    color: #2e7d32;
}

.nav-btn-directions:hover {
    background: #e8f5e8;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .map-wrapper {
        flex-direction: column;
    }

    .map-info-panel,
    .contact-panel,
    .map-display-area {
        flex: 0 0 auto;
    }

    .map-info-panel {
        min-height: 300px;
        padding: 1.5rem;
    }

    .contact-panel {
        min-height: 400px;
        padding: 1.5rem;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .map-display-area {
        min-height: 400px;
    }

    .map-title {
        font-size: 1.5rem;
    }

    .map-description {
        font-size: 0.95rem;
    }

    .contact-title {
        font-size: 1.2rem;
    }

    .contact-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        min-width: 100px;
    }

    .hours-text {
        font-size: 0.85rem;
    }

    .map-navigation-buttons {
        top: 10px;
        right: 10px;
        flex-direction: row;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }


    html,
    body {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    .map-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 180vh;
    }

    .map-info-panel,
    .contact-panel {
        flex: 0 0 auto;
    }

    .map-display-area {
        flex-grow: 1;
        min-height: 400px;
    }

    .map-wrapper::after {
        content: "";
        display: block;
        height: 60px;
        /* 避免過底 */
    }

}

@media (max-width: 480px) {

    .map-info-panel,
    .contact-panel {
        padding: 1rem;
    }

    .map-info-panel {
        min-height: 250px;
    }

    .contact-panel {
        min-height: 350px;
    }

    .map-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .map-description {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .contact-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .contact-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-width: 90px;
    }

    .hours-text {
        font-size: 0.8rem;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}