/* =========================================================
   WILLA NA WIERCHU ZAKOPANE — style.css
   Paleta: ciemna zieleń lasu + biel + akcent zielony góralski
   ========================================================= */

/* ---------- RESET / BAZA ---------- */
:root {
    --color-primary: #1b5e20;       /* ciemna zieleń lasu */
    --color-accent:  #2e7d32;       /* zieleń (świerk) */
    --color-bg:      #fafafa;
    --color-bg-alt:  #f0ebe3;       /* lekko beżowy */
    --color-text:    #2c2c2c;
    --color-muted:   #6b6b6b;
    --max-width:     1200px;
    --radius:        8px;
    --shadow:        0 2px 12px rgba(0,0,0,0.08);
    --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- NAWIGACJA ---------- */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    z-index: 100;
}
.nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.nav__logo {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    white-space: nowrap;
    line-height: 1;
}
.nav__logo-img {
    height: 68px;
    width: auto;
    display: block;
}
@media (max-width: 860px) {
    .nav__logo-img { height: 56px; }
}
@media (max-width: 480px) {
    .nav__logo-img { height: 44px; }
}
.nav__panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
.nav__menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}
.nav__menu a {
    font-weight: 500;
    transition: color .2s;
    padding: .4rem 0;
}
.nav__cta {
    background: var(--color-accent);
    color: white !important;
    padding: .55rem 1rem;
    border-radius: var(--radius);
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}
.nav__cta:hover { background: #1b5e20; color: white !important; }

/* ---------- HAMBURGER (mobile) ---------- */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
.nav__toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    transform-origin: center;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7.5px) 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(-7.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    height: 80vh;
    min-height: 500px;
    /* Fallback dla starych przeglądarek */
    background:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
        url('../images/hero/hero.jpg') center/cover;
    /* Modern: image-set() z WebP first (~30% mniej KB), JPG fallback */
    background:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
        image-set(
            url('../images/hero/hero.webp') type('image/webp'),
            url('../images/hero/hero.jpg')  type('image/jpeg')
        ) center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
}
.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: .9rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}
.btn--primary {
    background: var(--color-accent);
    color: white;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46,125,50,0.4);
    color: white;
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }

.section__title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: .5rem;
    color: var(--color-primary);
}
.section__lead {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

/* ---------- WELCOME / O NAS ---------- */
.welcome__container { max-width: 900px; }
.welcome__lead {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 1rem 0 1.5rem;
    line-height: 1.7;
}
.welcome__body {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.feature {
    text-align: center;
    padding: 1rem;
}
.feature__icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin: 0 auto 1rem;
    display: block;
}
.feature h3 {
    color: var(--color-primary);
    margin-bottom: .5rem;
    font-size: 1.1rem;
}
.feature p {
    color: var(--color-muted);
    font-size: .95rem;
}

/* ---------- POKOJE ---------- */
.rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.room-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.room-card[data-apt] { cursor: pointer; }
.room-card[data-apt]:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.room-card[data-apt]:focus { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.room-card[data-apt]:focus:not(:focus-visible) { outline: none; }

.room-card__media { position: relative; }
.room-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #ddd;
    display: block;
}
.room-card__badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .55);
    color: white;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .8rem;
    letter-spacing: .02em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.room-card__body { padding: 1.5rem; }
.room-card__body h3 {
    color: var(--color-primary);
    margin-bottom: .5rem;
}
.room-card__features {
    list-style: none;
    margin: 1rem 0;
}
.room-card__features li {
    padding: .25rem 0;
    color: var(--color-muted);
    font-size: .9rem;
}
.room-card__features li::before {
    content: "✓ ";
    color: var(--color-accent);
    font-weight: bold;
}
.room-card__cta {
    display: inline-block;
    margin-top: .5rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: .9rem;
    transition: transform .2s;
}
.room-card[data-apt]:hover .room-card__cta { transform: translateX(4px); }
.room-card__price {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.1rem;
}

