    /* Kielinappi: valittu = keltainen tausta, vihreä fontti (sama kuin index.html style-osiossa) */
    .menu.gold .language-selector button.active {
        background: var(--gold);
        color: var(--forest-green) !important;
    }
    /* Kirjautumismodal */
    .login-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.22);
        z-index: 21000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .login-modal-box {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 32px rgba(0,0,0,0.18);
        padding: 2.2rem 2.2rem 1.5rem 2.2rem;
        min-width: 320px;
        max-width: 95vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .login-modal-box h2 {
        font-size: 1.5rem;
        color: var(--forest-green, #2e7d32);
        margin-bottom: 1.1rem;
        text-align: center;
    }
    .login-modal-box label {
        font-size: 1.18rem;
        color: #222;
        font-weight: 600;
    }
    .login-modal-box input[type="text"],
    .login-modal-box input[type="password"] {
        width: 220px;
        padding: 0.5em 0.7em;
        margin-top: 0.3em;
        margin-bottom: 0.2em;
        border: 1.5px solid var(--forest-green, #2e7d32);
        border-radius: 7px;
        font-size: 1.18rem;
        background: #fafafa;
        color: #222;
    }
    .login-modal-box button[type="submit"] {
        margin-top: 0.7em;
        font-size: 1.18rem;
        padding: 0.5em 1.3em;
        border-radius: 8px;
        border: none;
        background: var(--forest-green, #2e7d32);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s;
    }
    .login-modal-box button[type="submit"]:hover {
        background: var(--gold, #e6c200);
        color: var(--forest-green, #2e7d32);
    }
    .login-modal-close {
        margin-top: 1.2em;
        background: none;
        border: none;
        color: #888;
        font-size: 1rem;
        cursor: pointer;
        text-decoration: underline;
    }
    .login-modal-close:hover {
        color: var(--forest-green, #2e7d32);
    }
    /* Kirjaudu sisään -painike hamburger-menussa */
    .login-menu-item {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 0.7rem;
    }
    .login-btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        background: none;
        border: none;
        color: var(--forest-green, #2e7d32);
        font-size: 1.08rem;
        font-weight: 600;
        cursor: pointer;
        padding: 0.2em 0.5em;
        transition: background 0.15s;
        border-radius: 8px;
    }
    .login-btn:hover {
        background: var(--light-gray, #f5f5f5);
    }
    .login-icon {
        display: flex;
        align-items: center;
        margin-right: 0.6em;
    }
    .login-text {
        display: inline-block;
        vertical-align: middle;
    }
    /* Käyttöehtopopup (cookie/terms modal) */
    .terms-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.32);
        z-index: 20000;
        display: none;
        align-items: center;
        justify-content: center;
    }
    .terms-modal.visible {
        display: -webkit-flex;
        display: flex;
    }
    .terms-modal-box {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 32px rgba(0,0,0,0.18);
        padding: 2.2rem 2.2rem 1.5rem 2.2rem;
        min-width: 320px;
        max-width: 95vw;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: center;
        align-items: center;
    }
    .terms-modal-box h2 {
        font-size: 1.6rem;
        color: var(--forest-green, #2e7d32);
        margin-bottom: 1.1rem;
        text-align: center;
    }
    .terms-modal-content {
        font-size: 1.18rem;
        color: #222;
        margin-bottom: 1.3rem;
        text-align: center;
    }
    .terms-modal-actions {
        display: -webkit-flex;
        display: flex;
        gap: 1.2rem;
        -webkit-justify-content: center;
        justify-content: center;
    }
    .terms-modal-actions button {
        font-size: 1.18rem;
        padding: 0.5em 1.3em;
        border-radius: 8px;
        border: none;
        background: var(--forest-green, #2e7d32);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s;
    }
    .terms-modal-actions button:hover {
        background: var(--gold, #e6c200);
        color: var(--forest-green, #2e7d32);
    }
    /* Vesileima overlay oikeaan alakulmaan */
    .watermark-overlay {
        position: fixed;
        right: 1.2rem;
        bottom: 0.7rem;
        z-index: 12000;
        color: rgba(46,125,50,0.22);
        font-size: 1.1rem;
        font-weight: 600;
        pointer-events: none;
        user-select: none;
        text-shadow: 1px 1px 2px #fff, 0 0 2px #fff;
    }
    /* Estä tekstin valinta ja oikea hiiren painike */
    body, .no-select, .data-section, .review-list, .value-card, .team-wide-card {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    /* Vahvistusmodal arvostelulomakkeen sulkemiselle */
    .confirm-close-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.25);
        z-index: 11000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .confirm-close-box {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
        padding: 2rem 2.2rem 1.5rem 2.2rem;
        min-width: 260px;
        max-width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .confirm-close-text {
        font-size: 1.15rem;
        color: #222;
        margin-bottom: 1.2rem;
        text-align: center;
    }
    .confirm-close-actions {
        display: flex;
        gap: 1.2rem;
    }
    .confirm-close-actions button {
        font-size: 1rem;
        padding: 0.5em 1.3em;
        border-radius: 8px;
        border: none;
        background: var(--forest-green, #2e7d32);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s;
    }
    .confirm-close-actions button:hover {
        background: var(--gold, #e6c200);
        color: var(--forest-green, #2e7d32);
    }
    /* Tiimimme työntekijät allekkain, vasemmalle tila kuville */
    .team-list {
        display: flex;
        flex-direction: column;
        gap: 2.2rem;
        margin-top: 1.2rem;
    }
    .team-row {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .member-photo {
        width: 96px;
        height: 96px;
        background: linear-gradient(180deg, #f6f7f2 0%, #edf2ea 100%);
        border-radius: 50%;
        border: 2px solid rgba(198, 157, 52, 0.55);
        flex-shrink: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: width 0.25s, height 0.25s, box-shadow 0.2s, transform 0.2s;
        position: relative;
        z-index: 1;
        box-shadow: 0 6px 18px rgba(24, 52, 35, 0.10);
    }
    .member-photo.couple-photo {
        width: 96px;
        height: 96px;
        border-radius: 50%;
    }
    .member-photo.couple-photo img,
    .member-photo .couple-photo-img {
        object-position: center 23%;
        transform: scale(1.04);
        border-radius: 50%;
    }
    .member-initial.couple-initial {
        font-size: 0.95rem;
        letter-spacing: 0.04em;
    }
    .member-photo:hover {
        box-shadow: 0 0 0 3px var(--gold, #FFD700);
    }
    .member-photo.expanded {
        width: 200px;
        height: 200px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 0 0 3px var(--gold, #FFD700);
        z-index: 10;
    }
    .member-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
        border-radius: 50%;
        pointer-events: none;
    }
    .member-initial {
        font-size: 2rem;
        font-weight: bold;
        color: var(--forest-green, #2e7d32);
    }
    .member-name {
        font-weight: bold;
        font-size: 1.18rem;
        color: var(--forest-green, #2e7d32);
    }
    .member-desc {
        font-size: 1.2rem;
        color: #222;
        font-weight: 400;
    }
    /* Tiimimme työntekijälaatikot */
    .team-members {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: space-between;
    }
    .team-member {
        background: #fff;
        border-radius: 14px;
        border: 2px solid var(--gold, #e6c200);
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        padding: 1.3rem 1.2rem 1.1rem 1.2rem;
        min-width: 180px;
        max-width: 220px;
        flex: 1 1 180px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .member-name {
        font-weight: bold;
        font-size: 1.18rem;
        margin-bottom: 0.7rem;
        color: var(--forest-green, #2e7d32);
    }
    .member-desc {
        font-size: 1.05rem;
        color: #222;
        font-weight: 400;
    }
    /* Leveä tiimimme-laatikko */
    .team-wide-card {
        background: linear-gradient(180deg, #ffffff 0%, #fafcf8 100%);
        border-radius: 20px;
        border: 1.5px solid rgba(198, 157, 52, 0.55);
        box-shadow: 0 10px 28px rgba(24, 52, 35, 0.08);
        padding: 2.2rem 2.5rem 2.2rem 2.5rem;
        max-width: 1500px;
        width: 100%;
        margin: 0.1rem auto 0.1rem auto;
    }
    .team-wide-title {
        font-size: 2rem;
        color: var(--forest-green, #2e7d32);
        font-weight: bold;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    .team-wide-desc {
        font-size: 1.2rem;
        color: #222;
        font-weight: 400;
    }
    /* Tiimimme-laatikko */
    .team-card {
        background: #fff;
        border-radius: 16px;
        border: 2.5px solid var(--gold, #e6c200);
        box-shadow: 0 2px 16px rgba(0,0,0,0.10);
        padding: 2.2rem 2.5rem 2.2rem 2.5rem;
        max-width: 600px;
        margin: 2.5rem auto 2.5rem auto;
    }
    .team-title {
        font-size: 2.2rem;
        color: var(--forest-green, #2e7d32);
        font-weight: bold;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    .team-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        color: #222;
    }
    .team-content p {
        font-size: 1.25rem;
        color: #222;
    }
    /* Arvomme-osion laatikot */
    .values-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin: 0.7rem 0 0.7rem 0;
    }
    .value-row {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    .value-card {
        background: linear-gradient(180deg, #ffffff 0%, #fafcf8 100%);
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(24, 52, 35, 0.07);
        border: 1.5px solid rgba(198, 157, 52, 0.35);
        padding: 1.8rem 1.6rem 1.5rem 1.6rem;
        min-width: 260px;
        max-width: 460px;
        flex: 1 1 30%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        cursor: pointer;
    }
    .value-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 34px rgba(255, 215, 0, 0.30);
        border-color: var(--gold, #FFD700);
        background: linear-gradient(180deg, #fff8d9 0%, var(--gold, #FFD700) 100%);
    }
    .value-card:hover .value-title,
    .value-card:hover .value-desc {
        color: #111;
    }
    .value-title {
        font-weight: bold;
        font-size: 1.35rem;
        margin-bottom: 0.7rem;
        color: var(--forest-green, #2e7d32);
    }
    .value-desc {
        font-size: 1.15rem;
        color: #222;
        font-weight: 400;
    }
    .review-form-section.modal-content {
        position: relative;
        padding-top: 3.2rem; /* Height of close button */
        display: flex;
        flex-direction: column;
    }
    .review-form-section.modal-content .close-modal {
        align-self: flex-end;
        position: sticky;
        top: 0;
        z-index: 2100;
        font-size: 2.2rem;
        background: #fff;
        border: none;
        color: var(--forest-green);
        cursor: pointer;
        padding: 0.2em 0.4em;
        width: 3.2rem;
        height: 3.2rem;
        border-radius: 0 0 0 1.6rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .review-form-modal .review-form textarea#comment {
        resize: none;
    }
    .review-form-modal .review-form p {
        font-size: 0.9em;
        font-weight: bold;
    }
    .review-form-modal .review-form .form-group label {
        font-weight: bold;
    }
    .review-form-modal .review-form .form-group small {
        font-size: 0.9em;
    }
    /* Lisää selkeä väli kysymysten väliin popup-lomakkeessa */
    .review-form-modal .review-form .form-group {
        margin-bottom: 1.5em !important;
    }
    /* Ensure review form text is left-aligned in the popup modal */
    .review-form-modal .review-form {
        text-align: left;
    }
    .review-form-section.modal-content h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--forest-green);
}
/* Meistä, Tiimimme ja Ota yhteyttä -osiot vihreäksi */


/* Korjataan linkkien ja otsikoiden värit vihreällä taustalla */
.content-section a,
#tiimimme a,
.contact-section a {
    color: var(--gold);
    font-weight: 500;
}
.content-section h2,
#tiimimme h2,
.contact-section h2,
.content-section h3,
#tiimimme h3,
.contact-section h3 {
    color: var(--gold);
}
/* FAB-arvostelupainike oikeaan alakulmaan */
/* FAB-arvostelupainike oikeaan alakulmaan, leveä ja suorakaiteen muotoinen */
.fab {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    min-width: 180px;
    height: 44px;
    border-radius: 16px;
    background: var(--forest-green, #2e7d32);
    color: #fff;
    font-size: 1.25rem;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    transition: background 0.2s;
    font-weight: 600;
    letter-spacing: 0.03em;
    pointer-events: auto;
}
.fab:hover {
    background: #2e7d32;
}
.fab-review:hover {
    background: #2e7d32;
}

/* Popup-arvostelulomake keskelle näyttöä */
.review-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.review-modal-content {
.review-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    padding: 2rem 2.2rem 1.2rem 2.2rem;
    width: 33vw;
    height: 25vh;
    min-width: 220px;
    max-width: 600px;
    min-height: 180px;
    max-height: 600px;
    overflow-y: auto;
    background: #fff !important;
    border: 2px solid #eee;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    font-size: 1.08rem;
    color: #222;
    position: relative;
    border: 1.5px solid #eee;
}
.close-modal-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.close-modal-btn:hover {
    color: #c00;
}
}
.review-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: var(--forest-green, #2e7d32);
}
.review-modal-content label {
    display: block;
    margin-bottom: 0.7rem;
    color: #222;
    font-weight: 500;
.radio-scale {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    margin: 0.3rem 0 0.7rem 0;
    justify-content: flex-start;
    align-items: center;
}
.radio-scale label {
    font-weight: 400;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
}
.radio-scale input[type="radio"] {
    margin-bottom: 0.15rem;
}
}
.review-modal-content input,
.review-modal-content select,
.review-modal-content textarea {
    width: 100%;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 1rem;
    box-sizing: border-box;
}
.review-modal-content button[type="submit"] {
    background: var(--forest-green, #2e7d32);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.6rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.review-modal-content button[type="submit"]:hover {
    background: #2e7d32;
}
.review-modal-content button[type="button"] {
    background: #eee;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.6rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 0.5rem;
}
/* Ponnahdusikkuna keskelle näyttöä */
.popup-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.popup-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 2rem 2.5rem;
    font-size: 1.2rem;
    color: #222;
    text-align: center;
    min-width: 320px;
    max-width: 90vw;
}
.popup-box button {
    margin-top: 1.2rem;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background: var(--forest-green, #2e7d32);
    color: #fff;
    cursor: pointer;
}
.service-card:hover, .service-card:focus {
    /* Poistettu yleinen kultainen teksti hoverilta, jotta Luotettavuus pysyy mustana */
}

/* Luotettavuus-laatikon teksti pysyy mustana myös hoverissa */
#luotettavuus-teksti, .scratch-card:hover #luotettavuus-teksti {
    color: #000 !important;
}
/* Ensure contact form fields get green border on focus */
.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="tel"]:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: var(--forest-green) !important;
    outline: none;
}
.gold {
    color: var(--gold) !important;
    fill: var(--gold) !important;
    border-color: var(--gold) !important;
}
/* Reduce width to prevent horizontal scroll */
/* Header content: full width, no centering, no background */
/* Header content: full width, green background */
/* Fix: use 100% width to avoid horizontal scroll */
.header-container {
    width: 100%;
    margin: 0;
    padding: 0 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--forest-green);
}
/* Logo and text tight left, menu right */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: auto;
}
.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 1.2rem;
    letter-spacing: 0.03em;
}
header .company-name {
    color: var(--gold, #FFD700) !important;
}
/* Hamburger menu to far right */
.menu-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: 1.5rem;
    background: none;
    border: none;
    padding: 0;
}
.menu-icon::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M15 9h8v6h-2'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: 0.3s;
}
#menu-toggle:checked + .menu-icon::before {
    transform: rotate(45deg);
}
.menu-icon span {
    display: none;
}
#menu-toggle {
    display: none;
}
.menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    position: absolute;
    top: 60px;
    right: 0;
    border-radius: 0 0 0 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1001;
    background: var(--forest-green) !important;
}

.menu.gold {
    background: var(--forest-green) !important;
}
#menu-toggle:checked + .menu-icon + .menu {
    display: flex;
}
@media (max-width: 900px) {
    .menu,
    .menu.gold {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--forest-green) !important;
        flex-direction: column;
        width: 220px;
        border-radius: 0 0 0 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        z-index: 1001;
    }
    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }
}
/* Submenu styles */
.submenu {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    background: var(--forest-green);
    border-radius: 0 0 0 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 0.8rem 1.2rem;
    list-style: none;
    z-index: 1002;
}
.menu li:hover > .submenu {
    display: block;
}
.menu.gold > li > a {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.3em 0;
}
.submenu li a {
    color: var(--gold) !important;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.3rem 0;
    position: relative;
}
.submenu li a::before {
    content: "\2013  ";
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 0.2em;
}
.menu a, .menu button {
    color: var(--gold) !important;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}
.menu a.active, .menu a:hover, .menu button:hover {
    background: var(--gold);
    color: var(--forest-green) !important;
}
/* Footer-tyyli staattisen mukaiseksi */
footer {
    background: var(--forest-green);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem 1.2rem 1rem;
    font-size: 1rem;
    border-top: 3px solid var(--gold);
    margin-top: 3rem;
}
footer a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--white);
}
.review-form-section {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    max-height: 600px;
    overflow-y: auto;
    background: var(--light-gray);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2rem 1.2rem;
    border: 2px solid var(--gold);
}

.review-form-section h3 {
    color: var(--forest-green);
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Contact form usability improvements */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container textarea {
    padding: 0.9rem 1.1rem;
    font-size: 1.1rem;
    height: 2.7rem;
    min-height: 2.7rem;
    box-sizing: border-box;
        border: 2px solid var(--gold);
        transition: border-color 0.2s;
    }
.form-container select {
    padding: 0.7rem 1.1rem;
    font-size: 1.1rem;
    height: auto;
    min-height: 2.7rem;
    box-sizing: border-box;
        border: 2px solid var(--gold);
        transition: border-color 0.2s;
    }
.form-container textarea {
    min-height: 6.5rem;
    height: auto;
    resize: vertical;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-green);
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
    margin: 0.2rem 0 0.5rem 0;
    display: block;
    line-height: 1.5;
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--gray);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.2s;
}
.review-form input[type="text"]:focus,
.review-form select:focus,
.review-form textarea:focus {
    border-color: var(--forest-green);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.rating-scale {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.scale-labels {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.98rem;
    color: #555;
    margin: 0.3rem 0 0.3rem 0;
}
.stars {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.2rem;
}
.stars label {
    font-size: 1.15rem;
    color: var(--forest-green);
    cursor: pointer;
}
.stars label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 2px;
    vertical-align: middle;
    accent-color: var(--forest-green, #2e7d32);
}

.review-form button[type="submit"] {
    margin-top: 0.7rem;
    padding: 0.7rem 1.2rem;
    background: var(--forest-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.review-form button[type="submit"]:hover {
    background: var(--gold);
    color: var(--forest-green);
}
    .form-container button[type="submit"] {
        margin-top: 1.5rem;
        padding: 1.1rem 2.2rem;
        background: var(--forest-green);
        color: var(--gold);
        border: none;
        border-radius: 8px;
        font-size: 1.25rem;
        font-weight: 800;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, box-shadow 0.2s;
        box-shadow: 0 3px 12px rgba(0,0,0,0.10);
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
    .form-container button[type="submit"]:hover,
    .form-container button[type="submit"]:active {
        background: var(--gold);
        color: var(--forest-green);
        box-shadow: 0 4px 16px rgba(123,160,91,0.15);
    }
/* Hakukenttä ja hakunappi */
.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}
.search-input, #search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    background: var(--light-gray);
    color: var(--black);
    transition: border-color 0.2s;
}
.search-input:focus, #search-input:focus {
    border-color: var(--forest-green);
}
.search-button, #search-button {
    padding: 0.6rem 1.2rem;
    background: var(--forest-green);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.search-button:hover, #search-button:hover {
    background: var(--gold);
    color: var(--forest-green);
}
/* Kartta ja arvostelulomake rinnakkain */
/* Kartta täyttää koko sivun headerin alla */
.map-fullscreen-section {
    position: relative;
    width: 100vw;
    height: calc(100vh - 56px); /* headerin korkeus */
    margin: 0;
    padding: 0;
    overflow: hidden;
}
/* Kartta reunasta reunaan */
#map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    margin: 0;
    z-index: 1;
    border: none;
    border-radius: 0;
    position: relative;
}
.floating-search {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1006;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    min-width: 260px;
    max-width: 420px;
    width: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.leaflet-top.leaflet-right {
    top: 28px !important;
    right: 24px !important;
    z-index: 1004 !important;
}
/* Lock button alignment — smaller and aligned with search */
#mapLockBtn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#mapLockBtn svg {
    width: 16px !important;
    height: 16px !important;
}
/* FAB-arvostelupainike kartan sisällä oikeaan alakulmaan */
.fab:hover {
    background: #2e7d32;
}

/* Modal arvostelulomakkeelle */
.review-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-form-section.modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    padding: 0;
    width: 70vw;
    max-width: 600px;
    min-width: 260px;
    height: 120vh;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}
.modal-title-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0.7rem 3.2rem 0 3.2rem;
    text-align: center;
    font-size: 2rem;
    color: var(--forest-green);
    font-weight: bold;
    z-index: 5;
    line-height: 2.8rem;
    pointer-events: none;
}
.modal-scrollable {
    overflow-y: auto;
    max-height: calc(120vh - 2.8rem);
    padding: 2.8rem 2.2rem 2.2rem 2.2rem;
    box-sizing: border-box;
}
.close-modal {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--forest-green);
    cursor: pointer;
    z-index: 10;
    padding: 0;
    width: 2.8rem;
    height: 2.8rem;
    line-height: 2.8rem;
    text-align: center;
}
.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-left: 1.2rem;
    letter-spacing: 0.03em;
}
/* PeacePlease Oy - Värimaailma ja tyylit */

:root {
    --gold: #FFD700;
    --forest-green: #2e7d32;
    --dark-green: #1b5e20;
    --black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}
/* Elegant heading fonts with Consolas */
h1, h2, h3, h4, h5, h6, .opas-card-title, .opas-panel-header {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Header ja navigaatio */
header {
    background-color: var(--forest-green);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
}

.header-container {
    width: 100vw;
    margin: 0;
    padding: 0 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-placeholder {
    height: 44px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-placeholder img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--gold);
    color: var(--forest-green);
}

nav a.active {
    background-color: var(--gold);
    color: var(--forest-green);
}

/* Kielivalitsin — kaksi riviä: FI EN SV / DE ES */
.language-selector {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 0.3rem 0.5rem;
    border-left: 1px solid var(--gold);
    padding-left: 1.5rem;
    background: var(--forest-green);
}

.language-selector button {
    background: var(--forest-green);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-selector button:hover,

.language-selector button:hover {
    background-color: var(--gold);
    color: var(--forest-green);
    border-color: var(--gold);
}

.language-selector button.active {
    background-color: var(--gold);
    color: var(--forest-green);
    border-color: var(--gold);
    font-weight: bold;
}

/* Pääsisältö */
body {
    font-family: "Segoe UI", Inter, Arial, sans-serif !important;
    background: linear-gradient(180deg, #f7f7f2 0%, #f1f4ee 100%);
    color: #17231c;
}

main {
    max-width: 1800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero-osio */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%);
    color: var(--black);
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1.5px solid rgba(198, 157, 52, 0.55);
    box-shadow: 0 10px 28px rgba(24, 52, 35, 0.08);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--forest-green);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--black);
}

/* Sisältöosiot */
.content-section {
    margin: 3rem 0;
    padding: 2.5rem 3.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafcf8 100%);
    color: var(--black);
    border-radius: 20px;
    border: 1.5px solid rgba(198, 157, 52, 0.55);
    box-shadow: 0 10px 28px rgba(24, 52, 35, 0.08);
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2 {
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}
.content-section h3 {
    font-size: 1.6rem;
    color: var(--forest-green);
    font-size: 1.6rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--black);
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.2rem;
}
    background: var(--forest-green) !important;

/* Palvelukortti */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    justify-items: center;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%);
    padding: 2.2rem 2.5rem;
    border-radius: 18px;
    border: 1.5px solid rgba(198, 157, 52, 0.55);
    box-shadow: 0 8px 24px rgba(24, 52, 35, 0.07);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
}

/* ===== Review popup styles ===== */
.review-popup { font-family: inherit; font-size: 1rem; max-height: 550px; overflow-y: auto; overflow-x: hidden; min-width: min(340px, 84vw); width: min(420px, 84vw); max-width: 100%; padding-right: 2px; box-sizing: border-box; }
.review-popup::-webkit-scrollbar { width: 6px; }
.review-popup::-webkit-scrollbar-thumb { background: #bbb; border-radius: 3px; }
.review-popup::-webkit-scrollbar-track { background: #f5f5f5; }
.review-popup-container .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 10px 28px rgba(24, 52, 35, 0.12); border: 1px solid rgba(198, 157, 52, 0.35); }
.review-popup-container .leaflet-popup-content { margin: 12px 14px; max-height: 560px; overflow-y: auto; overflow-x: hidden; width: min(84vw, 420px); box-sizing: border-box; }
.review-popup-container .leaflet-popup-close-button { display: flex !important; align-items: center; justify-content: center; width: 28px !important; height: 28px !important; top: 8px !important; right: 8px !important; color: #2e7d32 !important; background: rgba(255,255,255,0.96); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.12); font-size: 20px !important; line-height: 1 !important; } /* Näytä sulkunappi myös mobiilissa */
.review-popup-header { margin-bottom: 0.5em; border-bottom: 2px solid #2e7d32; padding-bottom: 0.4em; }
.review-item { border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 0.45em; overflow: hidden; }
.review-summary-row { padding: 0.5em 0.7em; background: #f9f9f9; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.review-summary-row:hover { background: #f0f7f0; }
.review-details-row { padding: 0.6em 0.9em; font-size: 1.05rem; background: #fff; }
.review-info-btn { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #2e7d32; color: #2e7d32; font-size: 0.72rem; font-weight: 700; cursor: pointer; vertical-align: middle; margin-left: 3px; }
#reviewMiniMap { width: 100%; height: 180px; border-radius: 8px; border: 1.5px solid #ccc; margin-top: 0.4em; z-index: 1; }
/* MarkerCluster custom styles */
.marker-cluster-custom { background: transparent !important; }
/* Klusterin pinni-markkeri (kaupunkitaso) */
.cluster-pin-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 50px;
}
.cluster-pin-wrapper img {
    display: block;
}
.cluster-pin-count {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    pointer-events: none;
}
.cluster-icon { background: #2e7d32; color: #fff; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.cluster-small { background: #2e7d32; }
.cluster-medium { background: #e65100; }
.cluster-large { background: #c62828; }
/* Kaupunkitason klusterimarkkerit */
.cluster-city-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    border: 2.5px solid #fff;
    transform: translate(-50%, -50%);
}
.cluster-city-large {
    background: #2e7d32;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 14px;
}
.cluster-city-small {
    background: #2e7d32;
    color: #fff;
    font-size: 0.82rem;
    padding: 4px 10px;
}
.cluster-city-name {
    line-height: 1.2;
}
/* Favorite button in popup */
.popup-favorite-btn { transition: color 0.2s, transform 0.2s; }
.popup-favorite-btn:hover { transform: scale(1.2); }
/* Per-entrance popup list (0126) */
.popup-entrance-list { padding: 0.1em 0; overflow-x: hidden; }
.popup-ent-row { display: flex; align-items: center; justify-content: space-between; gap: 0.45em; padding: 0.45em 0.35em 0.6em; border-bottom: 1px solid #eee; flex-wrap: wrap; min-width: 0; }
.popup-ent-label { flex: 1 1 calc(100% - 52px); font-size: 0.82rem; min-width: 0; white-space: normal; word-break: break-word; line-height: 1.35; }
.popup-ent-circle { flex-shrink: 0; margin-left: auto; }
.popup-ticket-btn { background: #2e7d32; color: #fff; border: none; border-radius: 8px; padding: 0.5em 1em; font-size: 0.79rem; font-weight: 600; cursor: pointer; white-space: normal; display: inline-flex; justify-content: center; width: fit-content; max-width: 100%; margin: 0.3em auto 0; text-align: center; flex: 0 0 100%; align-self: center; }
.popup-ticket-btn:hover { background: #1b5e20; }
.popup-show-btn { background: #f1f8e9; color: #2e7d32; border: 1px solid #2e7d32; }
.popup-show-btn:hover { background: #e8f5e9; }

/* Näytä kartalla -nappi profiilisivulla */
.show-on-map-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.1em 0.4em;
    color: #2e7d32;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}
.show-on-map-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Custom popup-dialogi (korvaa alert/confirm) */
.custom-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: auto;
}
.custom-popup-overlay.show {
    opacity: 1;
}
.custom-popup-dialog {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    padding: 2em 2.2em 1.5em;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.2s;
}
.custom-popup-overlay.show .custom-popup-dialog {
    transform: scale(1);
}
.custom-popup-message {
    font-size: 1.05rem;
    color: #333;
    margin: 0 0 1.3em;
    line-height: 1.5;
    white-space: pre-line;
}
.custom-popup-buttons {
    display: flex;
    gap: 0.8em;
    justify-content: center;
}
.custom-popup-btn {
    padding: 0.55em 1.8em;
    border: none;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.custom-popup-btn:active {
    transform: scale(0.96);
}
.custom-popup-ok {
    background: #2e7d32;
    color: #fff;
}
.custom-popup-ok:hover {
    background: #2e7d32;
}
.custom-popup-cancel {
    background: #e0e0e0;
    color: #333;
}
.custom-popup-cancel:hover {
    background: #bdbdbd;
}

/* ===== TICKET CONFIRM CARD ===== */
.ticket-confirm-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(0,0,0,0.22);
    width: 92%;
    max-width: 400px;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.2s;
    font-family: inherit;
}
.custom-popup-overlay.show .ticket-confirm-card {
    transform: scale(1);
}
.tcc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.2em 0.9em;
    gap: 0.5em;
}
.tcc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}
.tcc-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: #aaa;
    cursor: pointer;
    padding: 0.1em 0.2em;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.tcc-close:hover { color: #333; background: #f0f0f0; }
.tcc-divider {
    height: 1px;
    background: #eee;
    margin: 0;
}
.tcc-content {
    padding: 1em 1.2em 0.9em;
}
.tcc-desc {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 0.55em;
}
.tcc-address-row {
    display: flex;
    align-items: center;
    gap: 0.35em;
    margin-bottom: 0.7em;
}
.tcc-pin {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}
.tcc-address {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.tcc-badge {
    display: inline-block;
    background: #f0f7f0;
    color: #2e7d32;
    border: 1.5px solid #c8e6c9;
    border-radius: 20px;
    padding: 0.25em 0.85em;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.1em;
}
.tcc-extra {
    background: #fff8e1;
    border-left: 3px solid #f9a825;
    border-radius: 4px;
    padding: 0.45em 0.7em;
    margin-top: 0.6em;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
}
.tcc-footer {
    padding: 0.85em 1.2em 1.1em;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}
.tcc-remaining {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
}
.tcc-remaining strong {
    color: #2e7d32;
    font-size: 1rem;
}
.tcc-buttons {
    display: flex;
    gap: 0.7em;
}
.tcc-btn-secondary, .tcc-btn-primary {
    flex: 1;
    padding: 0.6em 0.5em;
    border: none;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.tcc-btn-secondary:active, .tcc-btn-primary:active { transform: scale(0.97); }
.tcc-btn-secondary {
    background: #f0f0f0;
    color: #444;
}
.tcc-btn-secondary:hover { background: #e0e0e0; }
.tcc-btn-primary {
    background: #2e7d32;
    color: #fff;
}
.tcc-btn-primary:hover { background: #2e7d32; }
@media (max-width: 440px) {
    .ticket-confirm-card { max-width: 98vw; border-radius: 12px; }
    .tcc-buttons { flex-direction: column; }
    .tcc-btn-secondary { order: 1; }
    .tcc-btn-primary { order: 2; }
    .custom-popup-buttons {
        flex-direction: column;
    }
    .custom-popup-cancel { order: 1; }
    .custom-popup-ok { order: 2; }
}



/* ===== LÄHIPALVELUT (vertailunäkymä) ===== */
.nearby-services-placeholder { margin-top: 0.8em; }
.nearby-loading { font-size: 0.78rem; color: #aaa; padding: 0.2em 0; }
.nearby-services {
    margin-top: 0.8em;
    border-top: 1.5px solid #e8f5e9;
    padding-top: 0.6em;
    font-size: 0.82rem;
}
.nearby-header {
    font-weight: 700;
    color: #2e7d32;
    font-size: 0.84rem;
    margin-bottom: 0.45em;
    letter-spacing: 0.01em;
}
.nearby-row {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.22em 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.3;
}
.nearby-row:last-of-type { border-bottom: none; }
.nearby-row-missing { opacity: 0.45; }
.nearby-icon { flex: 0 0 1.3em; text-align: center; font-size: 0.95em; }
.nearby-label {
    flex: 1 1 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nearby-dist {
    flex: 0 0 auto;
    color: #555;
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
    white-space: nowrap;
}
.nearby-approx { color: #b8860b; font-weight: 700; margin-right: 1px; }
.nearby-source {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 0.4em;
    text-align: right;
}
.nearby-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #c8e6c9;
    border-top-color: #2e7d32;
    border-radius: 50%;
    animation: nearbySpin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes nearbySpin {
    to { transform: rotate(360deg); }
}

/* Lock-blink animaatio punaisena vilkkumisella */
@keyframes lockBlinkAnim {
    0%, 100% { background: #ffebee; box-shadow: 0 0 0 0 rgba(198,40,40,0); }
    25% { background: #ef5350; box-shadow: 0 0 8px 2px rgba(198,40,40,0.5); }
    50% { background: #c62828; box-shadow: 0 0 12px 4px rgba(198,40,40,0.7); }
    75% { background: #ef5350; box-shadow: 0 0 8px 2px rgba(198,40,40,0.5); }
}
.lock-blink {
    animation: lockBlinkAnim 0.4s ease-in-out 4 !important;
    border-radius: 4px;
}

/* Arvosteluopas FAB-nappi vasempaan alakulmaan */
/* Arvosteluopas-nappi vasempaan ylänurkkaan hakukentän alle */
.opas-fab {
    position: absolute;
    top: 82px;
    left: 24px;
    z-index: 1001;
    min-width: 170px;
    height: 38px;
    border-radius: 10px;
    font-size: 1rem;
    background: var(--forest-green, #2e7d32);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-weight: 600;
    pointer-events: auto;
    transition: background 0.2s;
}
.opas-fab:hover {
    background: #2e7d32;
}
/* Arvosteluopas-sivupaneeli — Modern Nordic Minimal Design */
.opas-panel {
    position: absolute;
    top: 78px;
    left: 10px;
    bottom: 10px;
    z-index: 1004;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
.opas-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.2em;
    background: linear-gradient(135deg, #2e7d32 0%, #2e7d32 50%, #2e7d32 100%);
    color: #fff;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.opas-panel-header span {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}
.opas-panel-close {
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #fff;
    padding: 0.2em 0.55em;
    border-radius: 8px;
    line-height: 1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.opas-panel-close:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.08);
}
.opas-panel-body {
    padding: 0.9em 1em;
    overflow-y: auto;
    flex: 1;
    font-size: 0.89rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.65em;
}
/* Card style — Modern elegant */
.opas-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
    padding: 0.8em 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.opas-card:hover {
    border-color: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.12);
    transform: translateY(-1px);
}
.opas-card-highlight {
    background: linear-gradient(135deg, #fffde7 0%, #ffffe0 100%);
    border-color: #ffd54f;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.15);
}
.opas-card-header {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 0.4em;
}
.opas-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    transition: all 0.3s ease;
}
.opas-card:hover .opas-icon-circle {
    background: linear-gradient(135deg, #c8e6c9 0%, #dcedc8 100%);
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.15);
}
.opas-card-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1b5e20;
    line-height: 1.35;
    letter-spacing: 0.2px;
}
.opas-card-desc {
    color: #555;
    font-size: 0.85rem;
    margin: 0 0 0.35em 0;
    padding-left: 0.1em;
    line-height: 1.55;
}
.opas-scale-bar {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    font-size: 0.78rem;
    color: #666;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 8px;
    padding: 0.45em 0.65em;
    border: 1px solid #c8e6c9;
    transition: all 0.25s ease;
}
.opas-card:hover .opas-scale-bar {
    background: linear-gradient(135deg, #c8e6c9 0%, #dcedc8 100%);
}
.opas-infobox {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 10px;
    padding: 0.65em 0.85em;
    font-size: 0.84rem;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    transition: all 0.25s ease;
}
.opas-infobox:hover {
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.12);
}
.opas-infobox b { color: #1b5e20; font-weight: 700; }
.opas-infobox span { color: #555; }
/* Color grid in card */
.opas-color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4em 0.6em;
    margin-top: 0.2em;
}
.opas-color-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.84rem;
    transition: all 0.25s ease;
    padding: 0.3em;
    border-radius: 6px;
}
.opas-color-item:hover {
    background: rgba(46, 125, 50, 0.05);
}
.opas-color-item b { color: #1b5e20; font-size: 0.84rem; font-weight: 700; }
.opas-color-desc { color: #777; font-size: 0.78rem; }
.opas-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

/* ===== MOBIILIKORJAUKSET (max-width: 768px) — ei muuta tietokoneen näkymää ===== */
@media (max-width: 768px) {

    /* Header */
    .header-container {
        padding: 0.5rem 0.8rem;
    }
    .logo-placeholder img {
        height: 36px;
    }
    .company-name {
        font-size: 1.1rem !important;
    }

    /* Kielivalitsin — isompi kosketusalue mobiilissa */
    .language-selector button {
        padding: 0.45rem 0.8rem !important;
        font-size: 1rem !important;
        touch-action: manipulation !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    /* Kirjautumismodaali */
    .login-modal-box {
        min-width: unset !important;
        max-width: 98vw !important;
        width: 96vw !important;
        padding: 1.4em 1em 1em 1em !important;
    }

    /* Pääsisältö */
    body:not(.home-page) main {
        padding: 0.5em !important;
    }
    body.home-page main {
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Etusivu — kartta */
    #map {
        height: calc(100dvh - 72px) !important;
    }

    /* Hakukenttä — pienempi, jää tilaa lukolle */
    .floating-search {
        top: 10px !important;
        left: 10px !important;
        max-width: calc(100vw - 90px) !important;
        min-width: unset !important;
        padding: 0.4rem 0.7rem !important;
        z-index: 1006 !important;
    }
    .floating-search input {
        font-size: 0.9rem !important;
        height: 30px !important;
        padding: 0.2em 0.5em !important;
    }
    .floating-search button {
        height: 30px !important;
        font-size: 0.85rem !important;
        padding: 0 0.5em !important;
    }

    /* Näytä lukko myös mobiilissa, mutta pidä se kompaktina */
    #mapLockBtn {
        display: flex !important;
        width: 38px !important;
        height: 38px !important;
        touch-action: manipulation !important;
    }
    #mapLockBtn svg {
        width: 18px !important;
        height: 18px !important;
    }
    .leaflet-top.leaflet-right {
        top: 10px !important;
        right: 10px !important;
    }

    /* Arvosteluopas FAB — hakukentän alle */
    .opas-fab {
        top: 58px !important;
        left: 10px !important;
        min-width: 120px !important;
        font-size: 0.82rem !important;
        height: 30px !important;
        z-index: 1003 !important;
    }
    .opas-panel {
        top: 96px !important;
        left: 4px !important;
        right: 4px !important;
        width: auto !important;
        max-width: 100vw !important;
        bottom: 4px !important;
        z-index: 1003 !important;
    }

    /* Meistä-sivu — tiimi */
    .team-wide-card {
        padding: 1rem 0.8rem !important;
    }
    .team-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.7rem !important;
        text-align: center;
    }
    .member-photo {
        width: 70px !important;
        height: 70px !important;
    }
    .member-photo.expanded {
        width: 140px !important;
        height: 140px !important;
    }
    .member-name {
        font-size: 1rem !important;
    }
    .member-desc {
        font-size: 0.97rem !important;
    }

    /* Meistä-sivu — arvot */
    .value-row {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    .value-card {
        min-width: unset !important;
        max-width: 100% !important;
        padding: 1.1rem 1rem !important;
    }
    .value-title {
        font-size: 1.1rem !important;
    }
    .value-desc {
        font-size: 0.97rem !important;
    }

    /* Omat tiedot -sivu */
    .profile-container {
        padding: 1rem 0.7rem !important;
        margin: 0.5rem auto !important;
    }
    #compareGrid {
        grid-template-columns: 1fr !important;
    }
    .viewed-list-item {
        font-size: 0.88rem !important;
        padding: 0.5em 0.6em !important;
    }

    /* Review popup kartalla */
    .review-popup {
        min-width: unset !important;
        max-width: 88vw !important;
        max-height: 52vh !important;
        font-size: 0.97rem !important;
    }
    .leaflet-popup-content-wrapper {
        max-width: 92vw !important;
    }
    .leaflet-popup-content {
        max-width: 88vw !important;
        margin: 10px 10px !important;
    }
    .custom-marker-icon,
    .marker-cluster-custom {
        transform: scale(0.78);
        transform-origin: center bottom;
    }

    /* Hakukenttä kartalla */
    #search-bar-container,
    .search-bar-container {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        top: 8px !important;
    }
    #search-input,
    .search-input {
        font-size: 1rem !important;
        height: 36px !important;
    }

    /* FAB jätä arvostelu -nappi */
    .fab-btn,
    #fabBtn {
        bottom: 18px !important;
        right: 14px !important;
        font-size: 0.88rem !important;
        padding: 0.55em 1em !important;
    }

    /* Arvostelulomakemodaali */
    .review-modal-inner,
    .review-form-section {
        padding: 0.8rem 0.7rem !important;
        max-height: 92vh !important;
        min-width: unset !important;
        max-width: 98vw !important;
        width: 98vw !important;
    }

    /* Palvelut-sivu */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .service-card {
        padding: 1.2rem 1rem !important;
    }

    /* Contact-lomake */
    .form-container {
        padding: 1rem 0.7rem !important;
    }

    /* Yleinen typografia */
    h1 { font-size: 1.4rem !important; }
    h2 { font-size: 1.15rem !important; }
    .content-section {
        padding: 0.8rem !important;
    }
}
