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

* {
    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);
}

.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;
    }
}