/* ---------- MODAL: GALERIA APARTAMENTU ---------- */
.apt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: aptFadeIn .2s ease-out;
}
.apt-modal[hidden] { display: none; }
@keyframes aptFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.apt-modal__inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.apt-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: white;
    padding-right: 60px; /* miejsce na X */
}
.apt-modal__title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}
.apt-modal__counter {
    color: #ddd;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}
.apt-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-primary);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    transition: transform .15s;
}
.apt-modal__close:hover { transform: scale(1.1); }
.apt-modal__main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.apt-modal__img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    aspect-ratio: 4/3;             /* zapobiega CLS gdy modal się otwiera */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
    background: #222;
}
.apt-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-primary);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    transition: background .15s, transform .15s;
}
.apt-modal__nav:hover { background: white; transform: translateY(-50%) scale(1.08); }
.apt-modal__nav--prev { left: -8px; }
.apt-modal__nav--next { right: -8px; }
.apt-modal__thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    justify-content: center;
    padding: .25rem 0;
    flex-wrap: wrap;
}
.apt-modal__thumb {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: .55;
    transition: opacity .2s, transform .15s;
    border: 2px solid transparent;
    flex-shrink: 0;
}
.apt-modal__thumb:hover { opacity: .9; transform: translateY(-2px); }
.apt-modal__thumb--active {
    opacity: 1;
    border-color: var(--color-accent);
}

@media (max-width: 700px) {
    .apt-modal { padding: .75rem; }
    .apt-modal__title { font-size: 1.15rem; }
    .apt-modal__close { width: 38px; height: 38px; font-size: 1.4rem; }
    .apt-modal__nav { width: 40px; height: 40px; font-size: 1.4rem; }
    .apt-modal__nav--prev { left: 0; }
    .apt-modal__nav--next { right: 0; }
    .apt-modal__img { max-height: 56vh; }
    .apt-modal__thumb { width: 60px; height: 45px; }
}

