/*:root {*/
/*    !* === Struktura stránky === *!*/
/*    --color-background: #FDFBF7;      !* hlavní pozadí – velmi světlá slonová kost *!*/
/*    --color-surface: rgba(243, 233, 210, 1);         !* střídavé sekce – pšeničný tón *!*/

/*    !* === Texty === *!*/
/*    --color-text-base: #3B2F2F;       !* hlavní text *!*/
/*    --color-text-heading: #C98A74;    !* nadpisy, titulky *!*/
/*    --color-text-muted: #8B7D77;      !* méně důležitý text *!*/

/*    !* === Akcenty === *!*/
/*    --color-accent: #DDAA94;       !* světlejší cihlová pro výchozí stav *!*/
/*    --color-accent-strong: #C98A74;      !* základní cihlová pro hover *!*/
/*    --color-accent-hover: #8B4F3F;       !* volitelná ještě tmavší pro pressed *!*/

/*    !* === Odkazy === *!*/
/*    --color-link: #8B4F3F;*/
/*}*/

:root {
    /* === Background Layers === */
    --color-bg-light: #FDFBF7;
    /* Cream */
    --color-bg-mid: #F3E9D2FF;
    /* Wheat */
    --color-bg-dark: #D88A70;
    /* Terracotta */

    /* === Text Colors === */
    --color-text-light: #3B2F2F;
    /* Text on light bg */
    --color-text-mid: #3B2F2F;
    /* Text on mid bg */
    --color-text-dark: #F0F0F0;
    /* Text on dark bg */

    --color-text-heading: #c98a74;
    /* Warm heading */
    --color-text-muted: #8b7d77;
    /* Muted body text */

    /* === Accent Colors (per background level) === */
    --accent-on-light: #c96148;
    /* Terracotta */
    --accent-on-mid: #802d20;
    /* Rust */
    --accent-on-dark: #ffffff;
    /* Moss */

    /* === Additional Accents === */
    --accent-soft: #dca791;
    /* Peach */
    --accent-cool: #c4cac3;
    /* Moss */

    /* === Link Colors === */
    --color-link: var(--accent-on-light);
    --color-link-hover: #8b4f3f;
}

/*:root {*/
/*    !* === Background Layers === *!*/
/*    --color-bg-light: #f2e7df;       !* Cream *!*/
/*    --color-bg-mid: #d7a773;         !* Wheat *!*/
/*    --color-bg-dark: #c96148;        !* Terracotta *!*/

/*    !* === Text Colors === *!*/
/*    --color-text-light: #3B2F2F;     !* Text on light bg *!*/
/*    --color-text-mid: #3B2F2F;       !* Text on mid bg *!*/
/*    --color-text-dark: #ffffff;      !* Text on dark bg *!*/

/*    --color-text-heading: #c98a74;   !* Warm heading *!*/
/*    --color-text-muted: #8b7d77;     !* Muted body text *!*/

/*    !* === Accent Colors (per background level) === *!*/
/*    --accent-on-light: #c96148;      !* Terracotta *!*/
/*    --accent-on-mid: #802d20;        !* Rust *!*/
/*    --accent-on-dark: #c4cac3;       !* Moss *!*/

/*    !* === Additional Accents === *!*/
/*    --accent-soft: #dca791;          !* Peach *!*/
/*    --accent-cool: #c4cac3;          !* Moss *!*/

/*    !* === Link Colors === *!*/
/*    --color-link: var(--accent-on-light);*/
/*    --color-link-hover: #8b4f3f;*/
/*}*/


html {
    scroll-behavior: smooth;
}

