/*
 * 파일명: location.css
 * 위치: /assets/css/location.css
 * 기능: 오시는 길 페이지 전용 스타일시트
 * 작성일: 2025-06-27
 */

/* ===================================
 모달 갤러리 스타일
 =================================== */

/* 강화된 화살표 버튼 */
.enhanced-arrow {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.enhanced-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.enhanced-arrow .arrow-container {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 페이지 정보 오버레이 */
.page-info-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* 페이지 점 표시기 */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-dot:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    transform: scale(1.1);
}

.page-dot.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    transform: scale(1.15);
}

/* 이미지 호버 효과 */
.direction-image:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* ===================================
 주소 박스 스타일
 =================================== */

/* 주소 박스 스타일 개선 (컴팩트 버전) */
.address-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px solid var(--bs-primary) !important;
    transition: all 0.3s ease;
}

.address-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.address-text {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

/* ===================================
 섹션 및 레이아웃
 =================================== */

/* 섹션 패딩 줄이기 */
.section {
    padding: 2.5rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

/* 버튼 호버 효과 개선 */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn {
    transition: all 0.3s ease;
}

/* ===================================
 교통편 안내 스타일
 =================================== */

/* 교통편 단계별 안내 스타일 */
.transportation-steps .step-item {
    position: relative;
    padding-left: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h6 {
    color: var(--bs-primary);
    font-weight: 600;
}

/* 배지 그룹 스타일링 */
.d-flex.gap-2 .badge {
    font-size: 0.85rem;
}

/* 경로 정보 박스 */
.route-info {
    border-left: 4px solid var(--bs-primary);
    transition: all 0.3s ease;
}

.route-info:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===================================
 주변 정보 스타일
 =================================== */

/* 관광명소 항목 */
.attraction-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.attraction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left-color: var(--bs-primary);
}

/* 편의시설 항목 */
.facility-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.facility-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left-color: var(--bs-success);
}

.facility-icon {
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5px;
}

/* ===================================
 모바일 반응형 디자인
 =================================== */

@media (max-width: 768px) {
    /* 모달 화살표 모바일 최적화 */
    .enhanced-arrow {
        width: 50px;
        height: 50px;
    }

    .enhanced-arrow .arrow-container {
        font-size: 1.2rem;
    }

    /* 페이지 점 모바일 최적화 */
    .page-dot {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .pagination-dots {
        gap: 6px;
    }

    /* 단계 번호 모바일 최적화 */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* 편의시설 아이콘 모바일 최적화 */
    .facility-icon {
        width: 40px;
    }

    .facility-icon i {
        font-size: 1.2rem !important;
    }

    /* 섹션 패딩 모바일 조정 */
    .section {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    /* 주소 박스 모바일 최적화 */
    .address-text {
        font-size: 1.1rem !important;
    }
}

/* ===================================
 태블릿 반응형 디자인
 =================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .section {
        padding: 2.2rem 0;
    }

    .page-dot {
        width: 38px;
        height: 38px;
    }

    .step-number {
        width: 38px;
        height: 38px;
    }
}

/* ===================================
 접근성 개선
 =================================== */

/* 포커스 상태 개선 */
.page-dot:focus,
.step-number:focus,
.btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .page-dot {
        border-width: 3px;
    }

    .address-box {
        border-width: 3px !important;
    }

    .route-info {
        border-left-width: 6px;
    }
}

/* 애니메이션 비활성화 옵션 */
@media (prefers-reduced-motion: reduce) {
    .enhanced-arrow,
    .page-dot,
    .attraction-item,
    .facility-item,
    .route-info,
    .btn,
    .direction-image {
        transition: none;
    }

    .enhanced-arrow:hover,
    .page-dot:hover,
    .attraction-item:hover,
    .facility-item:hover {
        transform: none;
    }
}

/* ===================================
 프린트 스타일
 =================================== */

@media print {
    .enhanced-arrow,
    .pagination-dots,
    .page-info-overlay {
        display: none !important;
    }

    .attraction-item,
    .facility-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .address-box {
        box-shadow: none !important;
        border: 2px solid #333 !important;
    }
}