/* ==========================================================================
   Chata Beruška – design system
   Tokens -> base -> layout -> components -> page sections -> utilities
   ========================================================================== */

/* Self-hosted fonts (no third-party request to Google Fonts) */
@font-face {
    font-family: "Baloo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/baloo2-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Baloo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/baloo2-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
    /* Colors */
    --color-primary: #C6402B;
    --color-primary-dark: #9C311F;
    --color-secondary: #2F5233;
    --color-secondary-dark: #223E27;
    --color-accent: #E08A2E;
    --color-bg: #FBF6EE;
    --color-surface: #FFFFFF;
    --color-fg: #241C15;
    --color-muted: #6B5D4F;
    --color-border: #E9DFCE;
    --color-ring: #C6402B;

    /* Type */
    --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
    --font-body: "Nunito", "Segoe UI", sans-serif;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* Radius / shadow */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(36, 28, 21, 0.08);
    --shadow-md: 0 8px 24px rgba(36, 28, 21, 0.12);
    --shadow-lg: 0 18px 48px rgba(36, 28, 21, 0.16);

    --container-max: 1200px;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-fg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 var(--space-4);
    color: var(--color-primary-dark);
    font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 3vw + 1.5rem, 4.2rem); }
h2 { font-size: clamp(1.8rem, 1.5vw + 1.4rem, 2.6rem); }
h3 { font-size: clamp(1.2rem, 0.5vw + 1.1rem, 1.5rem); }

p { margin: 0 0 var(--space-4); max-width: 70ch; }
a { color: var(--color-primary); text-decoration-thickness: 1.5px; }
img { max-width: 100%; display: block; }

ul { padding: 0; margin: 0; }
li { list-style: none; }

:focus-visible {
    outline: 3px solid var(--color-ring);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    z-index: 2000;
    font-weight: 700;
}
.skip-link:focus {
    left: var(--space-4);
    top: var(--space-4);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.section { padding-block: var(--space-16); }
.section--tight { padding-block: var(--space-12); }
.section--surface { background: var(--color-surface); }
.section--brand { background: var(--color-secondary); color: #fff; }
.section--brand h2, .section--brand h3 { color: #fff; }

.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    transition: transform 150ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--color-primary-dark); }
.btn-outline:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.btn-cta {
    background: var(--color-accent);
    color: #241705;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}
.btn-cta:hover { background: #c67420; color: #fff; }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-3) var(--space-4) 0;
}

.navbar {
    max-width: var(--container-max);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    background: rgba(251, 246, 238, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
    box-shadow: var(--shadow-sm);
}

.logo { display: flex; align-items: center; }
.logo img { height: 2.75rem; width: auto; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    margin-inline: auto;
    background: var(--color-fg);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.primary-nav a:not(.btn) {
    display: inline-block;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-pill);
    color: var(--color-fg);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 200ms ease, color 200ms ease;
}
.primary-nav a:not(.btn):hover { background: rgba(198, 64, 43, 0.1); color: var(--color-primary-dark); }
.primary-nav a[aria-current="page"] { background: var(--color-primary); color: #fff; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        display: none;
        background: var(--color-surface);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        padding: var(--space-4);
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: var(--space-1); }
    .primary-nav a:not(.btn) { display: block; text-align: center; }
    .nav-cta-item { margin-top: var(--space-2); }
    .nav-cta-item .btn-cta { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-block: var(--space-16);
}

.hero-blob {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 2rem, black 9rem);
    mask-image: linear-gradient(to bottom, transparent 0, transparent 2rem, black 9rem);
}
.hero-blob::before, .hero-blob::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}
.hero-blob::before {
    width: 32rem; height: 32rem;
    background: radial-gradient(circle at 30% 30%, rgba(224, 138, 46, 0.35), transparent 70%);
    top: -10rem; right: -8rem;
}
.hero-blob::after {
    width: 26rem; height: 26rem;
    background: radial-gradient(circle at 70% 70%, rgba(47, 82, 51, 0.25), transparent 70%);
    bottom: -12rem; left: -6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content h1 { font-size: clamp(2rem, 2vw + 1.4rem, 3.4rem); }

.hero-media {
    position: relative;
    aspect-ratio: 3 / 4;
}
.hero-media::before {
    content: "";
    position: absolute;
    inset: -1.25rem -1.25rem auto auto;
    width: 88%;
    height: 88%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: 42% 58% 63% 37% / 47% 41% 59% 53%;
    opacity: 0.4;
    z-index: 0;
}
.hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 63% 37% 41% 59% / 51% 44% 56% 49%;
    box-shadow: var(--shadow-lg);
    animation: heroBlobMorph 14s ease-in-out infinite;
}

@keyframes heroBlobMorph {
    0%, 100% { border-radius: 63% 37% 41% 59% / 51% 44% 56% 49%; }
    50% { border-radius: 42% 58% 61% 39% / 45% 55% 45% 55%; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-8); }
.hero-fact { font-family: var(--font-display); font-weight: 600; color: var(--color-secondary-dark); }
.hero-fact strong { display: block; font-size: 1.6rem; color: var(--color-primary); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; aspect-ratio: 4 / 3; }
    .hero { padding-block: var(--space-12); text-align: center; }
    .hero-actions, .hero-facts { justify-content: center; }
}