/* ---------- GALERIA ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery__item {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .3s, opacity .3s;
    background: #ddd;
}
.gallery__item:hover {
    transform: scale(1.02);
    opacity: .9;
}

/* Lightbox (otwierany przez main.js) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    user-select: none;
}
.lightbox.active { display: flex; }
.lightbox__figure {
    margin: 0;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}
.lightbox img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.lightbox__counter {
    color: white;
    margin-top: .8rem;
    font-size: .9rem;
    opacity: .85;
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s;
}
.lightbox__close { top: 16px; right: 16px; font-size: 28px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(0,0,0,0.8); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.1); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

@media (max-width: 640px) {
    .lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
    .lightbox__close { width: 40px; height: 40px; font-size: 24px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}

/* ---------- BOOKING / FORMULARZ ZAPYTANIOWY ---------- */
.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hp {
    /* Honeypot — niewidoczne dla ludzi, widoczne dla botów */
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.form-field--wide { grid-column: 1 / -1; }
.form-field span {
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-primary);
}
.form-field span small {
    font-weight: 400;
    color: var(--color-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
    font: inherit;
    padding: .7rem .9rem;
    border: 1px solid #d4cfc7;
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.captcha {
    background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: var(--radius);
}
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn--secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn--secondary:hover {
    background: var(--color-primary);
    color: white;
}
.form-status {
    margin-top: 1rem;
    padding: 0;
    text-align: center;
    font-weight: 500;
}
.form-status--success {
    padding: 1rem;
    background: #e8f5e9;
    color: #1b5e20;
    border-radius: var(--radius);
}
.form-status--error {
    padding: 1rem;
    background: #ffebee;
    color: #b71c1c;
    border-radius: var(--radius);
}

@media (max-width: 600px) {
    .booking-form { padding: 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field { grid-column: 1 / -1 !important; }
}

/* ---------- KONTAKT ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact__info p { margin-bottom: 1rem; }

@media (max-width: 700px) {
    .contact { grid-template-columns: 1fr; }
    .nav__menu { gap: .8rem; font-size: .9rem; }
}

/* ---------- COOKIE BANNER (RODO) ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--color-accent);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
    z-index: 999;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
/* Bez tej reguły CSS „display: flex" wyżej nadpisuje natywne „display: none"
   wynikające z atrybutu HTML `hidden`, więc banner nigdy się nie chowa
   po kliknięciu Akceptuję/Odrzuć (banner.hidden = true nie zadziała). */
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
    flex: 1;
    min-width: 250px;
    font-size: .9rem;
    color: var(--color-text);
}
.cookie-banner__text a {
    color: var(--color-accent);
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    gap: .5rem;
}
.btn--sm {
    padding: .5rem 1rem;
    font-size: .9rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 3rem 0 1.5rem;
    font-size: .9rem;
}
.footer a { color: #f0ebe3; }
.footer a:hover { color: white; text-decoration: underline; }
.footer__container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    row-gap: 1.5rem;
}
.footer__col {
    line-height: 1.9;
}
.footer__col strong {
    font-size: 1.05rem;
    color: white;
    display: block;
    margin-bottom: .35rem;
}
.footer__badges {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    padding: 1.25rem 0 1rem;
    margin-top: .5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.footer__badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .82rem;
    color: #f0ebe3;
    white-space: nowrap;
}
.footer__bottom {
    grid-column: 1 / -1;
    padding-top: 1rem;
    text-align: center;
    font-size: .82rem;
    opacity: .75;
}
.footer__lang {
    opacity: .7;
    letter-spacing: .05em;
}
@media (max-width: 720px) {
    .footer__container { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =========================================================
   NEW v2 SECTIONS — Booking-aligned redesign
   Hero badges, language switch, wellness, surroundings,
   reviews, audience, rules
   ========================================================= */

/* ---------- NAV: language switcher ---------- */
.nav__lang {
    display: flex;
    gap: .25rem;
    margin-left: 1rem;
}
.nav__lang-link {
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .55rem;
    border-radius: 6px;
    color: var(--color-muted) !important;
    letter-spacing: .04em;
    transition: background .2s, color .2s;
}
.nav__lang-link:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary) !important;
}
.nav__lang-link--active {
    background: var(--color-primary);
    color: white !important;
}
@media (max-width: 900px) {
    .nav__container { flex-wrap: wrap; row-gap: .5rem; }
    .nav__lang { margin-left: auto; order: 3; }
}

/* ---------- HERO v3: minimalistic ---------- */
.hero {
    position: relative;
}
.hero__overlay {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero__eyebrow {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}
.hero__subtitle {
    margin-bottom: 3rem;
    max-width: 580px;
    opacity: .95;
}
.hero__scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    color: white !important;
    padding: 1.1rem 2.2rem;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    text-decoration: none;
    transition: transform .3s, background .3s, border-color .3s;
}
.hero__scroll:hover {
    background: rgba(255,255,255,0.18);
    border-color: white;
    transform: translateY(2px);
}
.hero__scroll-label {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.hero__scroll svg {
    width: 22px;
    height: 22px;
    animation: heroArrowBounce 2s ease-in-out infinite;
}
@keyframes heroArrowBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

/* ---------- KEY FACTS (Najważniejsze) ---------- */
.key-facts {
    background: white;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-bg-alt);
    position: relative;
    z-index: 2;
}
.key-facts__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
}
.key-facts__rating {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding-right: 2rem;
    border-right: 1px solid var(--color-bg-alt);
}
.key-facts__rating-score {
    background: #003580;          /* Booking blue */
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    padding: .55rem .85rem;
    border-radius: 10px 10px 10px 2px;
    min-width: 3.3rem;
    text-align: center;
}
.key-facts__rating-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.key-facts__rating-meta strong {
    font-size: 1.05rem;
    color: var(--color-primary);
}
.key-facts__rating-meta small {
    color: var(--color-muted);
    font-size: .82rem;
}
.key-facts__usp {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}
.key-facts__usp li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.3;
}
.key-facts__usp-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}
.key-facts__usp-lbl {
    font-size: .85rem;
    color: var(--color-muted);
    margin-top: .2rem;
}
.key-facts__cta {
    display: flex;
    gap: .6rem;
    flex-direction: column;
}
.key-facts__cta .btn {
    padding: .65rem 1.3rem;
    font-size: .9rem;
    white-space: nowrap;
}
@media (max-width: 960px) {
    .key-facts__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .key-facts__rating {
        justify-content: center;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--color-bg-alt);
    }
    .key-facts__usp {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .key-facts__cta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ---------- ROOM CARD: capacity badge + meta ---------- */
.room-card__capacity {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    font-size: .8rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.room-card__meta {
    color: var(--color-muted);
    font-size: .82rem;
    margin: -.35rem 0 .55rem;
    letter-spacing: .015em;
}

/* ---------- BUILDING PLAN PLACEHOLDER ---------- */
.building-plan {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border: 1px dashed rgba(93,64,55,0.3);
}
.building-plan__inner {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}
.building-plan__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    color: var(--color-primary);
    opacity: .7;
}
.building-plan__icon svg { width: 100%; height: 100%; }
.building-plan__text h3 {
    font-size: 1.05rem;
    margin-bottom: .25rem;
    color: var(--color-primary);
}
.building-plan__text p {
    font-size: .9rem;
    color: var(--color-muted);
    margin: 0;
}

/* ---------- AMENITY GRID (Strefa relaksu) ---------- */
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.amenity-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .25s, box-shadow .25s;
}
.amenity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}
.amenity-card__icon {
    width: 38px;
    height: 38px;
    color: var(--color-accent);
    margin-bottom: .8rem;
}
.amenity-card h3 {
    font-size: 1.15rem;
    margin-bottom: .4rem;
    color: var(--color-primary);
}
.amenity-card p {
    font-size: .92rem;
    color: var(--color-text);
    line-height: 1.55;
}
.amenity-card--feature {
    border-left: 4px solid var(--color-accent);
}
.amenity-card__tag {
    display: inline-block;
    margin-top: .9rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a6d3b;
    letter-spacing: .02em;
}
.amenity-card__tag--free {
    background: #e8f5e9;
    color: #1b5e20;
}

