/*
    Penzion U Krbu
    Frontend styl webu
    Verze: 1.0.2
*/

/* ==============================
   01. Základní proměnné
   ============================== */
:root {
    --green: #627a3f;
    --green-dark: #4b6030;
    --cream: #f4f3ee;
    --cream-2: #efede6;
    --white: #ffffff;
    --text: #171a12;
    --muted: #6f7465;
    --line: #d9d5c9;
    --shadow: 0 16px 36px rgba(55, 50, 37, 0.10);
}

/* ==============================
   02. Reset a obecné prvky
   ============================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.6;
}

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

img {
    display: block;
}

main {
    overflow: hidden;
}

a {
    color: inherit;
}

.section {
    padding: 76px max(24px, calc((100vw - 1080px) / 2));
}

.muted-section {
    background: #f7f5ef;
}

.full {
    width: 100%;
}

.muted {
    color: var(--muted);
}

/* ==============================
   03. Tlačítka a formuláře
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--green);
    background: var(--green);
    color: var(--white);
    padding: 10px 22px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
}

.btn.outline,
.btn.secondary {
    background: var(--white);
    color: var(--green-dark);
}

.btn.outline:hover,
.btn.secondary:hover {
    background: var(--green);
    color: var(--white);
}

.btn.small {
    min-height: 34px;
    padding: 7px 14px;
    font-size: 13px;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    max-width: 100%;
}

.alert {
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    font-family: Arial, sans-serif;
}

.alert.success {
    border-color: #b8caa9;
    background: #f2f8ee;
    color: #3e6034;
}

.alert.error,
.summary-box.error {
    border-color: #d8aea7;
    background: #fff0ee;
    color: #7e2c22;
}

/* ==============================
   04. Horní menu
   ============================== */