/* ==========================================================================
   Tiles (homepage quick links)
   ========================================================================== */

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.tile-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}
.tile:hover .tile-bg, .tile:focus-visible .tile-bg { transform: scale(1.08); }

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36, 28, 21, 0) 35%, rgba(36, 28, 21, 0.88) 100%);
}

.tile-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    padding: var(--space-6);
}
.tile-content h3 { color: #fff; margin-bottom: var(--space-2); }
.tile-content p { color: rgba(255, 255, 255, 0.85); margin-bottom: var(--space-4); }

.tile-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-display);
}
.tile-link svg { transition: transform 200ms ease; }
.tile:hover .tile-link svg, .tile:focus-visible .tile-link svg { transform: translateX(5px); }

@media (max-width: 780px) {
    .tiles-grid { grid-template-columns: 1fr; }
    .tile { aspect-ratio: 16 / 11; }
}

/* ==========================================================================
   About preview / split content blocks
   ========================================================================== */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split-text ul { margin: var(--space-4) 0; }
.split-text ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
}
.split-text ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 10px; height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
}

@media (max-width: 900px) {
    .split, .split.reverse .split-media { grid-template-columns: 1fr; order: initial; }
    .split { text-align: left; }
}

/* ==========================================================================
   Info cards (dispozice / vybavení / amenities)
   ========================================================================== */

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}
.info-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.info-card h3 { display: flex; align-items: center; gap: var(--space-3); }
.info-card h3 img { width: 32px; height: 32px; }
.info-card ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
}
.info-card ul li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--color-secondary);
    font-weight: 800;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-6);
    text-align: center;
}
.amenity { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.amenity .amenity-icon {
    width: 68px; height: 68px;
    display: grid; place-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}
.amenity .amenity-icon img { width: 34px; height: 34px; }
.amenity span { font-weight: 700; font-family: var(--font-display); }

@media (max-width: 700px) {
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews-carousel {
    position: relative;
    margin-top: var(--space-8);
    padding-inline: 68px;
}
.reviews-track {
    display: flex;
    align-items: stretch;
    gap: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: var(--space-2) var(--space-1) var(--space-4);
    scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 min(360px, 82vw);
    scroll-snap-align: start;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    margin: 0;
}
.review-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}
.review-more p { margin: 0; font-weight: 600; }
.review-source {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-muted);
}
.review-source img { width: 18px; height: 18px; }
.review-card .stars { color: var(--color-accent); font-size: 1.1rem; margin-bottom: var(--space-2); }
.review-title { font-family: var(--font-display); font-weight: 600; color: var(--color-primary-dark); margin: 0 0 var(--space-2); }
.review-card blockquote {
    margin: 0 0 var(--space-3);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card figcaption { color: var(--color-muted); font-weight: 700; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-btn:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 700px) {
    .reviews-carousel { padding-inline: 0; }
    .carousel-btn { display: none; }
}

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: var(--space-4);
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    border: none;
    padding: 0;
    background: none;
    display: block;
    width: 100%; height: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute; inset-inline: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(36,28,21,0.75), transparent);
    color: #fff; padding: var(--space-3);
    font-weight: 700; font-size: 0.9rem;
    text-align: left;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-item--wide { grid-column: span 2; }
}
@media (max-width: 520px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--wide { grid-column: span 1; }
}

.lightbox {
    position: fixed; inset: 0;
    background: rgba(20, 14, 9, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-6);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: min(90vw, 1100px); max-height: 85vh; text-align: center; }
.lightbox-figure img { max-height: 75vh; width: auto; margin: 0 auto; border-radius: var(--radius-md); }
.lightbox-figure figcaption { color: #fff; margin-top: var(--space-3); font-weight: 700; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    width: 48px; height: 48px;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background-color 200ms ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: var(--space-6); right: var(--space-6); font-size: 1.5rem; }
.lightbox-prev { left: var(--space-6); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-6); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Trips / activities (okolí)
   ========================================================================== */

.journey-map-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    min-height: 44px;
}
.journey-map-link:hover { color: var(--color-primary-dark); }
.journey-map-link svg { transition: transform 200ms ease; }
.journey-map-link:hover svg { transform: translateX(4px); }
.journey-featured .journey-map-link { color: #fff; }
.journey-featured .journey-map-link:hover { color: var(--color-accent); }

/* Featured trip */
.journey-featured {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.journey-featured img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.journey-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(36, 28, 21, 0.92) 15%, rgba(36, 28, 21, 0.15) 65%, transparent 100%);
}
.journey-featured-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    padding: var(--space-8);
    max-width: 640px;
}
.journey-featured-content h2, .journey-featured-content p { color: #fff; }

/* Grid of remaining trips (bento-style) */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}
.journey-card:first-child { grid-column: 1 / -1; }
.journey-card:first-child img { aspect-ratio: 21 / 9; }

.journey-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.journey-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.journey-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.journey-card-body { padding: var(--space-6); }
.journey-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-muted);
}