/* ---------- SURROUNDINGS (Okolica) ---------- */
.surroundings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}
@media (max-width: 720px) {
    .surroundings { grid-template-columns: 1fr; gap: 1.5rem; }
}
.surroundings__group {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--color-bg-alt);
}
.surroundings__group svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}
.surroundings__list {
    list-style: none;
    padding: 0;
    font-size: .95rem;
    line-height: 1.95;
}
.surroundings__list li {
    display: flex;
    gap: .9rem;
    padding: .15rem 0;
    border-bottom: 1px dotted rgba(0,0,0,0.06);
}
.surroundings__list li:last-child { border-bottom: none; }
.surroundings__list strong {
    color: var(--color-accent);
    flex-shrink: 0;
    min-width: 4.5rem;
    font-variant-numeric: tabular-nums;
}
.surroundings__note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: var(--color-muted);
    font-style: italic;
}

/* ---------- REVIEWS (Opinie) ---------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}
.review {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    margin: 0;
    border-top: 3px solid var(--color-accent);
}
.review::before {
    content: '"';
    position: absolute;
    top: -.5rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: .2;
    font-family: Georgia, serif;
    line-height: 1;
}
.review blockquote {
    font-size: .94rem;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0 0 1rem;
    padding-top: .5rem;
    font-style: italic;
}
.review figcaption {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    color: var(--color-muted);
    border-top: 1px solid var(--color-bg-alt);
    padding-top: .7rem;
}
.review__author {
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}
.review__source {
    font-style: normal;
    opacity: .8;
}
.reviews__more {
    text-align: center;
    margin-top: 2rem;
    font-size: .95rem;
}
.reviews__more a {
    color: var(--color-accent);
    font-weight: 600;
}

/* ---------- AUDIENCE / DLA KOGO ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}
.audience-card {
    background: var(--color-bg-alt);
    padding: 1.4rem 1.3rem;
    border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s;
}
.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    background: white;
}
.audience-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: .8rem;
    line-height: 1.3;
}
.audience-card ul {
    list-style: none;
    padding: 0;
    font-size: .9rem;
    line-height: 1.7;
}
.audience-card ul li {
    padding-left: 1rem;
    position: relative;
}
.audience-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ---------- RULES (Zasady pobytu / FAQ) ---------- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}
.rules-item {
    background: white;
    padding: 1.4rem 1.3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.rules-item h3 {
    font-size: 1.02rem;
    color: var(--color-primary);
    margin-bottom: .5rem;
}
.rules-item p {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}
.rules-item strong { color: var(--color-accent); }

/* ---------- CONTACT addons ---------- */
.contact__info small {
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: normal;
}
.contact__booking {
    margin-top: 1.25rem !important;
}

