/* 멜번 시티 지도 - 메인 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e85a2a;
    --secondary: #4a90e2;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --light: #ecf0f1;
    --white: #ffffff;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    color: var(--dark);
}

#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 2.4rem;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--light);
    color: var(--dark);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.main-tabs {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 44px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    z-index: 999;
    overflow-x: auto;
    transition: all 0.3s ease;
}

.main-tabs.collapsed {
    height: 0;
    overflow: hidden;
}

.main-tabs::-webkit-scrollbar {
    height: 0;
}

.tab-btn {
    flex: 1;
    min-width: 70px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 8px;
}

.tab-btn i {
    font-size: 1.6rem;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

/* HOT 배지 스타일 */
.hot-badge {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
    animation: hotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.4);
}

@keyframes hotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.sub-categories {
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    z-index: 998;
    transition: all 0.3s ease;
}

.sub-categories.collapsed {
    top: 60px;
}

.sub-categories::-webkit-scrollbar {
    height: 4px;
}

.sub-categories::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 2px;
}

.chip {
    padding: 6px 12px;
    border: 2px solid var(--light);
    border-radius: 16px;
    background: white;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.chip img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.chip:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.category-toggle {
    position: fixed;
    top: 148px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: white;
    border: none;
    border-radius: 0 0 10px 10px;
    padding: 3px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-toggle:hover {
    color: var(--primary);
    background: var(--light);
}

.category-toggle i {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.category-toggle.collapsed {
    top: 60px;
    border-radius: 0 0 10px 10px;
}

.category-toggle.collapsed i {
    transform: rotate(180deg);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.btn-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--light);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-section-title:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.sidebar-section-title img {
    width: 24px;
    height: 24px;
}

.sidebar-items {
    display: none;
}

.sidebar-items.open {
    display: block;
}

.sidebar-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.sidebar-item:hover {
    background: var(--light);
    transform: translateX(4px);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar.open~.sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 950;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.fab-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.fab-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.fab-instagram {
    background: linear-gradient(135deg, #e1306c 0%, #c13584 50%, #833ab4 100%);
}

.fab-kakao {
    background: linear-gradient(135deg, #fee500 0%, #ffd900 100%);
    color: #3c1e1e;
}

.marker-position {
    background: #FFE4E1;
    border: 1px solid #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.marker-position2 {
    background: #eff8ff;
    border: 1px solid #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.marker-here {
    background: #333;
    border: 1px solid white;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.gm-style-cc,
.gmnoprint a,
.gmnoprint span {
    display: none !important;
}

@media (max-width: 768px) {
    .sidebar {
        max-width: 350px;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .fab {
        width: 52px;
        height: 52px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .top-nav {
        height: 56px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 2rem;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .main-tabs {
        top: 56px;
        height: 42px;
    }

    .tab-btn {
        min-width: 65px;
        font-size: 1.1rem;
        gap: 4px;
    }

    .tab-btn i {
        font-size: 1.5rem;
    }

    .sub-categories {
        top: 98px;
        padding: 6px 8px;
    }

    .sub-categories.collapsed {
        top: 56px;
    }

    .chip {
        padding: 5px 10px;
        font-size: 1.1rem;
    }

    .chip img {
        width: 14px;
        height: 14px;
    }

    .category-toggle {
        top: 138px;
        padding: 2px 12px;
        font-size: 1rem;
    }

    .category-toggle.collapsed {
        top: 56px;
    }

    .category-toggle i {
        font-size: 1.2rem;
    }

    .sidebar {
        max-width: 100%;
    }

    .sidebar-header {
        padding: 16px;
    }

    .sidebar-header h3 {
        font-size: 1.6rem;
    }

    .floating-actions {
        bottom: 15px;
        right: 12px;
        gap: 8px;
    }

    .fab {
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
    }
}

/* 비상연락처 패널 스타일 */
.emergency-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.emergency-panel.open {
    left: 0;
}

.emergency-header {
    padding: 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.emergency-header h3 {
    font-size: 2rem;
    font-weight: 700;
}

.emergency-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.emergency-content::-webkit-scrollbar {
    width: 6px;
}

.emergency-content::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

.emergency-section {
    margin-bottom: 20px;
}

.emergency-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light);
}

.contact-card {
    background: var(--light);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card.important {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-left: 4px solid #ffc107;
}

.contact-card.consulate {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e9fc 100%);
    border-left: 4px solid #0d6efd;
    flex-direction: column;
    gap: 8px;
}

.contact-card.hospital {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
    flex-direction: column;
    gap: 8px;
}

.contact-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-info a {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.contact-info .note {
    display: block;
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 4px;
}

.contact-details {
    width: 100%;
}

.contact-details p {
    font-size: 1.3rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details p i {
    color: var(--secondary);
    font-size: 1.4rem;
    width: 20px;
}

.contact-details a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.hospital-info {
    width: 100%;
}

.hospital-info strong {
    display: block;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.hospital-info p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.hospital-actions {
    display: flex;
    gap: 8px;
}

.hospital-actions a {
    flex: 1;
    padding: 8px 12px;
    background: var(--secondary);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hospital-actions a:first-child {
    background: var(--primary);
}

.hospital-actions a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.emergency-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.emergency-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .emergency-panel {
        max-width: 100%;
    }

    .emergency-header h3 {
        font-size: 1.8rem;
    }

    .contact-info a {
        font-size: 1.6rem;
    }

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