:root {
    --color-bg: #f6f7f4;
    --color-surface: #ffffff;
    --color-text: #1c1f1a;
    --color-muted: #5c6358;
    --color-accent: #2d6a4f;
    --color-accent-2: #40916c;
    --color-busy: #c1121f;
    --color-free: #52b788;
    --color-border: #e2e6dd;
    --shadow-sm: 0 4px 20px rgba(28, 31, 26, 0.08);
    --radius: 14px;
    --header-h: 72px;
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-accent-2);
}

.container {
    width: min(1120px, 100% - 2rem);
    margin-inline: auto;
}

/* Page loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--color-bg);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 247, 244, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    box-shadow: var(--shadow-sm);
}

.logo__text strong {
    font-weight: 700;
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 22px;
    margin-inline: auto;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__list {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.site-nav__list a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-sm);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-nav.is-open {
        max-height: 280px;
    }

    .site-nav__list {
        flex-direction: column;
        padding: 1rem 1.25rem 1.25rem;
        gap: 0;
    }

    .site-nav__list li {
        border-bottom: 1px solid var(--color-border);
    }

    .site-nav__list li:last-child {
        border-bottom: none;
    }

    .site-nav__list a {
        display: block;
        padding: 0.85rem 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero: pozadí slideů — proměnné --hero-bg-* a --assets-img-prefix jsou v <head> v #site-asset-vars (views/home.php), aby šly cesty k obrázkům sladit s PUBLIC_BASE. Zde jen použití --slide-bg na slidu. */
/* Hero */
.hero-slider {
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: min(78vh, 720px);
}

.hero-slide {
    position: relative;
    background: #2a3d34 var(--slide-bg) center / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 28, 24, 0.15) 0%, rgba(20, 28, 24, 0.72) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 1;
}

.hero-slide__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0 0 0.5rem;
}

.hero-slide__title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    max-width: 18ch;
}

.hero-slide__text {
    margin: 0;
    max-width: 42ch;
    font-size: 1.05rem;
    opacity: 0.95;
}

.hero-swiper__pagination {
    bottom: 1.25rem !important;
}

.hero-swiper__pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.45;
}

.hero-swiper__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 28px;
    border-radius: 6px;
}

.hero-swiper__nav {
    color: #fff;
    opacity: 0.85;
}

.hero-swiper__nav::after {
    font-size: 1.35rem !important;
}

@media (max-width: 640px) {
    .hero-swiper {
        height: min(70vh, 560px);
    }

    .hero-swiper__nav {
        display: none;
    }
}

/* Sections */
.section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--alt {
    background: linear-gradient(180deg, #eef1ea 0%, var(--color-bg) 100%);
}

.section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section__title {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    margin: 0 0 0.75rem;
}

.section__lead {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.legend {
    white-space: nowrap;
}

.legend__sw {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: -2px;
    margin-right: 4px;
}

.legend__sw--free {
    background: var(--color-free);
}

.legend__sw--busy {
    background: var(--color-busy);
}

/* Gallery */
.gallery-slider-wrap {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    overflow: hidden;
}

.gallery-swiper {
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: clamp(220px, 40vw, 380px);
    object-fit: cover;
}

.gallery-swiper__pagination {
    position: relative;
    margin-top: 0.75rem;
}

/* Listing + calendars */
.listing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
}

.listing-card:last-child {
    margin-bottom: 0;
}

.listing-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr;
    gap: clamp(1rem, 3vw, 1.75rem);
    align-items: start;
}

@media (max-width: 800px) {
    .listing-card__grid {
        grid-template-columns: 1fr;
    }
}

.listing-card__media {
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    background: var(--color-bg);
}

.listing-card__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.listing-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.listing-card__desc {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.listing-rates-wrap {
    margin: 0 0 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-surface);
}

.data-table th,
.data-table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}

.data-table th {
    font-weight: 600;
    color: var(--color-text);
    background: #f0f3ec;
}

.data-table--listing th[scope="row"] {
    width: 52%;
    min-width: 10rem;
}

.data-table--listing td {
    color: var(--color-muted);
}

.data-table__empty {
    color: var(--color-muted);
    font-style: italic;
}

.listing-rates__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88em;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.45;
}

.data-table code {
    font-size: 0.85em;
}

.data-table--footer {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8ebe6;
}

