:root {
    --ink: #18333a;
    --muted: #65777a;
    --paper: #f5f7f3;
    --card: #ffffff;
    --line: #dce5e1;
    --accent: #d6673d;
    --accent-dark: #ae4d2b;
    --mint: #d9ece5;
    --shadow: 0 16px 40px rgba(24, 51, 58, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.5;
}
a { color: inherit; }
.site-header {
    color: #f9fbf6;
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 5;
}
.header-inner {
    max-width: 1180px;
    margin: auto;
    min-height: 76px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { font-size: 24px; font-weight: bold; text-decoration: none; letter-spacing: 0; }
.brand span { color: var(--accent); }
.menu-btn {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 3px;
    padding: 8px 14px;
    color: #fff;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.menu-dropdown {
    display: none;
    position: absolute;
    right: 28px;
    top: 66px;
    min-width: 190px;
    padding: 8px;
    background: var(--ink);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: var(--shadow);
}
.menu-dropdown.is-open { display: grid; }
.menu-dropdown a { padding: 10px 12px; text-decoration: none; }
.menu-dropdown a:hover { background: rgba(255,255,255,.1); }
main { max-width: 1180px; margin: auto; padding: 72px 28px 0; }
.intro { max-width: 720px; padding: 20px 0 76px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font: 700 12px/1.2 Arial, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 { max-width: 650px; margin-bottom: 20px; font-size: clamp(42px, 7vw, 78px); font-weight: 400; letter-spacing: 0; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 400; }
.intro-text { max-width: 540px; color: var(--muted); font-size: 20px; }
.stats { display: flex; gap: 34px; margin-top: 38px; }
.stats div { display: grid; gap: 2px; }
.stats strong { font-size: 26px; font-weight: 400; }
.stats span, .result-count, .cottage-type, .card-details span { color: var(--muted); font: 13px Arial, sans-serif; }
.visitor-stats {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.visitor-stats div {
    display: grid;
    gap: 2px;
    padding-right: 24px;
}

.visitor-stats strong {
    font-size: 22px;
    font-weight: 400;
}

.visitor-stats span {
    color: var(--muted);
    font: 12px Arial, sans-serif;
}

@media (max-width: 560px) {
    .visitor-stats {
        flex-direction: column;
        gap: 12px;
    }

    .visitor-stats div {
        padding-right: 0;
    }
}
.listing-section { border-top: 1px solid var(--line); padding: 56px 0 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin-bottom: 0; }
.result-count { margin: 0 0 8px; }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 34px; padding: 18px; background: var(--mint); }
.filters label { display: grid; gap: 7px; color: var(--ink); font: 700 12px Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: #fff; font: 15px Arial, sans-serif; cursor: pointer; }
.cottage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cottage-card { min-width: 0; padding: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.cottage-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(24, 51, 58, .13); }
.cottage-card[hidden] { display: none; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; font: 700 12px Arial, sans-serif; text-transform: uppercase; letter-spacing: .7px; }
.location { color: var(--accent-dark); font: 400 27px/1.08 Georgia, 'Times New Roman', serif; letter-spacing: 0; text-transform: none; }
.status { padding: 5px 8px; border-radius: 20px; font-size: 10px; letter-spacing: .5px; }
.status-vapaa { color: #20614d; background: #d9ece5; }
.status-varattu { color: #785338; background: #f3e5d7; }
.cottage-card h3 { margin-bottom: 8px; font-size: 18px; font-weight: 400; overflow-wrap: anywhere; }
.cottage-type { margin: 0; }
.card-details { display: flex; gap: 24px; margin: 28px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.card-details div { display: grid; gap: 3px; min-width: 0; }
.card-details strong { overflow-wrap: anywhere; font-size: 17px; font-weight: 400; }
.card-contact { display: grid; gap: 4px; padding-top: 13px; border-top: 1px solid var(--line); font: 14px Arial, sans-serif; }
.contact-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.card-contact strong { font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 400; }
.card-contact a { width: fit-content; color: var(--accent-dark); overflow-wrap: anywhere; }
.primary-link { display: inline-flex; justify-content: space-between; gap: 14px; width: 100%; padding-top: 13px; border-top: 1px solid var(--line); color: var(--accent-dark); font: 700 14px Arial, sans-serif; text-decoration: none; }
.primary-link span { font-size: 19px; line-height: 12px; }
.no-results { padding: 34px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); font-size: 18px; }
.info-section { max-width: 680px; padding: 74px 0; border-top: 1px solid var(--line); }
.info-section h2 { margin-bottom: 18px; }
.info-section p:last-child { color: var(--muted); font-size: 18px; }
.contact-section { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 56px 0 80px; border-top: 1px solid var(--line); }
.contact-section h2 { margin: 0; }
.primary-link { width: auto; min-width: 250px; }
footer { padding: 24px 28px; color: #dbe8e2; background: var(--ink); font: 13px Arial, sans-serif; }
footer p { max-width: 1180px; margin: auto; }
@media (max-width: 800px) {
    main { padding-top: 44px; }
    .intro { padding-bottom: 54px; }
    .filters { grid-template-columns: repeat(2, 1fr); }
    .cottage-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-section { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
    .header-inner, main { padding-left: 18px; padding-right: 18px; }
    .header-inner { min-height: 64px; }
    .menu-dropdown { right: 18px; top: 57px; }
    h1 { font-size: 48px; }
    .stats { gap: 20px; }
    .stats strong { font-size: 22px; }
    .filters, .cottage-grid { grid-template-columns: 1fr; }
    .filters { padding: 14px; }
    .listing-section { padding-bottom: 64px; }
    .section-heading { align-items: start; flex-direction: column; }
    .result-count { margin: -12px 0 0; }
    .cottage-card { padding: 20px; }
    .contact-section { padding-bottom: 62px; }
    .primary-link { min-width: 0; width: 100%; }
}

/* Lomakkeen sivut */

.form-page {
    max-width: 820px;
    margin: auto;
    padding: 20px 0 100px;
}

.form-intro {
    max-width: 700px;
    padding: 20px 0 50px;
}

.form-intro h1 {
    margin-bottom: 20px;
}

.cottage-form {
    display: grid;
    gap: 24px;
}

.form-section {
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.form-section .eyebrow {
    margin-bottom: 24px;
}

.form-section label {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--ink);
    font: 700 12px Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-section label:last-child {
    margin-bottom: 0;
}

.form-section input,
.form-section textarea,
.form-section select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    background: #fff;
    font: 16px Arial, sans-serif;
}

.form-section textarea {
    resize: vertical;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
    outline: 2px solid var(--mint);
    border-color: var(--accent);
}

.form-help {
    margin: -10px 0 25px;
    color: var(--muted);
    font: 14px Arial, sans-serif;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 30px;
    background: var(--mint);
}

.form-submit strong {
    font-size: 22px;
    font-weight: 400;
}

.form-submit p {
    margin: 5px 0 0;
    color: var(--muted);
    font: 14px Arial, sans-serif;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 0;
    background: var(--accent);
    color: white;
    font: 700 14px Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.primary-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.week-group {
    margin-bottom: 64px;
}

.week-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.week-heading .eyebrow {
    margin: 0;
}

.week-heading h2 {
    margin: 0;
    font-size: 32px;
}

@media (max-width: 560px) {

    .form-page {
        padding-top: 10px;
        padding-bottom: 60px;
    }

    .form-section {
        padding: 20px;
    }

    .form-submit {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
    }

    .primary-button {
        width: 100%;
    }

}

.payment-code {
    display: inline-block;
    margin: 10px 0 20px;
    padding: 14px 18px;
    background: var(--mint);
    color: var(--ink);
    font: 700 20px Arial, sans-serif;
    letter-spacing: 1px;
}

.week-group {
    margin-bottom: 64px;
}

.week-group[hidden] {
    display: none;
}

.week-heading {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.week-heading h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
}

.week-heading .eyebrow {
    margin-bottom: 6px;
}