/* ---------- JUSTOWANIE TEKSTU (cała strona) ---------- */
/* Justify wszędzie w treści, z auto-hyphens żeby na mobile nie było wielkich dziur */
.welcome__lead,
.welcome__body,
.amenity-card p,
.room-card__body p,
.rules-item p,
.review blockquote,
.legal p,
.legal ol li,
.legal ul li,
.audience-card ul li,
.about-us p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Wyjątki: krótkie elementy zostają centered (override globalnego justify) */
.section__title,
.hero__title,
.hero__subtitle,
.hero__eyebrow,
.key-facts *,
.surroundings__note,
.reviews__more,
.legal__meta,
.legal__intro,
.feature h3 {
    text-align: center;
    hyphens: manual;
}
/* Opisy pod ikonami — wyjustowane (welcome features i strefa relaksu) */
.feature p,
.amenity-card p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ---------- ROOMS GROUP TITLE (Apartamenty 1-4 / Pokoje 5-6) ---------- */
.rooms-group__title,
h3.rooms-group__title {
    display: block !important;
    font-size: clamp(1.4rem, 2.8vw, 1.85rem) !important;
    color: var(--color-primary) !important;
    text-align: center !important;
    margin: 3rem 0 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    position: relative;
    padding-bottom: .75rem;
    hyphens: manual;
}
.rooms-group__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: .75rem auto 0;
    border-radius: 2px;
}
/* Pierwszy (Apartamenty 1-4) ma mniejszy margin-top */
section .container > .rooms-group__title:first-of-type {
    margin-top: 2rem !important;
}

/* ---------- LEGAL pages (polityka prywatności / regulamin) ---------- */
.legal__container {
    max-width: 760px;
    margin: 0 auto;
}
.legal h1 {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: var(--color-primary);
    margin-bottom: .5rem;
}
.legal__meta {
    color: var(--color-muted);
    font-size: .9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-bg-alt);
}
.legal h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    color: var(--color-primary);
    margin: 2rem 0 .75rem;
}
.legal p, .legal ul {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.legal ul {
    padding-left: 1.5rem;
}
.legal ul li {
    margin-bottom: .4rem;
}
.legal a {
    color: var(--color-accent);
    text-decoration: underline;
}
.legal__intro {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: .25rem;
}
.legal__note {
    background: #fff8e1;
    border-left: 3px solid #ffa726;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-size: .92rem;
    color: var(--color-text);
}
.contact__host {
    color: var(--color-muted);
    font-size: .92rem;
    margin: -.25rem 0 .5rem;
}
.contact__host strong { color: var(--color-primary); }

/* ---------- About us (sekcja w welcome) ---------- */
.about-us {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.about-us p {
    margin: 0;
    font-size: .97rem;
    line-height: 1.65;
    color: var(--color-text);
}
.about-us strong { color: var(--color-primary); }
.legal h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 1.5rem 0 .5rem;
}
.legal ol {
    padding-left: 1.5rem;
}
.legal ol li {
    margin-bottom: .55rem;
    padding-left: .25rem;
}
.legal ol > li::marker {
    color: var(--color-accent);
    font-weight: 600;
}
.legal ol ul {
    margin-top: .4rem;
    margin-bottom: .25rem;
}

/* =========================================================
   MOBILE SWEEP — comprehensive responsive overrides
   Breakpoints:
     ≥1024px  desktop (default)
     ≤1024px  tablet landscape
     ≤860px   tablet portrait / hamburger trigger
     ≤640px   phone landscape
     ≤480px   phone portrait
     ≤360px   small phone (iPhone SE)
   Goals:
     - All touch targets ≥44×44 (Apple HIG)
     - All inputs ≥16px font-size (no iOS zoom)
     - No horizontal scroll
     - Fluid typography via clamp()
     - Hamburger nav at ≤860px
   ========================================================= */

/* Global mobile-safe defaults */
html, body { overflow-x: hidden; }

input, select, textarea {
    font-size: 16px !important;  /* iOS prevents zoom only at ≥16px */
}

button, .btn, .nav__cta, [role="button"], .room-card[data-apt], a {
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}

/* All buttons need touch-friendly height */
.btn {
    min-height: 44px;
    line-height: 1.3;
}

/* ---------- ≤ 1024px tablets ---------- */
@media (max-width: 1024px) {
    .section { padding: 4rem 0; }
    .container { padding: 0 1.25rem; }
    .key-facts__usp { gap: 1.5rem; }
    .key-facts__usp-num { font-size: 1.25rem; }
}

/* ---------- ≤ 860px : hamburger triggers + tablet portrait ---------- */
@media (max-width: 860px) {
    /* Hamburger replaces inline menu */
    .nav__toggle { display: flex; }
    .nav__panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.25rem 1.5rem;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .3s ease, opacity .25s ease, padding .25s ease;
        margin-left: 0;
        pointer-events: none;
    }
    /* Strony "legal" (regulamin, polityka) – pojedynczy link „Strona główna”
       zostaje widoczny zawsze, bez hamburgera. */
    .nav--simple .nav__panel {
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        max-height: none;
        opacity: 1;
        pointer-events: auto;
        margin-left: auto;
    }
    .nav--simple .nav__menu {
        flex-direction: row;
    }
    .nav--simple .nav__menu li { border-bottom: none; }
    .nav--simple .nav__menu a { padding: 0; font-size: .95rem; }
    .nav__panel.is-open {
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
    }
    .nav__menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }
    .nav__menu li {
        border-bottom: 1px solid var(--color-bg-alt);
    }
    .nav__menu li:last-child { border-bottom: none; }
    .nav__menu a {
        display: block;
        padding: .85rem 0;
        font-size: 1.05rem;
        min-height: 44px;
    }
    .nav__cta {
        display: block;
        margin-top: .75rem;
        text-align: center;
        padding: .85rem 1rem;
        background: var(--color-accent);
        color: white !important;
        font-size: 1rem;
    }
    .nav__lang {
        display: flex;
        justify-content: center;
        gap: .5rem;
        margin: 1rem 0 0;
        padding-top: 1rem;
        border-top: 1px solid var(--color-bg-alt);
    }
    .nav__lang-link {
        padding: .55rem .85rem;
        font-size: .9rem;
        min-width: 44px;
        text-align: center;
    }

    /* Hero downsize */
    .hero { height: auto; min-height: auto; padding: 4rem 1.25rem 5rem; }
    .hero__title { font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1.15; }
    .hero__subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .hero__eyebrow {
        font-size: .7rem;
        padding: .3rem .8rem;
        letter-spacing: .12em;
        margin-bottom: 1.5rem;
    }
    .hero__scroll {
        padding: .9rem 1.6rem;
        gap: .5rem;
    }
    .hero__scroll-label { font-size: .72rem; letter-spacing: .12em; }

    /* Key facts: stack already at 960px - extra polish for 860 */
    .key-facts { padding: 1.5rem 0; }
    .key-facts__rating-score { font-size: 1.2rem; min-width: 2.8rem; padding: .45rem .7rem; }
    .key-facts__usp { gap: 1rem 2rem; }
    .key-facts__usp-num { font-size: 1.2rem; }
    .key-facts__usp-lbl { font-size: .78rem; }
    .key-facts__cta .btn { padding: .7rem 1.1rem; font-size: .88rem; flex: 1; max-width: 240px; }

    /* Section titles smaller */
    .section__title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .section__lead { font-size: 1rem; }

    /* Welcome: smaller */
    .welcome__lead { font-size: 1.05rem; }
    .welcome__body { font-size: .98rem; }

    /* Apartamenty: 2 columns on tablet */
    .rooms { grid-template-columns: repeat(2, 1fr); }
    .room-card__capacity { font-size: .75rem; padding: .2rem .55rem; }

    /* Surroundings: already responsive */
    /* Amenity grid: already auto-fit */

    /* Building plan: stack */
    .building-plan__inner { flex-direction: column; text-align: center; }
}

