        :root {
            --primary-color: #4a5568;
            --secondary-color: #ffffff;
            --accent-color: #2d3748;
            --text-color: #1a202c;
            --border-color: #e2e8f0;
            --legend-width-mobile: 90vw;
            --legend-width-desktop: 320px;
            --legend-animation-duration: 300ms;
            --legend-z-index: 9999;
            --legend-backdrop-blur: 10px;
            --toggle-button-size: 50px;
            --touch-target-min: 44px;
            --gradient-primary: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
            --gradient-secondary: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
            --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
            --card-shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.15);

            /* Category specific colors - Daha yüksek kontrast */
            --doga-color: #22543d;
            --doga-light: rgba(34, 84, 61, 0.15);
            --yemek-color: #c53030;
            --yemek-light: rgba(197, 48, 48, 0.15);
            --tarihi-color: #553c9a;
            --tarihi-light: rgba(85, 60, 154, 0.15);
            --eglence-color: #d69e2e;
            --eglence-light: rgba(214, 158, 46, 0.15);
            --sanat-kultur-color: #2b6cb0;
            --sanat-kultur-light: rgba(43, 108, 176, 0.15);
            --macera-color: #c05621;
            --macera-light: rgba(192, 86, 33, 0.15);
            --rahatlatici-color: #2c7a7b;
            --rahatlatici-light: rgba(44, 122, 123, 0.15);
            --spor-color: #6b46c1;
            --spor-light: rgba(107, 70, 193, 0.15);
            --alisveris-color: #2d3748;
            --alisveris-light: rgba(45, 55, 72, 0.15);
            --gece-hayati-color: #1a202c;
            --gece-hayati-light: rgba(26, 32, 44, 0.15);
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            min-height: 100vh;
            margin: 0;
            padding: 20px 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            color: var(--text-color);
        }

        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .header {
            background: var(--gradient-primary);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            opacity: 0.3;
        }

        .header h1 {
            margin: 0;
            font-size: 2.5rem;
            font-weight: 300;
            position: relative;
            z-index: 1;
        }

        .header p {
            margin: 10px 0 0 0;
            opacity: 0.95;
            font-size: 1.1rem;
            position: relative;
            z-index: 1;
        }

        .content {
            padding: 40px;
        }

        .preferences-section {
            margin-bottom: 40px;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .slider-container {
            background: #ffffff;
            border-radius: 24px;
            padding: 35px;
            margin-bottom: 30px;
            border: 2px solid #e2e8f0;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }

        .slider-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg,
                    var(--doga-color) 0%,
                    var(--yemek-color) 10%,
                    var(--tarihi-color) 20%,
                    var(--eglence-color) 30%,
                    var(--sanat-kultur-color) 40%,
                    var(--macera-color) 50%,
                    var(--rahatlatici-color) 60%,
                    var(--spor-color) 70%,
                    var(--alisveris-color) 80%,
                    var(--gece-hayati-color) 90%,
                    var(--doga-color) 100%);
            opacity: 0.8;
            border-radius: 24px 24px 0 0;
        }

        .slider-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .slider-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .slider-item {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding: 20px;
            background: #ffffff;
            border-radius: 16px;
            border: 2px solid #e2e8f0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: var(--touch-target-min);
            position: relative;
            overflow: hidden;
        }

        .slider-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: var(--primary-color);
            transform: scaleY(0);
            transition: transform 0.4s ease;
            border-radius: 0 3px 3px 0;
        }

        .slider-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .slider-item:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
            background: #ffffff;
            border-color: #cbd5e0;
        }

        .slider-item:hover::before {
            transform: scaleY(1);
        }

        .slider-item:hover::after {
            opacity: 1;
        }

        /* Category-specific styling */
        .slider-item[data-category="doga"] {
            border-left: 4px solid var(--doga-color);
        }

        .slider-item[data-category="doga"].active {
            background: var(--doga-light);
            border-color: var(--doga-color);
            box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
        }

        .slider-item[data-category="doga"]::before {
            background: var(--doga-color);
        }

        .slider-item[data-category="yemek"] {
            border-left: 4px solid var(--yemek-color);
        }

        .slider-item[data-category="yemek"].active {
            background: var(--yemek-light);
            border-color: var(--yemek-color);
            box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
        }

        .slider-item[data-category="yemek"]::before {
            background: var(--yemek-color);
        }

        .slider-item[data-category="tarihi"] {
            border-left: 4px solid var(--tarihi-color);
        }

        .slider-item[data-category="tarihi"].active {
            background: var(--tarihi-light);
            border-color: var(--tarihi-color);
            box-shadow: 0 8px 25px rgba(142, 68, 173, 0.2);
        }

        .slider-item[data-category="tarihi"]::before {
            background: var(--tarihi-color);
        }

        .slider-item[data-category="eglence"] {
            border-left: 4px solid var(--eglence-color);
        }

        .slider-item[data-category="eglence"].active {
            background: var(--eglence-light);
            border-color: var(--eglence-color);
            box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
        }

        .slider-item[data-category="eglence"]::before {
            background: var(--eglence-color);
        }

        .slider-item[data-category="sanat_kultur"] {
            border-left: 4px solid var(--sanat-kultur-color);
        }

        .slider-item[data-category="sanat_kultur"].active {
            background: var(--sanat-kultur-light);
            border-color: var(--sanat-kultur-color);
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
        }

        .slider-item[data-category="sanat_kultur"]::before {
            background: var(--sanat-kultur-color);
        }

        .slider-item[data-category="macera"] {
            border-left: 4px solid var(--macera-color);
        }

        .slider-item[data-category="macera"].active {
            background: var(--macera-light);
            border-color: var(--macera-color);
            box-shadow: 0 8px 25px rgba(230, 126, 34, 0.2);
        }

        .slider-item[data-category="macera"]::before {
            background: var(--macera-color);
        }

        .slider-item[data-category="rahatlatici"] {
            border-left: 4px solid var(--rahatlatici-color);
        }

        .slider-item[data-category="rahatlatici"].active {
            background: var(--rahatlatici-light);
            border-color: var(--rahatlatici-color);
            box-shadow: 0 8px 25px rgba(26, 188, 156, 0.2);
        }

        .slider-item[data-category="rahatlatici"]::before {
            background: var(--rahatlatici-color);
        }

        .slider-item[data-category="spor"] {
            border-left: 4px solid var(--spor-color);
        }

        .slider-item[data-category="spor"].active {
            background: var(--spor-light);
            border-color: var(--spor-color);
            box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
        }

        .slider-item[data-category="spor"]::before {
            background: var(--spor-color);
        }

        .slider-item[data-category="alisveris"] {
            border-left: 4px solid var(--alisveris-color);
        }

        .slider-item[data-category="alisveris"].active {
            background: var(--alisveris-light);
            border-color: var(--alisveris-color);
            box-shadow: 0 8px 25px rgba(52, 73, 94, 0.2);
        }

        .slider-item[data-category="alisveris"]::before {
            background: var(--alisveris-color);
        }

        .slider-item[data-category="gece_hayati"] {
            border-left: 4px solid var(--gece-hayati-color);
        }

        .slider-item[data-category="gece_hayati"].active {
            background: var(--gece-hayati-light);
            border-color: var(--gece-hayati-color);
            box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
        }

        .slider-item[data-category="gece_hayati"]::before {
            background: var(--gece-hayati-color);
        }

        .slider-label {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            color: var(--text-color);
            font-size: 15px;
            position: relative;
        }

        .slider-label i {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 16px;
            border-radius: 50%;
            background: #f7fafc;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        /* Category-specific icon colors */
        .slider-item[data-category="doga"] .slider-label i {
            color: var(--doga-color);
            background: var(--doga-light);
            border: 2px solid rgba(39, 174, 96, 0.2);
        }

        .slider-item[data-category="yemek"] .slider-label i {
            color: var(--yemek-color);
            background: var(--yemek-light);
            border: 2px solid rgba(231, 76, 60, 0.2);
        }

        .slider-item[data-category="tarihi"] .slider-label i {
            color: var(--tarihi-color);
            background: var(--tarihi-light);
            border: 2px solid rgba(142, 68, 173, 0.2);
        }

        .slider-item[data-category="eglence"] .slider-label i {
            color: var(--eglence-color);
            background: var(--eglence-light);
            border: 2px solid rgba(243, 156, 18, 0.2);
        }

        .slider-item[data-category="sanat_kultur"] .slider-label i {
            color: var(--sanat-kultur-color);
            background: var(--sanat-kultur-light);
            border: 2px solid rgba(52, 152, 219, 0.2);
        }

        .slider-item[data-category="macera"] .slider-label i {
            color: var(--macera-color);
            background: var(--macera-light);
            border: 2px solid rgba(230, 126, 34, 0.2);
        }

        .slider-item[data-category="rahatlatici"] .slider-label i {
            color: var(--rahatlatici-color);
            background: var(--rahatlatici-light);
            border: 2px solid rgba(26, 188, 156, 0.2);
        }

        .slider-item[data-category="spor"] .slider-label i {
            color: var(--spor-color);
            background: var(--spor-light);
            border: 2px solid rgba(155, 89, 182, 0.2);
        }

        .slider-item[data-category="alisveris"] .slider-label i {
            color: var(--alisveris-color);
            background: var(--alisveris-light);
            border: 2px solid rgba(52, 73, 94, 0.2);
        }

        .slider-item[data-category="gece_hayati"] .slider-label i {
            color: var(--gece-hayati-color);
            background: var(--gece-hayati-light);
            border: 2px solid rgba(44, 62, 80, 0.2);
        }

        .slider-item:hover .slider-label i {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .slider-item.active .slider-label i {
            transform: scale(1.05);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }

        /* Slider styles moved to components.css for better organization */

        /* Discrete slider styles moved to components.css */

        /* Slider thumb styles moved to components.css */

        /* Category-specific slider thumb colors */
        .slider-item[data-category="doga"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--doga-color) 0%, #2ecc71 100%);
        }

        .slider-item[data-category="yemek"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--yemek-color) 0%, #c0392b 100%);
        }

        .slider-item[data-category="tarihi"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--tarihi-color) 0%, #9b59b6 100%);
        }

        .slider-item[data-category="eglence"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--eglence-color) 0%, #e67e22 100%);
        }

        .slider-item[data-category="sanat_kultur"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--sanat-kultur-color) 0%, #2980b9 100%);
        }

        .slider-item[data-category="macera"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--macera-color) 0%, #d35400 100%);
        }

        .slider-item[data-category="rahatlatici"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--rahatlatici-color) 0%, #16a085 100%);
        }

        .slider-item[data-category="spor"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--spor-color) 0%, #8e44ad 100%);
        }

        .slider-item[data-category="alisveris"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--alisveris-color) 0%, #2c3e50 100%);
        }

        .slider-item[data-category="gece_hayati"] .slider::-webkit-slider-thumb {
            background: linear-gradient(135deg, var(--gece-hayati-color) 0%, #34495e 100%);
        }

        .slider-value {
            text-align: center;
            font-weight: 800;
            font-size: 1rem;
            padding: 10px 18px;
            border-radius: 30px;
            border: 2px solid;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            min-width: 120px;
            position: relative;
            overflow: hidden;
            white-space: nowrap;
        }

        .slider-value::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .slider-value.zero {
            color: #718096;
            background: rgba(113, 128, 150, 0.1);
            border-color: rgba(113, 128, 150, 0.3);
        }

        .slider-value.high::before {
            left: 100%;
        }

        /* Category-specific value colors */
        .slider-item[data-category="doga"] .slider-value:not(.zero) {
            color: var(--doga-color);
            background: var(--doga-light);
            border-color: var(--doga-color);
        }

        .slider-item[data-category="yemek"] .slider-value:not(.zero) {
            color: var(--yemek-color);
            background: var(--yemek-light);
            border-color: var(--yemek-color);
        }

        .slider-item[data-category="tarihi"] .slider-value:not(.zero) {
            color: var(--tarihi-color);
            background: var(--tarihi-light);
            border-color: var(--tarihi-color);
        }

        .slider-item[data-category="eglence"] .slider-value:not(.zero) {
            color: var(--eglence-color);
            background: var(--eglence-light);
            border-color: var(--eglence-color);
        }

        .slider-item[data-category="sanat_kultur"] .slider-value:not(.zero) {
            color: var(--sanat-kultur-color);
            background: var(--sanat-kultur-light);
            border-color: var(--sanat-kultur-color);
        }

        .slider-item[data-category="macera"] .slider-value:not(.zero) {
            color: var(--macera-color);
            background: var(--macera-light);
            border-color: var(--macera-color);
        }

        .slider-item[data-category="rahatlatici"] .slider-value:not(.zero) {
            color: var(--rahatlatici-color);
            background: var(--rahatlatici-light);
            border-color: var(--rahatlatici-color);
        }

        .slider-item[data-category="spor"] .slider-value:not(.zero) {
            color: var(--spor-color);
            background: var(--spor-light);
            border-color: var(--spor-color);
        }

        .slider-item[data-category="alisveris"] .slider-value:not(.zero) {
            color: var(--alisveris-color);
            background: var(--alisveris-light);
            border-color: var(--alisveris-color);
        }

        .slider-item[data-category="gece_hayati"] .slider-value:not(.zero) {
            color: var(--gece-hayati-color);
            background: var(--gece-hayati-light);
            border-color: var(--gece-hayati-color);
        }

        .slider-value.high {
            transform: scale(1.08);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .recommend-btn {
            background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
            border: none;
            color: white;
            padding: 20px 50px;
            font-size: 1.3rem;
            font-weight: 700;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 30px auto;
            box-shadow: 0 10px 30px rgba(45, 55, 72, 0.3);
            position: relative;
            overflow: hidden;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
            text-decoration: none;
            border: 2px solid transparent;
        }

        .recommend-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s ease;
        }

        .recommend-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.4s ease;
        }

        .recommend-btn:hover::before {
            left: 100%;
        }

        .recommend-btn:hover::after {
            width: 300px;
            height: 300px;
        }

        .recommend-btn:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 15px 40px rgba(45, 55, 72, 0.4);
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        }

        .recommend-btn:active {
            transform: translateY(-2px) scale(1.01);
            box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3);
        }

        .recommend-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        }

        .recommend-btn:disabled::before,
        .recommend-btn:disabled::after {
            display: none;
        }

        .recommend-btn .btn-icon {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .recommend-btn:hover .btn-icon {
            transform: rotate(360deg) scale(1.1);
        }

        .recommend-btn .btn-text {
            position: relative;
            z-index: 2;
        }

        .recommend-btn.loading {
            pointer-events: none;
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        }

        .recommend-btn.loading .btn-icon {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .recommend-btn.success {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            animation: successPulse 0.6s ease;
        }

        @keyframes successPulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        .recommend-btn.error {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            animation: errorShake 0.6s ease;
        }

        @keyframes errorShake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            75% {
                transform: translateX(5px);
            }
        }

        /* Route Tabs Styles */
        .route-tabs-container {
            margin-bottom: 30px;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .route-tabs {
            display: flex;
            background: #f8f9fa;
        }

        .route-tab {
            flex: 1;
            padding: 20px 24px;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 1rem;
            font-weight: 600;
            color: #718096;
            position: relative;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
        }

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

        .route-tab:hover {
            background: rgba(45, 55, 72, 0.05);
            color: var(--text-color);
        }

        .route-tab.active {
            background: #ffffff;
            color: var(--text-color);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        }

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

        .route-tab i {
            font-size: 1.2rem;
        }

        .route-tab span {
            font-weight: 600;
        }

        /* Tab Content */
        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Predefined Routes Styles */
        .predefined-routes-section {
            margin-bottom: 40px;
        }

        .predefined-routes-description {
            color: #666;
            font-size: 1rem;
            margin-bottom: 25px;
            text-align: center;
            line-height: 1.6;
        }

        .route-filters {
            background: #ffffff;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 30px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: end;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 150px;
            flex: 1;
        }

        .filter-group label {
            font-weight: 600;
            color: var(--text-color);
            font-size: 0.9rem;
        }

        .filter-select {
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            background: #ffffff;
            font-size: 1rem;
            color: var(--text-color);
            transition: all 0.3s ease;
            cursor: pointer;
            min-height: var(--touch-target-min);
        }

        .filter-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
        }

        .filter-select:hover {
            border-color: #cbd5e0;
        }

        .filter-clear-btn {
            background: #f56565;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
        }

        .filter-clear-btn:hover {
            background: #e53e3e;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
        }

        /* Enhanced Predefined Routes Header */
        .predefined-routes-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            padding: 32px;
            margin-bottom: 32px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .predefined-routes-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
            pointer-events: none;
            z-index: 0;
        }

        .predefined-routes-header .route-search {
            position: relative;
            z-index: 3;
            margin-top: 16px;
            pointer-events: auto;
            display: flex;
            justify-content: center;
        }

        .predefined-routes-header .route-search input {
            width: 100%;
            max-width: 300px;
            margin: 0;
            pointer-events: auto;
        }

        .section-header-content {
            position: relative;
            z-index: 2;
            text-align: center;
            margin-bottom: 24px;
        }

        .predefined-routes-header .section-title {
            color: white;
            font-size: 2.2rem;
            margin-bottom: 12px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .predefined-routes-description {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            line-height: 1.6;
            margin: 0;
            max-width: 600px;
            margin: 0 auto;
        }

        .routes-quick-stats {
            display: flex;
            justify-content: center;
            gap: 32px;
            position: relative;
            z-index: 2;
        }

        .quick-stat-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 16px 24px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .stat-icon {
            width: 48px;
            height: 48px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .stat-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .stat-number {
            font-size: 1.8rem;
            font-weight: 700;
            line-height: 1;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 2px;
        }

        /* Enhanced Filter System */
        .route-filters-enhanced {
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 32px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .filters-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            background: #f8f9fa;
            border-bottom: 1px solid #e2e8f0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filters-header:hover {
            background: #f1f3f4;
        }

        .filters-title {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0;
            font-size: 1.2rem;
            font-weight: 600;
            color: #2d3748;
        }

        .filters-toggle-btn {
            background: none;
            border: none;
            font-size: 1.2rem;
            color: #666;
            transition: transform 0.3s ease;
            padding: 8px;
            border-radius: 8px;
        }

        .filters-toggle-btn:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .filters-toggle-btn.expanded {
            transform: rotate(180deg);
        }

        .filters-content {
            padding: 24px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
        }

        .filters-content.expanded {
            max-height: 500px;
            padding: 24px;
        }

        .filter-chips-container {
            display: flex;
            flex-direction: column;
            gap: 24px;
            margin-bottom: 24px;
        }

        .filter-chip-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .filter-chip-label {
            font-weight: 600;
            color: #2d3748;
            font-size: 1rem;
            margin: 0;
        }

        .filter-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .filter-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: #f7fafc;
            border: 2px solid #e2e8f0;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 500;
            color: #4a5568;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 44px;
            touch-action: manipulation;
        }

        .filter-chip:hover {
            background: #edf2f7;
            border-color: #cbd5e0;
            transform: translateY(-1px);
        }

        .filter-chip.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .filter-chip i {
            font-size: 1rem;
        }

        .filters-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
        }

        .filter-clear-btn,
        .filter-apply-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 44px;
            touch-action: manipulation;
        }

        .filter-clear-btn {
            background: #f7fafc;
            border: 2px solid #e2e8f0;
            color: #718096;
        }

        .filter-clear-btn:hover {
            background: #edf2f7;
            border-color: #cbd5e0;
            transform: translateY(-1px);
        }

        .filter-apply-btn {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            border: 2px solid #48bb78;
            color: white;
            box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
        }

        .filter-apply-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
        }

        .predefined-routes-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 24px;
        }

        .route-card {
            background: #f9fafb;
            border: 1px solid #d1d5db;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            position: relative;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
        }

        .route-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transform: scaleX(0);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .route-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .route-card:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            border-color: #cbd5e0;
        }

        .route-card:hover::before {
            transform: scaleX(1);
        }

        .route-card:hover::after {
            opacity: 1;
        }

        .route-card:active {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        }

        .route-card-header {
            padding: 18px 20px;
            border-bottom: 1px solid #f7fafc;
            position: relative;
            z-index: 2;
        }

        .favorite-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: transparent;
            border: none;
            color: #cbd5e0;
            cursor: pointer;
            font-size: 1.2rem;
            transition: color 0.3s ease;
        }

        .favorite-btn.active {
            color: #f6ad55;
        }

        .favorite-btn:focus {
            outline: none;
            color: #f6ad55;
        }

        .route-card-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 0 0 8px 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .route-card-description {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.4;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .route-card-meta {
            padding: 14px 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            position: relative;
            z-index: 2;
            justify-content: space-between;
        }

        .route-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 20px;
            transition: all 0.3s ease;
            text-align: center;
            font-size: 0.85rem;
            font-weight: 600;
            color: #2d3748;
            flex: 0 0 auto;
        }

        .route-meta-item:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-1px);
        }

        .route-meta-item i {
            font-size: 1rem;
            color: #667eea;
        }

        .route-difficulty {
            flex: 1 1 100%;
            justify-content: center;
        }

        .difficulty-stars {
            display: flex;
            gap: 3px;
            margin-left: 6px;
        }

        .difficulty-star {
            width: 16px;
            height: 16px;
            background: #e2e8f0;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .difficulty-star.filled {
            background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
            box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
        }

        /* Route Card Loading State */
        .route-card.loading {
            pointer-events: none;
            opacity: 0.7;
            position: relative;
        }

        .route-card.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 32px;
            height: 32px;
            margin: -16px 0 0 -16px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            z-index: 10;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Fullscreen Map Overlay */
        .fullscreen-map-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10000;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .fullscreen-map-overlay.show {
            opacity: 1;
        }

        .fullscreen-map-overlay .fullscreen-map-header,
        .fullscreen-map-overlay .fullscreen-map-info {
            pointer-events: auto;
        }

        /* Fullscreen Map Modal */
        .fullscreen-map-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .fullscreen-map-modal.show {
            opacity: 1;
            visibility: visible;
        }

        .fullscreen-map-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 10001;
        }

        .fullscreen-map-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.2rem;
            font-weight: 600;
        }

        .fullscreen-map-title i {
            font-size: 1.4rem;
        }

        .fullscreen-map-controls {
            display: flex;
            gap: 8px;
        }

        .fullscreen-control-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.1rem;
        }

        .fullscreen-control-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

        .fullscreen-map-container {
            flex: 1;
            position: relative;
            overflow: hidden;
        }

        .fullscreen-map {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }

        .fullscreen-map-info {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 10002;
            min-width: 250px;
        }

        .fullscreen-map-info.show {
            transform: translateX(0);
        }

        .fullscreen-route-stats {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .fullscreen-stat-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 8px;
            font-weight: 600;
            color: #2d3748;
        }

        .fullscreen-stat-item i {
            color: #667eea;
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }

        /* Mobile responsive for fullscreen map */
        @media (max-width: 768px) {
            .fullscreen-map-header {
                padding: 12px 16px;
            }

            .fullscreen-map-title {
                font-size: 1.1rem;
            }

            .fullscreen-map-title i {
                font-size: 1.2rem;
            }

            .fullscreen-control-btn {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }

            .fullscreen-map-info {
                top: 10px;
                right: 10px;
                left: 10px;
                min-width: auto;
                padding: 16px;
            }

            .fullscreen-route-stats {
                gap: 8px;
            }

            .fullscreen-stat-item {
                padding: 6px 10px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .fullscreen-map-header {
                padding: 10px 12px;
            }

            .fullscreen-map-title {
                font-size: 1rem;
            }

            .fullscreen-control-btn {
                width: 32px;
                height: 32px;
                font-size: 0.9rem;
            }

            .fullscreen-map-info {
                padding: 12px;
            }

            .fullscreen-stat-item {
                font-size: 0.85rem;
            }
        }

        .route-meta-item {
            font-size: 0.85rem;
            color: #666;
            background: #ffffff;
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px solid #e2e8f0;
        }

        .route-meta-item i {
            color: var(--primary-color);
        }

        .route-difficulty {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .difficulty-stars {
            display: flex;
            gap: 2px;
        }

        .difficulty-star {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #e2e8f0;
        }

        .difficulty-star.filled {
            background: #f6ad55;
        }

        .no-routes-message {
            text-align: center;
            padding: 60px 20px;
            color: #666;
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
        }

        .no-routes-message i {
            font-size: 3rem;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .no-routes-message p {
            font-size: 1.1rem;
            margin: 0;
        }

        /* Route Detail Modal */
        .route-detail-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            backdrop-filter: blur(5px);
        }

        .route-detail-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .route-detail-modal-content {
            background: #ffffff;
            border-radius: 20px;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                transform: translateY(-50px) scale(0.9);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .route-detail-modal-header {
            padding: 24px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--gradient-primary);
            color: white;
        }

        .route-detail-modal-title {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .route-detail-modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
            min-height: var(--touch-target-min);
            min-width: var(--touch-target-min);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .route-detail-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .route-detail-modal-body {
            padding: 24px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .route-detail-modal-footer {
            padding: 20px 24px;
            border-top: 1px solid #e2e8f0;
            background: #f8f9fa;
            display: flex;
            justify-content: center;
        }

        .route-select-btn {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
        }

        .route-select-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3);
        }

        /* Route Detail Modal Content */
        .route-detail-content {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .route-detail-summary {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #e2e8f0;
        }

        .route-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
        }

        .summary-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }

        .summary-item i {
            color: var(--primary-color);
            font-size: 1.2rem;
            width: 20px;
            text-align: center;
        }

        .summary-item div {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .summary-label {
            font-size: 0.8rem;
            color: #666;
            font-weight: 500;
        }

        .summary-value {
            font-size: 0.95rem;
            color: var(--text-color);
            font-weight: 600;
        }

        .route-detail-description h4,
        .route-detail-pois h4 {
            margin: 0 0 12px 0;
            color: var(--text-color);
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .route-detail-description h4 i,
        .route-detail-pois h4 i {
            color: var(--primary-color);
        }

        .route-detail-description p {
            margin: 0;
            color: #666;
            line-height: 1.6;
        }

        .route-pois-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .route-poi-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .route-poi-item:hover {
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .poi-order {
            width: 32px;
            height: 32px;
            background: var(--gradient-primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .poi-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .poi-name {
            font-weight: 600;
            color: var(--text-color);
            font-size: 1rem;
        }

        .poi-category {
            font-size: 0.85rem;
            color: #666;
        }

        .poi-notes {
            font-size: 0.8rem;
            color: #888;
            font-style: italic;
            margin-top: 4px;
        }

        .poi-time {
            font-size: 0.85rem;
            color: var(--primary-color);
            font-weight: 600;
            flex-shrink: 0;
        }

        /* Notification styles */
        .notification {
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .notification-close:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            opacity: 1 !important;
        }

        /* Enhanced Mobile Responsive Styles for Hazır Rotalar */
        :root {
            /* Mobile-First Responsive Variables */
            --map-height-mobile: 65vh;
            --map-height-tablet: 55vh;
            --map-height-desktop: 500px;
            --card-height-mobile: 120px;
            --card-height-tablet: 140px;
            --card-height-desktop: 160px;
            --card-grid-columns-mobile: 1;
            --card-grid-columns-tablet: 1;
            --card-grid-columns-desktop: 2;
        }

        /* Mobile-First Approach */
        @media (max-width: 480px) {
            /* Small Mobile - 320px to 480px */
            .routes-map-container {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }

            .predefined-routes-list {
                grid-template-columns: repeat(var(--card-grid-columns-mobile), 1fr);
                gap: 12px;
            }

            .route-card {
                max-height: var(--card-height-mobile);
                display: grid;
                grid-template-columns: 80px 1fr 60px;
                grid-template-rows: auto auto;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            }
        }

        @media (min-width: 481px) and (max-width: 768px) {
            /* Large Mobile/Small Tablet - 481px to 768px */
            .predefined-routes-list {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .route-card {
                max-height: var(--card-height-desktop);
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            /* Tablet - 769px to 1024px */
            .predefined-routes-list {
                grid-template-columns: repeat(var(--card-grid-columns-desktop), 1fr);
                gap: 20px;
            }

            .route-card {
                max-height: var(--card-height-desktop);
            }
        }

        @media (max-width: 768px) {
            .route-tabs {
                flex-direction: column;
                padding: 0;
                margin-bottom: 16px;
            }

            .route-tab {
                padding: 16px 20px;
                font-size: 0.95rem;
                border-radius: 12px;
                margin-bottom: 8px;
            }

            .route-tab span {
                font-size: 0.9rem;
            }

            .route-filters {
                flex-direction: column;
                gap: 16px;
            }

            .filter-group {
                min-width: auto;
            }

            /* Mobile Responsive - Predefined Routes Header */
            .predefined-routes-header {
                padding: 16px 14px;
                margin-bottom: 16px;
                border-radius: 14px;
            }

            .predefined-routes-header .section-title {
                font-size: 1.5rem;
                margin-bottom: 6px;
            }

            .predefined-routes-description {
                font-size: 0.9rem;
                line-height: 1.4;
                margin-bottom: 12px;
            }

            /* Mobile Route Search - Only Input */
            .predefined-routes-header .route-search {
                margin-top: 8px;
            }

            .predefined-routes-header .route-search input {
                max-width: 100%;
                width: 100%;
                padding: 12px 14px;
                font-size: 16px; /* Prevents zoom on iOS */
                border-radius: 10px;
            }

            .routes-quick-stats {
                flex-direction: column;
                gap: 12px;
                align-items: stretch;
                margin-top: 16px;
            }

            .quick-stat-item {
                padding: 14px 16px;
                width: 100%;
                max-width: none;
                justify-content: center;
                text-align: center;
            }

            /* Mobile Responsive - Enhanced Filters */
            .route-filters-enhanced {
                margin-bottom: 20px;
                border-radius: 12px;
            }

            .filters-open-btn {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
                border: none;
                padding: 16px 20px;
                border-radius: 12px;
                font-weight: 600;
                font-size: 1rem;
                width: 100%;
                margin-bottom: 16px;
                min-height: 48px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
                transition: all 0.3s ease;
            }

            .filters-open-btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
            }

            .filters-header {
                padding: 16px 18px;
                background: #f8f9fa;
                border-radius: 12px 12px 0 0;
            }

            .filters-title {
                font-size: 1.05rem;
                font-weight: 600;
            }

            .filters-content.expanded {
                padding: 18px;
                border-radius: 0 0 12px 12px;
            }

            .filter-chips-container {
                gap: 16px;
                margin-bottom: 20px;
            }

            .filter-chip-group {
                margin-bottom: 16px;
            }

            .filter-chip-label {
                font-size: 0.9rem;
                font-weight: 600;
                margin-bottom: 8px;
                color: #4a5568;
            }

            .filter-chips {
                gap: 8px;
                flex-wrap: wrap;
            }

            .filter-chip {
                padding: 12px 16px;
                font-size: 0.85rem;
                min-height: 44px;
                flex: 0 0 auto;
                border-radius: 22px;
                transition: all 0.3s ease;
            }

            .filter-chip.active {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
                transform: scale(1.05);
            }

            .filters-actions {
                flex-direction: row;
                gap: 12px;
                margin-top: 20px;
            }

            .filter-clear-btn,
            .filter-apply-btn {
                flex: 1;
                justify-content: center;
                padding: 16px 20px;
                min-height: 48px;
                border-radius: 12px;
                font-weight: 600;
            }

            /* Mobile Layout Priority - Map First */
            .routes-map-container {
                display: flex;
                flex-direction: column;
            }

            #mapView {
                order: 1;
                flex: 0 0 auto;
            }

            #listView {
                order: 2;
                flex: 1 1 auto;
                margin-top: 20px;
            }

            /* Mobile Responsive - Route Cards Grid */
            .predefined-routes-list {
                grid-template-columns: 1fr;
                gap: 16px;
                padding: 0 4px;
            }

            .route-card {
                margin-bottom: 0;
                border-radius: 16px;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
                overflow: hidden;
                /* Mobile Compact Layout */
                display: grid;
                grid-template-columns: 100px 1fr 60px;
                grid-template-rows: auto auto;
                max-height: 120px;
                min-height: 120px;
                background: white;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .route-card:hover {
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            }

            /* Mobile Compact Card Layout */
            .route-card-image {
                grid-row: 1 / 3;
                grid-column: 1;
                height: 120px;
                width: 100px;
                overflow: hidden;
                border-radius: 0;
            }

            .route-card-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.3s ease;
            }

            .route-card:hover .route-card-image img {
                filter: brightness(1.05);
            }

            .route-card-content {
                grid-row: 1 / 3;
                grid-column: 2;
                padding: 12px 16px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                overflow: hidden;
            }

            .route-card-header {
                padding: 0;
                position: relative;
                flex: 1 1 auto;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
            }

            .route-card-title {
                font-size: 1rem;
                font-weight: 600;
                line-height: 1.2;
                margin: 0 0 4px 0;
                padding-right: 0;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .route-card-description {
                font-size: 0.75rem;
                line-height: 1.3;
                color: #666;
                margin: 0;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                flex: 1 1 auto;
            }

            /* Mobile Quick Actions Column */
            .route-card-actions {
                grid-row: 1 / 3;
                grid-column: 3;
                display: flex;
                flex-direction: column;
                justify-content: space-around;
                align-items: center;
                padding: 8px 4px;
                background: rgba(248, 249, 250, 0.8);
                border-left: 1px solid #e9ecef;
            }

            .route-quick-action {
                width: 36px;
                height: 36px;
                border-radius: 8px;
                border: none;
                background: white;
                color: #666;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
                cursor: pointer;
                transition: all 0.2s ease;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
                touch-action: manipulation;
            }

            .route-quick-action:hover {
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            }

            .route-quick-action.favorite {
                color: #f59e0b;
            }

            .route-quick-action.navigate {
                color: #10b981;
            }

            .route-quick-action.share {
                color: #3b82f6;
            }

            .favorite-btn {
                position: absolute;
                top: 12px;
                right: 16px;
                font-size: 1.1rem;
                min-width: 36px;
                min-height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.9);
                backdrop-filter: blur(10px);
            }

            .route-card-meta {
                padding: 12px 18px 16px;
                background: #f8f9fa;
                flex-wrap: wrap;
                gap: 8px;
                justify-content: space-between;
            }

            .route-meta-item {
                padding: 6px 12px;
                font-size: 0.8rem;
                border-radius: 16px;
                background: white;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                min-width: 0;
                flex: 0 0 auto;
            }

            .route-meta-item:first-child {
                font-weight: 700;
                color: #667eea;
            }

            .route-meta-item i {
                font-size: 0.85rem;
                margin-right: 4px;
            }

            .route-difficulty {
                flex: 1 1 100%;
                justify-content: center;
                margin-top: 4px;
            }

            /* Mobile Route Mini-Map */
            .route-mini-map {
                height: 80px;
                margin-top: 12px;
                border-radius: 8px;
                overflow: hidden;
                border: 1px solid #e2e8f0;
            }

            /* Enhanced Mobile Map Container */
            .routes-map-container {
                margin-top: 16px;
                flex-direction: column;
                gap: 20px;
            }

            .predefined-map-container {
                min-height: 60vh;
                margin-bottom: 20px;
                border-radius: 16px;
                overflow: hidden;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                position: relative;
            }

            .predefined-routes-map {
                height: 60vh;
            }

            .map-controls {
                top: 50px;
                right: 12px;
                gap: 8px;
            }

            .map-control-btn {
                width: 44px;
                height: 44px;
                border-radius: 12px;
                font-size: 1rem;
            }

            /* Mobile Route Detail Modal */
            .route-detail-modal-content {
                width: 95%;
                max-width: none;
                max-height: 90vh;
                margin: 5vh auto;
                border-radius: 20px;
            }

            .route-detail-modal-header {
                padding: 18px 20px;
                position: sticky;
                top: 0;
                z-index: 10;
            }

            .route-detail-modal-title {
                font-size: 1.2rem;
                padding-right: 40px;
            }

            .route-detail-modal-close {
                position: absolute;
                right: 16px;
                top: 50%;
                transform: translateY(-50%);
            }

            .route-detail-modal-body {
                padding: 20px;
                max-height: 60vh;
                overflow-y: auto;
            }

            .route-select-btn {
                padding: 16px 24px;
                font-size: 1rem;
                width: 100%;
                margin-top: 16px;
                border-radius: 12px;
                min-height: 48px;
            }

            /* Mobile No Routes Message */
            .no-routes-message {
                padding: 40px 20px;
                border-radius: 16px;
                text-align: center;
            }

            .no-routes-message i {
                font-size: 2.5rem;
                margin-bottom: 12px;
            }

            .no-routes-message p {
                font-size: 1rem;
                line-height: 1.5;
            }
        }

        @media (max-width: 480px) {
            /* Extra Small Mobile Optimizations for Hazır Rotalar */
            .container {
                padding-left: 12px;
                padding-right: 12px;
            }

            .route-tab {
                padding: 14px 16px;
                font-size: 0.9rem;
                margin-bottom: 6px;
            }

            .route-tab i {
                font-size: 1rem;
            }

            .route-filters {
                padding: 14px;
            }

            .filter-select {
                padding: 12px 14px;
                font-size: 0.9rem;
            }

            .filter-clear-btn {
                padding: 12px 16px;
                font-size: 0.9rem;
            }

            /* Extra Small Mobile - Predefined Routes Header */
            .predefined-routes-header {
                padding: 14px 12px;
                margin-bottom: 14px;
                border-radius: 12px;
            }

            .predefined-routes-header .section-title {
                font-size: 1.35rem;
                margin-bottom: 5px;
            }

            .predefined-routes-description {
                font-size: 0.85rem;
                line-height: 1.3;
                margin-bottom: 10px;
            }

            .predefined-routes-header .route-search {
                margin-top: 10px;
                gap: 6px;
            }

            .predefined-routes-header .route-search input {
                padding: 10px 12px;
                font-size: 16px;
                border-radius: 8px;
            }

            .routes-quick-stats {
                gap: 8px;
                margin-top: 12px;
            }

            .quick-stat-item {
                padding: 12px 14px;
                flex-direction: column;
                text-align: center;
                gap: 4px;
            }

            .stat-icon {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }

            .stat-number {
                font-size: 1.3rem;
                font-weight: 700;
            }

            .stat-label {
                font-size: 0.75rem;
                opacity: 0.9;
            }

            /* Extra Small Mobile - Enhanced Filters */
            .filters-open-btn {
                padding: 14px 18px;
                font-size: 0.95rem;
                border-radius: 10px;
            }

            .filters-header {
                padding: 12px 14px;
                border-radius: 10px 10px 0 0;
            }

            .filters-title {
                font-size: 1rem;
            }

            .filters-content.expanded {
                padding: 14px;
                border-radius: 0 0 10px 10px;
            }

            .filter-chips-container {
                gap: 12px;
                margin-bottom: 16px;
            }

            .filter-chip {
                padding: 10px 14px;
                font-size: 0.8rem;
                min-height: 40px;
                border-radius: 20px;
            }

            .filter-chip i {
                font-size: 0.85rem;
            }

            .filters-actions {
                gap: 8px;
                margin-top: 16px;
            }

            .filter-clear-btn,
            .filter-apply-btn {
                padding: 14px 18px;
                font-size: 0.9rem;
                min-height: 44px;
                border-radius: 10px;
            }

            /* FORCE MOBILE LIST LAYOUT - REAL DEVICES */
            @media screen and (max-width: 768px), (max-device-width: 768px) {
                .predefined-routes-list {
                    gap: 16px !important;
                    padding: 0 8px !important;
                    display: flex !important;
                    flex-direction: column !important;
                    width: 100% !important;
                    box-sizing: border-box !important;
                }

                .predefined-routes-list .route-card {
                    border-radius: 16px !important;
                    display: block !important;
                    max-height: none !important;
                    min-height: 420px !important;
                    background: white !important;
                    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
                    overflow: hidden !important;
                    position: relative !important;
                    width: 100% !important;
                    margin: 0 !important;
                    box-sizing: border-box !important;
                }

                /* Force override any conflicting styles */
                .predefined-routes-list .route-card.grid,
                .predefined-routes-list .route-card.grid-item,
                .predefined-routes-list .route-card.item {
                    display: block !important;
                    width: 100% !important;
                    margin: 0 !important;
                }
            }

            /* Enhanced image display in mobile list */
            @media screen and (max-width: 768px), (max-device-width: 768px) {
                .predefined-routes-list .route-card .route-card-image {
                    display: block !important;
                    height: 180px !important;
                    width: 100% !important;
                    overflow: hidden !important;
                    border-radius: 16px 16px 0 0 !important;
                    background-color: #f3f4f6 !important;
                    position: relative !important;
                }

                .predefined-routes-list .route-card .route-card-image img {
                    width: 100% !important;
                    height: 100% !important;
                    object-fit: cover !important;
                    display: block !important;
                    opacity: 1 !important;
                    visibility: visible !important;
                }

                /* Enhanced header for mobile list */
                .predefined-routes-list .route-card .route-card-header {
                    padding: 24px 16px 16px 16px !important;
                    display: block !important;
                }

                .predefined-routes-list .route-card .route-card-title {
                    font-size: 1.1rem !important;
                    font-weight: 600 !important;
                    margin-bottom: 8px !important;
                    line-height: 1.3 !important;
                }

                .predefined-routes-list .route-card .route-card-description {
                    font-size: 0.9rem !important;
                    line-height: 1.5 !important;
                    color: #666 !important;
                    margin: 0 0 20px 0 !important;
                    display: -webkit-box !important;
                    -webkit-line-clamp: 5 !important;
                    -webkit-box-orient: vertical !important;
                    overflow: hidden !important;
                    text-overflow: ellipsis !important;
                }
            }

            .route-card-header {
                padding: 0 !important;
                margin-bottom: 4px;
            }

            .route-card-title {
                font-size: 1rem !important;
                font-weight: 600 !important;
                margin-bottom: 4px !important;
                padding-right: 0 !important;
                line-height: 1.3 !important;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .route-card-description {
                font-size: 0.9rem !important;
                line-height: 1.5 !important;
                color: #666;
                margin: 0;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                flex: 1 1 auto;
            }

            /* Enhanced media features for mobile */
            .route-card-features {
                margin-top: 12px;
                padding-top: 12px;
                border-top: 1px solid #f0f0f0;
            }

            .route-feature-tags {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
            }

            .route-feature-tag {
                font-size: 0.75rem;
                padding: 4px 8px;
                background: rgba(34, 197, 94, 0.1);
                color: #16a34a;
                border-radius: 12px;
                border: 1px solid rgba(34, 197, 94, 0.2);
            }

            /* Mobile Quick Actions - Header Layout */
            .route-card-actions {
                display: flex !important;
                flex-direction: row !important;
                justify-content: flex-end !important;
                align-items: center !important;
                gap: 8px !important;
                margin-bottom: 8px !important;
            }

            .route-quick-action {
                width: 40px !important;
                height: 40px !important;
                border-radius: 8px !important;
                font-size: 14px !important;
                margin: 4px 0 !important;
                background: rgba(255, 255, 255, 0.9) !important;
                border: 1px solid #e9ecef !important;
                transition: all 0.2s ease !important;
                touch-action: manipulation !important;
            }

            .route-quick-action:hover {
                background: rgba(59, 130, 246, 0.1) !important;
                transform: scale(1.05) !important;
            }

            .route-quick-action:active {
                transform: scale(0.95) !important;
            }

            .favorite-btn,
            .route-media-refresh-btn {
                display: none !important; /* Hide in mobile to save space */
            }

            /* Mobile Route Card Meta - Enhanced Design */
            @media screen and (max-width: 768px), (max-device-width: 768px) {
                .predefined-routes-list .route-card .route-card-meta {
                    padding: 0 16px 20px 16px !important;
                    margin-top: 0 !important;
                    display: grid !important;
                    grid-template-columns: 1fr 1fr !important;
                    gap: 8px !important;
                    align-items: start !important;
                }

                .predefined-routes-list .route-card .route-meta-item {
                    display: flex !important;
                    align-items: center !important;
                    gap: 6px !important;
                    padding: 6px 10px !important;
                    font-size: 0.85rem !important;
                    font-weight: 500 !important;
                    border-radius: 8px !important;
                    background: rgba(59, 130, 246, 0.08) !important;
                    color: #2563eb !important;
                    border: 1px solid rgba(59, 130, 246, 0.15) !important;
                    min-width: 0 !important;
                    white-space: nowrap !important;
                    justify-content: flex-start !important;
                    box-sizing: border-box !important;
                }

                /* Force icon visibility */
                .predefined-routes-list .route-card .route-meta-item i,
                .predefined-routes-list .route-card .route-meta-item .fas,
                .predefined-routes-list .route-card .route-meta-item .far,
                .predefined-routes-list .route-card .route-meta-item .fab {
                    display: inline-block !important;
                    visibility: visible !important;
                    opacity: 1 !important;
                    font-size: 0.8rem !important;
                    width: auto !important;
                    height: auto !important;
                    margin: 0 !important;
                    padding: 0 !important;
                    color: inherit !important;
                    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
                    font-weight: 900 !important;
                    -webkit-font-smoothing: antialiased !important;
                    -moz-osx-font-smoothing: grayscale !important;
                }

                /* Specific icon fixes */
                .predefined-routes-list .route-card .route-meta-item i.fas.fa-clock:before { content: "\f017" !important; }
                .predefined-routes-list .route-card .route-meta-item i.fas.fa-map-marker-alt:before { content: "\f3c5" !important; }
                .predefined-routes-list .route-card .route-meta-item i.fas.fa-mountain:before { content: "\f6fc" !important; }

                .predefined-routes-list .route-card .route-card-actions {
                    display: flex !important;
                    flex-direction: row !important;
                    justify-content: flex-end !important;
                    align-items: center !important;
                    gap: 8px !important;
                    margin-bottom: 8px !important;
                }
            }

            .route-meta-item {
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 6px 10px;
                font-size: 0.85rem;
                font-weight: 500;
                border-radius: 8px;
                background: rgba(59, 130, 246, 0.08);
                color: #2563eb;
                border: 1px solid rgba(59, 130, 246, 0.15);
                min-width: 0;
                white-space: nowrap;
                justify-content: flex-start;
            }

            .route-meta-item:first-child {
                font-weight: 600;
                color: #667eea;
                background: rgba(102, 126, 234, 0.1);
                border-color: rgba(102, 126, 234, 0.2);
            }

            .route-meta-item i {
                font-size: 0.7rem;
                margin-right: 2px;
                opacity: 0.8;
            }

            .difficulty-stars {
                display: flex;
                gap: 1px;
                font-size: 0.6rem;
                color: #f59e0b;
            }

            .difficulty-star {
                width: 8px;
                height: 8px;
                display: inline-block;
            }

            /* Extra Small Mobile - Enhanced Map Container */
            .predefined-map-container {
                min-height: 65vh;
                border-radius: 16px;
                box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
            }

            .predefined-routes-map {
                height: 65vh;
            }

            .map-controls {
                top: 40px;
                right: 8px;
                gap: 6px;
            }

            .map-control-btn {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
                border-radius: 10px;
            }

            /* Extra Small Mobile - Route Detail Modal */
            .route-detail-modal-content {
                width: 98%;
                margin: 1vh auto;
                max-height: 95vh;
                border-radius: 16px;
            }

            .route-detail-modal-header {
                padding: 14px 16px;
            }

            .route-detail-modal-title {
                font-size: 1.1rem;
                padding-right: 36px;
            }

            .route-detail-modal-close {
                right: 12px;
                min-width: 32px;
                min-height: 32px;
                font-size: 1.2rem;
            }

            .route-detail-modal-body {
                padding: 16px;
                max-height: 65vh;
            }

            .route-select-btn {
                padding: 14px 20px;
                font-size: 0.95rem;
                min-height: 44px;
                border-radius: 10px;
            }

            /* Extra Small Mobile - No Routes Message */
            .no-routes-message {
                padding: 30px 16px;
                border-radius: 12px;
            }

            .no-routes-message i {
                font-size: 2rem;
                margin-bottom: 10px;
            }

            .no-routes-message p {
                font-size: 0.9rem;
            }

            .filter-clear-btn,
            .filter-apply-btn {
                padding: 14px 16px;
                font-size: 0.9rem;
                min-height: 44px;
            }

            /* Extra Small Mobile - Route Cards */
            .route-card-header {
                padding: 14px 16px;
            }

            .route-card-title {
                font-size: 1rem;
            }

            .route-card-description {
                font-size: 0.8rem;
            }

            .route-card-meta {
                padding: 10px 16px;
                gap: 5px;
            }

            .route-meta-item {
                padding: 4px 6px;
                font-size: 0.75rem;
            }

            .route-meta-item i {
                font-size: 0.85rem;
            }

            .difficulty-star {
                width: 12px;
                height: 12px;
            }

            .route-detail-modal-header {
                padding: 16px;
            }

            .route-detail-modal-body {
                padding: 16px;
            }

            .route-detail-modal-footer {
                padding: 16px;
            }

            .route-summary-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .summary-item {
                padding: 10px;
            }

            .route-poi-item {
                padding: 12px;
                gap: 12px;
            }

            .poi-order {
                width: 28px;
                height: 28px;
                font-size: 0.8rem;
            }

            .poi-name {
                font-size: 0.95rem;
            }
        }

        /* End of @media (max-width: 480px) */

        .results-section {
            margin-top: 40px;
            display: none;
        }

        .poi-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 24px;
            margin-bottom: 28px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
            display: flex;
            flex-direction: column;
        }

        .poi-card::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            transform: translate(20px, -20px);
            transition: all 0.3s ease;
        }

        .poi-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .poi-card:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
            background: #ffffff;
            border-color: #cbd5e0;
        }

        .poi-card:hover::before {
            transform: scaleX(1);
        }

        .poi-card:hover::after {
            transform: translate(10px, -10px) scale(1.2);
            background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
        }

        .poi-card:active {
            transform: translateY(-3px) scale(1.01);
        }

        .poi-image-container {
            position: relative;
            width: 100%;
            height: 200px;
            border-radius: 20px 20px 0 0;
            overflow: hidden;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

.poi-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    image-orientation: from-image;
}

        .poi-card:hover .poi-image {
            transform: scale(1.05);
        }

        .poi-image-placeholder {
            color: #999;
            font-size: 3rem;
            opacity: 0.5;
        }

        .poi-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .poi-card:hover .poi-image-overlay {
            opacity: 1;
        }

        .poi-content {
            padding: 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .poi-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
            gap: 15px;
        }

        .poi-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 0;
            line-height: 1.3;
            flex: 1;
        }

        .poi-score {
            background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
            color: white;
            padding: 10px 18px;
            border-radius: 30px;
            font-weight: 700;
            font-size: 1rem;
            box-shadow: 0 6px 15px rgba(45, 55, 72, 0.3);
            white-space: nowrap;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }

        .poi-score::before {
            content: '⭐';
            margin-right: 6px;
            font-size: 0.9rem;
        }

        .poi-score::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .poi-card:hover .poi-score::after {
            left: 100%;
        }

        .poi-category {
            position: absolute;
            top: 16px;
            left: 16px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            z-index: 2;
        }

        .poi-category::before {
            content: '📍';
            font-size: 0.8rem;
        }

        .poi-card:hover .poi-category {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

        .poi-description {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .poi-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
            font-size: 0.85rem;
            color: #888;
        }

        .poi-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .poi-meta-item i {
            width: 16px;
            text-align: center;
            color: var(--primary-color);
        }

        .poi-ratings {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .poi-actions {
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .poi-action-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .poi-action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .poi-action-btn.google-maps {
            background: #4285f4;
        }

        .poi-action-btn.add-route {
            background: var(--accent-color);
        }

        .poi-action-btn.view-media {
            background: #9b59b6;
        }

        .poi-media-preview {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            overflow-x: auto;
            padding: 4px 0;
        }

.poi-media-thumb {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    image-orientation: from-image;
}
/* Orientation fix for media thumbs */
.poi-media-thumb[data-orientation='3'] { transform: rotate(180deg); }
.poi-media-thumb[data-orientation='6'] { transform: rotate(90deg); }
.poi-media-thumb[data-orientation='8'] { transform: rotate(-90deg); }

        .poi-media-thumb:hover {
            transform: scale(1.1);
            border-color: var(--primary-color);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .poi-media-count {
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 60px;
            height: 45px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .poi-media-count:hover {
            background: var(--primary-color);
            transform: scale(1.05);
        }

        .rating-badge {
            background: var(--gradient-secondary);
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            color: var(--text-color);
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.5);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .rating-badge:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .rating-badge.high {
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            color: #155724;
            border-color: rgba(21, 87, 36, 0.2);
            box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
        }

        .rating-badge i {
            font-size: 0.9rem;
        }

        .loading {
            text-align: center;
            padding: 50px;
            color: var(--text-color);
            background: rgba(255, 255, 255, 0.9);
            border-radius: 16px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .loading i {
            font-size: 2.5rem;
            animation: spin 1s linear infinite;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .loading p {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0;
        }

        @media (max-width: 768px) {
            .loading {
                padding: 40px 20px;
                border-radius: 12px;
            }

            .loading i {
                font-size: 2rem;
                margin-bottom: 12px;
            }

            .loading p {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .loading {
                padding: 30px 15px;
                border-radius: 10px;
            }

            .loading i {
                font-size: 1.8rem;
                margin-bottom: 10px;
            }

            .loading p {
                font-size: 0.9rem;
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .map-container {
            height: 450px;
            border-radius: 16px;
            overflow: hidden;
            margin-top: 30px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: var(--card-shadow);
            backdrop-filter: blur(10px);
        }

        .no-results {
            text-align: center;
            padding: 50px;
            color: #6c757d;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 16px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .no-results i {
            font-size: 3.5rem;
            margin-bottom: 20px;
            opacity: 0.6;
            color: var(--primary-color);
        }

        .no-results h3 {
            color: var(--text-color);
            font-weight: 700;
            margin-bottom: 10px;
        }

        .no-results p {
            font-size: 1rem;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .no-results {
                padding: 40px 20px;
                border-radius: 12px;
            }

            .no-results i {
                font-size: 3rem;
                margin-bottom: 16px;
            }

            .no-results h3 {
                font-size: 1.3rem;
                margin-bottom: 8px;
            }

            .no-results p {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .no-results {
                padding: 30px 15px;
                border-radius: 10px;
            }

            .no-results i {
                font-size: 2.5rem;
                margin-bottom: 12px;
            }

            .no-results h3 {
                font-size: 1.2rem;
                margin-bottom: 6px;
            }

            .no-results p {
                font-size: 0.85rem;
                line-height: 1.5;
            }
        }

        /* Touch device optimizations */
        .touch-device .slider-item {
            min-height: var(--touch-target-min);
            padding: 16px;
        }

        .touch-device .recommend-btn {
            min-height: var(--touch-target-min);
            padding: 20px 50px;
        }

        .touch-device .poi-card {
            min-height: var(--touch-target-min);
            padding: 20px;
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {

            .slider-item,
            .poi-card,
            .recommend-btn,
            .rating-badge {
                transition: none;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .main-container {
                background: white;
                border: 2px solid black;
            }

            .poi-card {
                border: 2px solid #666;
                background: white;
            }
        }

        /* Location Permission Dialog Styles */
        .location-permission-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .location-permission-overlay.show {
            display: flex;
        }

        .location-permission-dialog {
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 400px;
            width: 90%;
            overflow: hidden;
            animation: dialogSlideIn 0.3s ease-out;
        }

        .location-dialog-header {
            background: #f8f9fa;
            padding: 16px 20px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .location-dialog-title {
            font-size: 16px;
            font-weight: 500;
            color: #202124;
            margin: 0;
        }

        .location-dialog-close {
            background: none;
            border: none;
            font-size: 20px;
            color: #5f6368;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: background 0.2s ease;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .location-dialog-close:hover {
            background: #f1f3f4;
        }

        .location-dialog-content {
            padding: 24px;
            text-align: center;
        }

        .location-permission-icon {
            width: 48px;
            height: 48px;
            background: #4285f4;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: white;
            font-size: 24px;
        }

        .location-permission-message {
            font-size: 14px;
            color: #202124;
            margin: 0 0 24px 0;
            font-weight: 500;
        }

        .location-permission-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .location-permission-btn {
            background: #4285f4;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 44px;
        }

        .location-permission-btn:hover {
            background: #3367d6;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
        }

        .location-permission-btn.secondary {
            background: #f8f9fa;
            color: #3c4043;
            border: 1px solid #dadce0;
        }

        .location-permission-btn.secondary:hover {
            background: #f1f3f4;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .location-permission-btn.deny {
            background: transparent;
            color: #d93025;
            border: 1px solid #dadce0;
        }

        .location-permission-btn.deny:hover {
            background: #fce8e6;
            border-color: #d93025;
        }

        @keyframes dialogSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* Route Details Panel Styles */
        .route-details-panel {
            position: fixed;
            right: 20px;
            top: 20px;
            width: 350px;
            max-height: 80vh;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow-y: auto;
            z-index: 1000;
            display: none;
            animation: panelSlideIn 0.3s ease-out;
        }

        .route-details-panel.show {
            display: block;
        }

        .route-header {
            background: var(--gradient-primary);
            color: white;
            padding: 16px 20px;
            border-radius: 12px 12px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .route-header h3 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 600;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.2s ease;
            min-width: 36px;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

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

        .route-summary {
            padding: 16px 20px;
            border-bottom: 1px solid #eee;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .summary-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            color: var(--text-color);
        }

        .summary-item i {
            color: var(--primary-color);
            width: 16px;
            text-align: center;
        }

        .elevation-section {
            padding: 16px 20px;
            border-bottom: 1px solid #eee;
        }

        .elevation-section h4 {
            margin: 0 0 12px 0;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .elevation-section canvas {
            width: 100% !important;
            height: 120px !important;
            max-height: 120px !important;
            margin: 10px 0;
            border-radius: 8px;
            background: #f8f9fa;
        }

        .elevation-stats {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 0.8rem;
            color: #666;
        }

        .elevation-stats span {
            background: #f8f9fa;
            padding: 4px 8px;
            border-radius: 12px;
            border: 1px solid #e9ecef;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .elevation-stats span:hover {
            background: #e9ecef;
            transform: translateY(-1px);
        }

        .elevation-section.loading {
            opacity: 0.6;
        }

        .elevation-section.error {
            opacity: 0.8;
        }

        .elevation-section.error .elevation-stats span {
            background: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
        }

        .stops-section {
            padding: 16px 20px;
            border-bottom: 1px solid #eee;
        }

        .stops-section h4 {
            margin: 0 0 12px 0;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .stops-count {
            background: var(--primary-color);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .stops-list {
            max-height: 280px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #ccc transparent;
        }

        .stops-list::-webkit-scrollbar {
            width: 6px;
        }

        .stops-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .stops-list::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        .stops-list::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

        .segments-section {
            padding: 16px 20px;
            border-bottom: 1px solid #eee;
        }

        .segments-section h4 {
            margin: 0 0 12px 0;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .segments-list {
            max-height: 200px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #ccc transparent;
        }

        .segments-list::-webkit-scrollbar {
            width: 6px;
        }

        .segments-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .segments-list::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        .segments-list::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

        .segment-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 6px;
            margin-bottom: 3px;
        }

        .segment-item:hover {
            background: #f8f9fa;
            transform: translateX(2px);
        }

        .segment-item:last-child {
            border-bottom: none;
        }

        .segment-item.highlighted {
            background: rgba(66, 133, 244, 0.1);
            border-left: 3px solid #4285f4;
            transform: translateX(4px);
            box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
        }

        .segment-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            margin-right: 10px;
            flex-shrink: 0;
        }

        .segment-icon.walking {
            background: #27ae60;
            color: white;
        }

        .segment-icon.fallback {
            background: #e74c3c;
            color: white;
        }

        .segment-info {
            flex: 1;
        }

        .segment-route {
            font-weight: 600;
            color: var(--text-color);
            font-size: 0.85rem;
            margin-bottom: 2px;
        }

        .segment-details {
            font-size: 0.75rem;
            color: #666;
            display: flex;
            gap: 12px;
        }

        .stop-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 8px;
            margin-bottom: 4px;
            position: relative;
        }

        .stop-item:hover {
            background: #f8f9fa;
            transform: translateX(2px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .stop-item:last-child {
            border-bottom: none;
        }

        .stop-item.highlighted {
            background: rgba(66, 133, 244, 0.1);
            border-left: 3px solid #4285f4;
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
        }

        .stop-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            margin-right: 12px;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .stop-info {
            flex: 1;
        }

        .stop-name {
            font-weight: 600;
            color: var(--text-color);
            font-size: 0.95rem;
            margin-bottom: 3px;
            line-height: 1.2;
        }

        .stop-category {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 2px;
        }

        .stop-coordinates {
            font-size: 0.7rem;
            color: #999;
            font-family: monospace;
        }

        .stop-number {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.1);
            color: #666;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }

        .export-section {
            padding: 16px 20px;
        }

        .export-btn {
            width: 100%;
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .export-btn:hover {
            background: #20c997;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .export-btn.map-view {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin-bottom: 8px;
        }

        .export-btn.map-view:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        @keyframes panelSlideIn {
            from {
                opacity: 0;
                transform: translateX(100%);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Mobile responsiveness for route details panel */
        @media (max-width: 768px) {
            .route-details-panel {
                right: 10px;
                left: 10px;
                width: auto;
                max-height: 70vh;
            }

            .route-summary {
                grid-template-columns: 1fr;
                gap: 8px;
            }
        }

        /* Fallbacks for older browsers */
        @supports not (backdrop-filter: blur(10px)) {

            .main-container,
            .slider-container,
            .poi-card {
                background: rgba(255, 255, 255, 0.95) !important;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 5px 0;
            }

            .main-container {
                margin: 0 5px;
                border-radius: 16px;
            }

            .content {
                padding: 15px;
            }

            .header {
                padding: 20px 15px;
            }

            .header h1 {
                font-size: 1.8rem;
                line-height: 1.2;
            }

            .header p {
                font-size: 1rem;
                margin-top: 8px;
            }

            .section-title {
                font-size: 1.3rem;
                margin-bottom: 20px;
                text-align: center;
            }

            .slider-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .slider-container {
                padding: 20px 15px;
                margin-bottom: 20px;
            }

            .slider-container::before {
                height: 4px;
            }

            .slider-item {
                padding: 16px;
                border-radius: 12px;
            }

            .slider-label {
                font-size: 14px;
                gap: 10px;
            }

            .slider-label i {
                width: 20px;
                height: 20px;
                font-size: 14px;
            }

            .slider-value {
                font-size: 0.9rem;
                padding: 8px 12px;
                min-width: 110px;
            }

            .recommend-btn {
                padding: 16px 35px;
                font-size: 1.1rem;
                margin: 25px auto;
                width: 100%;
                max-width: 300px;
            }

            .poi-card {
                margin-bottom: 20px;
                border-radius: 20px;
            }

            .poi-content {
                padding: 18px;
            }

            .poi-image-container {
                height: 200px;
            }

            .poi-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .poi-name {
                font-size: 1.3rem;
            }

            .poi-score {
                align-self: flex-end;
                font-size: 0.9rem;
                padding: 8px 14px;
            }

            .poi-description {
                font-size: 0.9rem;
                -webkit-line-clamp: 2;
            }

            .poi-meta {
                flex-direction: column;
                gap: 8px;
                align-items: flex-start;
            }

            .poi-meta-item {
                font-size: 0.8rem;
            }

            .poi-ratings {
                gap: 6px;
                margin-bottom: 16px;
            }

            .rating-badge {
                padding: 6px 10px;
                font-size: 0.75rem;
            }

            .poi-actions {
                flex-direction: column;
                gap: 10px;
                padding-top: 12px;
            }

            .poi-action-btn {
                justify-content: center;
                width: 100%;
                padding: 12px 16px;
                font-size: 0.9rem;
            }

            .poi-media-preview {
                justify-content: flex-start;
                gap: 6px;
                margin-top: 10px;
            }

            .poi-media-thumb {
                width: 50px;
                height: 38px;
            }

            .poi-media-count {
                min-width: 50px;
                height: 38px;
                font-size: 0.7rem;
            }

            .map-container {
                height: 300px;
                margin-top: 20px;
                border-radius: 12px;
            }

            .route-details-panel {
                right: 5px;
                left: 5px;
                width: auto;
                max-height: 75vh;
                top: 10px;
            }

            .route-summary {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .stops-list {
                max-height: 200px;
            }

            .segments-list {
                max-height: 150px;
            }

            .elevation-section canvas {
                height: 100px !important;
            }

            .preferences-description {
                font-size: 0.9rem !important;
                margin-bottom: 20px !important;
                padding: 0 10px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0;
            }

            .main-container {
                margin: 0;
                border-radius: 0;
                min-height: 100vh;
            }

            .content {
                padding: 10px;
            }

            .header {
                padding: 15px 10px;
                border-radius: 0;
            }

            .header h1 {
                font-size: 1.6rem;
                line-height: 1.1;
            }

            .header p {
                font-size: 0.9rem;
                margin-top: 6px;
            }

            .section-title {
                font-size: 1.2rem;
                margin-bottom: 15px;
            }

            .slider-container {
                padding: 15px 10px;
                margin-bottom: 15px;
                border-radius: 16px;
            }

            .slider-row {
                gap: 10px;
            }

            .slider-item {
                padding: 12px;
                border-radius: 10px;
            }

            .slider-label {
                font-size: 13px;
                gap: 8px;
            }

            .slider-label i {
                width: 18px;
                height: 18px;
                font-size: 12px;
            }

            .slider-value {
                font-size: 0.8rem;
                padding: 6px 10px;
                min-width: 100px;
            }

            .recommend-btn {
                padding: 14px 30px;
                font-size: 1rem;
                margin: 20px auto;
                width: calc(100% - 20px);
                max-width: none;
            }

            .poi-card {
                margin-bottom: 15px;
                border-radius: 16px;
            }

            .poi-content {
                padding: 15px;
            }

            .poi-image-container {
                height: 180px;
            }

            .poi-name {
                font-size: 1.2rem;
            }

            .poi-score {
                font-size: 0.85rem;
                padding: 6px 12px;
            }

            .poi-description {
                font-size: 0.85rem;
                margin-bottom: 12px;
            }

            .poi-meta-item {
                font-size: 0.75rem;
            }

            .poi-ratings {
                gap: 4px;
                margin-bottom: 12px;
            }

            .rating-badge {
                padding: 4px 8px;
                font-size: 0.7rem;
            }

            .poi-actions {
                gap: 8px;
                padding-top: 10px;
            }

            .poi-action-btn {
                padding: 10px 14px;
                font-size: 0.85rem;
                border-radius: 16px;
            }

            .poi-media-preview {
                gap: 4px;
                margin-top: 8px;
            }

            .poi-media-thumb {
                width: 45px;
                height: 34px;
            }

            .poi-media-count {
                min-width: 45px;
                height: 34px;
                font-size: 0.65rem;
            }

            .map-container {
                height: 250px;
                margin-top: 15px;
                border-radius: 10px;
            }

            .route-details-panel {
                right: 2px;
                left: 2px;
                top: 5px;
                max-height: 80vh;
                border-radius: 16px;
            }

            .route-header {
                padding: 12px 15px;
            }

            .route-header h3 {
                font-size: 1.1rem;
            }

            .route-summary {
                padding: 12px 15px;
            }

            .summary-item {
                font-size: 0.8rem;
            }

            .stops-section,
            .segments-section,
            .elevation-section {
                padding: 12px 15px;
            }

            .stops-section h4,
            .segments-section h4,
            .elevation-section h4 {
                font-size: 0.9rem;
            }

            .stops-list {
                max-height: 180px;
            }

            .segments-list {
                max-height: 120px;
            }

            .stop-item,
            .segment-item {
                padding: 8px;
            }

            .stop-icon,
            .segment-icon {
                width: 30px;
                height: 30px;
                font-size: 0.8rem;
            }

            .stop-name,
            .segment-route {
                font-size: 0.85rem;
            }

            .stop-category,
            .stop-coordinates,
            .segment-details {
                font-size: 0.7rem;
            }

            .elevation-section canvas {
                height: 80px !important;
            }

            .elevation-stats {
                gap: 4px;
            }

            .elevation-stats span {
                padding: 3px 6px;
                font-size: 0.7rem;
            }

            .export-btn {
                padding: 10px 14px;
                font-size: 0.85rem;
            }

            .preferences-description {
                font-size: 0.85rem !important;
                margin-bottom: 15px !important;
                padding: 0 5px;
                line-height: 1.5 !important;
            }
        }

        /* Custom marker styles */
        .custom-poi-marker {
            background: transparent !important;
            border: none !important;
        }

        .custom-popup .leaflet-popup-content-wrapper {
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .custom-popup .leaflet-popup-content {
            margin: 10px;
            line-height: 1.4;
        }

        .custom-popup .leaflet-popup-tip {
            background: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        /* Route tooltip styles */
        .route-tooltip {
            background: rgba(0, 0, 0, 0.8) !important;
            color: white !important;
            border: none !important;
            border-radius: 8px !important;
            padding: 8px 12px !important;
            font-size: 12px !important;
            font-weight: 600 !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
            backdrop-filter: blur(10px) !important;
        }

        .route-tooltip::before {
            border-top-color: rgba(0, 0, 0, 0.8) !important;
        }

        .segment-hover-popup .leaflet-popup-content-wrapper {
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
        }

        .segment-hover-popup .leaflet-popup-content {
            margin: 8px;
            line-height: 1.3;
        }

        .segment-hover-popup .leaflet-popup-tip {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        /* Route button hover effects */
        .route-detail-popup button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .route-detail-popup button:active {
            transform: translateY(0);
        }

        /* Media Modal Styles */
        .media-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.9);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            animation: modalFadeIn 0.3s ease-out;
        }

        .media-modal.show {
            display: flex;
        }

        .media-modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: modalSlideIn 0.3s ease-out;
        }

        .media-modal-header {
            background: var(--gradient-primary);
            color: white;
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .media-modal-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
        }

        .media-modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.2s ease;
            min-width: 36px;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .media-modal-body {
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 300px;
            max-height: calc(90vh - 80px);
            overflow: auto;
        }

        .media-display {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

.media-display img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    image-orientation: from-image;
}

        .media-display video {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .media-display audio {
            width: 100%;
            max-width: 500px;
            margin: 20px 0;
        }

        .media-error {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .media-error i {
            font-size: 3rem;
            color: #e74c3c;
            margin-bottom: 16px;
        }

        .media-error h3 {
            color: #333;
            margin-bottom: 8px;
        }

        .media-error button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 16px;
            transition: background 0.2s ease;
        }

        .media-error button:hover {
            background: #5a6fd8;
        }

        .media-loading {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .media-loading i {
            font-size: 2rem;
            color: var(--primary-color);
            animation: spin 1s linear infinite;
            margin-bottom: 16px;
        }

        /* Navigation controls */
        .media-navigation {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10001;
        }

        .media-nav-prev {
            left: 20px;
        }

        .media-nav-next {
            right: 20px;
        }

        .media-nav-btn {
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .media-nav-btn:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: scale(1.1);
        }

        .media-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none;
        }

        .media-nav-btn:disabled:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: none;
        }

        .media-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            backdrop-filter: blur(10px);
            z-index: 10001;
        }

        .media-thumbnails {
            position: absolute;
            bottom: 70px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            max-width: 80%;
            overflow-x: auto;
            padding: 8px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            z-index: 10001;
        }

        .media-thumbnail {
            width: 60px;
            height: 45px;
            border-radius: 6px;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            object-fit: cover;
        }

        .media-thumbnail.active {
            opacity: 1;
            border-color: white;
            transform: scale(1.1);
        }

        .media-thumbnail:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }

        /* Image zoom controls */
        .image-zoom-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 8px;
            z-index: 10002;
        }

        .zoom-btn {
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .zoom-btn:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: scale(1.1);
        }

        .zoom-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none;
        }

        .media-image-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-image-zoomable {
            transition: transform 0.3s ease;
            cursor: grab;
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
        }

        .media-image-zoomable:active {
            cursor: grabbing;
        }

        .media-image-zoomed {
            cursor: move;
        }

        /* Video and audio enhanced controls */
        .media-video-container {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .media-audio-container {
            width: 100%;
            max-width: 600px;
            padding: 30px;
            text-align: center;
        }

        .audio-info {
            margin-bottom: 20px;
        }

        .audio-info h4 {
            color: #333;
            margin: 0 0 8px 0;
            font-size: 1.3rem;
        }

        .audio-info .audio-meta {
            color: #666;
            font-size: 0.9rem;
        }

        .media-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: rgba(255, 255, 255, 0.3);
            z-index: 10001;
        }

        .media-progress-bar {
            height: 100%;
            background: var(--primary-color);
            width: 0%;
            transition: width 0.1s ease;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* Mobile responsive modal */
        @media (max-width: 768px) {
            .media-modal-content {
                max-width: 95vw;
                max-height: 95vh;
                margin: 10px;
            }

            .media-modal-header {
                padding: 12px 16px;
            }

            .media-modal-title {
                font-size: 1.1rem;
            }

            .media-display {
                padding: 16px;
            }

            .media-display img,
            .media-display video {
                max-height: 60vh;
            }

            .media-nav-prev {
                left: 10px;
            }

            .media-nav-next {
                right: 10px;
            }

            .media-nav-btn {
                width: 44px;
                height: 44px;
                font-size: 1rem;
            }

            .media-counter {
                bottom: 15px;
                font-size: 0.8rem;
                padding: 6px 12px;
            }

            .media-thumbnails {
                bottom: 55px;
                max-width: 90%;
            }

            .media-thumbnail {
                width: 50px;
                height: 38px;
            }
        }

        @media (max-width: 480px) {
            .media-modal-content {
                max-width: 98vw;
                max-height: 98vh;
                margin: 5px;
                border-radius: 12px;
            }

            .media-display {
                padding: 12px;
            }

            .media-display img,
            .media-display video {
                max-height: 50vh;
            }

            .media-nav-prev {
                left: 5px;
            }

            .media-nav-next {
                right: 5px;
            }

            .media-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }

            .media-counter {
                bottom: 10px;
                font-size: 0.75rem;
                padding: 4px 10px;
            }

            .media-thumbnails {
                bottom: 45px;
                max-width: 95%;
                gap: 4px;
            }

            .media-thumbnail {
                width: 45px;
                height: 34px;
            }

            .image-zoom-controls {
                top: 10px;
                right: 10px;
                gap: 4px;
            }

            .zoom-btn {
                width: 36px;
                height: 36px;
                font-size: 0.8rem;
            }
        }

        /* Enhanced Map Styles */
        .map-container-enhanced {
            height: 500px;
            width: 100%;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            border: 2px solid rgba(255, 255, 255, 0.2);
            background: #f8f9fa;
            position: relative;
            margin-bottom: 20px;
        }

        .map-container-enhanced::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            pointer-events: none;
            z-index: 0;
        }

        /* Map section styling */
        #mapSection {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 25px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: var(--card-shadow);
            margin-top: 30px;
        }

        /* Responsive map height */
        @media (max-width: 768px) {
            .map-container-enhanced {
                height: 400px;
                border-radius: 12px;
            }

            #mapSection {
                padding: 20px;
                border-radius: 16px;
            }
        }

        @media (max-width: 480px) {
            .map-container-enhanced {
                height: 350px;
                border-radius: 8px;
            }

            #mapSection {
                padding: 15px;
                border-radius: 12px;
            }
        }

        /* Map loading state */
        .map-container-enhanced.loading {
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }

        .map-container-enhanced.loading::after {
            content: '🗺️ Harita yükleniyor...';
            font-size: 1.1rem;
            color: #666;
            font-weight: 500;
        }

        /* Custom popup styles for better visibility */
        .leaflet-popup-content-wrapper {
            border-radius: 12px !important;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
        }

        .leaflet-popup-tip {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        }

        /* Map controls enhancement */
        .leaflet-control-zoom {
            border-radius: 8px !important;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        }

        .leaflet-control-zoom a {
            border-radius: 0 !important;
            font-weight: bold !important;
            transition: all 0.2s ease !important;
        }

        .leaflet-control-zoom a:hover {
            background: var(--primary-color) !important;
            color: white !important;
        }

        /*
 High and Low Score Styling */
        .poi-card__score.high-score {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        }

        .poi-card__score.low-score {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            color: white;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
        }

        /* Recommendation sections */
        .recommendation-section {
            margin-bottom: 25px;
        }

        .recommendation-section h4 {
            font-size: 1.3rem;
            font-weight: 600;
            text-align: center;
            padding: 12px 20px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .low-score-header {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            padding: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        /* Animation for low score POIs */
        #lowScorePOIs {
            transition: all 0.5s ease-out;
        }

        /* Button styling for toggle */
        #showLowScoreBtn {
            transition: all 0.3s ease;
            min-width: 200px;
        }

        #showLowScoreBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .recommendation-section h4 {
                font-size: 1.1rem;
                padding: 10px 15px;
            }

            .low-score-header {
                padding: 15px;
            }

            #showLowScoreBtn {
                min-width: 180px;
                font-size: 0.9rem;
            }
        }

        /* Low
 Score Marker Styles */
        .low-score-marker {
            filter: grayscale(0.3) !important;
            opacity: 0.85 !important;
            transition: all 0.2s ease !important;
        }

        .low-score-marker:hover {
            filter: grayscale(0.1) brightness(1.15) !important;
            opacity: 1 !important;
            z-index: 1000 !important;
            cursor: pointer !important;
        }

        .high-score-marker {
            transition: all 0.2s ease !important;
        }

        .high-score-marker:hover {
            filter: brightness(1.15) saturate(1.2) !important;
            z-index: 1000 !important;
            cursor: pointer !important;
        }

        /* Map marker animations - safe properties with scale */
        .custom-poi-marker {
            transition: filter 0.2s ease, opacity 0.2s ease !important;
        }

        /* Prevent markers from jumping out of bounds */
        .leaflet-marker-icon {
            transition: filter 0.2s ease !important;
        }

        /* Smooth hover effects for all markers */
        .leaflet-marker-icon:hover {
            z-index: 1000 !important;
            cursor: pointer !important;
        }

        /* Popup styling for low score POIs */
        .leaflet-popup-content-wrapper.low-score {
            opacity: 0.9 !important;
            filter: grayscale(0.2) !important;
        }

        /* Map legend for marker types */
        .map-legend {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            font-size: 0.9rem;
            z-index: 1000;
        }

        .map-legend h4 {
            margin: 0 0 10px 0;
            font-size: 1rem;
            color: #333;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
        }

        .legend-marker {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .legend-marker.high-score {
            background: var(--accent-color);
            color: white;
        }

        .legend-marker.low-score {
            background: #9ca3af;
            color: white;
            opacity: 0.6;
            filter: grayscale(0.7);
        }

        @media (max-width: 768px) {
            .map-legend {
                bottom: 10px;
                right: 10px;
                padding: 10px;
                font-size: 0.8rem;
            }

            .legend-marker {
                width: 16px;
                height: 16px;
                font-size: 10px;
            }
        }

        /*
 Fix marker clickability issues */
        .leaflet-marker-icon {
            pointer-events: auto !important;
            cursor: pointer !important;
            user-select: none !important;
        }

        .custom-poi-marker {
            pointer-events: auto !important;
            cursor: pointer !important;
            user-select: none !important;
        }

        .custom-poi-marker>* {
            pointer-events: auto !important;
        }

        /* Enhanced mobile pointer events */
        @media (max-width: 768px) {
            .custom-poi-marker {
                pointer-events: auto !important;
                cursor: pointer !important;
                user-select: none !important;
                touch-action: manipulation !important;
                -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
            }

            .poi-marker-container {
                pointer-events: auto !important;
                cursor: pointer !important;
                touch-action: manipulation !important;
                -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
            }
        }

        /* Ensure markers stay anchored to their coordinates */
        .leaflet-marker-icon,
        .custom-poi-marker {
            position: absolute !important;
        }

        /* Remove problematic animations */
        .leaflet-marker-icon * {
            pointer-events: auto !important;
        }

        /* Make sure the marker container is clickable */
        .leaflet-marker-pane .leaflet-marker-icon {
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        /* Enhanced hover effects with smooth animations */
        .custom-poi-marker:hover {
            transition: filter 0.2s ease !important;
        }

        /* Pulse animation for active markers */
        @keyframes markerPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
            }
        }

        @keyframes lowScoreMarkerPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(156, 163, 175, 0.3);
            }

            50% {
                box-shadow: 0 0 0 6px rgba(156, 163, 175, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(156, 163, 175, 0);
            }
        }

        .high-score-marker:active {
            animation: markerPulse 0.6s ease-out;
        }

        .low-score-marker:active {
            animation: lowScoreMarkerPulse 0.6s ease-out;
        }

        /* For
ce marker clickability */
        .leaflet-marker-icon,
        .custom-poi-marker {
            z-index: 1000 !important;
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        .leaflet-marker-icon:hover,
        .custom-poi-marker:hover {
            z-index: 1001 !important;
        }

        /* Ensure all marker children are clickable */
        .custom-poi-marker div,
        .custom-poi-marker span {
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        /* Debug: make markers more visible for testing */
        .leaflet-marker-pane {
            z-index: 600 !important;
        }

        /* Simple m
arker styles */
        .simple-poi-marker {
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        .simple-marker {
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        .simple-poi-marker:hover .simple-marker {
            filter: brightness(1.2) !important;
            transition: filter 0.2s ease !important;
        }

        /* Pop
up positioning fixes */
        .leaflet-popup {
            z-index: 1002 !important;
        }

        .leaflet-popup-pane {
            z-index: 700 !important;
        }

        .custom-popup .leaflet-popup-content-wrapper {
            border-radius: 12px !important;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
            max-width: 400px !important;
        }

        /* Prevent popup from causing marker displacement */
        .leaflet-popup-tip-container {
            z-index: 1003 !important;
        }

        /*
 Fix map mouse behavior issues */
        .map-container-enhanced {
            touch-action: pan-x pan-y;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        /* Ensure Leaflet map has proper mouse events */
        .leaflet-container {
            touch-action: pan-x pan-y !important;
            cursor: grab !important;
        }

        .leaflet-container:active {
            cursor: grabbing !important;
        }

        /* Fix dragging behavior */
        .leaflet-dragging .leaflet-container {
            cursor: grabbing !important;
        }

        /* Prevent text selection during map interaction */
        .leaflet-container,
        .leaflet-container * {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
        }

        /* Fix zoom control positioning */
        .leaflet-control-zoom {
            z-index: 1000 !important;
        }

        /* Ensure map tiles load properly */
        .leaflet-tile-pane {
            z-index: 200 !important;
        }

        /* Fix overlay positioning */
        .leaflet-overlay-pane {
            z-index: 400 !important;
        }

        /* Ensure shadow pane doesn't interfere */
        .leaflet-shadow-pane {
            z-index: 500 !important;
        }

        /* Fix marker pane z-index */
        .leaflet-marker-pane {
            z-index: 600 !important;
        }

        /* Prevent backdrop filter from interfering with map */
        #mapSection {
            backdrop-filter: blur(10px);
        }

        .map-container-enhanced {
            backdrop-filter: none !important;
        }

        /* Fix for touch devices */
        @media (hover: none) and (pointer: coarse) {
            .leaflet-container {
                touch-action: pan-x pan-y zoom-disable-double-tap-zoom !important;
            }
        }

        /* E
nhanced Segment Highlighting */
        .segment-highlighted {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
            color: white !important;
            transform: scale(1.02) !important;
            box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4) !important;
            border-left: 4px solid #ff4500 !important;
            z-index: 10 !important;
            position: relative !important;
        }

        .segment-highlighted .segment-icon {
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            border: 2px solid rgba(255, 255, 255, 0.3) !important;
        }

        .segment-highlighted .segment-route {
            font-weight: 700 !important;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
        }

        .segment-highlighted .segment-details span {
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            border-radius: 12px !important;
            padding: 2px 8px !important;
            font-weight: 600 !important;
        }

        /* Pulse animation for highlighted segment */
        @keyframes segmentPulse {
            0% {
                box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
                transform: scale(1.02);
            }

            50% {
                box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
                transform: scale(1.03);
            }

            100% {
                box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
                transform: scale(1.02);
            }
        }

        .segment-pulse {
            animation: segmentPulse 1.5s ease-in-out 3 !important;
        }

        /* Segment highlight popup styling */
        .segment-highlight-popup .leaflet-popup-content-wrapper {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
            color: white !important;
            border-radius: 15px !important;
            box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4) !important;
            border: 2px solid rgba(255, 255, 255, 0.3) !important;
        }

        .segment-highlight-popup .leaflet-popup-tip {
            background: #ff6b35 !important;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
        }

        /* Highlighted route line styling */
        .highlighted-segment {
            filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6)) !important;
            z-index: 1000 !important;
        }

        /* Segment item hover enhancement */
        .segment-item:hover {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
            transform: translateX(5px) !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
            border-left: 3px solid var(--primary-color) !important;
        }

        .segment-item {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            cursor: pointer !important;
            border-radius: 12px !important;
            margin-bottom: 8px !important;
            padding: 12px !important;
            border: 1px solid rgba(0, 0, 0, 0.1) !important;
        }

        /* Segment icon enhancements */
        .segment-icon {
            transition: all 0.3s ease !important;
        }

        .segment-item:hover .segment-icon {
            transform: scale(1.1) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        }

        /* Segment details styling */
        .segment-details span {
            transition: all 0.2s ease !important;
        }

        .segment-item:hover .segment-details span {
            background: var(--primary-color) !important;
            color: white !important;
            transform: translateY(-1px) !important;
        }

        /* Mobile responsive adjustments */
        @media (max-width: 768px) {
            .segment-highlighted {
                transform: scale(1.01) !important;
            }

            .segment-item:hover {
                transform: translateX(3px) !important;
            }

            .segment-highlight-popup .leaflet-popup-content-wrapper {
                font-size: 0.9rem !important;
            }
        }

        /* 
Custom marker styles */
        .custom-marker {
            background: none !important;
            border: none !important;
        }

        .marker-content {
            width: 40px;
            height: 40px;
            border-radius: 50% 50% 50% 0;
            transform: rotate(-45deg);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            border: 3px solid white;
            transition: all 0.3s ease;
        }

        .marker-content:hover {
            transform: rotate(-45deg) scale(1.1);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }

        .marker-icon {
            transform: rotate(45deg);
            font-size: 1.2rem;
            color: white;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        /* Marker popup styles */
        .marker-popup {
            min-width: 200px;
        }

        .marker-popup h4 {
            margin: 0 0 8px 0;
            color: var(--text-color);
            font-size: 1.1rem;
        }

        .marker-popup p {
            margin: 0 0 12px 0;
            color: #666;
            font-size: 0.9rem;
            line-height: 1.4;
        }

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

        .popup-actions .btn {
            font-size: 0.8rem;
            padding: 6px 12px;
        }

        /* No results styles */
        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }

        .no-results h3 {
            margin: 0 0 15px 0;
            color: var(--text-color);
        }

        .no-results p {
            margin: 0;
            font-size: 1.1rem;
            line-height: 1.6;
        }

        /* Section subtitle styles */
        .section-subtitle {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--text-color);
            margin: 30px 0 20px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(102, 126, 234, 0.2);
        }

        /* POI grid styles */
        .poi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        /* Low score toggle styles */
        .low-score-toggle {
            text-align: center;
            margin: 30px 0;
        }

        .low-score-toggle .btn {
            padding: 12px 24px;
            font-size: 1rem;
            border-radius: 25px;
            transition: all 0.3s ease;
        }

        .low-score-toggle .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        /* Enhanced button styles */
        .btn--secondary {
            background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
            color: white;
            border: none;
        }

        .btn--warning {
            background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
            color: #212529;
            border: none;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .poi-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .recommend-btn {
                padding: 18px 40px;
                font-size: 1.2rem;
            }

            .marker-content {
                width: 35px;
                height: 35px;
            }

            .marker-icon {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .recommend-btn {
                padding: 16px 35px;
                font-size: 1.1rem;
            }

            .poi-actions {
                flex-direction: column;
                gap: 8px;
            }

            .poi-action-btn {
                width: 100%;
                justify-content: center;
            }
        }   
     /* Route Cards */
        .route-card-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 0 0 8px 0;
            line-height: 1.3;
        }

        .route-card-description {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .route-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
        }

        .route-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            color: #666;
            background: #f8f9fa;
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px solid #e9ecef;
        }

        .route-meta-item i {
            font-size: 0.8rem;
            color: var(--primary-color);
        }

        .route-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }

        .route-tag {
            background: var(--gradient-primary);
            color: white;
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .route-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
        }

        .route-difficulty {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .difficulty-stars {
            display: flex;
            gap: 2px;
        }

        .difficulty-star {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #e9ecef;
            transition: background 0.3s ease;
        }

        .difficulty-star.filled {
            background: #ffc107;
        }

        .route-select-preview {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
        }

        .route-select-preview:hover {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
        }

        /* Route Detail Modal */
        .route-detail-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .route-detail-modal.show {
            display: flex;
        }

        .route-detail-modal-content {
            background: white;
            border-radius: 20px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .route-detail-modal-header {
            padding: 24px 30px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--gradient-primary);
            color: white;
        }

        .route-detail-modal-title {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .route-detail-modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
        }

        .route-detail-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .route-detail-modal-body {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
        }

        .route-detail-modal-footer {
            padding: 20px 30px;
            border-top: 1px solid #e9ecef;
            background: #f8f9fa;
            display: flex;
            justify-content: center;
        }

        .route-select-btn {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 1.1rem;
            min-height: var(--touch-target-min);
            touch-action: manipulation;
        }

        .route-select-btn:hover {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3);
        }

        .route-detail-content {
            display: grid;
            gap: 30px;
        }

        .route-info-section {
            background: #f8f9fa;
            padding: 24px;
            border-radius: 16px;
            border: 1px solid #e9ecef;
        }

        .route-info-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .route-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }

        .route-stat-item {
            background: white;
            padding: 16px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .route-stat-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .route-stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            display: block;
        }

        .route-stat-label {
            font-size: 0.9rem;
            color: #666;
            margin-top: 4px;
        }

        .route-description {
            line-height: 1.6;
            color: #555;
            font-size: 1rem;
        }

        .route-pois-list {
            display: grid;
            gap: 16px;
        }

        .route-poi-item {
            background: white;
            padding: 20px;
            border-radius: 12px;
            border: 1px solid #e9ecef;
            transition: all 0.3s ease;
            cursor: pointer;
        }

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

        .route-poi-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .route-poi-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-color);
            margin: 0;
        }

        .route-poi-order {
            background: var(--gradient-primary);
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .route-poi-description {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 12px;
        }

        .route-poi-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.85rem;
            color: #666;
        }

        .route-poi-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .route-poi-meta-item i {
            color: var(--primary-color);
        }

        /* Loading States */
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
        }

        .loading__spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #e9ecef;
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        .loading__text {
            color: #666;
            font-size: 1rem;
            margin: 0;
        }

        /* No Routes Message */
        .no-routes-message {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }

        .no-routes-message i {
            font-size: 3rem;
            color: #cbd5e0;
            margin-bottom: 20px;
            display: block;
        }

        .no-routes-message p {
            font-size: 1.1rem;
            margin: 0;
            line-height: 1.6;
        }

        /* Route Map Container */
        .route-map-container {
            height: 300px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e9ecef;
            margin-bottom: 20px;
        }

        .route-map-container .leaflet-container {
            height: 100%;
            border-radius: 12px;
        }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

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

        /* Responsive Design for Route Components */
        @media (max-width: 768px) {
            .route-tabs {
                flex-direction: column;
            }

            .route-tab {
                padding: 16px 20px;
                border-radius: 0;
            }

            .route-tab:first-child {
                border-radius: 16px 16px 0 0;
            }

            .route-tab:last-child {
                border-radius: 0 0 16px 16px;
            }

            .route-filters {
                flex-direction: column;
                gap: 16px;
            }

            .filter-group {
                min-width: auto;
            }

            .predefined-routes-list {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .route-card-meta {
                flex-direction: column;
                gap: 8px;
            }

            .route-card-footer {
                flex-direction: column;
                gap: 12px;
                align-items: stretch;
            }

            .route-select-preview {
                justify-content: center;
            }

            .route-detail-modal {
                padding: 10px;
            }

            .route-detail-modal-content {
                max-height: 95vh;
            }

            .route-detail-modal-header {
                padding: 20px;
            }

            .route-detail-modal-body {
                padding: 20px;
            }

            .route-detail-modal-footer {
                padding: 16px 20px;
            }

            .route-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .route-stat-item {
                padding: 12px;
            }

            .route-stat-value {
                font-size: 1.2rem;
            }

            .route-poi-header {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }

            .route-poi-order {
                align-self: flex-end;
            }
        }

        @media (max-width: 480px) {
            .route-tab span {
                font-size: 0.9rem;
            }

            .route-card-title {
                font-size: 1.1rem;
            }

            .route-detail-modal-title {
                font-size: 1.3rem;
            }

            .route-select-btn {
                padding: 14px 24px;
                font-size: 1rem;
            }

            .route-stats-grid {
                grid-template-columns: 1fr;
            }

            .loading {
                padding: 40px 20px;
            }

            .loading__spinner {
                width: 40px;
                height: 40px;
            }

            .no-routes-message {
                padding: 40px 20px;
            }

            .no-routes-message i {
                font-size: 2.5rem;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .route-card {
                border-width: 2px;
            }

            .route-meta-item {
                border-width: 2px;
            }

            .route-detail-modal-content {
                border: 2px solid var(--text-color);
            }

            .route-poi-item {
                border-width: 2px;
            }
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            .route-card,
            .route-select-preview,
            .route-detail-modal-close,
            .route-select-btn,
            .route-stat-item,
            .route-poi-item {
                transition: none;
            }

            .route-detail-modal,
            .route-detail-modal-content {
                animation: none;
            }

            .loading__spinner {
                animation: none;
                border-top-color: transparent;
            }
        }

        /* Focus styles for accessibility */
        .route-tab:focus,
        .filter-select:focus,
        .filter-clear-btn:focus,
        .route-card:focus,
        .route-select-preview:focus,
        .route-detail-modal-close:focus,
        .route-select-btn:focus {
            outline: 3px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* Print styles */
        @media print {
            .route-detail-modal {
                position: static;
                background: none;
                backdrop-filter: none;
                display: block !important;
                padding: 0;
            }

            .route-detail-modal-content {
                box-shadow: none;
                max-height: none;
                max-width: none;
            }

            .route-detail-modal-header {
                background: none;
                color: var(--text-color);
                border-bottom: 2px solid var(--text-color);
            }

            .route-detail-modal-close,
            .route-detail-modal-footer {
                display: none;
            }

            .route-map-container {
                height: 200px;
                border: 2px solid var(--text-color);
            }
        }
/* Rou
te POI Marker Styles */
.route-poi-marker {
    background: transparent !important;
    border: none !important;
}

.route-poi-item {
    transition: all 0.2s ease;
}

.route-poi-item:hover {
    background: #e2e8f0 !important;
    transform: translateX(4px);
}

/* Route line styles */
.leaflet-interactive {
    cursor: pointer;
}

/* Route selection styles */
.route-pois-list {
    max-height: 300px;
    overflow-y: auto;
}

.route-pois-list::-webkit-scrollbar {
    width: 6px;
}

.route-pois-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.route-pois-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.route-pois-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Route info display */
.route-info-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.route-info-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.route-info-stats i {
    color: var(--primary-color);
}

/* Responsive adjustments for route display */
@media (max-width: 768px) {
    .route-info-stats {
        gap: 12px;
    }
    
    .route-info-stats span {
        font-size: 13px;
    }
    
    .route-poi-item {
        padding: 10px !important;
    }
    
    .poi-order {
        width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
    }
}/* Ro
ute Preview Map Styles */
.route-preview-section {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.route-preview-section h4 {
    margin: 0 0 16px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.route-preview-section h4 i {
    color: var(--primary-color);
}

.route-preview-map-container {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #ffffff;
}

.route-preview-map {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.route-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 12px;
    pointer-events: none;
}

.route-preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

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

.route-preview-info i {
    font-size: 11px;
}

/* Route Preview Marker Styles */
.route-preview-marker {
    background: transparent !important;
    border: none !important;
}

/* Modal adjustments for preview map */
.route-detail-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.route-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .route-preview-map-container {
        height: 150px;
    }
    
    .route-preview-overlay {
        padding: 8px;
    }
    
    .route-preview-info {
        font-size: 11px;
    }
    
    .route-preview-section {
        padding: 12px;
        margin: 16px 0;
    }
}

@media (max-width: 480px) {
    .route-preview-map-container {
        height: 120px;
    }
    
    .route-preview-info {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}

/* Loading state for preview map */
.route-preview-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
}

.route-preview-map-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced route detail modal */
.route-detail-modal {
    z-index: 10000;
}

.route-detail-modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
}

/* Route summary grid adjustments */
.route-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.summary-item i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.summary-item div {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* Difficulty stars in summary */
.difficulty-stars {
    font-size: 12px;
    color: #fbbf24;
}

/* Route preview hover effect */
.route-preview-map-container:hover {
    border-color: var(--primary-color);
    transition: border-color 0.2s ease;
}

.route-preview-map-container:hover .route-preview-overlay {
    background: linear-gradient(transparent, rgba(74, 85, 104, 0.8));
}

/* Route preview expand hint */
.route-preview-expand-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.route-preview-map-container:hover .route-preview-expand-hint {
    opacity: 1;
}

.route-preview-expand-hint i {
    font-size: 9px;
}

/* Click feedback */
.route-preview-map-container:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Predefined Routes Map Styles */
.routes-map-container {
    margin-top: 20px;
}

#mapView {
    display: none;
}

/* Mobile filter drawer and open button */
.filters-open-btn {
    display: none;
}

@media (max-width: 991.98px) {
    .filters-open-btn {
        display: block;
        width: 100%;
        margin-bottom: 16px;
    }

    .route-filters-enhanced .filters-content {
        display: none;
    }

    .route-filters-enhanced .filters-content.expanded {
        display: block;
    }
}

@media (min-width: 992px) {
    .route-filters-enhanced .filters-content {
        display: block;
    }
}

@media (min-width: 992px) {
    .routes-map-container {
        display: flex;
        gap: 20px;
    }
    #mapView,
    #listView {
        flex: 1;
    }
    #mapView {
        display: block;
    }
}

.predefined-map-container {
    position: relative;
    min-height: 500px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
}

.predefined-routes-map {
    width: 100%;
    height: 500px;
    position: relative;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.map-controls {
    position: absolute;
    top: 60px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-control-btn i {
    font-size: 14px;
}

/* Mobile Full-Screen Map Controls */
.mobile-fullscreen-btn {
    display: none;
}

.mobile-map-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: none;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.fab-button:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.fab-button:active {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Full-Screen Map State */
.predefined-map-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    background: white;
}

.predefined-routes-map.fullscreen {
    height: 100vh;
}

.fullscreen .map-control-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fullscreen .mobile-fullscreen-btn i::before {
    content: "\f066"; /* fa-compress */
}

@media (max-width: 768px) {
    .mobile-fullscreen-btn {
        display: flex;
    }

    .mobile-map-fab {
        display: block;
    }

    /* Enhanced mobile map controls */
    .map-controls {
        flex-direction: column;
        gap: 12px;
        top: 60px;
        right: 16px;
    }

    .map-control-btn {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: none;
        font-size: 16px;
        touch-action: manipulation;
    }
}

/* Dynamic Map Full-Screen State */
#mapContainer.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    background: #ffffff;
}

/* Mobile-specific fullscreen improvements */
@media (max-width: 768px) {
    #mapContainer.fullscreen {
        /* Use more reliable height calculation for mobile */
        height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        /* Ensure proper viewport coverage on mobile */
        min-height: 100vh;
        /* Prevent any potential scrolling issues */
        overflow: hidden;
    }

    /* Hide mobile UI elements in fullscreen */
    #mapContainer.fullscreen .mobile-map-fab {
        display: none;
    }

    /* Ensure map canvas fills container properly on mobile */
    #mapContainer.fullscreen .leaflet-container {
        height: 100% !important;
        width: 100% !important;
    }

    /* Fullscreen exit button styling for mobile */
    #fullscreenExitBtn {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 10000 !important;
        background: rgba(0, 0, 0, 0.8) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
        transition: all 0.2s ease !important;
        touch-action: manipulation !important;
    }

    #fullscreenExitBtn:hover {
        background: rgba(0, 0, 0, 0.9) !important;
        transform: scale(1.1) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    #fullscreenExitBtn:active {
        transform: scale(0.95) !important;
    }

    /* Safe area adjustments for devices with notches */
    @supports (padding-top: env(safe-area-inset-top)) {
        #fullscreenExitBtn {
            top: calc(20px + env(safe-area-inset-top)) !important;
        }
    }
}

/* Mobile-First Map Container Optimization */
@media (max-width: 480px) {
    /* Small Mobile - Enhanced Map Visibility */
    .predefined-map-container {
        min-height: 65vh;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .predefined-routes-map {
        height: 65vh;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Large Mobile/Small Tablet */
    .predefined-map-container {
        min-height: 55vh;
        border-radius: 16px;
        overflow: hidden;
    }

    .predefined-routes-map {
        height: 55vh;
    }
}

/* Legacy mobile support */
@media (max-width: 768px) {
    .predefined-map-container {
        min-height: 350px;
    }

    .predefined-routes-map {
        height: 350px;
    }
}

/* Map state classes */
.predefined-routes-map.loading {
    opacity: 0.7;
}

.predefined-routes-map.loaded .map-loading {
    display: none;
}

/* === Predefined routes flex layout and card visuals === */
.predefined-routes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.predefined-routes-list .route-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
}

.route-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    background-color: #e5e7eb;
    border-bottom: 1px solid #d1d5db;
}

.route-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.route-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-card-meta .route-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-card-meta .route-meta-item i {
    color: #667eea;
}

.route-distance {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.route-distance::before {
    content: "\f4d7";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 4px;
    color: #667eea;
}

/* Mini map container within route cards */
.route-mini-map {
    width: 100px;
    height: 100px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

/* Route selection highlighting on map */
.route-on-map {
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-on-map:hover {
    filter: brightness(1.2);
    stroke-width: 5px !important;
}

.route-on-map.selected {
    stroke-width: 6px !important;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

/* Loading state for preview */
.route-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #666;
    font-size: 12px;
}

.route-preview-loading i {
    margin-right: 6px;
    animation: spin 1s linear infinite;
}

/* Route card media overlay styles */
.route-card-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 2;
}

.route-card-media-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.route-card-media-loading i {
    font-size: 20px;
    color: #667eea;
}

.route-card-media-loading span {
    font-size: 12px;
    opacity: 0.9;
}

.route-card-image {
    position: relative;
}

.route-card-main-image {
    transition: opacity 0.3s ease;
}

.route-card-main-image.loading {
    opacity: 0.6;
}

/* Route card actions layout */
.route-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.route-media-refresh-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.route-media-refresh-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.route-media-refresh-btn:active {
    transform: scale(0.95);
}

.route-media-refresh-btn i {
    transition: transform 0.3s ease;
}

.route-media-refresh-btn:hover i {
    transform: rotate(180deg);
}

/* Route card fallback content styles */
.route-card-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.route-fallback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.route-fallback-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.route-fallback-text {
    text-align: center;
}

.route-fallback-text h4 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.route-fallback-text p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

/* Route Options Popup Styles */
.route-options-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: none;
    padding: 0;
    overflow: hidden;
}

.route-options-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.route-options-popup .leaflet-popup-close-button {
    color: #666;
    font-size: 18px;
    font-weight: bold;
    padding: 8px;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-options-popup .leaflet-popup-close-button:hover {
    background: #f8f9fa;
    color: #333;
    transform: scale(1.1);
}

.route-options-popup .leaflet-popup-tip {
    background: white;
    border: none;
}

/* Enhanced Start/End Marker Styles */
.start-location-marker,
.end-location-marker {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.2s ease;
}

.start-location-marker:hover,
.end-location-marker:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

/* Route Tooltip Styles */
.route-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.route-tooltip.leaflet-tooltip-top:before {
    border-top-color: rgba(0, 0, 0, 0.8) !important;
}

.route-tooltip.leaflet-tooltip-bottom:before {
    border-bottom-color: rgba(0, 0, 0, 0.8) !important;
}

.route-tooltip.leaflet-tooltip-left:before {
    border-left-color: rgba(0, 0, 0, 0.8) !important;
}

.route-tooltip.leaflet-tooltip-right:before {
    border-right-color: rgba(0, 0, 0, 0.8) !important;
}

/* Enhanced Route Line Styles */
.walking-route,
.simple-route-line {
    transition: all 0.3s ease;
}

.walking-route:hover,
.simple-route-line:hover {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    cursor: pointer;
}

/* Waypoint Marker Styles */
.waypoint-marker {
    transition: all 0.2s ease;
}

.waypoint-marker:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Predefined Route Popup Styles */
.predefined-route-popup .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(44, 90, 160, 0.15);
    border: 2px solid rgba(44, 90, 160, 0.1);
    padding: 0;
    overflow: hidden;
}

.predefined-route-popup .leaflet-popup-content {
    margin: 0;
    padding: 16px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.predefined-route-popup .leaflet-popup-close-button {
    color: #2c5aa0;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.predefined-route-popup .leaflet-popup-close-button:hover {
    background: rgba(44, 90, 160, 0.1);
    color: #1a4080;
    transform: scale(1.1);
}

.predefined-route-popup .leaflet-popup-tip {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(44, 90, 160, 0.1);
}

/* Enhanced Predefined Route Line Styles */
.predefined-route-line {
    transition: all 0.3s ease;
}

.predefined-route-line:hover {
    filter: drop-shadow(0 3px 8px rgba(44, 90, 160, 0.3));
    cursor: pointer;
}

/* Route Context Menu Styles */
.route-context-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    z-index: 10000;
    min-width: 280px;
    max-width: 320px;
    display: none;
    animation: contextMenuFadeIn 0.2s ease-out;
    transform-origin: top left;
}

.route-context-menu.show {
    display: block;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.route-context-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.route-context-menu-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-context-menu-subtitle {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #666;
    opacity: 0.8;
}

.route-context-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    margin: 2px 0;
    transition: all 0.2s ease;
    gap: 12px;
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: var(--text-color);
}

.route-context-menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateX(2px);
}

.route-context-menu-item.danger:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.route-context-menu-item.warning:hover {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.route-context-menu-item.success:hover {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.route-context-menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.route-context-menu-text {
    flex: 1;
}

.route-context-menu-text .main-text {
    font-weight: 500;
    margin-bottom: 2px;
}

.route-context-menu-text .sub-text {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.3;
}

.route-context-menu-arrow {
    font-size: 12px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.route-context-menu-item:hover .route-context-menu-arrow {
    opacity: 1;
}

.route-context-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 16px;
}

.route-context-menu-group {
    padding: 4px 0;
}

.route-context-menu-group-title {
    padding: 8px 16px 4px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 0;
}

/* Route Click Effect */
.route-item-clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.route-item-clickable:hover {
    background: rgba(102, 126, 234, 0.05) !important;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-item-clickable::after {
    content: "⋯";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.route-item-clickable:hover::after {
    opacity: 1;
}

.route-item-clickable::before {
    content: "Seçenekler için tıklayın";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.route-item-clickable:hover::before {
    opacity: 1;
}

/* Stats Section in Context Menu */
.route-context-stats {
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.05);
    margin: 8px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.route-context-stats h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.route-context-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
}

.route-context-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.route-context-stat-item .icon {
    font-size: 11px;
    opacity: 0.8;
}

.route-context-stat-item .value {
    font-weight: 600;
    color: var(--text-color);
}

/* Route Steps Preview */
.route-context-steps {
    max-height: 200px;
    overflow-y: auto;
    margin: 8px 0;
}

.route-context-step {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 10px;
    font-size: 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.route-context-step:hover {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: var(--primary-color);
}

.route-context-step-number {
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.route-context-step-content {
    flex: 1;
}

.route-context-step-name {
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-color);
}

.route-context-step-category {
    color: #666;
    font-size: 10px;
    opacity: 0.8;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .route-context-menu {
        min-width: 260px;
        max-width: 90vw;
    }
    
    .route-context-menu-item {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .route-context-menu-icon {
        font-size: 18px;
    }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .route-context-menu-item {
        padding: 16px;
        font-size: 16px;
    }
    
    .route-context-menu-item:active {
        background: rgba(102, 126, 234, 0.2);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .route-context-menu {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .route-context-menu-title {
        color: #e2e8f0;
    }
    
    .route-context-menu-item {
        color: #e2e8f0;
    }
    
    .route-context-stats {
        background: rgba(102, 126, 234, 0.1);
    }
}

.route-context-step.current {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
    font-weight: 600;
}

.route-context-step.current .route-context-step-name {
    color: #e74c3c;
}

/* Route Elevation Preview Styles */
.route-elevation-section {
    margin-bottom: 24px;
}

.route-elevation-section h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-elevation-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.elevation-preview-chart {
    height: 100px;
    margin-bottom: 16px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.elevation-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 0.9rem;
    gap: 8px;
}

.elevation-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #e53e3e;
    font-size: 0.9rem;
    gap: 8px;
}

.elevation-preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.elevation-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.elevation-stat .stat-label {
    color: #666;
    font-weight: 500;
}

.elevation-stat .stat-value {
    font-weight: 600;
    color: var(--text-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .elevation-preview-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .elevation-stat {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .elevation-preview-chart {
        height: 80px;
        margin-bottom: 12px;
    }
}

/* Dark Mode Support */
/* 
Mobile-Optimized Preferences Styles */
.preferences-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.preferences-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
            var(--doga-color) 0%,
            var(--yemek-color) 10%,
            var(--tarihi-color) 20%,
            var(--eglence-color) 30%,
            var(--sanat-kultur-color) 40%,
            var(--macera-color) 50%,
            var(--rahatlatici-color) 60%,
            var(--spor-color) 70%,
            var(--alisveris-color) 80%,
            var(--gece-hayati-color) 90%,
            var(--doga-color) 100%);
    opacity: 0.8;
    border-radius: 24px 24px 0 0;
}

.preferences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

/* Desktop: show two sliders per row */
@media (min-width: 1024px) {
    .preferences-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.preference-item {
    background: #ffffff;
    border: 2px solid #f7fafc;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: var(--touch-target-min);
}

.preference-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.preference-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.preference-item.active {
    border-color: var(--primary-color);
    background: rgba(45, 55, 72, 0.02);
}

.preference-item.active::before {
    background: var(--primary-color);
}

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

.preference-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.preference-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preference-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.preference-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
}

.preference-slider-container {
    position: relative;
}

.preference-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.preference-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 100%);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.preference-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preference-slider::-webkit-slider-thumb:active {
    transform: scale(1.3);
}

.preference-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 100%);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-track-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 12px;
}

.track-label {
    font-size: 0.7rem;
    color: #a0aec0;
    text-align: center;
    flex: 1;
    line-height: 1.2;
    font-weight: 500;
}

/* Category-specific colors for new design */
.preference-item[data-category="doga"] .preference-icon {
    color: var(--doga-color);
    background: var(--doga-light);
    border-color: var(--doga-color);
}

.preference-item[data-category="doga"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--doga-color) 0%, #2ecc71 100%);
}

.preference-item[data-category="doga"].active .preference-value {
    color: var(--doga-color);
}

.preference-item[data-category="yemek"] .preference-icon {
    color: var(--yemek-color);
    background: var(--yemek-light);
    border-color: var(--yemek-color);
}

.preference-item[data-category="yemek"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--yemek-color) 0%, #c0392b 100%);
}

.preference-item[data-category="yemek"].active .preference-value {
    color: var(--yemek-color);
}

.preference-item[data-category="tarihi"] .preference-icon {
    color: var(--tarihi-color);
    background: var(--tarihi-light);
    border-color: var(--tarihi-color);
}

.preference-item[data-category="tarihi"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--tarihi-color) 0%, #9b59b6 100%);
}

.preference-item[data-category="tarihi"].active .preference-value {
    color: var(--tarihi-color);
}

.preference-item[data-category="eglence"] .preference-icon {
    color: var(--eglence-color);
    background: var(--eglence-light);
    border-color: var(--eglence-color);
}

.preference-item[data-category="eglence"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--eglence-color) 0%, #e67e22 100%);
}

.preference-item[data-category="eglence"].active .preference-value {
    color: var(--eglence-color);
}

.preference-item[data-category="sanat_kultur"] .preference-icon {
    color: var(--sanat-kultur-color);
    background: var(--sanat-kultur-light);
    border-color: var(--sanat-kultur-color);
}

.preference-item[data-category="sanat_kultur"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--sanat-kultur-color) 0%, #2980b9 100%);
}

