        :root {
            /* PEAMISED VÄRVID - semantiline loogika */
            --primary-green: #2F5E4A;
            /* Bränd, aktsendid */
            --success-green: #4A8D64;
            /* Õnnestumised, helistamine */
            --warning-yellow: #D6B23D;
            /* Hoiatused */
            --danger-red: #B2504D;
            /* Hädaolukord */
            --info-blue: #3D5A91;
            /* Informatsioon, navigatsioon */

            /* TOETAVAD VÄRVID */
            --background: #EEF0ED;
            /* Peamine taust */
            --surface: #FBFBFB;
            /* Kaardid, paneelid */
            --text-primary: #2E2E2E;
            /* Peamine tekst */
            --text-secondary: #5C5C5C;
            /* Vähem oluline tekst */
            --border-light: #DADFD9;
            /* Eraldusjooned */

            /* LÄBIPAISTVAD VARIANDID */
            --primary-light: rgba(47, 94, 74, 0.1);
            --warning-light: rgba(214, 178, 61, 0.1);
            --danger-light: rgba(178, 80, 77, 0.1);
            --success-light: rgba(74, 141, 100, 0.1);

            /* PROFESSIONAALNE TÜPOGRAAFILINE SÜSTEEM - 3 SUURUST */
            --font-content: 14px;
            /* Content level - kõik põhitekst */
            --font-heading: 21px;
            /* Section level - pealkirjad */
            --font-display: 32px;
            /* Hero level - peamised títlid */

            /* LINE-HEIGHT SÜSTEEM - optimeeritud uute suuruste jaoks */
            --leading-display: 1.2;
            /* 32px fonts - kompaktne suurele tekstile */
            --leading-heading: 1.3;
            /* 21px fonts - section header'id */
            --leading-content: 1.5;
            /* 14px fonts - loetav content */

            /* SPACING SÜSTEEM - 8px base grid */
            --space-xs: 4px;
            /* Fine adjustments */
            --space-sm: 8px;
            /* Small gaps */
            --space-md: 12px;
            /* Default spacing */
            --space-lg: 16px;
            /* Component spacing */
            --space-xl: 20px;
            /* Section spacing */
            --space-2xl: 24px;
            /* Large spacing */
            --space-3xl: 32px;
            /* Hero spacing */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
            background: var(--background);
            color: var(--text-primary);
            line-height: var(--leading-content);
            font-size: var(--font-content);
        }

        .app {
            max-width: 100%;
            min-height: 100vh;
        }

        /* Header */
        .header {
            background-image: url(pics/rattamatk-header.png);
            background-position: bottom;
            background-size: cover;
            color: var(--surface);
            padding: var(--space-xl);
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .header-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-lg);
            margin-bottom: var(--space-lg);
        }

        .header-text h1 {
            font-size: var(--font-display);
            line-height: var(--leading-content);
            text-shadow: 1px 1px 4px gray;
            margin: 0;
            font-weight: 700;
        }

        .header-text p {
            text-shadow: 1px 1px 3px gray;
        }

        .header-buttons {
            display: flex;
            gap: var(--space-lg);
            justify-content: center;
        }

        .btn {
            padding: var(--space-md) var(--space-2xl);
            border: none;
            border-radius: var(--space-2xl);
            font-size: var(--font-content);
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: var(--space-sm);
            line-height: var(--leading-content);
            min-height: 44px;
            backdrop-filter: blur(2px);
            /* Glassmorphism efekt */
            -webkit-backdrop-filter: blur(2px);
            /* Safari tugi */
        }

        .btn-primary {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.5);
        }

        .btn-emergency {
            background: rgba(229, 57, 53, 0.4);
            /* Klaasjas punane */
            box-shadow: 0 2px 10px rgba(229, 57, 53, 0.3);
            border: 2px solid rgba(229, 57, 53, 0.6);
            /* Õrn piirjoon */
        }

        /* Hero Section */
        .hero {
            background: var(--surface);
            margin: var(--space-lg);
            padding: var(--space-3xl);
            border-radius: var(--space-md);
            /* Ühtlustatud 12px */
            box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
            border-left: 5px solid var(--primary-green);
        }

        .hero-badge {
            background: var(--primary-green);
            color: var(--surface);
            padding: var(--space-xs) var(--space-sm);
            border-radius: var(--space-xs);
            font-size: var(--font-content);
            font-weight: 500;
            margin-bottom: var(--space-lg);
            display: inline-block;
            line-height: var(--leading-content);
        }

        .hero-current {
            font-size: var(--font-display);
            font-weight: 700;
            margin-bottom: var(--space-sm);
            color: var(--text-primary);
            line-height: var(--leading-display);
        }

        .hero-details {
            font-size: var(--font-content);
            color: var(--text-secondary);
            margin-bottom: var(--space-lg);
            line-height: var(--leading-content);
        }

        .hero-next {
            background: var(--primary-light);
            padding: var(--space-lg);
            border-radius: var(--space-md);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-top: var(--space-lg);
        }

        .hero-next-title {
            font-size: var(--font-content);
            color: var(--primary-green);
            font-weight: 600;
            margin-bottom: var(--space-xs);
            line-height: var(--leading-content);
        }

        .hero-next-activity {
            font-size: var(--font-heading);
            font-weight: 600;
            margin-bottom: var(--space-xs);
            line-height: var(--leading-heading);
        }

        .hero-next-details {
            font-size: var(--font-content);
            color: var(--text-secondary);
            line-height: var(--leading-content);
        }

        /* Hero info cards */
        .info-card {
            background: var(--surface);
            padding: var(--space-md) var(--space-lg);
            border-radius: var(--space-md);
            margin-top: var(--space-md);
            font-size: var(--font-content);
            line-height: var(--leading-content);
            border-left: 4px solid;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: flex-start;
            gap: var(--space-sm);
        }

        .info-card .info-icon {
            flex-shrink: 0;
            margin-top: 1px;
        }

        .info-card .info-content {
            flex: 1;
        }

        .info-card strong {
            font-weight: 700;
        }

        .info-card.keeld {
            border-left-color: var(--danger-red);
            background: rgba(229, 57, 53, 0.08);
        }

        .info-card.hoiatus {
            border-left-color: var(--warning-yellow);
            background: rgba(255, 193, 7, 0.08);
        }

        .info-card.nouanne {
            border-left-color: var(--info-blue);
            background: rgba(25, 118, 210, 0.08);
        }

        .info-card.markus {
            border-left-color: var(--text-secondary);
            background: rgba(102, 102, 102, 0.08);
        }

        .btn-navigate {
            background: var(--info-blue);
            color: var(--surface);
            width: 100%;
            justify-content: center;
            margin-top: var(--space-lg);
        }

        /* Sections */
        .sections {
            margin: 0 var(--space-lg);
        }

        .section {
            background: var(--surface);
            margin: var(--space-md) 0;
            border-radius: var(--space-md);
            /* Ühtlustatud 12px */
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .section-header {
            padding: var(--space-xl);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            border-bottom: 1px solid var(--border-light);
            min-height: 44px;
            transition: background-color 0.2s ease;
        }


        .section-header:active {
            background-color: rgba(0, 0, 0, 0.05);
        }

        .section-title {
            font-weight: 600;
            color: var(--text-primary);
            font-size: var(--font-heading);
            line-height: var(--leading-heading);
            user-select: none;
        }

        .section-icon {
            transition: transform 0.3s ease;
            color: var(--text-secondary);
            font-size: var(--font-content);
            /* Suurem ikoon */
            font-weight: bold;
            user-select: none;
        }


        .section.open .section-icon {
            transform: rotate(180deg);
        }

        .section-content {
            display: none;
            padding: var(--space-xl);
        }

        .section.open .section-content {
            display: block;
        }

        /* Content Styles */
        .contact-grid {
            display: grid;
            gap: var(--space-lg);
        }

        .contact-card {
            background: var(--background);
            padding: var(--space-lg);
            border-radius: var(--space-md);
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 60px;
        }

        .contact-card.emergency {
            background: var(--danger-light);
            border-left: 4px solid var(--danger-red);
        }

        .contact-card.technical {
            background: var(--warning-light);
            border-left: 4px solid var(--warning-yellow);
        }

        .contact-info {
            flex: 1;
        }

        .contact-name {
            font-size: var(--font-content);
            font-weight: 600;
            margin-bottom: var(--space-xs);
            color: var(--text-primary);
            line-height: var(--leading-content);
        }

        .contact-description {
            font-size: var(--font-content);
            color: var(--text-secondary);
            margin-bottom: var(--space-xs);
            line-height: var(--leading-content);
        }

        .contact-phone {
            font-size: var(--font-content);
            color: var(--text-secondary);
            letter-spacing: 0.3px;
            line-height: var(--leading-content);
        }

        .call-btn {
            background: var(--success-green);
            color: var(--surface);
            padding: var(--space-md) var(--space-lg);
            border-radius: var(--space-2xl);
            text-decoration: none;
            font-size: var(--font-content);
            font-weight: 600;
            line-height: var(--leading-content);
            min-height: 44px;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
        }

        .schedule-item {
            display: flex;
            align-items: center;
            padding: var(--space-lg);
            border-bottom: 1px solid var(--border-light);
            min-height: 48px;
        }

        .schedule-item:last-child {
            border-bottom: none;
        }

        .schedule-time {
            width: 40px;
            font-weight: 600;
            color: var(--text-secondary);
            font-size: var(--font-content);
            line-height: var(--leading-content);
        }

        /* Ainult praeguse sündmuse kellaaeg on roheline */
        .current-item .schedule-time {
            color: var(--primary-green);
        }

        .schedule-activity {
            flex: 1;
            margin-left: var(--space-lg);
        }

        .schedule-name {
            font-weight: 600;
            font-size: var(--font-content);
            margin-bottom: var(--space-xs);
            line-height: var(--leading-content);
        }

        .schedule-details {
            color: var(--text-secondary);
            font-size: var(--font-content);
            line-height: var(--leading-content);
        }

        .status-badge {
            display: inline-block;
            padding: var(--space-xs) var(--space-sm);
            border-radius: var(--space-xs);
            font-size: var(--font-content);
            font-weight: 500;
            margin-left: var(--space-md);
            line-height: var(--leading-content);
            opacity: 0.7;
        }

        .badge-active {
            background: var(--success-light);
            color: var(--primary-green);
        }

        .badge-next {
            background: var(--warning-light);
            color: #856404;
        }

        .badge-later {
            background: var(--background);
            color: var(--text-secondary);
        }

        .current-item {
            background: var(--primary-light);
            border-radius: var(--space-md);
            position: relative;
        }

        .current-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--primary-green);
            border-radius: var(--space-xs) 0 0 var(--space-xs);
        }

        .completed-item {
            opacity: 0.5;
            background: var(--background);
        }

        /* Highlight animation for current activity */
        @keyframes highlight-pulse {
            0% {
                box-shadow: 0 0 0 0 var(--primary-green);
                background: var(--primary-light);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(46, 125, 74, 0.3);
                background: rgba(46, 125, 74, 0.15);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(46, 125, 74, 0);
                background: var(--primary-light);
            }
        }

        .item-card {
            background: var(--background);
            padding: var(--space-lg);
            border-radius: var(--space-md);
            margin-bottom: var(--space-lg);
        }

        .item-title {
            font-weight: 600;
            color: var(--primary-green);
            margin-bottom: var(--space-sm);
            font-size: var(--font-heading);
            line-height: var(--leading-heading);
        }

        .item-description {
            font-size: var(--font-content);
            color: var(--text-secondary);
            line-height: var(--leading-content);
        }

        /* Info rows with proper icon alignment */
        .info-row {
            display: flex;
            align-items: flex-start;
            gap: var(--space-sm);
            margin-bottom: var(--space-xs);
        }

        .info-row:last-child {
            margin-bottom: 0;
        }

        .info-icon {
            flex-shrink: 0;
            margin-top: 2px;
            font-size: var(--font-content);
        }

        .info-text {
            flex: 1;
            line-height: var(--leading-content);
        }

        /* Responsive */
        @media (max-width: 480px) {
            .header-title {
                flex-direction: column;
                gap: var(--space-md);
            }

            .header-logo {
                width: 50px;
                height: 50px;
            }

            .header-text h1 {
                font-size: var(--font-heading);
            }

            .header-buttons {
                flex-direction: column;
            }

            .hero {
                margin: var(--space-md);
                padding: var(--space-2xl);
            }

            /* Optimeeritud mobiili jaoks */
            .hero-current {
                font-size: var(--font-heading);
                /* Väiksem hero mobiilis: 32px → 21px */
            }

            .hero-next-activity {
                font-size: var(--font-content);
                /* Väiksem mobiilis: 21px → 14px */
            }

            /* Touch-friendly button sizing */
            .btn,
            .call-btn {
                min-height: 44px;
                padding: var(--space-md) var(--space-lg);
            }

            /* Kompaktne spacing mobiilis */
            .sections {
                margin: var(--space-md);
            }

            .section-header,
            .section-content {
                padding: var(--space-lg);
            }

            .schedule-item {
                padding: var(--space-md);
            }
        }

        /* ===========================================
   LAAGRIPAIGA KAARDI LISANDUSED
=========================================== */

        /* Kaardi eelvaate konteiner */
        .campsite-map-preview {
            background: var(--surface);
            border-radius: var(--space-md);
            overflow: hidden;
            margin-bottom: var(--space-xl);
        }

        .map-preview-header {
            background: var(--info-blue);
            color: white;
            padding: var(--space-md);
            text-align: center;
        }

        .map-preview-header h3 {
            margin: 0 0 var(--space-xs) 0;
            font-size: var(--font-heading);
            line-height: var(--leading-heading);
            font-weight: 600;
        }

        .map-preview-header p {
            margin: 0;
            font-size: var(--font-content);
            line-height: var(--leading-content);
            opacity: 0.9;
        }

        /* Touch-optimeeritud kaardi ala */
        .map-touch-zone {
            position: relative;
            cursor: pointer;
            background: var(--background);
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .map-touch-zone img {
            width: 100%;
            height: auto;
            max-height: 250px;
            object-fit: contain;
            transition: opacity 0.2s ease;
        }

        .map-touch-zone:active img {
            opacity: 0.8;
            /* Touch feedback */
        }

        .touch-hint {
            position: absolute;
            bottom: var(--space-sm);
            right: var(--space-sm);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: var(--space-xs) var(--space-sm);
            border-radius: 20px;
            font-size: var(--font-content);
            line-height: var(--leading-content);
            display: flex;
            align-items: center;
            gap: var(--space-xs);
        }

        /* Täisekraan modal */
        .map-fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: #000;
            z-index: 2000;
            display: flex;
            flex-direction: column;
        }

        .map-fullscreen-header {
            background: rgba(0, 0, 0, 0.9);
            padding: var(--space-sm);
            display: flex;
            justify-content: flex-end;
        }

        .map-close-btn {
            background: var(--danger-red);
            color: white;
            border: none;
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--space-sm);
            font-size: var(--font-content);
            line-height: var(--leading-content);
            font-weight: 600;
            min-width: 44px;
            min-height: 44px;
            cursor: pointer;
        }

        .map-close-btn:active {
            opacity: 0.8;
        }

        .map-fullscreen-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-sm);
            overflow: hidden;
        }

        .map-fullscreen img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            touch-action: manipulation;
            /* Lubab pinch-zoom */
        }

        .map-fullscreen-footer {
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: var(--space-sm);
            text-align: center;
            font-size: var(--font-content);
            line-height: var(--leading-content);
        }

        /* Mobiili optimeeringud */
        @media (max-width: 480px) {
            .map-preview-header {
                padding: var(--space-sm);
            }

            .map-preview-header h3 {
                font-size: var(--font-content);
                font-weight: 600;
            }
        }

        /* Live Mode Indicator */
        .live-indicator {
            background: var(--primary-green);
            color: var(--surface);
            padding: var(--space-xs);
            text-align: center;
        }

        .live-status {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: var(--space-sm);
        }

        .live-dot {
            font-size: 12px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }

            100% {
                opacity: 1;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .test-inputs {
                grid-template-columns: 1fr;
                gap: var(--space-md);
            }

            .test-actions {
                justify-content: center;
            }
        }