/* Kamp Wodenča. Look carried over from the old Drupal "showcase_lite" theme. */

:root {
    --paper: #f7e7c9;
    --paper-line: #d7c8b5;
    --ink: #3b3b3b;
    --brown: #4e3c24;
    --tan: #9e8156;
    --button: #a16a42;
    --button-hover: #8a5634;
    --link: #1f6b1f;
    --sidebar-link: #005100;
    --footer-text: #b7ffb7;
    --footer-bg: rgba(9, 30, 10, .35);
    --header-bg: rgba(6, 5, 5, .35);
    --gold: #e7af2a;
    --page-width: 1170px;

    --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Charm', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Kaushan Script', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 400 14px/1.6 var(--font-body);
    color: var(--ink);
    background: #484840 url('../images/theme/blur.jpg') center / cover no-repeat fixed;
    position: relative;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--link); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 8px 16px;
    background: #fff;
    color: #000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- decoration and language switch, aligned to the window ---------- */

.maslina {
    position: absolute;
    top: 0;
    right: 120px;
    width: 176px;
    height: 150px;
    background: url('../images/theme/maslina.png') center / cover no-repeat;
    pointer-events: none;
    z-index: 140; /* under the header, as on the old site */
}

.languages {
    position: absolute;
    top: 7px;
    right: 15px;
    width: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    z-index: 170;
}
.languages a {
    display: block;
    width: 32px;
    height: 24px;
    overflow: hidden;
    opacity: .75;
    transition: opacity .2s;
}
.languages a:hover, .languages a:focus-visible, .languages a.is-active { opacity: 1; }
.languages img { display: block; width: 32px; height: 32px; margin-top: -4px; }

/* ---------- page frame ---------- */

.page {
    max-width: var(--page-width);
    margin: 0 auto;
    position: relative;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 15px;
    background: var(--header-bg);
    border-radius: 0 0 5px 5px;
    margin-bottom: 7px;
    position: relative;
    z-index: 150;
}

.branding {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.branding__logo { width: 80px; flex: none; }
.branding__text { display: flex; flex-direction: column; line-height: 1.2; }
.branding__name {
    font: 400 1.75em var(--font-display);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
}
.branding__slogan {
    font: 400 1.3em var(--font-heading);
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .8);
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.menu a {
    display: block;
    padding: 5px 10px;
    line-height: 50px;
    font: 400 1.2em/50px var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}
.menu a:hover, .menu a:focus-visible { color: orange; }
.menu a[aria-current="page"] { color: var(--gold); }

/* header slideshow: the first image shows without JS, site.js cross-fades the rest */
.slideshow {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .7s ease;
}
.slideshow img.is-active { opacity: 1; }

.paper-top {
    height: 30px;
    margin-top: -15px;
    position: relative;
    z-index: 10;
    background: url('../images/theme/pghor.png') repeat-x;
}

.paper {
    background: var(--paper) url('../images/theme/pbg1.png');
    padding: 10px 15px 30px;
    min-height: 300px;
    position: relative;
    z-index: 10;
}
.paper.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 30px;
}
.paper::after { content: ''; display: table; clear: both; }

.paper-bottom {
    height: 10px;
    background: url('../images/theme/pgf.png');
}

/* ---------- content ---------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brown);
    line-height: 1.25;
    margin: 1.2em 0 .5em;
}
h1 { font-size: 2.3em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }

.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose a { color: var(--link); text-decoration: underline; }
.prose img.align-left { float: left; margin: 0 10px 5px 0; }
.prose img.align-right { float: right; margin: 0 0 5px 10px; }
.prose iframe {
    width: 100%;
    border: 1px solid rgb(77, 106, 121);
    border-radius: 5px;
}
.prose::after { content: ''; display: table; clear: both; }

.text-align-center { text-align: center; }
.text-align-right { text-align: right; }
.text-align-left { text-align: left; }
.text-align-justify { text-align: justify; }

.button, .prose a.button {
    display: inline-block;
    padding: 9px 32px;
    margin: 4px 10px;
    border-radius: 3px;
    background: var(--button);
    color: #fff;
    font-size: .85em;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s;
}
.button:hover, .button:focus-visible, .prose a.button:hover { background: var(--button-hover); color: #fff; }

/* home */
.intro { max-width: 1000px; margin: 0 auto; }
.intro h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--tan);
}
.intro h1 {
    font-family: var(--font-display);
    margin: 5px 0 0;
    padding-bottom: 10px;
}

.intro-video {
    max-width: 1000px;
    margin: 10px auto 40px;
}
.intro-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
}

.teasers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    padding: 0 15px;
}
.teaser__title {
    margin: 0 0 6px;
    font-size: 1.7em;
    text-transform: uppercase;
}
.teaser__title a { color: var(--brown); text-decoration: none; }
.teaser__title a:hover { text-decoration: underline; }
.teaser__image img {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 4;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: opacity .2s;
}
.teaser__image:hover img { opacity: .9; }

