/* =====================================================
   찾아오시는 길 페이지 스타일
   ===================================================== */

:root {
    --location-primary: #00D4AA;
    --location-primary-dark: #00B894;
    --location-gradient: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    --location-text-dark: #191f28;
    --location-text-gray: #6b7684;
    --location-bg-light: #f8fafb;
    --location-border: #e5e8eb;
    --location-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ===== 히어로 섹션 ===== */
.location-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.location-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.location-hero .container {
    position: relative;
    z-index: 1;
}

.location-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 212, 170, 0.15);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--location-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.location-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.location-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== 섹션 공통 ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--location-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--location-text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 16px;
    color: var(--location-text-gray);
    line-height: 1.6;
}

/* ===== 본사 위치 섹션 ===== */
.location-headquarters {
    padding: 80px 0;
    background: #fff;
}

.headquarters-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* 지도 컨테이너 */
.map-container {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--location-card-shadow);
    border: 1px solid var(--location-border);
}

.kakao-map {
    width: 100%;
    height: 450px;
    background: var(--location-bg-light);
}

.map-actions {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--location-bg-light);
    border-top: 1px solid var(--location-border);
}

.map-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--location-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--location-text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.map-action-btn:hover {
    border-color: var(--location-primary);
    color: var(--location-primary);
    transform: translateY(-2px);
}

.btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.btn-icon.naver {
    background: #03C75A;
}

.btn-icon.kakao {
    background: #FEE500;
    color: #000;
}

.btn-icon.google {
    background: #4285F4;
}

/* 정보 영역 */
.headquarters-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--location-border);
    box-shadow: var(--location-card-shadow);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--location-gradient);
    border-radius: 12px;
    flex-shrink: 0;
}

.info-card-icon i {
    font-size: 20px;
    color: #fff;
}

.info-card-content {
    flex: 1;
}

.info-card-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--location-text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--location-text-dark);
    line-height: 1.5;
    margin-bottom: 12px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--location-bg-light);
    border: 1px solid var(--location-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--location-text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--location-primary);
    border-color: var(--location-primary);
    color: #fff;
}

.copy-btn.copied {
    background: var(--location-primary);
    border-color: var(--location-primary);
    color: #fff;
}

/* 연락처 리스트 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--location-bg-light);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: rgba(0, 212, 170, 0.1);
}

.contact-label {
    font-size: 12px;
    color: var(--location-text-gray);
    margin-bottom: 4px;
}

.contact-item strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--location-text-dark);
}

.contact-item.emergency {
    background: rgba(255, 107, 107, 0.1);
}

.contact-item.emergency strong {
    color: #ff6b6b;
}

.contact-item.emergency:hover {
    background: rgba(255, 107, 107, 0.15);
}

/* 운영 시간 */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--location-bg-light);
    border-radius: 8px;
}

.hours-item .day {
    font-size: 14px;
    font-weight: 600;
    color: var(--location-text-dark);
}

.hours-item .time {
    font-size: 14px;
    font-weight: 700;
    color: var(--location-primary);
}

.hours-item.closed .time {
    color: #ff6b6b;
}

/* ===== 교통 안내 섹션 ===== */
.location-transport {
    padding: 80px 0;
    background: var(--location-bg-light);
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.transport-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--location-border);
    box-shadow: var(--location-card-shadow);
    transition: all 0.3s ease;
}

.transport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.transport-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 16px;
    font-size: 28px;
}

.transport-icon.subway {
    background: linear-gradient(135deg, #00a84d 0%, #00c759 100%);
    color: #fff;
}

.transport-icon.bus {
    background: linear-gradient(135deg, #0068b7 0%, #0085e8 100%);
    color: #fff;
}

.transport-icon.car {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.transport-icon.parking {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
}

.transport-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--location-text-dark);
    margin-bottom: 16px;
}

.transport-details {
    text-align: left;
}

.transport-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.line-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.line-badge.line-2 {
    background: #00a84d;
}

.line-badge.line-3 {
    background: #ef7c1c;
}

.line-badge.line-blue {
    background: #0068b7;
}

.line-badge.line-green-bus {
    background: #55b336;
}

.transport-line p {
    font-size: 14px;
    color: var(--location-text-gray);
    margin: 0;
}

.navi-search {
    font-size: 14px;
    color: var(--location-text-gray);
    line-height: 1.6;
    text-align: center;
}

.navi-search strong {
    display: block;
    color: var(--location-text-dark);
    margin-bottom: 8px;
}

.parking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parking-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--location-text-gray);
    margin-bottom: 8px;
}

.parking-list li i {
    color: var(--location-primary);
    font-size: 12px;
}

.parking-list li:last-child i {
    color: #f59e0b;
}

/* ===== 데이터센터 섹션 ===== */
.location-datacenter {
    padding: 80px 0;
    background: #fff;
}

.datacenter-map-container {
    position: relative;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--location-card-shadow);
    border: 1px solid var(--location-border);
}

#datacenter-map {
    height: 400px;
}

.datacenter-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--location-text-dark);
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-marker.hq {
    background: var(--location-primary);
}

.legend-marker.dc {
    background: #6366f1;
}

.datacenter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.datacenter-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--location-border);
    box-shadow: var(--location-card-shadow);
    transition: all 0.3s ease;
}

.datacenter-card:hover {
    border-color: var(--location-primary);
    transform: translateY(-4px);
}

.datacenter-card.active {
    border-color: var(--location-primary);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.2);
}

.datacenter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.datacenter-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--location-gradient);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.datacenter-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--location-text-dark);
}

.datacenter-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--location-text-gray);
    line-height: 1.5;
    margin-bottom: 16px;
}

.datacenter-address i {
    color: var(--location-primary);
    margin-top: 3px;
}

.datacenter-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--location-bg-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--location-text-gray);
}

.feature-badge i {
    font-size: 10px;
    color: var(--location-primary);
}

.view-map-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--location-bg-light);
    border: 1px solid var(--location-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--location-text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-map-btn:hover {
    background: var(--location-primary);
    border-color: var(--location-primary);
    color: #fff;
}

.datacenter-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
}

.datacenter-notice i {
    font-size: 20px;
    color: #f59e0b;
}

.datacenter-notice p {
    font-size: 14px;
    color: var(--location-text-dark);
    margin: 0;
}

.datacenter-notice strong {
    color: #f59e0b;
}

/* ===== CTA 섹션 ===== */
.location-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: var(--location-gradient);
    color: #fff;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 212, 170, 0.4);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
    .datacenter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .headquarters-content {
        grid-template-columns: 1fr;
    }

    .transport-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .location-hero {
        padding: 100px 0 60px;
    }

    .location-hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .kakao-map {
        height: 300px;
    }

    .map-actions {
        flex-direction: column;
    }

    .transport-grid {
        grid-template-columns: 1fr;
    }

    .datacenter-grid {
        grid-template-columns: 1fr;
    }

    #datacenter-map {
        height: 300px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .location-hero h1 {
        font-size: 28px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-card-icon {
        margin: 0 auto;
    }

    .contact-item {
        text-align: center;
    }

    .hours-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .datacenter-legend {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== 접근성 ===== */
.map-action-btn:focus-visible,
.copy-btn:focus-visible,
.view-map-btn:focus-visible,
.cta-btn:focus-visible {
    outline: 2px solid var(--location-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