/* ---------- ≤ 640px : phone landscape / small tablet ---------- */
@media (max-width: 640px) {
    .section { padding: 3rem 0; }
    .container { padding: 0 1rem; }

    /* Hero further compress */
    .hero { padding: 3rem 1rem 4rem; }
    .hero__title { font-size: clamp(1.5rem, 8vw, 2.2rem); }
    .hero__subtitle { font-size: .95rem; margin-bottom: 1.75rem; }
    .hero__eyebrow { margin-bottom: 1.25rem; }
    .hero__scroll { padding: .75rem 1.4rem; }

    /* Key facts: vertical stack everything */
    .key-facts__inner { gap: 1.25rem; }
    .key-facts__usp { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .key-facts__usp li { min-width: 90px; }
    .key-facts__cta { width: 100%; }
    .key-facts__cta .btn { max-width: none; }

    /* Apartamenty: 1 column on phone */
    .rooms { grid-template-columns: 1fr; }
    .room-card__media { aspect-ratio: 16/10; }
    .room-card__body { padding: 1.1rem 1.2rem; }

    /* Section titles */
    .section__title { font-size: 1.6rem; }
    .section__lead { font-size: .95rem; padding: 0 .5rem; }

    /* Welcome features: single column */
    .features { grid-template-columns: 1fr !important; gap: 1rem; }
    .feature { padding: 1.5rem 1.25rem; text-align: center; }

    /* Amenity grid + reviews + audience + rules: single column */
    .amenity-grid,
    .reviews,
    .audience-grid,
    .rules-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Surroundings list: smaller font */
    .surroundings__list { font-size: .9rem; line-height: 1.8; }
    .surroundings__list strong { min-width: 4rem; font-size: .85rem; }

    /* Contact: stack info + map */
    .contact { grid-template-columns: 1fr !important; gap: 2rem; }
    .contact__map iframe { height: 280px; }
    .contact__info p { font-size: 1rem; }
    .contact__info a { word-break: break-word; }

    /* Footer: already stacks at 720 */
    .footer { padding: 2.5rem 0 1.25rem; }
    .footer__container { gap: 1.5rem; text-align: left; }
    .footer__col { line-height: 1.85; }

    /* Form fields: full width, larger touch targets */
    .form-grid { grid-template-columns: 1fr !important; gap: .85rem; }
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: .9rem 1rem;
        border-radius: 8px;
        width: 100%;
    }
    .form-actions {
        flex-direction: column;
        gap: .65rem;
    }
    .form-actions .btn { width: 100%; }

    /* Cookie banner: stack vertically */
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        padding: 1rem;
        left: .5rem;
        right: .5rem;
        bottom: .5rem;
        max-width: none;
    }
    .cookie-banner__actions {
        justify-content: stretch;
    }
    .cookie-banner__actions .btn {
        flex: 1;
        min-height: 44px;
    }

    /* Apartment modal: full screen, larger touch targets */
    .apt-modal__inner {
        padding: 1rem .5rem .75rem;
        max-width: 100%;
    }
    .apt-modal__close {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
        top: .5rem;
        right: .5rem;
    }
    .apt-modal__nav {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
    .apt-modal__img { max-height: 55vh; }
    .apt-modal__title { font-size: 1rem; }
    .apt-modal__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: .5rem;
    }
    .apt-modal__thumb {
        flex: 0 0 70px;
        height: 52px;
        scroll-snap-align: center;
    }

    /* Lightbox close button */
    .lightbox__close {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.6rem !important;
    }
}