/* inner pages */
.article__title { margin-top: .3em; }
.article__image {
    display: block;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}

.sidebar { padding-top: 10px; }
.sidebar__item {
    display: block;
    margin-bottom: 18px;
    text-decoration: none;
}
.sidebar__title {
    display: block;
    font: 600 2em/1.3 var(--font-heading);
    color: var(--sidebar-link);
    border-bottom: 2px dotted var(--paper-line);
    margin-bottom: 8px;
}
.sidebar__item img {
    display: block;
    width: 100%;
    aspect-ratio: 360 / 140;
    object-fit: cover;
    border-radius: 6px;
    transition: opacity .2s;
}
.sidebar__item:hover img { opacity: .85; }
.sidebar__item:hover .sidebar__title { text-decoration: underline; }

/* price list, in the colours of the old site */
.zone-map {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 10px auto 30px;
}
.prices {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 10px 0 20px;
    background: #cdd585;
    border: 1px solid #a5ad65;
    border-radius: 8px;
    overflow: hidden;
    font: italic 1em/1.35 'Times New Roman', Times, serif;
    color: #2d2d18;
}
.prices th, .prices td {
    padding: 10px;
    border-bottom: 1px solid #a5ad65;
    border-left: 1px solid #a5ad65;
    text-align: right;
    vertical-align: middle;
}
.prices tr > :first-child { border-left: 0; }
.prices tbody tr:last-child > * { border-bottom: 0; }
.prices thead th { font-weight: bold; white-space: nowrap; padding: 20px 10px; }
.prices tbody th {
    text-align: left;
    font-weight: normal;
    font-size: .9em;
    text-transform: uppercase;
    width: 20%;
}
.prices__price { display: block; white-space: nowrap; }
.prices__anchor {
    display: block;
    font-size: .78em;
    color: #4f5228;
    white-space: nowrap;
}
.prices-note { font-size: .9em; color: #5b5040; }

/* gallery */
.gallery {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.gallery a { display: block; }
.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color .2s;
}
.gallery a:hover img, .gallery a:focus-visible img { border-color: green; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
}
.lightbox button {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__counter {
    position: absolute;
    top: 26px;
    left: 20px;
    color: rgba(255, 255, 255, .8);
}

/* ---------- partners and footer ---------- */

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
    padding: 20px 0;
}
.partners img { display: block; max-height: 104px; width: auto; }
@media (min-width: 900px) {
    .partners img { transition: transform .4s; }
    .partners a:hover img { transform: scale(1.2); }
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 10px;
    padding: 20px 15px 40px;
    color: var(--footer-text);
    background: var(--footer-bg);
    border-radius: 5px 5px 0 0;
    font-size: .95em;
    font-style: italic;
}
.site-footer h2 {
    font-size: 1.3em;
    font-style: normal;
    color: var(--footer-text);
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.site-footer p { margin: 0 0 1em; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-heading); font-size: 1.1em; }
.site-footer li { margin-bottom: 4px; }
.site-footer .price-files { margin: 12px 0 0; font-size: .9em; }
.site-footer .price-files a { text-decoration: underline; }

/* ---------- smaller screens ---------- */

@media (max-width: 978px) {
    .menu a { line-height: 30px; }
}

@media (max-width: 860px) {
    .site-header { flex-direction: column; padding-top: 10px; }
    .menu ul { justify-content: center; }
    .paper.has-sidebar { grid-template-columns: 1fr; }
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
        border-top: 2px dotted var(--paper-line);
    }
}

/* price tables become one card per row: item name, then a line per season */
@media (max-width: 700px) {
    .prices, .prices tbody, .prices tr, .prices th, .prices td { display: block; }
    .prices thead { display: none; }
    .prices tbody tr { border-bottom: 2px solid #a5ad65; }
    .prices tbody tr:last-child { border-bottom: 0; }
    .prices tbody th {
        width: auto;
        background: #b4bd6f;
        font-weight: bold;
        border-left: 0;
    }
    .prices td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 6px 10px;
        border-left: 0;
    }
    .prices td::before { content: attr(data-label); text-align: left; font-weight: bold; }
    .prices td > span { text-align: right; }
    .prices tbody tr > td:last-child { border-bottom: 0; }
}

@media (max-width: 650px) {
    .branding { flex-direction: column; text-align: center; gap: 4px; }
    .branding__slogan { display: none; }
    .branding__name { font-size: 1.6em; }
    .site-header { padding-top: 40px; }
    .slideshow { height: 200px; }
    .teasers { grid-template-columns: 1fr; padding: 0; }
    .site-footer { grid-template-columns: 1fr; gap: 10px; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: none; }
}

@media (max-width: 550px) {
    .maslina { display: none; }
    .menu a { letter-spacing: 1px; padding: 0 8px; }
    .slideshow { height: 150px; }
    .sidebar { grid-template-columns: 1fr; }
    .sidebar__title { font-size: 1.6em; }
    h1 { font-size: 2em; }
}