.topbar {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 18px max(26px, calc((100vw - 1180px) / 2));
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.05));
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.topbar.scrolled {
    background: rgba(47, 56, 34, 0.96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.brand {
    color: var(--white);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.05;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: Arial, sans-serif;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.92;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nav-reserve {
    border: 1px solid rgba(255, 255, 255, 0.75);
    padding: 8px 13px;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 8px 11px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* ==============================
   05. Hero a dostupnost
   ============================== */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 610px;
    background-position: center;
    background-size: cover;
}

.subhero {
    min-height: 400px;
}

.detail-hero {
    min-height: 360px;
}

.hero-inner {
    width: 100%;
    padding: 0 max(28px, calc((100vw - 1080px) / 2)) 128px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--white);
    font-size: clamp(70px, 9vw, 118px);
    font-weight: 400;
    line-height: 0.94;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.30);
}

.availability-bar {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 154px 1fr 1fr 1fr 150px;
    width: min(1080px, calc(100% - 48px));
    min-height: 64px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    transform: translate(-50%, 0%);
}

.availability-title {
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 18px;
    line-height: 1.15;
}

.availability-bar label {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    border-right: 1px solid var(--line);
}

.availability-bar label span {
    position: absolute;
    left: 17px;
    top: 8px;
    color: #6e6e69;
    font-family: Arial, sans-serif;
    font-size: 11px;
    pointer-events: none;
}

.availability-bar input {
    width: 100%;
    height: 64px;
    border: 0;
    background: transparent;
    padding: 24px 16px 8px;
    color: #363a2d;
    font-family: Arial, sans-serif;
    outline: none;
}

.availability-bar button {
    border: 0;
    background: var(--green);
    color: var(--white);
    padding: 0 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background 0.18s ease;
}

.availability-bar button:hover {
    background: var(--green-dark);
}

.availability-mobile-button {
    display: none;
}

/* ==============================
   06. Výhody na úvodu
   ============================== */
.benefits {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 70px max(24px, calc((100vw - 1080px) / 2)) 42px;
    background: #f8f7f1;
}

.benefits article {
    padding: 0 28px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.benefits article:last-child {
    border-right: 0;
}

.benefits h3 {
    margin: 6px 0 8px;
    font-size: 17px;
}

.benefits p {
    margin: 0;
    font-size: 14px;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: var(--green);
}

.benefit-icon .icon,
.benefit-icon .icon svg {
    width: 34px;
    height: 34px;
}

/* ==============================
   07. Nadpisy sekcí
   ============================== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 42px;
    text-align: center;
}

.section-title h2 {
    margin: 0;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.15;
}

.section-title span {
    width: 64px;
    height: 1px;
    background: var(--green);
}

/* ==============================
   08. Úvodní náhled pokojů
   ============================== */
.room-slider {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 34px;
}

.room-slider-viewport {
    position: relative;
}

.room-slide {
    display: none;
    grid-template-columns: minmax(280px, 410px) 1fr;
    align-items: center;
    gap: 34px;
}

.room-slide.is-active {
    display: grid;
}

.room-slide > img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.slide-arrow {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 70px;
    line-height: 1;
    cursor: pointer;
}

.room-slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.room-feature-info h3 {
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
}

.icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 28px;
    color: var(--green-dark);
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.room-feature-info p {
    max-width: 470px;
    margin-bottom: 26px;
}

.room-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.room-slider-dot {
    width: 12px;
    height: 12px;
    border: 1px solid var(--green);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.room-slider-dot.is-active {
    background: var(--green);
}

/* ==============================
   09. Recenze
   ============================== */
.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
    text-align: center;
}

.reviews-summary-score {
    font-size: 42px;
    color: var(--green-dark);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.review-card {
    background: var(--white);
    border: 1px solid #e2dfd5;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 12px 26px rgba(50, 47, 38, 0.06);
}

.stars {
    margin: 12px 0;
    color: #e0a329;
    letter-spacing: 3px;
}

.stars.small {
    margin: 0;
    font-size: 14px;
    letter-spacing: 2px;
}


.star-meter {
    position: relative;
    display: inline-block;
    margin: 12px 0;
    color: #d8d1bf;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 4px;
}

.star-meter-empty,
.star-meter-fill {
    display: block;
    white-space: nowrap;
}

.star-meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #e0a329;
}

.google-link-summary {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.google-reviews-note {
    max-width: 660px;
}

.review-card span {
    display: block;
    color: #858577;
    font-size: 13px;
}

.source-review-card,
.google-review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.source-review-card p,
.google-review-card p {
    margin: 0;
}


.reviews-empty {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 24px 28px;
    border: 1px solid rgba(44, 72, 43, .18);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 36px rgba(34, 34, 34, .05);
}

.reviews-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.reviews-action {
    margin-top: 28px;
    text-align: center;
}

/* ==============================
   10. Patka
   ============================== */
.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.7fr;
    gap: 46px;
    padding: 50px max(24px, calc((100vw - 1080px) / 2));
    border-top: 1px solid #e5e1d6;
    background: var(--white);
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 18px;
    font-weight: 400;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 7px 0;
    color: #3e4635;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-map iframe,
.contact-card iframe {
    width: 100%;
    height: 190px;
    border: 0;
}

/* ==============================
   11. Seznam pokojů
   ============================== */
.room-list-section {
    padding-top: 86px;
}

.search-info {
    margin: 0 0 36px;
    text-align: center;
}

.search-info h2 {
    margin: 0;
    font-size: 38px;
    font-weight: 400;
}

.search-info p {
    margin: 8px 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
}

.room-list {
    display: grid;
    gap: 64px;
}

.room-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    background: var(--white);
    padding: 34px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), var(--shadow);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-card h2 {
    margin: 8px 0 10px;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
}

.small-icons {
    gap: 12px;
    font-size: 13px;
}

.room-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.empty-state {
    padding: 50px;
    border: 1px solid var(--line);
    background: var(--white);
    text-align: center;
}

/* ==============================
   12. Detail pokoje
   ============================== */
.detail-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 42px;
    align-items: start;
}

.gallery .main-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.thumb-button {
    border: 2px solid transparent;
    background: var(--white);
    padding: 0;
    cursor: pointer;
}

.thumb-button.active {
    border-color: var(--green);
}

.thumb-button img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.reservation-panel {
    border: 1px solid #bab8ad;
    background: var(--white);
    padding: 34px;
    box-shadow: var(--shadow);
}

.reservation-panel h1 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.2;
}