/* Sticky Header with Frost Effect */
header.sticky {
    background-color: rgba(253, 251, 247, 0.9) !important;
    /* Slightly transparent cream */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(221, 170, 148, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    font-size: 1.125rem;
    line-height: 1.75;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    /* More elegant spacing */
    text-transform: uppercase;
    /*color: var(--color-text-heading);*/
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

a {
    transition: color 0.3s ease;
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.mobile-link:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
    border-radius: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.section {
    padding: 6rem 1.5rem;
    /* More whitespace */
    background-color: var(--color-bg-light);
    background-image: url('assets/background-rustic.webp');
    color: var(--color-text-light);
    text-align: center;
}

.section h1,
.section h2,
.section h3 {
    color: var(--accent-on-light);
}

.section .btn {
    color: var(--color-text-dark);
    background-color: var(--accent-on-light);
}

.section .btn:hover {
    background-color: #A44A35;
    outline: 2px solid #DCA791;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(220, 167, 145, 0.3);
}

.section-alt {
    background-color: var(--color-bg-mid);
    background-image: url("assets/background-wheat.png");
    color: var(--color-text-mid);
}

.section-alt a {
    background-color: var(--accent-on-mid);
    color: var(--color-text-dark);
}

.section-alt a:hover {
    outline: 2px solid #DCA791;
    /* your peach accent */
    outline-offset: 3px;
    background-color: #661F17;
    box-shadow: 0 0 0 4px rgba(220, 167, 145, 0.3);
}

.section-alt h1,
.section-alt h2,
.section-alt h3 {
    color: var(--accent-on-mid);
}

.section-dark {
    background-color: var(--color-bg-dark);
    background-image: url("assets/background-wall.png");
    color: var(--color-text-mid);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--accent-on-mid);
}

.btn {
    padding: 0.75rem 2.5rem;
    /* Slightly wider */
    border-radius: 50px;
    /* Pill shape */
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    /* Smooth transition for all props */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

.btn-small {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
}

.section-alt .btn {
    background-color: var(--accent-on-mid);
    color: var(--color-text-dark);
}

.section-alt .btn:hover {
    outline: 2px solid #DCA791;
    outline-offset: 3px;
    background-color: #661F17;
    box-shadow: 0 0 0 4px rgba(220, 167, 145, 0.3);
}

.section .btn.btn-outline,
.section-alt .btn.btn-outline {
    background: transparent;
    box-shadow: none;
}

.section .btn.btn-outline {
    color: var(--accent-on-light);
    border: 1px solid rgba(201, 97, 72, 0.35);
}

.section-alt .btn.btn-outline {
    color: var(--accent-on-mid);
    border: 1px solid rgba(128, 45, 32, 0.35);
}

.section .btn.btn-outline:hover,
.section-alt .btn.btn-outline:hover {
    background: rgba(220, 167, 145, 0.25);
    color: var(--color-text-light);
}

.location-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(253, 251, 247, 0.85);
    color: var(--color-text-light);
    border: 1px solid rgba(221, 170, 148, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: min(92vw, 520px);
    text-align: center;
}

.btn:hover {
    color: white;
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Stronger shadow on hover */
}



.btn i {
    padding-right: 1rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 40rem;
}

iframe {
    border-radius: 0.5rem;
    border: none;
    width: 100%;
}

.rsvp-deadline {
    color: var(--color-text-muted);
}

.rsvp-deadline i {
    margin-right: 0.5rem;
    color: var(--accent-soft);
}

.rsvp-deadline time {
    font-weight: 600;
    color: var(--color-text-light);
}

.text-center {
    text-align: center;
}

.font-mono {
    font-family: monospace;
}

.icon-flower {
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 610px;
    max-height: 820px;
    height: 100vh;
    overflow: hidden;
    border-top-left-radius: 300px;
    border-top-right-radius: 300px;
    margin: auto;
    transform: translateY(40px);
    margin-bottom: -6rem;
}

.hero-image img {
    width: 100%;
    display: block;
}

.hero-image picture {
    display: block;
}

/* Mobile menu animation */
.mobile-menu-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: max(2rem, env(safe-area-inset-top)) 1.5rem max(3rem, env(safe-area-inset-bottom));
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 99999;
    transform: translate3d(100%, 0, 0);
    background: var(--color-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text-light);
    will-change: transform;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-panel.open {
    display: flex;
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

.accommodation-grid {
    margin-top: 2rem;
}

.mobile-menu-panel .mobile-link {
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--color-text-light);
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    min-width: 180px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.mobile-menu-panel .mobile-link:hover,
.mobile-menu-panel .mobile-link:focus-visible {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-link-hover);
}

.badge-distance {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(201, 138, 116, 0.15);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

#uvod {
    position: relative;
    padding-bottom: 6rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    z-index: 1;
}

.uvod-info-box {
    align-content: flex-end;
    padding-bottom: 200px;

}

.uvod-info-box .box {
    background: rgba(243, 233, 210, 0.8);
    /* your mid background w/ alpha */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* for Safari */
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 40px 20px var(--color-bg-mid);
}

/*.uvod-info-box .box {*/
/*    background: var(--color-bg-light);*/
/*    padding: 1.5rem 2rem;*/
/*    border: 1px solid rgba(0, 0, 0, 0.05); !* very light border *!*/
/*    border-radius: 0.75rem;*/
/*    backdrop-filter: blur(4px); !* optional: blurred background effect *!*/
/*    -webkit-backdrop-filter: blur(4px); !* for Safari *!*/
/*    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); !* subtle shadow *!*/
/*}*/

.uvod-info-box img {
    max-height: 100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

.hero-title {
    font-family: "Amsterdam Four_ttf";
    /* Handwritten script for wedding vibe */
    font-size: 80px;
    /* Larger for script font */
    font-weight: 400;
    margin-bottom: 64px;
    /* Adjusted for new font height */
    z-index: 9;
    position: relative;
    text-transform: none;
    /* Script fonts shouldn't be all caps */
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.paper-panel {
    background: rgba(253, 251, 247, 0.65);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(221, 170, 148, 0.25);
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
    0% {
        opacity: 0.6;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(4px);
    }

    100% {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* === Responsive Hero === */
@media (max-width: 768px) {
    #uvod {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    /* Reorder items: 1. Title/Image, 2. Time, 3. Place */
    #uvod> :nth-child(2) {
        order: 1;
    }

    #uvod> :nth-child(3) {
        /* Time */
        order: 2;
    }

    #uvod> :nth-child(1) {
        /* Place */
        order: 3;
    }

    .uvod-info-box {
        padding-bottom: 2rem;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 60px;
    }

    .hero-image {
        max-width: 100%;
        height: auto;
        max-height: 60vh;
        border-radius: 150px 150px 0 0;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 4rem;
        line-height: 110px;
        /* Larger on mobile too */
        /* margin-bottom: -30px; */
    }

    .hero-cta {
        position: static;
        transform: none;
        margin-top: 1.5rem;
    }

    .scroll-hint {
        position: static;
        transform: none;
        margin-top: 0.75rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Disable parallax on mobile */
    .photo-break {
        background-attachment: scroll;
        height: 30vh;
    }
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--accent-soft);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.timeline-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--accent-on-mid);
    border-radius: 50%;
    z-index: 1;
    border: 3px solid var(--color-bg-light);
}

.timeline-content {
    width: 45%;
    padding: 1rem;
    background-color: var(--color-bg-mid);
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--color-text-mid);
}

.timeline-content.left {
    text-align: right;
}

.timeline-content.right {
    text-align: left;
    margin-left: auto;
}

/* Rustic Fancy Styles (Global) */
.timeline-content {
    /* Rustic Fancy: Warm, paper-like feel with depth */
    background: rgba(248, 244, 235, 0.85);
    /* Slightly darker cream/paper */
    backdrop-filter: blur(4px);
    /* Subtle blur */
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(221, 170, 148, 0.4);
    /* Warm terracotta border */
    box-shadow: 0 4px 15px rgba(90, 60, 50, 0.1);
    /* Warm brown shadow */
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
    color: var(--color-text-heading);
    font-size: 1.25rem;
    text-transform: none;
}

/* Stagger animations */
.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .timeline::before {
        display: block;
        left: 50%;
        /* Center line */
        transform: translateX(-50%);
        background: linear-gradient(to bottom, var(--accent-soft), var(--color-bg-mid));
        width: 2px;
        /* Thinner line */
        border-radius: 0;
        z-index: 0;
        /* Behind content */
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 0;
        margin: 2.5rem 0;
        align-items: center;
        /* Center content */
        position: relative;
        /* Animation already applied globally */
    }

    /* Stagger animations already applied globally */

    .timeline-point {
        display: none;
        /* Hide dots as requested */
    }

    .timeline-content {
        width: 85%;
        /* Slightly narrower than full width */
        max-width: 400px;
        text-align: center !important;
        /* Center text inside box */
        margin-left: 0 !important;
        /* Styles inherited from global, just layout overrides here */
    }

    .timeline-content h3 {
        color: var(--accent-on-mid);
        font-weight: 700;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-break {
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-color: var(--color-bg-mid);
    position: relative;
    z-index: 1;
}

.photo-break-1,
.photo-break-2,
.photo-break-3,
.photo-break-4 {
    /* background-image is lazy-loaded via JS (see script.js) */
}

/* Re-enable fixed background only on large screens */
@media (min-width: 1024px) {
    .photo-break {
        background-attachment: fixed;
        height: 55vh;
    }
}

.area-map {
    max-width: 800px;
    width: 100%;
    margin: auto;
}

#faq h3 {
    text-transform: none;
}

.faq-box {
    background: rgba(234, 221, 197, 0.4);
    /* soft translucent white */
    padding: 1.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* very light border */
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    /* optional: blurred background effect */
    -webkit-backdrop-filter: blur(4px);
    /* for Safari */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    /* subtle shadow */
    margin-bottom: 1.5rem;
    /* spacing between boxes */
}

#flying-pig {
    position: fixed;
    top: 0;
    left: 0;
    width: 11vw;
    display: none;
    pointer-events: none;
    z-index: 9999;
}

#flying-pig img {
    width: 100%;
    display: block;
}

