/* ==========================================================================
   HELSINKIPARKS TOP - PREMIUM DESIGN SYSTEM
   ========================================================================== */

   :root {
    --primary: #2d5a27;
    --primary-light: #4a8c42;
    --primary-dark: #1b3a1c;
    --accent: #f39c12;
    --accent-green: #2ecc71;
    --gold-accent: #d4af37;
    --bg: #f4f7f6;
    --bg-soft: #fcfcfc;
    --white: #ffffff;
    --text: #333;
    --text-light: #666;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --danger: #c0392b;
    --border-color: #ddd;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden; 
}

/* ==========================================================================
   HEADER - MODERN GLASSMORPHISM
   ========================================================================== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 15px;
    height: 70px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-link i { color: var(--primary); font-size: 1.6rem; }
.accent-text { color: var(--primary); font-style: italic; font-weight: 400; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 90, 39, 0.4);
}

.weather-widget {
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    gap: 5px;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text);
}

.lang-switcher {
    font-size: 0.75rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}
.lang-switcher .active { color: var(--primary-dark); }

.mobile-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 2100;
}

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */

.app-container {
    display: flex;
    height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
}

/* Vasen Sivupalkki */
.sidebar {
    width: 320px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.sidebar-top {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.filter-chip {
    border: 1px solid #ddd;
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.park-list-container {
    flex: 1; 
    overflow-y: auto;
    padding: 10px;
    background: #fcfcfc;
}

.park-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.park-item:hover { border-color: var(--primary); background: #f9fff9; }
.park-item.selected { border-color: var(--accent-green); background: #eefdf3; box-shadow: var(--shadow-sm); }
.park-item img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }

.sidebar-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-plan-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#map { flex-grow: 1; height: 100%; z-index: 1; }

/* Oikea Sivupalkki (Reittiopas) */
.route-sidebar {
    width: 350px;
    background: var(--white);
    display: none; 
    flex-direction: column;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

.instructions-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background: #fdfdfd;
}

.timeline-item {
    position: relative;
    padding-left: 40px; 
    padding-bottom: 25px; 
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
    position: absolute;
    left: 7px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

/* ==========================================================================
   PREMIUM CAROUSEL
   ========================================================================== */

.premium-carousel {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.premium-list-horizontal {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.premium-list-horizontal::-webkit-scrollbar { display: none; }

.premium-cafe-card {
    flex: 0 0 260px;
    background: white;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
}

.premium-cafe-card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* ==========================================================================
   MODALS (General)
   ========================================================================== */

.modal { 
    display: none; 
    position: fixed; 
    z-index: 3000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    backdrop-filter: blur(8px);
    overflow-y: auto;      
    padding: 30px 0;       
}

.modal-content { 
    background: white;
    width: 90%; 
    max-width: 900px; 
    margin: 0 auto;        
    border-radius: 20px; 
    position: relative; 
    display: flex; 
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.close-booking, .close-wizard, .close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 1.8rem;
    color: #aaa;
    z-index: 100;
    transition: var(--transition);
}
.close-booking:hover, .close-wizard:hover { color: #333; }

/* ==========================================================================
   BOOKING FORM - PREMIUM STEPS
   ========================================================================== */

.booking-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    padding: 0;
    overflow: hidden;
}

.booking-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.booking-header h2 { margin: 0; font-size: 1.6rem; font-weight: 700; }

.wizard-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    position: absolute;
    top: 0;
    left: 0;
}
.progress-bar {
    height: 100%;
    background: white;
    transition: width 0.4s ease;
}

.booking-step {
    display: none;
    padding: 25px;
    animation: fadeInStep 0.4s ease-out forwards;
}
.booking-step.active { display: block; }

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

.step-title { text-align: center; margin-bottom: 25px; }
.step-title h3 { color: var(--primary-dark); font-size: 1.4rem; margin: 0; }
.step-title p { color: #777; font-size: 0.9rem; margin-top: 5px; }

/* Form-kentät */
.form-row.compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.form-group input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

/* VISUAALISET VALINTAKORTIT (Opas & Lisäpalvelut) */
.guide-visual-grid, .addons-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.guide-card, .addon-card {
    cursor: pointer;
    position: relative;
}

.guide-card input, .addon-card input {
    position: absolute;
    opacity: 0;
}

.card-content {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.guide-icon, .card-icon-main {
    width: 50px;
    height: 50px;
    background: #f0fdf4;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.guide-name, .card-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.guide-price, .card-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* Valittu tila */
.guide-card input:checked + .card-content,
.addon-card input:checked + .card-content {
    border-color: var(--accent-green);
    background: #f0fdf4;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.guide-card input:checked + .card-content .guide-icon,
.addon-card input:checked + .card-content .card-icon-main {
    background: var(--accent-green);
    color: white;
}

.check-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2ecc71;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.guide-card input:checked + .card-content .check-mark,
.addon-card input:checked + .card-content .check-mark {
    opacity: 1;
    transform: scale(1);
}

/* LASKUNÄKYMÄ (Review) */
.review-container {
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.review-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.review-item .label { color: #888; }
.review-item .value { font-weight: 600; }

.service-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.final-price-box {
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid var(--accent-green);
}

#rev-total {
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 800;
}

/* Footer-napit */
.step-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.btn-back {
    background: #eee;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
}

.btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit-booking {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.btn-submit-booking:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* ==========================================================================
   WIZARD MAGIC STYLES
   ========================================================================== */

.wizard-container {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid rgba(45, 90, 39, 0.1);
    width: 500px;
    max-width: 90%;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.wizard-step {
    display: none;
    padding: 40px 30px;
    animation: fadeSlide 0.5s ease forwards;
}

.wizard-step.active { display: block; }

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

.wiz-magic-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.wizard-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wiz-btn {
    padding: 20px;
    background: white;
    border: 2px solid #eee;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.wiz-btn:hover {
    border-color: var(--primary);
    background: #f0fdf4;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.1);
}

/* ==========================================================================
   RESPONSIVE MASTER
   ========================================================================== */

@media (max-width: 992px) {
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .lang-switcher { display: none; }
    .logo-link { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: 0;
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    
    .route-sidebar {
        position: absolute;
        right: 0;
        height: 100%;
        transform: translateX(100%);
    }
    .route-sidebar.open { transform: translateX(0); }

    .form-row.compact { grid-template-columns: 1fr; }
    .modal-content { width: 95%; }
}

@media (max-width: 600px) {
    .header-container { justify-content: space-between; }
    .logo-area {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    #weather-desc { display: none; }
    .btn-cta {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    .cta-text { display: none; }
    
    .wizard-options { grid-template-columns: 1fr; }
    .guide-visual-grid, .addons-visual-grid { grid-template-columns: 1fr; }
}