.data-table--footer th,
.data-table--footer td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.data-table--footer thead th {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table--footer tbody th[scope="row"] {
    background: rgba(255, 255, 255, 0.05);
    color: #dce3d8;
    font-weight: 600;
    width: 32%;
    min-width: 7.5rem;
}

.data-table--footer tbody td {
    color: #c5cbc1;
}

.data-table--footer tbody th {
    color: #dce3d8;
}

.data-table--footer a {
    color: #b7e4c7;
    word-break: break-word;
}

.data-table--wide {
    min-width: 640px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    outline: 1px solid rgba(255, 255, 255, 0.08);
    outline-offset: 0;
}

.listing-swiper {
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    position: relative;
}

.listing-swiper .listing-swiper__pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 2;
}

.listing-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.55;
}

.listing-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.15rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    background: var(--color-accent-2);
    border-color: var(--color-accent-2);
    color: #fff;
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent-2);
    outline-offset: 2px;
}

.btn--map {
    margin-top: 0.25rem;
}

.listing-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.listing-card__actions .btn {
    margin-top: 0;
}

.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--outline:hover {
    background: rgba(45, 106, 79, 0.08);
    color: var(--color-accent-2);
    border-color: var(--color-accent-2);
}

.listing-card__calendar-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.cal-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cal-pager__label {
    margin: 0;
    min-width: min(280px, 100%);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.cal-pager__btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cal-pager__btn:hover:not(:disabled) {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.cal-pager__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cal-month-slot--hidden {
    display: none !important;
}

.calendars.calendars--paged {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.listing-card__note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff8e6;
    border: 1px solid #f5e0a8;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #5c4a12;
}

.listing-card__note code {
    font-size: 0.85em;
    word-break: break-all;
}

.calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    overflow-x: auto;
}

@media (max-width: 640px) {
    .calendars {
        grid-template-columns: minmax(280px, 1fr);
    }
}

.mini-cal__title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.mini-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    min-width: 260px;
}

.mini-cal__dow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    text-align: center;
    padding: 0.15rem 0;
}

.mini-cal__cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.mini-cal__cell--empty {
    visibility: hidden;
}

.mini-cal__cell--free {
    background: rgba(82, 183, 136, 0.22);
    color: #1b4332;
    border-color: rgba(82, 183, 136, 0.35);
}

.mini-cal__cell--busy {
    background: rgba(193, 18, 31, 0.18);
    color: #7f1018;
    border-color: rgba(193, 18, 31, 0.35);
}

.mini-cal__cell--past {
    background: #eef0ec;
    color: #8a9184;
}

/* Footer */
.site-footer {
    background: #1a241f;
    color: #e8ebe6;
    padding: 3rem 0 0;
    margin-top: 2rem;
}

.site-footer a {
    color: #b7e4c7;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 0.5rem;
}

.site-footer__intro {
    max-width: 42rem;
}

.site-footer__brand {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: #fff;
}

.site-footer__tagline {
    margin: 0;
    color: #c5cbc1;
    line-height: 1.65;
}

.site-footer__operator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.site-footer__operator-logo {
    height: 2.25rem;
    width: auto;
    max-width: min(220px, 50vw);
    object-fit: contain;
    display: block;
    padding: 0.35rem 0.5rem;
    background: #fff;
    border-radius: 8px;
}

.site-footer__operator-text {
    min-width: 0;
}

.site-footer__operator-line {
    margin: 0;
    font-size: 0.92rem;
    color: #dce3d8;
    line-height: 1.55;
}

.site-footer__operator-line strong {
    color: #fff;
    font-weight: 600;
}

.site-footer__contacts {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer__contacts li {
    margin: 0;
}

@media (min-width: 640px) {
    .site-footer__contacts {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem 1.25rem;
    }
}

.site-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b7e4c7;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.site-footer__contact-link:hover {
    color: #d8f3e0;
}

.site-footer__ico {
    flex-shrink: 0;
    color: #8fbc9a;
}

.site-footer__contact-link:hover .site-footer__ico {
    color: #b7e4c7;
}

.site-footer__ico--wa {
    color: #25d366;
}

.site-footer__contact-link:hover .site-footer__ico--wa {
    color: #4de685;
}

.site-footer__tables {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.footer-tblock__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.footer-tblock__hint {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: #9aa396;
    line-height: 1.5;
}

.footer-tblock__note {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: #9aa396;
}

.site-footer code {
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    color: #e8ebe6;
}

.site-footer__bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom-inner {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #9aa396;
}

.site-footer__bottom-inner p {
    margin: 0;
}

/* Map modal (Leaflet) */
body.map-modal-open {
    overflow: hidden;
}

.map-modal {
    width: 75vw;
    max-width: 1100px;
    height: 75vh;
    max-height: 820px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.map-modal::backdrop {
    background: rgba(15, 22, 18, 0.55);
}

.map-modal__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.map-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.map-modal__title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    padding-right: 0.5rem;
}

.map-modal__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

.map-modal__close:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.map-modal__address {
    padding: 0.5rem 1rem 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    flex-shrink: 0;
}

.map-modal__map {
    flex: 1;
    min-height: 200px;
    z-index: 0;
}

.map-modal__map .leaflet-container {
    height: 100%;
    font-family: var(--font);
}

/* Ceník modal */
body.map-modal-open,
body.price-modal-open,
body.booking-modal-open,
body.payment-modal-open {
    overflow: hidden;
}

.price-modal {
    width: min(96vw, 920px);
    max-height: 88vh;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.price-modal::backdrop {
    background: rgba(15, 22, 18, 0.55);
}

.price-modal__inner {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    min-height: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.price-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.price-modal__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    padding-right: 0.5rem;
}

.price-modal__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

.price-modal__close:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.price-modal__body {
    padding: 1rem;
    overflow: auto;
    flex: 1;
    min-height: 0;
}

.price-modal__lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.55;
}

.data-table--price-grid {
    font-size: 0.82rem;
    min-width: 520px;
}

.data-table--price-grid th,
.data-table--price-grid td {
    white-space: nowrap;
}

.price-cell-dual {
    white-space: normal;
    min-width: 7.5rem;
    max-width: 10rem;
    font-size: 0.82rem;
    line-height: 1.45;
    vertical-align: middle;
}

.price-stack__czk {
    display: inline-block;
    font-weight: 600;
    color: var(--color-text);
}

.price-stack__eur {
    display: inline-block;
    font-size: 0.92em;
    font-weight: 500;
    color: var(--color-muted);
}

.listing-rates__fx {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.listing-rates__fx code {
    font-size: 0.88em;
}

.data-table--price-grid thead th:first-child,
.data-table--price-grid tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f0f3ec;
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.04);
}

.data-table--price-grid thead th:first-child {
    z-index: 2;
    background: #e4e9df;
}

/* Rezervace + platba */
.booking-modal,
.payment-modal {
    width: min(96vw, 520px);
    max-height: 90vh;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.booking-modal {
    width: min(98vw, 640px);
}

.payment-modal {
    width: min(96vw, 480px);
}

.booking-modal::backdrop,
.payment-modal::backdrop {
    background: rgba(15, 22, 18, 0.55);
}

.booking-modal__inner {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    min-height: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: visible;
}

.payment-modal__inner {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    min-height: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.booking-modal__header,
.payment-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.booking-modal__title,
.payment-modal__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.booking-modal__close,
.payment-modal__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

.booking-modal__close:hover,
.payment-modal__close:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.booking-modal__apt {
    margin: 0;
    padding: 0.5rem 1rem 0;
    font-weight: 600;
    color: var(--color-accent);
}

.booking-modal__form {
    padding: 0.75rem 1rem 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 1.25rem;
}

.booking-modal__dates-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-bottom: 0.35rem;
}

.booking-modal__date-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .booking-modal__dates-row {
        grid-template-columns: 1fr;
    }
}

.booking-field__input--date {
    cursor: default;
}

/* Vložené Flatpickr kalendáře v rezervačním modálu */
.booking-modal .flatpickr-calendar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0.25rem auto 0;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    font-family: var(--font);
    padding: 0 0 0.65rem;
    box-sizing: border-box;
}