/* === Accommodation Cards === */
/* === Accommodation Cards === */
#ubytovani .accommodation-card {
    display: block;
    background: rgba(234, 221, 197, 0.4);
    /* soft translucent white - same as faq-box */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* very light border - same as faq-box */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    /* subtle shadow - same as faq-box */
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: var(--color-text-mid);
    /* Reset link styles from .section-alt a */
    outline: none;
}

#ubytovani .accommodation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    /* slightly stronger shadow on hover */
    background: rgba(234, 221, 197, 0.4);
    /* Ensure background stays neutral on hover */
    outline: none;
    /* Remove outline from .section-alt a:hover */
}

#ubytovani .accommodation-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#ubytovani .accommodation-card:hover img {
    transform: scale(1.02);
}

#ubytovani .accommodation-card .content {
    padding: 1rem;
    text-align: center;
}

#ubytovani .accommodation-card h3 {
    color: var(--color-text-heading);
    margin-bottom: 0.25rem;
    /* Inherit font-size from global h3 (1.25rem) */
}

#ubytovani .accommodation-card .btn-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-on-mid);
    font-size: 0.9rem;
    text-decoration: underline;
    /* Simple link style */
}

#ubytovani .accommodation-card:hover .btn-link {
    color: var(--color-link-hover);
}