/* ---------- ≤ 480px : phone portrait ---------- */
@media (max-width: 480px) {
    .nav__container { padding: .75rem 1rem; }
    .nav__logo { font-size: 1.05rem; }

    .hero__title { font-size: clamp(1.4rem, 8.5vw, 2rem); }
    .hero__subtitle { font-size: .92rem; }

    .key-facts__rating { flex-direction: column; gap: .5rem; text-align: center; }
    .key-facts__rating-meta { align-items: center; }

    .section__title { font-size: 1.45rem; }

    .room-card__body { padding: 1rem 1.1rem; }
    .room-card__body h3 { font-size: 1.1rem; }
    .room-card__features { font-size: .85rem; }

    .surroundings__list strong { min-width: 3.5rem; }
    .review blockquote { font-size: .88rem; }
}

/* ---------- ≤ 360px : iPhone SE / small android ---------- */
@media (max-width: 360px) {
    .hero__eyebrow { font-size: .65rem; padding: .25rem .65rem; }
    .hero__scroll { padding: .65rem 1.1rem; }
    .key-facts__usp { gap: .75rem; }
    .key-facts__usp li { min-width: 80px; }
    .key-facts__usp-num { font-size: 1.05rem; }
    .key-facts__usp-lbl { font-size: .72rem; }
    .room-card__body h3 { font-size: 1rem; }
    .footer__container { gap: 1.25rem; }
}

/* ---------- Touch-specific (no hover support) ---------- */
@media (hover: none) {
    .room-card[data-apt]:hover { transform: none; }
    .amenity-card:hover { transform: none; box-shadow: var(--shadow); }
    .audience-card:hover { transform: none; box-shadow: none; background: var(--color-bg-alt); }
    .btn:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Print ---------- */
@media print {
    .nav, .hero__scroll, .cookie-banner, .apt-modal, .lightbox,
    .key-facts__cta, #booking, .footer { display: none !important; }
    .hero { height: auto; min-height: 0; padding: 2rem 0; }
    .hero__title { color: black; text-shadow: none; }
    body { color: black; background: white; }
    a { color: black; text-decoration: underline; }
}
