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

        :root {
            --primary: #2563eb;
            --primary-dark: #1e40af;
            --secondary: #0ea5e9;
            --accent: #f59e0b;
            --bg-base: #0f172a;
            --bg-card: #1e293b;
            --bg-card-hover: #334155;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --border: #334155;
            --shadow: rgba(0, 0, 0, 0.5);
        }

        body {
            font-family: 'Gowun Dodum', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-base);
            background-image: 
                radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.2) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
                radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.9) 0px, transparent 100%);
            min-height: 100vh;
            padding: 50px 20px 20px 20px;
            color: var(--text-primary);
        }
        
        @media (max-width: 768px) {
            body {
                padding: 40px 15px 15px 15px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 30px 12px 12px 12px;
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        header {
            display: grid;
            grid-template-columns: 1fr;
            color: var(--text-primary);
            margin-bottom: 50px;
            animation: fadeInDown 0.8s ease;
            position: relative;
        }

        .header-content {
            text-align: center;
            padding-bottom: 25px;
            border-bottom: 2px solid rgba(96, 165, 250, 0.15);
            margin-bottom: 0;
        }

        .header-buttons {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: flex-end;
            padding-top: 20px;
            z-index: 10;
        }

        header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            color: #60a5fa;
            font-weight: 800;
            letter-spacing: -0.03em;
            text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
        }

        header p {
            font-size: 1.1em;
            color: #e0e7ff;
            font-weight: 500;
        }

        .creator-btn {
            background: rgba(96, 165, 250, 0.1);
            border: 1px solid rgba(96, 165, 250, 0.3);
            color: #60a5fa;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 0.9em;
            cursor: pointer;
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            transition: all 0.3s ease;
            font-weight: 600;
            flex-shrink: 0;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .creator-btn .btn-icon {
            font-size: 1.1em;
        }
        
        .creator-btn .btn-text {
            font-size: 0.85em;
        }
        
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                gap: 15px;
            }
            
            .header-buttons {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .creator-btn {
                padding: 8px 12px;
                font-size: 0.85em;
            }
            
            .creator-btn .btn-text {
                font-size: 0.8em;
            }
        }

        .creator-btn:hover {
            background: rgba(96, 165, 250, 0.2);
            border-color: #60a5fa;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
        }

        .main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        @media (max-width: 1024px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
        }

        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 20px 40px var(--shadow);
            animation: fadeIn 0.8s ease;
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 24px 48px var(--shadow);
            border-color: var(--primary);
        }

        .card h2 {
            color: #93c5fd;
            margin-bottom: 20px;
            font-weight: 600;
            letter-spacing: -0.02em;
            font-size: 1.5em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .icon {
            font-size: 1.3em;
        }

        .map-container {
            height: 500px;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
            border: 1px solid var(--border);
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
        }
        
        @media (max-width: 768px) {
            .map-container {
                height: 350px;
            }
            
            .card {
                padding: 18px;
            }
            
            .card h2 {
                font-size: 1.2em;
                margin-bottom: 15px;
            }
            
            .station-info {
                flex-direction: column;
                gap: 8px;
            }
        }
        
        @media (max-width: 480px) {
            .map-container {
                height: 280px;
            }
            
            .card {
                padding: 15px;
                border-radius: 12px;
            }
            
            .card h2 {
                font-size: 1.1em;
                gap: 8px;
            }
            
            .icon {
                font-size: 1.1em;
            }
            
            .btn {
                padding: 10px 16px;
                font-size: 0.9em;
                width: 100%;
            }
        }

        .btn {
            background: var(--primary);
            color: var(--text-primary);
            border: none;
            padding: 12px 24px;
            border-radius: 10px;
            cursor: pointer;
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            font-size: 0.95em;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: var(--bg-base);
            color: var(--primary);
            border: 2px solid var(--primary);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }

        .btn-secondary:hover {
            background: var(--primary);
            color: var(--text-primary);
        }

        .station-list {
            max-height: 400px;
            overflow-y: auto;
            margin-top: 20px;
        }

        /* 스크롤바 스타일링 */
        .station-list::-webkit-scrollbar {
            width: 8px;
        }

        .station-list::-webkit-scrollbar-track {
            background: var(--bg-base);
            border-radius: 4px;
        }

        .station-list::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
            transition: background 0.3s;
        }

        .station-list::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        .station-item {
            background: var(--bg-base);
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border);
            border-left: 3px solid var(--primary);
        }

        .station-item:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
            border-color: var(--primary);
            background: var(--bg-card-hover);
        }

        .station-name {
            font-weight: 700;
            color: #60a5fa;
            font-size: 1.1em;
            margin-bottom: 8px;
            letter-spacing: -0.02em;
        }

        .station-info {
            color: var(--text-primary);
            font-size: 0.95em;
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            gap: 12px;
        }

        .station-info span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .distance {
            color: #34d399;
            font-weight: 700;
        }

        .favorite-btn {
            background: none;
            border: none;
            font-size: 1.5em;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 5px;
        }

        .favorite-btn:hover {
            transform: scale(1.2);
        }

        .favorite-btn.active {
            color: #fbbf24;
            filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.5));
        }

        .remove-btn {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid #ef4444;
            color: #ef4444;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85em;
            cursor: pointer;
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .remove-btn:hover {
            background: #ef4444;
            color: white;
            transform: translateY(-1px);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 20px;
        }
        
        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .stat-card {
                padding: 15px;
            }
            
            .stat-number {
                font-size: 2em;
            }
            
            .stat-label {
                font-size: 0.8em;
            }
        }

        .stat-card {
            background: var(--bg-base);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .stat-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.9em;
        }

        .chart-container {
            height: 300px;
            margin-top: 20px;
        }

        .transit-options {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .transit-btn {
            flex: 1;
            min-width: 120px;
            padding: 15px;
            border: 2px solid var(--border);
            background: var(--bg-base);
            color: var(--text-secondary);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            font-weight: 500;
        }

        .transit-btn.active {
            background: var(--primary);
            color: var(--text-primary);
            border-color: var(--primary);
        }

        .transit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
            border-color: var(--primary);
        }

        /* 모달 스타일 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 40px;
            max-width: 480px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            position: relative;
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        @media (max-width: 768px) {
            .modal {
                padding: 30px;
                border-radius: 20px;
                width: 95%;
                max-width: 100%;
            }
            
            .modal h3 {
                font-size: 1.5em;
            }
        }
        
        @media (max-width: 480px) {
            .modal {
                padding: 20px;
                border-radius: 16px;
                width: 98%;
            }
            
            .modal h3 {
                font-size: 1.3em;
            }
            
            .modal-close {
                top: 15px;
                right: 15px;
                font-size: 1.5em;
                width: 32px;
                height: 32px;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.8em;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.3s ease;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
        }

        .modal-close:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            transform: rotate(90deg);
        }

        .modal h3 {
            color: #93c5fd;
            font-size: 1.8em;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .modal-icon {
            font-size: 4em;
            text-align: center;
            margin-bottom: 20px;
        }

        .modal-title {
            font-size: 1.5em;
            color: #60a5fa;
            text-align: center;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .modal-subtitle {
            text-align: center;
            color: var(--text-secondary);
            font-size: 1em;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .modal-info-box {
            background: rgba(96, 165, 250, 0.05);
            border: 1px solid rgba(96, 165, 250, 0.2);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .modal-info-text {
            color: var(--text-primary);
            font-size: 0.95em;
            line-height: 1.8;
            text-align: center;
        }

        .modal-link-btn {
            width: 100%;
            background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
            color: white;
            border: none;
            padding: 16px;
            border-radius: 12px;
            font-size: 1em;
            cursor: pointer;
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .modal-link-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4);
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
        }

        .loading::after {
            content: '...';
            animation: dots 1.5s steps(4, end) infinite;
        }

        @keyframes dots {
            0%, 20% { content: '.'; }
            40% { content: '..'; }
            60%, 100% { content: '...'; }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .controls {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .controls input {
            flex: 1;
            min-width: 280px;
            padding: 14px 24px;
            background: var(--bg-base);
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: 0.95em;
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            color: var(--text-primary);
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        @media (max-width: 768px) {
            .controls {
                gap: 10px;
            }
            
            .controls input {
                min-width: 200px;
                padding: 12px 16px;
                font-size: 0.9em;
            }
        }
        
        @media (max-width: 480px) {
            .controls {
                flex-direction: column;
                gap: 8px;
            }
            
            .controls input {
                width: 100%;
                min-width: unset;
                padding: 12px 16px;
                font-size: 1em;
            }
        }

        .controls input::placeholder {
            color: var(--text-muted);
        }

        .controls input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
            transform: translateY(-1px);
        }

        .controls input:hover {
            border-color: var(--primary-dark);
        }

        .tab-container {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border);
            justify-content: space-between;
            align-items: center;
        }

        .tab-buttons {
            display: flex;
            gap: 8px;
        }

        .download-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.85em;
            cursor: pointer;
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }

        .download-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .download-btn:active {
            transform: translateY(0);
        }

        .tab {
            background: none;
            border: none;
            padding: 12px 20px;
            cursor: pointer;
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            font-size: 0.95em;
            white-space: nowrap;
            color: var(--text-muted);
            border-bottom: 2px solid transparent;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
        }
        
        @media (max-width: 480px) {
            .tab {
                padding: 10px 10px;
                font-size: 0.85em;
            }

            .tab-container {
                gap: 4px;
            }

            /* 탭 버튼 영역 스크롤 가능하게 (360px 이하 기기 대응) */
            .tab-buttons {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; /* Firefox */
            }
            .tab-buttons::-webkit-scrollbar {
                display: none; /* Chrome/Safari */
            }

            .download-btn {
                padding: 6px 12px;
                font-size: 0.75em;
                flex-shrink: 0;
            }
        }

        .tab:hover {
            color: var(--primary);
            background: rgba(37, 99, 235, 0.05);
        }

        .tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            font-weight: 600;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        .district-chart {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .district-item {
            background: var(--bg-base);
            border: 1px solid var(--border);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .district-item:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
            border-color: var(--primary);
        }

        .district-name {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .district-count {
            font-size: 2em;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        @media (max-width: 1024px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
            
            .tab-container {
                flex-direction: column;
                align-items: stretch;
            }
            
            .tab-buttons {
                width: 100%;
                justify-content: space-between;
            }
            
            .download-btn {
                width: 100%;
                justify-content: center;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            header h1 {
                font-size: 2em;
            }
            
            .controls {
                flex-direction: column;
            }
            
            .controls input {
                min-width: 100%;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .main-grid {
                grid-template-columns: 1fr;
            }

            header {
                flex-direction: column;
                gap: 15px;
            }

            .creator-btn {
                padding: 8px 10px;
                font-size: 0.9em;
            }

            header h1 {
                font-size: 1.8em;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .transit-options {
                grid-template-columns: 1fr 1fr;
                display: grid;
            }

            #routeStart, #routeEnd, #searchInput {
                font-size: 16px !important; /* iOS 자동 줌 방지 */
            }

            /* 컨트롤 버튼 모바일 최적화 */
            .controls {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }

            .controls button {
                padding: 12px 16px !important;
                font-size: 0.9em !important;
                min-height: 44px; /* 터치 최소 크기 */
            }

            .controls input {
                min-height: 44px;
                padding: 12px !important;
            }

            /* 탭 버튼 터치 최적화 */
            .tab, .transit-btn {
                min-height: 44px;
                padding: 12px 16px;
            }

            /* 대여소 아이템 터치 영역 확대 */
            .station-item {
                padding: 16px;
            }

            /* 모달 모바일 최적화 */
            .modal {
                width: 95%;
                max-height: 90vh;
                overflow-y: auto;
                margin: 20px;
            }

            #routeMapContainer {
                height: 400px !important;
            }

            /* 헤더 간격 조정 */
            header p {
                font-size: 0.85em;
            }

            /* 모달 모바일 최적화 */
            .modal h3 {
                font-size: 1em !important;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr !important;
                gap: 8px !important;
            }

            .stat-card {
                padding: 12px !important;
            }

            .stat-number {
                font-size: 1.5em !important;
            }

            .transit-options {
                grid-template-columns: 1fr 1fr 1fr !important;
                gap: 6px !important;
            }

            .transit-btn {
                padding: 10px 8px !important;
                font-size: 0.85em !important;
            }
        }

        .full-width {
            grid-column: 1 / -1;
        }

        .badge {
            display: inline-block;
            padding: 4px 10px;
            background: #764ba2;
            color: white;
            border-radius: 12px;
            font-size: 0.8em;
        }

        @media (max-width: 768px) {
            /* 세 구간 정보를 세로로 배치 */
            .route-segments-grid {
                grid-template-columns: 1fr;
            }
            
            /* 주요 액션 버튼 터치 최소 크기 보장 (모달 닫기·헤더 버튼 제외) */
            .btn {
                min-height: 44px;
            }
            
            /* 모달 크기 조정 */
            .modal {
                width: 95% !important;
                max-width: none !important;
                margin: 20px auto !important;
            }
            
            /* 경로 입력 필드 */
            #routeStart, #routeEnd {
                font-size: 16px !important; /* iOS 자동 줌 방지 */
            }
            
            /* 네비 모달 버튼 */
            .navi-segment-btn {
                padding: 18px !important;
                min-height: 72px !important;
            }
            
            /* 경로 지도 모달 최적화 */
            #routeMapContainer {
                height: 400px !important;
            }
            
            /* 2x2 버튼 그리드 간격 */
            .btn[onclick="showRouteMap()"],
            .btn[onclick="openKakaoNavi()"],
            .btn[onclick="saveRouteBookmark()"],
            .btn[onclick="openBookmarksModal()"] {
                padding: 14px 12px !important;
            }
        }
        
        @media (max-width: 480px) {
            /* 헤더 버튼 */
            .creator-btn {
                padding: 8px 10px !important;
            }
            
            .btn-text {
                font-size: 0.85em !important;
            }
            
            /* 카드 여백 */
            .card {
                padding: 18px !important;
            }
            
            /* 경로 지도 모달 최적화 */
            #routeMapContainer {
                height: 350px !important;
            }
            
            /* 대여소 마커 라벨 크기 축소 */
            .route-marker-label {
                font-size: 0.75em !important;
                padding: 4px 10px !important;
            }
            
            /* 경로 라벨 크기 축소 */
            .route-path-label {
                font-size: 0.75em !important;
                padding: 5px 10px !important;
            }
        }
        
        /* 경로 북마크 스타일 */
        .bookmark-btn {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            border: none;
            color: white;
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Gowun Dodum', sans-serif;
            font-size: 0.9em;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .bookmark-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
        }
        
        .bookmark-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }
        
        .bookmark-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }
        
        .bookmark-item:hover {
            background: var(--bg-card-hover);
            transform: translateX(5px);
        }
        
        .bookmark-info {
            flex: 1;
        }
        
        .bookmark-route {
            color: var(--text-primary);
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .bookmark-date {
            color: var(--text-muted);
            font-size: 0.85em;
        }
        
        .bookmark-actions {
            display: flex;
            gap: 8px;
        }
        
        .bookmark-action-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85em;
            transition: all 0.3s;
        }
        
        .bookmark-action-btn:hover {
            background: var(--bg-card-hover);
        }
        
        .bookmark-action-btn.delete {
            color: #ef4444;
            border-color: #ef4444;
        }
        
        .bookmark-action-btn.delete:hover {
            background: rgba(239, 68, 68, 0.1);
        }
        
        /* 페이드인 애니메이션 */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 실시간 위치 마커 애니메이션 */
        @keyframes live-marker-pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
            }
            50% {
                box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
            }
        }
        
        @keyframes live-marker-glow {
            0%, 100% {
                box-shadow: 0 0 20px rgba(34, 197, 94, 0.8), 0 0 40px rgba(34, 197, 94, 0.4);
            }
            50% {
                box-shadow: 0 0 30px rgba(34, 197, 94, 1), 0 0 60px rgba(34, 197, 94, 0.6);
            }
        }
        /* prefers-reduced-motion: 접근성 */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* 세 구간 요약 그리드 (도보/자전거/도보) */
        .route-segments-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }

        /* 경로 입력 그리드 (모바일에서 세로 배치) */
        .route-inputs-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        /* 경로 결과 버튼 그리드 (2x2 → 모바일 1x4) */
        .route-action-btns {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 20px;
        }

        /* 경로 모달 대여소 정보 그리드 (모바일에서 세로 배치) */
        .route-station-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        @media (max-width: 640px) {
            .route-inputs-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 경로 선택 버튼 행 (출발지 지도선택 / 목적지 지도선택 / 경로 찾기) */
        .route-control-btns {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        @media (max-width: 480px) {
            .route-action-btns,
            .route-station-grid {
                grid-template-columns: 1fr;
            }

            /* 경로 제어 버튼 세로 배치 */
            .route-control-btns {
                flex-direction: column;
            }

            .route-control-btns .btn {
                width: 100%;
                text-align: center;
            }
        }

        /* 토스트 알림 모바일 위치 (하단으로 이동) */
        @media (max-width: 640px) {
            .toast-container {
                top: auto;
                bottom: 20px;
                right: 10px;
                left: 10px;
                max-width: unset;
            }

            .toast {
                max-width: 100%;
            }
        }

        /* 토스트 알림 */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 14px 20px;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            font-family: 'Gowun Dodum', -apple-system, sans-serif;
            font-size: 0.95em;
            max-width: 360px;
            pointer-events: auto;
            animation: toastIn 0.3s ease forwards;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .toast.toast-error {
            border-color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
        }

        .toast.toast-success {
            border-color: #22c55e;
            background: rgba(34, 197, 94, 0.1);
        }

        .toast.toast-out {
            animation: toastOut 0.3s ease forwards;
        }

        @keyframes toastIn {
            from { opacity: 0; transform: translateX(40px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes toastOut {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(40px); }
        }

        /* 스크린리더 전용 숨김 클래스 */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        /* 본문 바로가기 링크 (포커스 시 표시) */
        .skip-link.sr-only-focusable:focus {
            position: fixed;
            top: 10px;
            left: 10px;
            z-index: 9999;
            width: auto;
            height: auto;
            padding: 8px 16px;
            margin: 0;
            overflow: visible;
            clip: auto;
            white-space: normal;
            background: var(--primary);
            color: white;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
        }

        /* ── iOS 안전 영역 (노치/홈 바) 지원 ── */
        @supports (padding: env(safe-area-inset-bottom)) {
            @media (max-width: 640px) {
                /* 홈 바 위로 toast 위치 보정 */
                .toast-container {
                    bottom: calc(20px + env(safe-area-inset-bottom));
                }

                /* 페이지 하단에 홈 바 영역 확보 */
                body {
                    padding-bottom: calc(12px + env(safe-area-inset-bottom));
                }
            }
        }