@media (max-width: 900px) {
    .journey-grid { grid-template-columns: 1fr; }
    .journey-card:first-child { grid-column: auto; }
    .journey-card:first-child img { aspect-ratio: 4 / 3; }
    .journey-featured-content { max-width: 100%; }
}
@media (max-width: 560px) {
    .journey-featured-content { padding: var(--space-6); }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
}
.contact-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}
.contact-card ul { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-card li { display: flex; align-items: center; gap: var(--space-4); }
.contact-card img { width: 32px; height: 32px; flex-shrink: 0; }
.contact-card ul a { color: var(--color-fg); text-decoration: none; font-weight: 700; }
.contact-card ul a:hover { color: var(--color-primary); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-frame iframe { width: 100%; aspect-ratio: 4/3; border: 0; display: block; }
.map-consent {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    text-align: center;
    padding: var(--space-6);
    background: var(--color-secondary-dark);
    color: #EFE6D8;
}
.map-consent p { margin: 0; max-width: 40ch; font-size: 0.92rem; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #241C15;
    color: #EFE6D8;
    padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-8);
}
.footer-logo { margin-bottom: var(--space-3); }
.footer-heading {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: #EFE6D8; text-decoration: none; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--color-accent); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.9rem;
}
.footer-legal { opacity: 0.75; margin: 0; }
.footer-legal a { color: inherit; }
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: #EFE6D8;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 200ms ease;
}
.footer-credit:hover, .footer-credit:focus-visible { opacity: 1; }
.footer-credit span { font-size: 0.85rem; }
.footer-credit-logo {
    width: 108px;
    height: auto;
    overflow: visible;
    color: #EFE6D8;
    transition: color 250ms ease;
}
.footer-credit-logo path,
.footer-credit-logo rect { fill: currentColor; }
.footer-credit:hover .footer-credit-logo,
.footer-credit:focus-visible .footer-credit-logo {
    color: #fff;
}
.footer-credit-logo .logo-mark {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-credit-logo .logo-mark > * {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), fill 250ms ease;
}
/* levý spodní blok, levý horní klín, pravý spodní klín, pravý horní blok */
.footer-credit-logo .logo-mark > *:nth-child(1) { transition-delay: 0s; }
.footer-credit-logo .logo-mark > *:nth-child(2) { transition-delay: 0.04s; }
.footer-credit-logo .logo-mark > *:nth-child(3) { transition-delay: 0.08s; }
.footer-credit-logo .logo-mark > *:nth-child(4) { transition-delay: 0.12s; }
.footer-credit:hover .footer-credit-logo .logo-mark,
.footer-credit:focus-visible .footer-credit-logo .logo-mark {
    transform: rotate(-10deg) scale(1.08);
}
.footer-credit:hover .footer-credit-logo .logo-mark > *:nth-child(1),
.footer-credit:focus-visible .footer-credit-logo .logo-mark > *:nth-child(1) {
    transform: translate(-3px, 3px) rotate(-14deg);
}
.footer-credit:hover .footer-credit-logo .logo-mark > *:nth-child(2),
.footer-credit:focus-visible .footer-credit-logo .logo-mark > *:nth-child(2) {
    transform: translate(-3px, -3px) rotate(14deg);
}
.footer-credit:hover .footer-credit-logo .logo-mark > *:nth-child(3),
.footer-credit:focus-visible .footer-credit-logo .logo-mark > *:nth-child(3) {
    transform: translate(3px, 3px) rotate(14deg);
}
.footer-credit:hover .footer-credit-logo .logo-mark > *:nth-child(4),
.footer-credit:focus-visible .footer-credit-logo .logo-mark > *:nth-child(4) {
    transform: translate(3px, -3px) rotate(-14deg);
}
.footer-credit:hover .footer-credit-logo .logo-mark,
.footer-credit:focus-visible .footer-credit-logo .logo-mark {
    color: #D11C1E;
}
.footer-social { display: flex; align-items: center; gap: var(--space-3); }
.footer-social a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    color: #EFE6D8;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-pill);
    transition: background-color 200ms ease, color 200ms ease;
}
.footer-social a:hover { background: var(--color-primary); color: #fff; }
.footer-social img {
    width: 20px; height: 20px;
    filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-col { padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.14); }
    .contact-card ul { width: fit-content; max-width: 100%; margin-inline: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: var(--space-24) var(--space-16);
}
.error-page .error-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--color-primary);
    margin: 0;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Legal content (privacy policy, long-form text pages)
   ========================================================================== */

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: var(--space-8);
}
.legal-content h2:first-child { margin-top: 0; }

/* ==========================================================================
   Cookie / privacy notice
   ========================================================================== */

.cookie-notice {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1500;
    background: #241C15;
    color: #EFE6D8;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice-content {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}
.cookie-notice-content p { margin: 0; font-size: 0.9rem; flex: 1 1 320px; }
.cookie-notice-content a { color: #fff; text-decoration: underline; }
.cookie-notice-content .btn { flex-shrink: 0; }
.cookie-notice-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }
