/* =========================================================
   Kylätalon tarina + Kylätalo-alavalikko
   ========================================================= */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-dropdown__main {
    display: flex;
    align-items: center;
}

.nav-dropdown__main::after {
    content: "⌄";
    margin-left: 5px;
    color: var(--green);
    font-size: 0.9em;
    line-height: 1;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% - 3px);
    left: -18px;
    z-index: 50;
    display: none;
    min-width: 210px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.nav-dropdown__menu a {
    display: block;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
    background: var(--green-pale);
    border: 0;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    display: block;
}

.nav-dropdown.is-active > .nav-dropdown__main {
    color: var(--green-hover);
    border-bottom-color: var(--green);
}

.story-cta {
    margin: 32px 0 42px;
    padding: 28px;
    background: var(--green-pale);
    border-radius: var(--radius);
}

.story-cta h3 {
    margin-top: 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.story-cta p {
    max-width: 620px;
}

.story-prose {
    max-width: 1040px;
}

.story-prose > p {
    max-width: 820px;
}

.story-lead {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--muted);
}

.story-feature {
    margin-top: 36px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.story-feature img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.story-gallery--build {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-gallery figure {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.story-gallery img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 390px;
    object-fit: cover;
}

.story-gallery figcaption {
    padding: 11px 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.story-gallery figure:has(figcaption) img {
    height: calc(100% - 48px);
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

@media (max-width: 1020px) {
    .nav-dropdown {
        display: block;
    }

    .nav-dropdown__main {
        width: 100%;
    }

    .nav-dropdown__menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 4px 18px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-dropdown__menu a {
        padding: 10px 8px;
        color: var(--green-hover);
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font-size: 0.88rem;
    }

    .nav-dropdown__main::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .story-gallery,
    .story-gallery--build {
        grid-template-columns: 1fr;
    }

    .story-gallery img {
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .story-feature img {
        min-height: 260px;
    }
}

/* =========================================================
   Kylätalon avajaiset
   ========================================================= */

.opening-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.opening-gallery figure {
    margin: 0;
    overflow: hidden;
    background: var(--green-pale);
    border-radius: 14px;
}

.opening-gallery__wide {
    grid-column: 1 / -1;
}

.opening-gallery img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 520px;
    object-fit: cover;
}

.opening-gallery__wide img {
    max-height: 680px;
    aspect-ratio: 16 / 9;
}

@media (max-width: 760px) {
    .opening-gallery {
        grid-template-columns: 1fr;
    }

    .opening-gallery__wide {
        grid-column: auto;
    }

    .opening-gallery img,
    .opening-gallery__wide img {
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 3;
    }
}

/* =========================================================
   Kylätalon vuokraustiedot
   ========================================================= */

.rental-info {
    margin-bottom: 42px;
}

.rental-facts {
    display: grid;
    gap: 12px;
    margin: 24px 0 28px;
}

.rental-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(78, 119, 95, 0.18);
}

.rental-fact strong {
    color: var(--ink);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 1.05rem;
}

.rental-fact span {
    color: var(--muted);
    font-size: 0.94rem;
}

.rental-contact {
    padding-top: 4px;
}

.rental-contact h3 {
    margin-bottom: 8px;
}

.rental-contact .actions {
    margin-top: 18px;
}