.line {
    width: 60px;
    height: 1px;
    margin: 14px 0;
    background: var(--green);
}

.price {
    margin: 10px 0 24px;
    color: var(--green-dark);
    font-size: 27px;
}

.room-facts {
    display: grid;
    gap: 13px;
    color: var(--green-dark);
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.mini-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

.mini-form label {
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.mini-form input {
    width: 100%;
    height: 40px;
    margin-top: 5px;
    border: 1px solid var(--line);
    padding: 8px;
}

.mini-form label:nth-of-type(3),
.mini-form .full {
    grid-column: 1 / 3;
}

.summary-box {
    margin: 16px 0;
    border: 1px solid var(--line);
    background: #f7f6f0;
    padding: 14px;
    font-family: Arial, sans-serif;
}

.info-boxes {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 58px;
    border: 1px solid #ece8de;
    background: var(--white);
    padding: 34px;
}

.info-boxes article:first-child {
    border-right: 1px solid #e5e1d7;
    padding-right: 44px;
}

.info-boxes article:last-child {
    padding-left: 44px;
}

.info-boxes h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 400;
}

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    color: #4e563e;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* ==============================
   13. Kontakty
   ============================== */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    border: 1px solid #c9c6ba;
    background: var(--white);
    padding: 36px;
}

.contact-card h2 {
    margin-top: 0;
    font-size: 32px;
}

.contact-card p {
    font-size: 18px;
}

.contact-card iframe {
    height: 260px;
}

.contact-form-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #c9c6ba;
    background: var(--white);
}

.contact-form {
    background: #fbfaf7;
    padding: 34px;
}

.contact-form h3,
.contact-help h3 {
    margin-top: 0;
    font-size: 25px;
}

.contact-form label,
.form-grid label {
    display: block;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.contact-form input,
.contact-form textarea,
.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    margin-top: 5px;
    border: 1px solid #dedbd0;
    background: var(--white);
    padding: 10px;
    font-family: Arial, sans-serif;
}

.contact-help {
    padding: 58px 60px;
}

.green-text {
    color: var(--green);
    font-size: 25px;
}

/* ==============================
   14. Výsledek rezervace a modal
   ============================== */
.reservation-result {
    padding-top: 120px;
}

.success-panel {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 54px;
    text-align: center;
}

.modal {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 24, 16, 0.62);
}

.modal.open {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(680px, 100%);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid #d7d1c3;
    background: var(--white);
    padding: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: 0;
    background: transparent;
    font-size: 34px;
    cursor: pointer;
}

.modal-card h2 {
    margin-top: 0;
    font-size: 32px;
    font-weight: 400;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid .full,
.form-grid .summary-box {
    grid-column: 1 / 3;
}

.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
}

.checkbox-line input {
    width: auto !important;
    margin: 0 !important;
}

.admin-link {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    border: 1px solid #dddddd;
    background: var(--white);
    color: #666666;
    padding: 8px 10px;
    font-size: 12px;
    text-decoration: none;
}

/* ==============================
   15. SVG ikonky
   ============================== */
.icon {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--green-dark);
}

.icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-dark);
    line-height: 1.35;
}

.icon-label.strong span:last-child,
.contact-lines strong {
    font-weight: 700;
}

.room-facts .icon-label,
.equipment-grid .icon-label,
.contact-lines .icon-label,
.footer-lines .icon-label {
    font-family: Arial, sans-serif;
}

.contact-lines p,
.footer-lines p {
    margin: 12px 0;
}

.footer-lines .icon-label span:last-child,
.contact-lines .icon-label span:last-child {
    color: #3e4635;
}

/* ==============================
   16. Galerie
   ============================== */
.gallery-page {
    background: var(--cream);
}

.gallery-section {
    max-width: 1080px;
    margin: 0 auto 64px;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.gallery-section-head {
    margin-bottom: 24px;
    text-align: center;
}

.gallery-section-head h3 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 400;
}