.preference-item[data-category="sanat_kultur"].active .preference-value {
    color: var(--sanat-kultur-color);
}

.preference-item[data-category="macera"] .preference-icon {
    color: var(--macera-color);
    background: var(--macera-light);
    border-color: var(--macera-color);
}

.preference-item[data-category="macera"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--macera-color) 0%, #d35400 100%);
}

.preference-item[data-category="macera"].active .preference-value {
    color: var(--macera-color);
}

.preference-item[data-category="rahatlatici"] .preference-icon {
    color: var(--rahatlatici-color);
    background: var(--rahatlatici-light);
    border-color: var(--rahatlatici-color);
}

.preference-item[data-category="rahatlatici"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--rahatlatici-color) 0%, #16a085 100%);
}

.preference-item[data-category="rahatlatici"].active .preference-value {
    color: var(--rahatlatici-color);
}

.preference-item[data-category="spor"] .preference-icon {
    color: var(--spor-color);
    background: var(--spor-light);
    border-color: var(--spor-color);
}

.preference-item[data-category="spor"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--spor-color) 0%, #8e44ad 100%);
}

.preference-item[data-category="spor"].active .preference-value {
    color: var(--spor-color);
}

.preference-item[data-category="alisveris"] .preference-icon {
    color: var(--alisveris-color);
    background: var(--alisveris-light);
    border-color: var(--alisveris-color);
}