.booking-modal .flatpickr-innerContainer {
    padding-bottom: 0.35rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.booking-modal .flatpickr-rContainer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.booking-modal .flatpickr-months {
    padding: 0.35rem 0.25rem 0.2rem;
}

.booking-modal .flatpickr-weekdays {
    padding: 0 0.35rem 0.45rem;
    margin-bottom: 0.15rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 1.75rem;
}

.booking-modal .flatpickr-weekdays .flatpickr-weekdaycontainer {
    gap: 0.2rem;
}

.booking-modal .flatpickr-days {
    padding: 0.25rem 0.35rem 1.15rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    display: block !important;
}

.booking-modal .flatpickr-days .dayContainer {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem 0.35rem;
    padding: 0.15rem 0.05rem 0.9rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    transform: none !important;
}

.booking-modal .flatpickr-day {
    border-radius: 10px;
    line-height: 1.2;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    max-height: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    border: 1px solid rgba(27, 67, 50, 0.22);
    background: linear-gradient(165deg, #d8f3dc 0%, #b7e4c7 100%);
    color: #1b4332;
    font-weight: 600;
    box-shadow: none !important;
}

.booking-modal .flatpickr-day:hover:not(.flatpickr-disabled),
.booking-modal .flatpickr-day:focus:not(.flatpickr-disabled) {
    background: linear-gradient(165deg, #c5ebc9 0%, #95d5b2 100%);
    border-color: rgba(27, 67, 50, 0.45);
    color: #0f2918;
}

.booking-modal .flatpickr-day.flatpickr-disabled:hover,
.booking-modal .flatpickr-day.flatpickr-disabled:focus {
    background: rgba(248, 215, 218, 0.85);
    border-color: rgba(180, 60, 70, 0.2);
    color: #7a2f38;
}

.booking-modal .flatpickr-day.prevMonthDay,
.booking-modal .flatpickr-day.nextMonthDay {
    color: var(--color-muted);
    opacity: 0.55;
    background: rgba(240, 243, 236, 0.6);
    border-color: transparent;
    font-weight: 500;
}

.booking-modal .flatpickr-day.flatpickr-disabled {
    color: #7a3340;
    background: linear-gradient(160deg, #fdecef 0%, #f8dfe3 100%);
    border: 1px solid rgba(180, 70, 82, 0.18);
    cursor: not-allowed;
    text-decoration: none;
    opacity: 1;
    font-weight: 600;
}

.booking-modal .flatpickr-day.prevMonthDay.flatpickr-disabled,
.booking-modal .flatpickr-day.nextMonthDay.flatpickr-disabled {
    opacity: 1;
    color: #8a4450;
    background: linear-gradient(160deg, #fdecef 0%, #f5d5da 100%);
}

.booking-modal .flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(45, 106, 79, 0.06);
}

.booking-modal .flatpickr-day.selected,
.booking-modal .flatpickr-day.startRange,
.booking-modal .flatpickr-day.endRange {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #fff !important;
    text-decoration: none;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.35) !important;
}

.booking-modal .flatpickr-day.selected.flatpickr-disabled,
.booking-modal .flatpickr-day.startRange.flatpickr-disabled,
.booking-modal .flatpickr-day.endRange.flatpickr-disabled {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #fff !important;
}

.booking-modal .flatpickr-current-month {
    font-weight: 600;
}

.booking-modal .flatpickr-months .flatpickr-prev-month:hover svg,
.booking-modal .flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--color-accent);
}

.booking-field {
    margin-bottom: 0.75rem;
}

.booking-field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.booking-field__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
}

.booking-modal__hint {
    margin: -0.35rem 0 0.75rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.booking-modal__price {
    margin: 0.5rem 0 0.25rem;
    padding: 0.65rem 0.75rem;
    background: rgba(45, 106, 79, 0.1);
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.booking-modal__price-sep {
    color: var(--color-muted);
}

.booking-modal__error {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.65rem;
    background: rgba(180, 40, 40, 0.1);
    border: 1px solid rgba(180, 40, 40, 0.25);
    border-radius: 10px;
    color: #7a1e1e;
    font-size: 0.88rem;
}

.booking-modal__actions {
    margin-top: 1rem;
}

.payment-modal__warn {
    margin: 0;
    padding: 0.65rem 1rem 0;
    font-size: 0.85rem;
    color: #7a4a00;
    background: #fff8e6;
    border-bottom: 1px solid #f0e0b8;
}

.payment-modal__lead {
    margin: 0;
    padding: 0.75rem 1rem 0;
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.55;
}

.payment-modal__currency {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.65rem 1rem 0;
}

.payment-modal__currency-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-muted);
}

.payment-modal__currency-seg {
    display: inline-flex;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.payment-modal__currency-btn {
    margin: 0;
    padding: 0.45rem 1rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--color-surface, #fff);
    color: var(--color-text, #1a1a1a);
}

.payment-modal__currency-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
}

.payment-modal__currency-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.payment-modal__currency-btn.is-active {
    background: var(--color-primary, #2a5f4a);
    color: #fff;
}

.payment-modal__currency-btn.is-active:hover:not(:disabled) {
    filter: brightness(1.05);
}

.payment-modal__qr-wrap {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.payment-modal__qr-wrap canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.payment-modal__dl {
    margin: 0 1rem 0.75rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.payment-modal__dl > div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem;
    font-size: 0.88rem;
    align-items: baseline;
}

@media (max-width: 480px) {
    .payment-modal__dl > div {
        grid-template-columns: 1fr;
    }
}

.payment-modal__dl dt {
    margin: 0;
    font-weight: 600;
    color: var(--color-muted);
}

.payment-modal__dl dd {
    margin: 0;
    word-break: break-word;
}

.payment-modal__confirm-link {
    margin: 0;
    padding: 0 1rem 0.5rem;
    font-size: 0.88rem;
}

.payment-modal__confirm-link a {
    color: var(--color-primary, #2a5f4a);
    font-weight: 600;
}

.payment-modal__note {
    margin: 0;
    padding: 0 1rem 1rem;
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.5;
}