.gallery-section-head p {
    max-width: 640px;
    margin: 0 auto;
    color: #4d4f45;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.04);
}

.gallery-grid span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: rgba(47, 56, 34, 0.82);
    color: var(--white);
    font-family: Arial, sans-serif;
}

/* ==============================
   17. Tablet
   ============================== */
@media (max-width: 1100px) {
    .availability-bar {
        grid-template-columns: 150px 1fr 1fr 1fr 145px;
    }

    .room-card {
        grid-template-columns: 300px 1fr;
        gap: 34px;
    }

    .detail-layout {
        grid-template-columns: 1.2fr 0.9fr;
        gap: 30px;
    }
}

/* ==============================
   18. Mobil
   ============================== */
@media (max-width: 900px) {
    body {
        font-size: 15px;
    }

    .section {
        padding: 62px 22px;
    }

    .topbar {
        min-height: 66px;
        padding: 12px 18px;
        background: rgba(47, 56, 34, 0.96);
    }

    .brand {
        max-width: calc(100% - 62px);
        font-size: 21px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 66px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(47, 56, 34, 0.98);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .nav-reserve {
        border: 0;
    }

    .hero {
        position: relative;
        z-index: 2;
        display: block;
        height: 420px;
        min-height: 420px;
        padding-top: 66px;
        padding-bottom: 0;
        background-color: var(--cream);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        overflow: visible;
    }

    .subhero {
        min-height: 330px;
    }

    .detail-hero {
        min-height: 300px;
    }

    .hero-inner {
        position: relative;
        z-index: 2;
        padding: 34px 20px 0;
    }

    .hero h1 {
        font-size: clamp(48px, 16vw, 86px);
    }

    .availability-bar {
        position: absolute;
        z-index: 5;
        top: 260px;
        left: 50%;
        bottom: auto;
        display: grid;
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        max-width: 460px;
        margin: 0;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 16px 35px rgba(37, 43, 28, 0.16);
        transform: translateX(-50%);
    }

    .availability-title {
        justify-content: center;
        min-height: 62px;
        padding: 14px 18px;
        text-align: center;
    }

    .availability-bar label {
        display: block;
        min-height: 0;
        padding: 12px 14px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .availability-bar span {
        position: static;
        display: block;
        margin: 0 0 8px;
        font-size: 12px;
    }

    .availability-bar input {
        display: block;
        width: 100%;
        height: 46px;
        border: 1px solid var(--line);
        font-size: 16px;
        padding: 10px 10px 0px 10px;
    }
    .availability-bar label span{
        font-size: 9px;
            top: 13px;
    }

    .availability-bar button {
        width: 100%;
        min-height: 56px;
        padding: 14px 16px;
    }


    .availability-toggle-mobile {
        overflow: visible;
    }

    .availability-toggle-mobile .availability-mobile-button {
        display: block;
        width: 100%;
        min-height: 58px;
        padding: 16px 18px;
        background: var(--green);
        color: var(--white);
        font-size: 17px;
        line-height: 1.25;
        text-align: center;
    }

    .availability-toggle-mobile.is-open {
        top: 260px;
        margin-top: 0;
    }

    .availability-toggle-mobile .availability-title {
        display: none;
    }

    .availability-toggle-mobile:not(.is-open) label,
    .availability-toggle-mobile:not(.is-open) button[type="submit"] {
        display: none;
    }

    .availability-toggle-mobile.is-open label,
    .availability-toggle-mobile.is-open button[type="submit"] {
        animation: availabilitySlideDown 0.22s ease;
    }

    @keyframes availabilitySlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    .benefits {
        position: relative;
        z-index: 1;
    }

    .availability-toggle-mobile.is-open {
        z-index: 30;
    }
    .benefits {
        grid-template-columns: 1fr;
        padding: 44px 22px 32px;
    }

    .benefits article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 24px 0;
    }

    .benefits article:last-child {
        border-bottom: 0;
    }

    .section-title {
        gap: 14px;
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .section-title span {
        width: 44px;
    }

    .room-slider,
    .room-slide,
    .review-grid,
    .room-card,
    .detail-layout,
    .info-boxes,
    .contact-card,
    .contact-form-card,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .room-slider {
        gap: 22px;
        touch-action: pan-y;
    }

    .room-slider-viewport {
        overflow: hidden;
    }

    .room-slide {
        gap: 22px;
    }

    .room-slide.is-active {
        animation: roomSwipeIn 0.2s ease;
    }

    @keyframes roomSwipeIn {
        from {
            opacity: 0;
            transform: translateX(18px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .slide-arrow {
        display: none;
    }

    .room-slide > img,
    .room-card img,
    .gallery .main-photo {
        height: 300px;
    }

    .review-grid {
        grid-template-columns: 1fr 1fr;
    }


    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid img {
        height: 230px;
    }

    .room-card {
        gap: 22px;
        padding: 22px;
    }

    .room-list {
        gap: 34px;
    }

    .mini-form,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .mini-form label:nth-of-type(3),
    .mini-form .full,
    .form-grid .full,
    .form-grid .summary-box {
        grid-column: 1;
    }

    .reservation-panel {
        padding: 28px 22px;
    }

    .info-boxes article:first-child {
        border-right: 0;
        border-bottom: 1px solid #e5e1d7;
        padding: 0 0 28px;
    }

    .info-boxes article:last-child {
        padding: 28px 0 0;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .contact-help {
        padding: 32px;
    }

    .site-footer {
        gap: 26px;
        padding: 42px 22px;
    }

    .footer-map iframe,
    .contact-card iframe {
        height: 220px;
    }

    .modal {
        align-items: flex-start;
        padding: 18px;
    }

    .modal-card {
        max-height: calc(100vh - 36px);
        padding: 30px 20px;
    }
}

/* ==============================
   18. Malý mobil
   ============================== */
@media (max-width: 640px) {
    .section {
        padding: 52px 18px;
    }

    .hero {
        height: 312px;
        min-height: 314px;
        background-size: cover;
    }

    .subhero {
        min-height: 300px;
    }

    .hero h1 {
        font-size: clamp(44px, 18vw, 70px);
    }

    .availability-bar {
        top: 250px;
        width: calc(100% - 24px);
    }

    .availability-toggle-mobile.is-open {
        top: 250px;
    }


    .availability-toggle-mobile .availability-mobile-button {
        font-size: 16px;
        min-height: 56px;
    }

    .availability-title {
        font-size: 15px;
        line-height: 1.2;
    }

    .availability-bar label {
        padding: 10px 12px 9px;
    }

    .availability-bar input {
        font-size: 16px;
    }

    .benefits h3 {
        font-size: 18px;
    }

    .room-slide > img {
        height: 250px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }


    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 230px;
    }

    .room-card {
        padding: 18px;
    }

    .room-card img {
        height: 230px;
    }

    .room-card h2 {
        font-size: 26px;
    }

    .room-actions {
        align-items: stretch;
    }

    .room-actions .btn {
        width: 100%;
    }

    .gallery .main-photo {
        height: 280px;
    }

    .thumbs {
        gap: 8px;
    }

    .thumb-button img {
        height: 84px;
    }

    .reservation-panel h1 {
        font-size: 28px;
    }

    .price {
        font-size: 22px;
    }

    .info-boxes,
    .contact-card {
        padding: 24px 18px;
    }

    .contact-form {
        padding: 24px 18px;
    }

    .contact-help {
        padding: 28px 18px;
    }

    .success-panel {
        padding: 38px 20px;
    }

    .modal-card h2 {
        padding-right: 34px;
        font-size: 27px;
    }
}

/* ==============================
   19. Nejmenší displeje
   ============================== */
@media (max-width: 420px) {
    .topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand {
        font-size: 19px;
    }

    .hero-inner {
        padding-bottom: 112px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .availability-title {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 29px;
    }

    .section-title span {
        width: 32px;
    }

    .icons-row {
        gap: 10px;
    }

    .icon-label {
        width: 100%;
    }

    .rating-card strong {
        font-size: 40px;
    }

    .contact-card h2 {
        font-size: 28px;
    }

    .green-text {
        font-size: 22px;
    }
}