.preference-item[data-category="alisveris"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--alisveris-color) 0%, #2c3e50 100%);
}

.preference-item[data-category="alisveris"].active .preference-value {
    color: var(--alisveris-color);
}

.preference-item[data-category="gece_hayati"] .preference-icon {
    color: var(--gece-hayati-color);
    background: var(--gece-hayati-light);
    border-color: var(--gece-hayati-color);
}

.preference-item[data-category="gece_hayati"] .preference-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--gece-hayati-color) 0%, #34495e 100%);
}

.preference-item[data-category="gece_hayati"].active .preference-value {
    color: var(--gece-hayati-color);
}

/* Quick Selection Section */
.quick-selection-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    margin-top: 30px;
}

.quick-selection-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

.quick-selection-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.quick-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    min-height: var(--touch-target-min);
    touch-action: manipulation;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 55, 72, 0.1), transparent);
    transition: left 0.6s ease;
}

.quick-btn:hover::before {
    left: 100%;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    background: rgba(45, 55, 72, 0.02);
}

.quick-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.quick-btn:hover i {
    transform: scale(1.1);
}

.quick-btn[data-preset="reset"] {
    border-color: #f56565;
    color: #f56565;
}

.quick-btn[data-preset="reset"]:hover {
    background: rgba(245, 101, 101, 0.1);
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    
    .preferences-container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .preferences-grid {
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .preference-item {
        padding: 16px;
    }
    
    .preference-header {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .preference-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .preference-title {
        font-size: 1rem;
    }
    
    .preference-value {
        font-size: 0.85rem;
    }
    
    .track-label {
        font-size: 0.65rem;
    }
    
    .quick-selection-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-btn {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .quick-btn i {
        font-size: 1.3rem;
    }
    
    .recommend-btn {
        padding: 16px 40px;
        font-size: 1.1rem;
        margin: 20px auto;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .quick-selection-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 16px;
    }
    
    .preferences-container {
        padding: 16px;
        border-radius: 16px;
    }
    
    .preference-item {
        padding: 12px;
        border-radius: 12px;
    }
    
    .preference-header {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .preference-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .preference-title {
        font-size: 0.95rem;
    }
    
    .preference-value {
        font-size: 0.8rem;
    }
    
    .preference-slider {
        height: 6px;
        margin-bottom: 10px;
    }
    
    .preference-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .track-label {
        font-size: 0.6rem;
        padding: 0 2px;
    }
    
    .quick-selection-section {
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .quick-selection-buttons {
        gap: 8px;
    }
    
    .quick-btn {
        padding: 10px 6px;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    .quick-btn i {
        font-size: 1.2rem;
    }
    
    .recommend-btn {
        padding: 14px 32px;
        font-size: 1rem;
        border-radius: 40px;
    }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .preference-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .preference-item:hover {
        transform: none;
    }
    
    .quick-btn:hover {
        transform: none;
    }
    
    .quick-btn:hover::before {
        left: -100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .preference-item {
        border-width: 3px;
    }
    
    .preference-icon {
        border-width: 3px;
    }
    
    .quick-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .preference-item,
    .preference-icon,
    .preference-slider::-webkit-slider-thumb,
    .quick-btn,
    .recommend-btn {
        transition: none;
    }
    
    .quick-btn::before {
        display: none;
    }
}/* M
odern Recommendations UX Styles */
.no-results-modern {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 24px;
    border: 2px solid #e2e8f0;
    margin: 20px 0;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.2);
}

.no-results-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.no-results-modern p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.retry-btn {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.3);
}

.recommendations-modern {
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.recommendations-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.recommendations-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.recommendation-category {
    padding: 30px;
    border-bottom: 1px solid #f7fafc;
}

.recommendation-category:last-child {
    border-bottom: none;
}

.recommendation-category.secondary {
    background: rgba(248, 249, 250, 0.5);
}

.category-header {
    margin-bottom: 24px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.category-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.category-title i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.category-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.category-badge.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.category-description {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.toggle-category-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.toggle-category-btn:hover {
    border-color: var(--primary-color);
    background: rgba(45, 55, 72, 0.02);
}

.toggle-category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.recommendations-grid.alternative {
    margin-top: 20px;
}

.modern-poi-card {
    background: #ffffff;
    border: 2px solid #f7fafc;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.modern-poi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.modern-poi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.modern-poi-card:hover::before {
    transform: scaleY(1);
}

.modern-poi-card.secondary {
    opacity: 0.9;
}

.modern-poi-card.secondary::before {
    background: #6c757d;
}

/* POI Card Image Container */
.poi-card__image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.poi-card__image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #a0aec0;
    font-size: 3rem;
}

.poi-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-orientation: from-image;
}

.modern-poi-card:hover .poi-card__image {
    transform: scale(1.05);
}
/* EXIF orientation-aware transforms for card images */
.poi-card__image[data-orientation='3'] { transform: rotate(180deg); }
.poi-card__image[data-orientation='6'] { transform: rotate(90deg); }
.poi-card__image[data-orientation='8'] { transform: rotate(-90deg); }

/* Keep hover scale while respecting rotation */
.modern-poi-card:hover .poi-card__image[data-orientation='3'] { transform: rotate(180deg) scale(1.05); }
.modern-poi-card:hover .poi-card__image[data-orientation='6'] { transform: rotate(90deg) scale(1.05); }
.modern-poi-card:hover .poi-card__image[data-orientation='8'] { transform: rotate(-90deg) scale(1.05); }

.poi-card__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.poi-card__category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2d3748;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.poi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f7fafc;
}

.poi-category-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(45, 55, 72, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.poi-category-badge i {
    font-size: 0.9rem;
}

.poi-score {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.poi-score.high {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.poi-score.medium {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.poi-card-content {
    padding: 16px 20px;
}

.poi-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.poi-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.poi-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.poi-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid #f7fafc;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 100%);
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.action-btn.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.action-btn.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .recommendations-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .recommendation-category {
        padding: 20px;
    }
    
    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .category-title h3 {
        font-size: 1.2rem;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modern-poi-card {
        border-radius: 12px;
    }
    
    .poi-card-header {
        padding: 12px 16px 8px;
    }
    
    .poi-card-content {
        padding: 12px 16px;
    }
    
    .poi-card-actions {
        padding: 8px 16px 12px;
        gap: 6px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .recommendations-header {
        padding: 16px;
    }
    
    .recommendations-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .recommendation-category {
        padding: 16px;
    }
    
    .category-title h3 {
        font-size: 1.1rem;
    }
    
    .poi-title {
        font-size: 1rem;
    }
    
    .poi-description {
        font-size: 0.85rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* Animation improvements */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-poi-card {
    animation: slideInUp 0.4s ease-out;
}

.modern-poi-card:nth-child(even) {
    animation-delay: 0.1s;
}

.modern-poi-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Filters open button */
#openFiltersBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

/* Hide filters content by default */
#filtersContent {
    display: none;
    max-height: none;
}

#filtersContent.active {
    display: block;
}

/* Mobile bottom sheet styles */
@media (max-width: 768px) {
    #filtersContent {
        display: block;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 80vh;
        background: #fff;
        overflow-y: auto;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    #filtersContent.active {
    transform: translateY(0);
}

/* Media Marker Styles */
.media-marker {
    transition: all 0.2s ease;
}

.media-marker:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

.media-popup {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0;
    overflow: hidden;
}

.media-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0;
}

.media-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.media-popup .leaflet-popup-tip {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced elevation chart media markers */
.elevation-chart-section .media-overlay-points {
    position: relative;
}

.elevation-chart-section .media-marker-point {
    position: absolute;
    cursor: pointer;
    transition: all 0.2s ease;
}

.elevation-chart-section .media-marker-point:hover {
    transform: scale(1.2);
    z-index: 10;
}

}

/* === MOBILE TOUCH OPTIMIZATIONS FOR HAZIR ROTALAR === */
/* Mobile Touch Optimizations for Hazır Rotalar */
@media (pointer: coarse) {
    /* Touch-specific optimizations */
    .route-tab {
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }

    .filter-chip {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }

    .route-card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .map-control-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    .favorite-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    /* Larger touch targets for small elements */
    .route-meta-item {
        min-height: 32px;
        padding: 8px 12px;
    }

    /* Better spacing for touch */
    .filters-actions {
        gap: 16px;
    }

    .predefined-routes-list {
        gap: 20px;
    }
}

/* Landscape orientation optimizations for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .predefined-routes-header {
        padding: 16px 20px;
    }

    .predefined-routes-header .section-title {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .predefined-routes-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .routes-quick-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }

    .quick-stat-item {
        flex: 0 0 auto;
        width: auto;
        padding: 12px 16px;
    }

    .predefined-map-container {
        min-height: 200px;
    }

    .predefined-routes-map {
        height: 200px;
    }
}

/* iOS Safari specific optimizations */
@supports (-webkit-touch-callout: none) {
    .route-card {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .filter-chip,
    .route-tab {
        -webkit-touch-callout: none;
    }

    /* Fix for iOS bounce effect */
    .predefined-routes-list,
    .filters-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Android Chrome specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .route-card {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .route-card-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .map-control-btn {
        border-width: 0.5px;
    }

    .route-card {
        border-width: 0.5px;
    }

    .filter-chip {
        border-width: 0.5px;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Focus indicators */
    .route-tab:focus,
    .filter-chip:focus,
    .route-card:focus {
        outline: 3px solid #4285f4;
        outline-offset: 2px;
    }

    /* Screen reader improvements */
    .route-card {
        position: relative;
    }

    .route-card::after {
        content: attr(aria-label);
        position: absolute;
        left: -10000px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .route-card,
        .filter-chip,
        .route-tab {
            transition: none !important;
            animation: none !important;
        }
    }
}

/* Print styles for routes */
@media print {
    .predefined-routes-header {
        background: none !important;
        color: black !important;
        border: 1px solid black;
    }

    .route-card {
        break-inside: avoid;
        border: 1px solid black;
        background: white !important;
        box-shadow: none !important;
    }

    .map-controls,
    .filters-actions,
    .favorite-btn {
        display: none !important;
    }

    .predefined-routes-map {
        border: 1px solid black;
        background: white;
    }
}

/* Mobile Slide-up Filter Panel */
.mobile-filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    transform: translateY(calc(100% - 60px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    display: none;
}

.mobile-filter-panel.expanded {
    transform: translateY(0);
}

.mobile-filter-handle {
    padding: 16px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

.filter-handle-bar {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.mobile-filter-panel.expanded .filter-handle-bar {
    background: #9ca3af;
}

.mobile-filter-content {
    padding: 0 20px 20px;
    max-height: calc(70vh - 60px);
    overflow-y: auto;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.mobile-filter-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-filter-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.mobile-filter-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.mobile-filter-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Show mobile filter panel on small screens */
@media (max-width: 768px) {
    .mobile-filter-panel {
        display: block;
    }
    
    .route-filters-enhanced {
        display: none;
    }
    
    .filters-open-btn {
        display: none;
    }
}

/* Mobile Image Fallback and Visibility Enforcement */
@media (max-width: 480px) {
    /* Ensure all route card images are visible */
    .predefined-routes-list .route-card {
        display: grid !important;
        grid-template-columns: 80px 1fr 50px !important;
        grid-template-rows: 1fr !important;
        max-height: 100px !important;
        min-height: 100px !important;
        align-items: stretch !important;
    }
    
    .predefined-routes-list .route-card .route-card-image {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 80px !important;
        height: 100px !important;
        overflow: hidden !important;
        background: #f8f9fa !important;
        border-radius: 12px 0 0 12px !important;
        position: relative;
    }
    
    .predefined-routes-list .route-card .route-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Fallback pattern for missing images */
    .predefined-routes-list .route-card .route-card-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, #f3f4f6 25%, transparent 25%, transparent 75%, #f3f4f6 75%), 
                    linear-gradient(45deg, #f3f4f6 25%, transparent 25%, transparent 75%, #f3f4f6 75%);
        background-size: 8px 8px;
        background-position: 0 0, 4px 4px;
        opacity: 0.1;
        pointer-events: none;
        z-index: -1;
    }
    
    .predefined-routes-list .route-card .route-card-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    .predefined-routes-list .route-card .route-card-actions {
        grid-column: 3 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 4px 2px !important;
        background: rgba(248, 249, 250, 0.8) !important;
    }
}

/* Additional mobile visibility enforcement */
@media screen and (max-width: 480px) {
    .route-card-image,
    .route-card-image img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure no display:none on images */
    .predefined-routes-list .route-card-image {
        display: block !important;
    }
}

/* POI Marker Styles - EXACTLY matching poi_manager_enhanced */
.custom-poi-marker {
    background: transparent !important;
    border: none !important;
}

.poi-marker-container {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    transition: transform 0.2s ease;
}

/* Mobile touch target optimization */
@media (max-width: 768px) {
    .poi-marker-container {
        width: 44px;
        height: 44px;
        font-size: 16px;
        border: 4px solid white;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    }
}

.poi-marker-container:hover {
    transform: scale(1.1) !important;
}

/* Route POI Marker Styles */
.route-poi-marker {
    background: transparent !important;
    border: none !important;
}

.route-poi-marker div {
    transition: transform 0.2s ease;
}

.route-poi-marker:hover div {
    transform: scale(1.1);
}

/* Ensure proper z-index for marker elements */
.poi-marker-score {
    z-index: 10 !important;
}

.poi-marker-number {
    z-index: 10 !important;
}

/* Enhanced mobile z-index stacking */
@media (max-width: 768px) {
    .custom-poi-marker {
        z-index: 999 !important;
    }

    .poi-marker-container {
        z-index: 1000 !important;
    }

    .leaflet-marker-pane .leaflet-marker-icon {
        z-index: 998 !important;
    }

    /* Ensure POI markers appear above other map elements */
    .poi-marker-container {
        position: relative !important;
    }

    /* Prevent other elements from interfering with POI clicks */
    .leaflet-control-container,
    .leaflet-popup-pane,
    .leaflet-tooltip-pane {
        z-index: 997 !important;
    }
}
/* Show All POIs Button Styles */
.show-all-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.show-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.show-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.show-all-btn.btn--loading {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.show-all-btn .btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.show-all-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* All POIs Results Styles */
.all-pois-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.all-pois-header .results-title {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.all-pois-header .results-title i {
    color: #28a745;
    font-size: 1.8rem;
}

.all-pois-header .results-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

/* Category Section Styles */
.category-section {
    margin-bottom: 3rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-info i {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.category-info h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.category-count {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* POI Grid Enhancements for All POIs */
.category-section .poi-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Enhanced POI Cards for All POIs View */
.category-section .poi-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-section .poi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

/* POI Popup Styles */
.poi-popup {
    min-width: 250px;
    max-width: 300px;
}

.poi-popup-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.poi-popup-header h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.poi-category-badge {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.poi-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 8px 0;
}

.poi-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.popup-btn {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.popup-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.popup-btn i {
    font-size: 0.7rem;
}

/* Mobile Responsive Styles for All POIs */
@media (max-width: 768px) {
    .all-pois-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .all-pois-header .results-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .all-pois-header .results-subtitle {
        font-size: 1rem;
    }
    
    .category-header {
        padding: 1rem 1.5rem;
    }
    
    .category-info h3 {
        font-size: 1.2rem;
    }
    
    .category-section .poi-grid {
        padding: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .show-all-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

/* Loading States for Show All POIs */
.show-all-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error and Empty States */
.error-state, .no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.error-icon, .no-results-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.no-results-icon {
    color: #6c757d;
}

.error-state h3, .no-results h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-state p, .no-results p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.retry-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}/*
 POI Card Media Preview Styles */
.poi-media-preview {
    margin: 8px 0;
    min-height: 20px;
}

.poi-card-media-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.poi-card-media-thumb img {
    transition: transform 0.3s ease;
}

.poi-card-media-thumb:hover img {
    transform: scale(1.05);
}

.media-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.poi-card-media-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.poi-card-media-info i {
    font-size: 0.9rem;
    color: #007bff;
}

/* Enhanced POI Card Styles for All POIs View */
.category-section .poi-card {
    position: relative;
    overflow: hidden;
}

.category-section .poi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-section .poi-card:hover::before {
    opacity: 1;
}

/* Loading skeleton for media previews */
.poi-media-preview .loading__skeleton {
    height: 60px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}/* POI 
Detail Modal Styles */
#poiDetailModal .modal-dialog {
    max-width: 1200px;
}

#poiDetailModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* Isolate layout/paint to prevent hover-induced shifts */
    contain: layout paint;
    /* Create stable GPU layer */
    transform: translateZ(0);
    will-change: transform;
}

.poi-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.poi-modal-title-section {
    flex: 1;
}

.poi-modal-title-section .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.poi-modal-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* POI Media Gallery Styles */
.poi-media-gallery {
    position: relative;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.media-gallery-container {
    position: relative;
}

.media-gallery-main {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

.media-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.media-gallery-main video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.no-media-placeholder {
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.media-gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.media-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
    opacity: 0;
}

.media-gallery-container:hover .media-nav-btn {
    opacity: 1;
}

.media-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.media-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.media-gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
    background: white;
}

.media-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.media-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.media-thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnail-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.5rem;
}

/* POI Modal Content Styles */
.poi-modal-content {
    background: white;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.poi-description-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #007bff;
    line-height: 1.6;
}

.poi-features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.poi-ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rating-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rating-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-value {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
    text-align: right;
}

/* Quick Info Styles */
.poi-quick-info {
    position: sticky;
    top: 20px;
}

.quick-info-card, .poi-actions-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.quick-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.quick-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.poi-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poi-action-buttons .btn {
    transition: all 0.3s ease;
}

.poi-action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #poiDetailModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }
    
    #poiDetailModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }
    
    .media-gallery-main {
        height: 250px;
    }
    
    .poi-modal-content .container-fluid {
        padding: 1rem;
    }
    
    .poi-modal-content .row {
        flex-direction: column;
    }
    
    .poi-quick-info {
        position: static;
        margin-top: 2rem;
    }
    
    .media-gallery-thumbnails {
        padding: 12px;
    }
    
    .media-thumbnail {
        width: 60px;
        height: 45px;
    }
}


/* Stabilize POI modal scrolling and width to prevent jitter */
#poiDetailModal .modal-body {
    /* Always show vertical scrollbar to avoid content width changes */
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
}

#poiDetailModal .modal-dialog {
    /* Create its own stacking/transform context */
    transform: translateZ(0);
    will-change: transform;
}

/* Loading Animation for Media */
.media-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
}

.media-loading .spinner-border {
    color: #007bff;
}

/* Zoom functionality for images */
.media-gallery-main.zoomable {
    cursor: zoom-in;
}

.media-gallery-main.zoomed {
    cursor: zoom-out;
}

.media-gallery-main.zoomed img {
    cursor: move;
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Full screen media viewer */
.media-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-fullscreen img,
.media-fullscreen video {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
/* Distinct 360° panorama marker styles */
.pano-marker-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000; /* solid black to avoid category color clashes */
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .2s ease;
}

.pano-marker-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.pano-360 {
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  user-select: none;
}

@keyframes panoPulse {
  0% { box-shadow: 0 4px 10px rgba(0,0,0,0.30); }
  50% { box-shadow: 0 6px 16px rgba(0,0,0,0.50); }
  100% { box-shadow: 0 4px 10px rgba(0,0,0,0.30); }
}
