/* Google Fonts — DM Sans (body) + Playfair Display (headings) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ============================================================
   MADERA CENTRUM — Custom CSS
   Sub-brands: Madera House | Flores Apartament | Rooms Silesia
   Site: maderacentrum.pl
   Wklej do: Arkusz stylów CSS → custom.css (prawy panel)
   Zastąp całą poprzednią zawartość tym plikiem.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   Zmiana koloru marki: edytuj tylko tę sekcję.
   ============================================================ */

:root {
    /* — Brand palette — Warm Timber — */
    --md-brand:        #8B6914;  /* ciepłe ciemne złoto — żywica drewna */
    --md-brand-hover:  #6F5310;  /* głębszy bursztyn — hover */
    --md-accent:       #B8860B;  /* dark goldenrod — dekoracje */

    /* — Tła — jasne, ciepłe, gościnne — */
    --md-bg:           #FAF6F0;  /* ciepła biel — surowy len */
    --md-bg-alt:       #F2EBE0;  /* jasny piaskowiec */
    --md-bg-muted:     #EDE4D6;  /* ciepły beż — sekcja muted */
    --md-bg-card:      #FFFFFF;  /* białe karty — kontrast */
    --md-bg-light:     #F7F3EC;  /* delikatny krem */

    /* — Tekst — ciemne brązy, nigdy czysty czarny — */
    --md-text:         #2C2416;  /* ciemny orzech — główny tekst */
    --md-text-muted:   #6B5D4F;  /* średni ciepły brąz */
    --md-text-subtle:  #7D7164;  /* ciepły brąz — WCAG AA na jasnym tle */

    /* — Obramowania — brązowe, subtelne — */
    --md-border:       rgba(44,36,22,0.2);    /* brązowa linia — subtelna */
    --md-border-light: rgba(44,36,22,0.35);   /* brązowa linia — wyraźna */
    --md-border-muted: rgba(44,36,22,0.12);   /* brązowa linia — muted bg */

    /* — Typografia — */
    --md-font-heading: 'Georgia', 'Times New Roman', serif;
    --md-font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* — Wymiary — */
    --md-max-width:    1170px;
    --md-section-pad:  88px;
    --md-section-pad-m: 56px;
    --md-inner-pad:    40px;
    --md-inner-pad-m:  24px;
}

/* ============================================================
   UKRYCIA SYSTEMOWE (zachowaj)
   ============================================================ */

.contact__block.--links ul li:first-child { display: none !important; }
.footer-contact ul li.footer-contact-phone { display: none !important; }
#additional_info .addonsList li:first-child { display: none !important; }

/* ============================================================
   TYTUŁ HERO — .index-info h1 (tekst z panelu: "MADERA CENTRUM")
   ============================================================ */

.index-info {
    z-index: 2 !important;
    overflow: visible !important;
}

.index-info h1 {
    font-family: var(--md-font-heading) !important;
    font-size: clamp(28px, 4vw, 48px) !important;
    font-weight: 400 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #FAF6F0 !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.index-info h2 {
    font-family: var(--md-font-body) !important;
    font-size: clamp(13px, 1.8vw, 17px) !important;
    font-weight: 400 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba(250,246,240,0.7) !important;
    margin: 8px 0 0 !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .index-info h1 { letter-spacing: 0.12em !important; }
    .index-info h2 { letter-spacing: 0.06em !important; }
}

/* ============================================================
   UKRYCIE TYTUŁU CMS + RESET PADDINGU
   ============================================================ */

/* 1. CMS wstrzykuje <h1 class="big-label"> nad treścią — ukrywamy */
h1.big-label {
    display: none !important;
}

/* 2. CMS ustawia padding-top: 50px na #pageContent .container — zerujemy */
#pageContent .container {
    padding-top: 0 !important;
}

/* 3. Strony systemowe (/offers, /contact) — przywróć padding pod fixed header */
.page-offers #pageContent .container,
.page-contact #pageContent .container {
    padding-top: 32px !important;
}

/* 4. Bootstrap .mb-5 otacza .txt-text — usuń zbędny margin-bottom */
#pageContent .mb-5 {
    margin-bottom: 0 !important;
}

/* ============================================================
   UCIECZKA Z KONTENERA CMS
   Uniwersalna technika full-bleed — działa w dowolnym kontenerze
   (homepage .txt-text, subpages, body_top, etc.)
   ============================================================ */

/* Zapobiega poziomemu scrollowi */
html, body {
    overflow-x: hidden !important;
}

/* Full-bleed: wymusza 100% szerokości viewportu */
.md-full {
    width: 100vw !important;
    max-width: none !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Resetuj overflow na wszystkich parentach które mogą ciąć */
.txt-text,
.page-text,
.text-content,
.container,
.row,
.col,
[class*="col-"],
.section,
.fp-tableCell,
.page-index,
main {
    overflow: visible !important;
}

/* ============================================================
   TYPOGRAFIA BAZOWA
   ============================================================ */

.txt-text {
    font-size: 14px;
    color: var(--md-text);
    line-height: 1.6;
    background: var(--md-bg);
}

/* ============================================================
   SEKCJE
   ============================================================ */

.md-section {
    padding: 44px 0;
    width: 100%;
    background: var(--md-bg);
    color: var(--md-text);
}

/* Ciemna sekcja — kontrastowe ciemne tło dla lekkiego motywu */
.md-section--dark {
    background: #2C2416;
    color: #FAF6F0;
}

/* Muted sekcja — ciepły brąz */
.md-section--muted {
    background: var(--md-bg-muted);
    color: var(--md-text);
}

/* Ciemna sekcja akcentowa — dla kontrastu z jasnym tłem */
.md-section--light {
    background: #2C2416;
    color: #FAF6F0;
}

/* Złota sekcja akcentowa */
.md-section--gold {
    background: var(--md-brand);
    color: #FAF6F0;
}

/* ============================================================
   DARK SECTION OVERRIDES
   Sekcje .md-section--dark i --light mają ciemne tło (#2C2416),
   więc WSZYSTKIE elementy wewnątrz muszą mieć jasne kolory.
   Bez tego: ciemny tekst na ciemnym tle = niewidoczny!
   ============================================================ */

.md-section--dark .md-label,
.md-section--light .md-label  { color: #C9A96E; }

.md-section--dark .md-h2,
.md-section--light .md-h2,
.md-section--dark .md-h3,
.md-section--light .md-h3     { color: #FAF6F0; }

.md-section--dark .md-lead,
.md-section--light .md-lead   { color: rgba(250,246,240,0.75); }

.md-section--dark .md-intro,
.md-section--light .md-intro  { color: rgba(250,246,240,0.8); }

.md-section--dark .md-rule,
.md-section--light .md-rule   { border-color: rgba(250,246,240,0.3); }

/* Features list na ciemnym tle */
.md-section--dark .md-features li,
.md-section--light .md-features li {
    color: rgba(250,246,240,0.85);
    border-color: rgba(250,246,240,0.15);
}

.md-section--dark .md-features li::before,
.md-section--light .md-features li::before {
    color: #C9A96E;
}

/* Amenity grid na ciemnym tle */
.md-section--dark .md-amenities,
.md-section--dark .md-amenity,
.md-section--light .md-amenities,
.md-section--light .md-amenity {
    border-color: rgba(250,246,240,0.12);
}

.md-section--dark .md-amenity:hover,
.md-section--light .md-amenity:hover {
    background: rgba(250,246,240,0.05);
}

.md-section--dark .md-amenity__icon,
.md-section--light .md-amenity__icon {
    color: #C9A96E;
}

.md-section--dark .md-amenity__title,
.md-section--light .md-amenity__title {
    color: #FAF6F0;
}

.md-section--dark .md-amenity__text,
.md-section--light .md-amenity__text {
    color: rgba(250,246,240,0.7);
}

/* Places list na ciemnym tle */
.md-section--dark .md-places,
.md-section--dark .md-place,
.md-section--light .md-places,
.md-section--light .md-place {
    border-color: rgba(250,246,240,0.12);
}

.md-section--dark .md-place__name,
.md-section--light .md-place__name   { color: #FAF6F0; }
.md-section--dark .md-place__desc,
.md-section--light .md-place__desc   { color: rgba(250,246,240,0.7); }
.md-section--dark .md-place__dist,
.md-section--light .md-place__dist   { color: #C9A96E; }

/* Apartment cards na ciemnym tle */
.md-section--dark .md-apt,
.md-section--dark .md-apt__item,
.md-section--light .md-apt,
.md-section--light .md-apt__item {
    border-color: rgba(250,246,240,0.12);
}

.md-section--dark .md-apt__item:hover,
.md-section--light .md-apt__item:hover {
    background: rgba(250,246,240,0.05);
}

.md-section--dark .md-apt__num,
.md-section--light .md-apt__num   { color: #C9A96E; }
.md-section--dark .md-apt__name,
.md-section--light .md-apt__name  { color: #FAF6F0; }
.md-section--dark .md-apt__floor,
.md-section--light .md-apt__floor { color: rgba(250,246,240,0.6); }
.md-section--dark .md-apt__desc,
.md-section--light .md-apt__desc  { color: rgba(250,246,240,0.7); }
.md-section--dark .md-apt__spec,
.md-section--light .md-apt__spec  {
    color: rgba(250,246,240,0.65);
    border-color: rgba(250,246,240,0.2);
}

/* Specs bar na ciemnym tle */
.md-section--dark .md-specs,
.md-section--dark .md-spec,
.md-section--light .md-specs,
.md-section--light .md-spec       { border-color: rgba(250,246,240,0.15); }
.md-section--dark .md-spec__val,
.md-section--light .md-spec__val  { color: #C9A96E; }
.md-section--dark .md-spec__label,
.md-section--light .md-spec__label { color: rgba(250,246,240,0.65); }

/* Albums na ciemnym tle */
.md-section--dark .md-albums,
.md-section--dark .md-album,
.md-section--light .md-albums,
.md-section--light .md-album       { border-color: rgba(250,246,240,0.12); }
.md-section--dark .md-album:hover,
.md-section--light .md-album:hover { background: rgba(250,246,240,0.05); }
.md-section--dark .md-album__num,
.md-section--light .md-album__num   { color: #C9A96E; }
.md-section--dark .md-album__title,
.md-section--light .md-album__title { color: #FAF6F0; }
.md-section--dark .md-album__desc,
.md-section--light .md-album__desc  { color: rgba(250,246,240,0.7); }

/* Photo count na ciemnym tle */
.md-section--dark .md-photos-count,
.md-section--light .md-photos-count { color: rgba(250,246,240,0.60); }

/* Buttons na ciemnym tle */
.md-section--dark .md-btn,
.md-section--light .md-btn {
    background: #C9A96E;
    color: #2C2416 !important;
}

.md-section--dark .md-btn:hover,
.md-section--light .md-btn:hover {
    background: #B8935A;
    color: #2C2416 !important;
}

.md-section--dark .md-btn--ghost,
.md-section--light .md-btn--ghost {
    background: transparent;
    border: 1px solid rgba(250,246,240,0.4);
    color: #FAF6F0 !important;
}

.md-section--dark .md-btn--ghost:hover,
.md-section--light .md-btn--ghost:hover {
    background: rgba(250,246,240,0.1);
    border-color: #FAF6F0;
    color: #FAF6F0 !important;
}

/* Wewnętrzny kontener */
.md-inner {
    max-width: var(--md-max-width);
    margin: 0 auto;
    padding: 0 var(--md-inner-pad);
}

@media (max-width: 768px) {
    .md-inner { padding: 0 var(--md-inner-pad-m); }
    .md-section { padding: 32px 0; }
}

/* ============================================================
   NAGŁÓWKI SEKCJI
   ============================================================ */

/* Nadnapis kicker — małe złote litery */
.md-label {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--md-brand);
    margin-bottom: 8px;
    font-weight: 500;
    font-family: var(--md-font-body);
}

.md-section--light .md-label  { color: var(--md-brand); }
.md-section--gold  .md-label  { color: rgba(250,246,240,0.88); }

/* Główny nagłówek sekcji — szeryfowy, elegancki */
.md-h2 {
    font-family: var(--md-font-heading);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--md-text);
    margin: 0 0 12px;
}

.md-section--light .md-h2 { color: #FAF6F0; }
.md-section--gold  .md-h2 { color: #FAF6F0; }

/* Nagłówek karty */
.md-h3 {
    font-family: var(--md-font-heading);
    font-size: 16px;
    font-weight: 400;
    color: var(--md-text);
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}

.md-section--light .md-h3 { color: #FAF6F0; }
.md-section--gold  .md-h3 { color: #FAF6F0; }

/* Lead — podtytuł sekcji */
.md-lead {
    font-size: 14px;
    color: var(--md-text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 0 24px;
    font-family: var(--md-font-body);
}

.md-section--light .md-lead { color: rgba(250,246,240,0.75); }
.md-section--gold  .md-lead { color: rgba(250,246,240,0.8); }

/* Linia dekoracyjna — złota */
.md-rule {
    border: none;
    border-top: 1px solid var(--md-brand);
    margin: 0 0 20px;
    max-width: 40px;
    opacity: 0.6;
}

.md-section--light .md-rule { border-color: rgba(250,246,240,0.4); }
.md-section--gold  .md-rule { border-color: rgba(250,246,240,0.4); }

/* ============================================================
   LAYOUT
   ============================================================ */

.md-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.md-split--3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.md-split--4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

@media (max-width: 900px) {
    .md-split,
    .md-split--3,
    .md-split--4 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================================
   HERO BANNER STRONY GŁÓWNEJ — duże zdjęcie full-width
   ============================================================ */

.md-hero-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
}

.md-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.md-hero-banner__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 48px;
    background: linear-gradient(to top, rgba(44,36,22,0.85) 0%, rgba(44,36,22,0.4) 60%, transparent 100%);
    color: #FAF6F0;
}

.md-hero-banner__title {
    font-family: var(--md-font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 12px;
    max-width: var(--md-max-width);
}

.md-hero-banner__sub {
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(250,246,240,0.85);
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .md-hero-banner { height: 50vh; min-height: 300px; }
    .md-hero-banner__overlay { padding: 40px 24px 32px; }
}

/* Zdjęcia w kartach marek */
.md-apt__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 28px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .md-apt__img { height: 180px; }
}

/* Zdjęcie w split — obok tekstu */
.md-split__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    aspect-ratio: 4/3;
}

/* ============================================================
   SEKCJA LOKALIZACJA — duże zdjęcie na pół strony
   ============================================================ */

.md-location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.md-location__img {
    position: relative;
    overflow: hidden;
}

.md-location__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.md-location__content {
    padding: 72px 56px;
    background: var(--md-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .md-location {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .md-location__img {
        height: 50vh;
        min-height: 300px;
    }
    .md-location__content {
        padding: 48px 24px;
    }
}

/* ============================================================
   HERO BANER PODSTRONY
   ============================================================ */

.md-hero {
    padding: 100px 0 80px;
    background: var(--md-bg);
    color: var(--md-text);
    border-bottom: 1px solid var(--md-border);
    position: relative;
}

/* Dekoracyjna złota kreska po lewej stronie tytułu */
.md-hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--md-brand), transparent);
    display: none;
}

.md-hero__inner {
    max-width: var(--md-max-width);
    margin: 0 auto;
    padding: 0 var(--md-inner-pad);
}

.md-hero__kicker {
    display: block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--md-brand);
    margin-bottom: 24px;
    font-family: var(--md-font-body);
}

.md-hero__title {
    font-family: var(--md-font-heading);
    font-size: clamp(40px, 5.5vw, 76px);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--md-text);
    margin: 0 0 28px;
}

.md-hero__desc {
    font-size: 19px;
    color: var(--md-text-muted);
    line-height: 1.75;
    max-width: 560px;
    margin: 0;
    font-family: var(--md-font-body);
}

/* ============================================================
   KARTY APARTAMENTÓW / SUB-BRANDÓW
   ============================================================ */

.md-apt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--md-border);
}

@media (max-width: 860px) {
    .md-apt { grid-template-columns: 1fr; }
}

.md-apt__item {
    padding: 56px 48px;
    border-right: 1px solid var(--md-border);
    border-bottom: 1px solid var(--md-border);
    position: relative;
    transition: background 0.2s ease;
}

.md-apt__item:hover {
    background: var(--md-bg-card);
}

.md-apt__item:nth-child(2n) {
    border-right: none;
}

.md-section--muted .md-apt__item {
    border-color: var(--md-border-muted);
}

/* Numer / etykieta pozycji */
.md-apt__num {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--md-brand);
    margin-bottom: 20px;
    display: block;
    font-family: var(--md-font-body);
}

.md-apt__name {
    font-family: var(--md-font-heading);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--md-text);
    margin: 0 0 6px;
}

.md-apt__floor {
    font-size: 15px;
    color: var(--md-text-muted);
    margin: 0 0 24px;
    display: block;
}

.md-apt__desc {
    font-size: 17px;
    color: var(--md-text-muted);
    line-height: 1.75;
    margin: 0 0 28px;
}

.md-apt__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.md-apt__spec {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--md-text-muted);
    border: 1px solid var(--md-border);
    padding: 5px 12px;
    white-space: nowrap;
    font-family: var(--md-font-body);
}

/* ============================================================
   LISTA CECH
   ============================================================ */

.md-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.md-features li {
    font-size: 17px;
    color: var(--md-text-muted);
    line-height: 1.65;
    padding: 13px 0;
    border-bottom: 1px solid var(--md-border);
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.md-features li:last-child { border-bottom: none; }

.md-features li::before {
    content: "—";
    color: var(--md-brand);
    flex-shrink: 0;
    font-size: 12px;
    opacity: 0.7;
}

.md-section--light .md-features li {
    color: rgba(250,246,240,0.8);
    border-color: rgba(250,246,240,0.15);
}

.md-section--light .md-features li::before {
    color: #C9A96E;
}

/* ============================================================
   GRID UDOGODNIEŃ
   ============================================================ */

.md-amenities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--md-border);
}

@media (max-width: 860px) {
    .md-amenities { grid-template-columns: 1fr; }
}

.md-amenity {
    padding: 48px 40px;
    border-right: 1px solid var(--md-border);
    border-bottom: 1px solid var(--md-border);
    transition: background 0.2s ease;
}

.md-amenity:hover {
    background: var(--md-bg-card);
}

.md-amenity:nth-child(3n) { border-right: none; }

.md-amenities--2 {
    grid-template-columns: repeat(2, 1fr);
}

.md-amenities--2 .md-amenity:nth-child(3n) { border-right: 1px solid var(--md-border); }
.md-amenities--2 .md-amenity:nth-child(2n) { border-right: none; }

.md-section--muted .md-amenities,
.md-section--muted .md-amenity { border-color: var(--md-border-muted); }

.md-amenity__icon {
    display: block;
    margin-bottom: 22px;
    color: var(--md-brand);
    line-height: 1;
}

.md-amenity__icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.md-amenity__title {
    font-family: var(--md-font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--md-text);
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}

.md-amenity__text {
    font-size: 16px;
    color: var(--md-text-muted);
    line-height: 1.7;
    margin: 0;
}

.md-section--light .md-amenity__title { color: #FAF6F0; }
.md-section--light .md-amenity__text  { color: rgba(250,246,240,0.75); }

/* ============================================================
   SPECS BAR (dane apartamentu)
   ============================================================ */

.md-specs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--md-border);
    border-bottom: 1px solid var(--md-border);
}

@media (max-width: 768px) {
    .md-specs { grid-template-columns: repeat(2, 1fr); }
}

.md-spec {
    padding: 32px 24px;
    border-right: 1px solid var(--md-border);
    text-align: left;
}

.md-spec:last-child { border-right: none; }

.md-spec__val {
    display: block;
    font-family: var(--md-font-heading);
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--md-brand);
    line-height: 1;
    margin-bottom: 6px;
}

.md-spec__label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--md-text-subtle);
    font-family: var(--md-font-body);
}

/* ============================================================
   ATRAKCJE / LOKALIZACJA
   ============================================================ */

.md-places {
    border-top: 1px solid var(--md-border);
}

.md-place {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid var(--md-border);
    transition: background 0.15s ease;
}

.md-place:hover {
    padding-left: 8px;
    transition: padding 0.2s ease, background 0.2s ease;
}

.md-place__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    margin-bottom: 16px;
}

.md-place__name {
    font-family: var(--md-font-heading);
    font-size: 19px;
    font-weight: 400;
    color: var(--md-text);
    margin: 0 0 6px;
}

.md-place__desc {
    font-size: 16px;
    color: var(--md-text-muted);
    line-height: 1.65;
    margin: 0;
}

.md-place__dist {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--md-brand);
    white-space: nowrap;
    padding-top: 4px;
    font-weight: 600;
    font-family: var(--md-font-body);
}

/* ============================================================
   PRZYCISK CTA
   ============================================================ */

.md-btn {
    display: inline-block;
    background: var(--md-brand);
    color: #FAF6F0 !important;
    padding: 16px 38px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--md-font-body);
}

.md-btn:hover {
    background: var(--md-brand-hover);
    color: #FAF6F0 !important;
    text-decoration: none !important;
}

/* Przycisk obrysowany */
.md-btn--ghost {
    background: transparent;
    border: 1px solid var(--md-brand);
    color: var(--md-brand) !important;
}

.md-btn--ghost:hover {
    background: var(--md-brand);
    color: #FAF6F0 !important;
}

/* Ciemny przycisk na złotym tle */
.md-section--gold .md-btn {
    background: #2C2416;
    color: #FAF6F0 !important;
}

.md-section--gold .md-btn:hover {
    background: #1A1208;
    color: #FAF6F0 !important;
}

/* Jasny przycisk na ciemnej sekcji */
.md-section--dark .md-btn--outline {
    background: transparent;
    border: 1px solid rgba(139,105,20,0.5);
    color: #FAF6F0 !important;
}

.md-section--dark .md-btn--outline:hover {
    border-color: var(--md-brand);
    color: var(--md-brand) !important;
}

/* ============================================================
   GALERIA — albumy
   ============================================================ */

.md-albums {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--md-border);
}

@media (max-width: 680px) {
    .md-albums { grid-template-columns: 1fr; }
}

.md-album {
    padding: 48px 40px;
    border-right: 1px solid var(--md-border);
    border-bottom: 1px solid var(--md-border);
    transition: background 0.2s ease;
}

.md-album:nth-child(2n) { border-right: none; }

.md-album:hover {
    background: var(--md-bg-card);
}

.md-album__num {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--md-brand);
    margin-bottom: 16px;
    display: block;
    opacity: 0.7;
    font-family: var(--md-font-body);
}

.md-album__title {
    font-family: var(--md-font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--md-text);
    letter-spacing: 0.01em;
    margin: 0 0 10px;
}

.md-album__desc {
    font-size: 16px;
    color: var(--md-text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

/* ============================================================
   PASEK DOLNY CTA
   ============================================================ */

.md-cta-bar {
    padding: var(--md-section-pad) 0;
    background: var(--md-brand);
    color: #FAF6F0;
}

.md-cta-bar__inner {
    max-width: var(--md-max-width);
    margin: 0 auto;
    padding: 0 var(--md-inner-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 768px) {
    .md-cta-bar__inner { flex-direction: column; align-items: flex-start; }
    .md-cta-bar { padding: var(--md-section-pad-m) 0; }
}

.md-cta-bar__text h3 {
    font-family: var(--md-font-heading);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 400;
    color: #FAF6F0;
    letter-spacing: 0.01em;
    margin: 0 0 8px;
}

.md-cta-bar__text p {
    font-size: 17px;
    color: rgba(250,246,240,0.88);
    margin: 0;
    line-height: 1.6;
}

.md-cta-bar .md-btn {
    background: #2C2416;
    color: #FAF6F0 !important;
}

.md-cta-bar .md-btn:hover {
    background: #1A1208;
    color: #FAF6F0 !important;
}

.md-cta-bar .md-btn--ghost {
    background: transparent;
    border: 1px solid rgba(250,246,240,0.5);
    color: #FAF6F0 !important;
}

.md-cta-bar .md-btn--ghost:hover {
    background: rgba(250,246,240,0.15);
    border-color: #FAF6F0;
    color: #FAF6F0 !important;
}

.md-cta-bar__actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================================
   SEKCJA INTRO (duży tekst)
   ============================================================ */

.md-intro {
    font-family: var(--md-font-body);
    font-size: 14px;
    color: var(--md-text-muted);
    line-height: 1.6;
    max-width: 560px;
    font-weight: 400;
    letter-spacing: 0;
}

.md-section--light .md-intro { color: rgba(250,246,240,0.8); }
.md-section--gold  .md-intro { color: rgba(250,246,240,0.85); }

/* ============================================================
   SIATKA ZDJĘĆ — galeria fotograficzna
   ============================================================ */

.md-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

@media (max-width: 860px) {
    .md-photos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .md-photos { grid-template-columns: 1fr; }
}

.md-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--md-bg-card);
    display: block;
}

.md-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.md-photo:hover img {
    transform: scale(1.04);
    opacity: 0.85;
}

.md-photo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 105, 20, 0);  /* rgba of --md-brand */
    transition: background 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.md-photo:hover .md-photo__overlay {
    background: rgba(44, 36, 22, 0.45);
}

.md-photo__overlay svg {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
    color: var(--md-brand);
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}

.md-photo:hover .md-photo__overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* Licznik zdjęć */
.md-photos-count {
    font-size: 12px;
    color: var(--md-text-subtle);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
    display: block;
    font-family: var(--md-font-body);
}

/* ============================================================
   KLASY POMOCNICZE
   ============================================================ */

/* Wrapper na przyciski CTA */
.md-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Sekcja z mniejszym paddingiem */
.md-section--compact {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}

/* Wyrównanie tekstu do środka */
.md-center {
    text-align: center;
}

.md-center .md-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Separator złotą linią */
.md-divider {
    border: none;
    border-top: 1px solid var(--md-border);
    margin: 0;
}

/* ============================================================
   ETYKIETA ZDJĘCIA (widoczna na kafelku)
   ============================================================ */

.md-photo__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #FAF6F0;
    background: linear-gradient(to top, rgba(44,36,22,0.92) 0%, rgba(44,36,22,0.4) 70%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    font-family: var(--md-font-body);
    pointer-events: none;
}

.md-photo:hover .md-photo__label {
    opacity: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.md-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 9, 8, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.md-lightbox--open {
    opacity: 1;
    pointer-events: auto;
}

.md-lightbox__img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 48px rgba(0,0,0,0.7);
}

.md-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: 1px solid rgba(250,246,240,0.35);
    color: rgba(250,246,240,0.7);
    font-size: 24px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    font-family: var(--md-font-body);
}

.md-lightbox__close:hover {
    border-color: #C9A96E;
    color: #C9A96E;
}

.md-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(250,246,240,0.35);
    color: rgba(250,246,240,0.7);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.md-lightbox__nav:hover {
    border-color: #C9A96E;
    color: #C9A96E;
}

.md-lightbox__nav--prev { left: 20px; }
.md-lightbox__nav--next { right: 20px; }

@media (max-width: 600px) {
    .md-lightbox__img { max-width: 85vw; max-height: 75vh; }
    .md-lightbox__nav { width: 36px; height: 36px; }
    .md-lightbox__nav--prev { left: 8px; }
    .md-lightbox__nav--next { right: 8px; }
}

.md-lightbox__meta {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.md-lightbox__label {
    font-size: 15px;
    color: rgba(250,246,240,0.75);
    font-family: var(--md-font-body);
    letter-spacing: 0.3px;
}

.md-lightbox__counter {
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(250,246,240,0.62);
    font-family: var(--md-font-body);
    text-transform: uppercase;
}

/* ============================================================
   DOSTĘPNOŚĆ — ruch zredukowany
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .md-btn,
    .md-photo img,
    .md-photo__overlay,
    .md-photo__overlay svg,
    .md-photo__label,
    .md-lightbox,
    .md-lightbox__close,
    .md-lightbox__nav,
    .md-album,
    .md-apt__item,
    .md-amenity,
    .md-place {
        transition: none !important;
    }

    .md-photo:hover img {
        transform: none !important;
    }

    .md-photo:hover .md-photo__overlay svg {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================
   CMS TEMPLATE OVERRIDES
   Style template elements (header, footer, search) to match
   light/gold theme. Keep them visible and functional.
   ========================================================== */

/* --- HEADER / NAVBAR --- */
header.default13 {
    background: var(--md-bg) !important;
    border-bottom: 1px solid var(--md-border) !important;
}

header.default13 .menu-wrapper {
    background: var(--md-bg) !important;
}

header.default13 .navbar {
    background: var(--md-bg) !important;
}

header.default13 .navbar-brand {
    filter: brightness(1.1);
}

header.default13 .navbar-brand img {
    max-height: 60px;
}

/* Nav links */
header.default13 #navbar .nav-link,
header.default13 .navbar-nav .nav-link {
    color: var(--md-text) !important;
    font-family: var(--md-font-body);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.25s;
}

header.default13 #navbar .nav-link:hover,
header.default13 .navbar-nav .nav-link:hover {
    color: var(--md-brand) !important;
}

header.default13 #navbar .nav-item.active .nav-link {
    color: var(--md-brand) !important;
}

/* Reservation button in navbar */
header.default13 .navbar-reservation {
    background: var(--md-brand) !important;
    color: var(--md-bg) !important;
    border: none !important;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    padding: 10px 22px;
    transition: background 0.25s;
}

header.default13 .navbar-reservation:hover {
    background: var(--md-brand-hover) !important;
}

/* Language switcher */
header.default13 .language__toggler {
    color: var(--md-text-muted) !important;
    background: transparent !important;
    border: 1px solid var(--md-border) !important;
}

header.default13 .language {
    background: var(--md-bg-alt) !important;
    border: 1px solid var(--md-border) !important;
}

header.default13 .language select,
header.default13 .language option {
    background: var(--md-bg-alt) !important;
    color: var(--md-text) !important;
}

/* Hamburger / mobile toggle */
header.default13 .navbar-toggler,
header.default13 .navbar-toggler-icon {
    color: var(--md-text) !important;
    border-color: var(--md-border) !important;
}

/* --- SEARCH BAR / WYSZUKIWARKA — Warm Timber restyle --- */

/* Kontener — wycentrowany na hero */
.iai-search {
    width: 100% !important;
    max-width: 880px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 48px !important;
}

/* Trigger "Rezerwacja online" — ukryty na desktop */
.iai_book_trigger { display: none !important; }

/* Formularz — biała karta z cieniem */
#iai_book_form {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 0.8fr auto !important;
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 40px rgba(44,36,22,0.2), 0 1px 4px rgba(44,36,22,0.06) !important;
    border: 1px solid rgba(139,105,20,0.12) !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 0 !important;
    align-items: stretch !important;
}

/* Pola formularza */
#iai_book_form .widget__option {
    padding: 12px 18px !important;
    height: auto !important;
    min-height: 64px !important;
    border-right: 1px solid rgba(44,36,22,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    position: relative !important;
    overflow: visible !important;
    cursor: pointer !important;
}

#iai_book_form .widget__option:last-of-type {
    border-right: none !important;
}

/* Etykiety — złote, uppercase, widoczne ale nie blokują kliknięć */
#iai_book_form .widget__option label {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-family: var(--md-font-body) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--md-brand) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    border: none !important;
    pointer-events: none !important;
    z-index: 4 !important;
}

/* Inputy — rozciągnięte na CAŁY kafelek (full-tile click) */
/* WAŻNE: system ustawia z-index: -1 — override wymagany!
   Input pokrywa cały .widget__option dzięki position: absolute.
   Padding-top 28px przesuwa tekst wartości pod etykietę. */
#iai_book_form .widget__option input,
#iai_book_form .widget__option select {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important;
    cursor: pointer !important;
    font-family: var(--md-font-body) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--md-text) !important;
    border: none !important;
    background: transparent !important;
    padding: 28px 30px 8px 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

#iai_book_form .widget__option input::placeholder {
    color: #A89882 !important;
    font-weight: 400 !important;
}

/* Ikony w polach — stała wielkość, prawy dolny róg */
#iai_book_form .widget__option > i[class^="iaiicon"] {
    color: var(--md-accent) !important;
    font-size: 13px !important;
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: none !important;
    opacity: 0.4 !important;
    z-index: 4 !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Systemowe przyciski — za inputem, fallback na wypadek gdyby input nie złapał */
#iai_book_form .widget__option button.iai_widget_btn,
#iai_book_form .widget__option button[aria-label] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Przycisk SPRAWDŹ DOSTĘPNOŚĆ */
#iai_book_form .formbutton {
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    border-right: none !important;
}

#iai_book_form .formbutton button {
    background: var(--md-brand) !important;
    color: var(--md-bg) !important;
    font-family: var(--md-font-body) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 22px !important;
    cursor: pointer !important;
    transition: background 0.2s, box-shadow 0.2s !important;
    white-space: nowrap !important;
    height: 100% !important;
    min-height: 48px !important;
    width: 100% !important;
}

#iai_book_form .formbutton button:hover {
    background: var(--md-brand-hover) !important;
    box-shadow: 0 4px 16px rgba(139,105,20,0.35) !important;
}

/* --- Location dropdown --- */
#iai_location #iailocation-container {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 36px rgba(44,36,22,0.18) !important;
    border: 1px solid rgba(139,105,20,0.1) !important;
    overflow: hidden !important;
    padding: 6px 0 !important;
    min-width: 200px !important;
}

#iai_location li {
    font-family: var(--md-font-body) !important;
    font-size: 14px !important;
    color: var(--md-text) !important;
    padding: 9px 18px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    list-style: none !important;
}

#iai_location li:hover {
    background: var(--md-bg-alt) !important;
    color: var(--md-brand) !important;
}

#iai_location .iailocation-city { font-weight: 600 !important; }
#iai_location .iailocation-district { padding-left: 28px !important; }
#iai_location ul { padding: 0 !important; margin: 0 !important; list-style: none !important; }

/* --- Persons dropdown --- */
#iai_book_form .persons_list {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(44,36,22,0.18) !important;
    border: 1px solid rgba(44,36,22,0.08) !important;
    z-index: 100 !important;
    overflow: hidden !important;
}

#iai_book_form .persons_list li {
    font-family: var(--md-font-body) !important;
    font-size: 14px !important;
    color: var(--md-text) !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

#iai_book_form .persons_list li:hover {
    background: var(--md-bg-alt) !important;
    color: var(--md-brand) !important;
}

/* --- Litepicker calendar --- */
.litepicker .container__months {
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(44,36,22,0.2) !important;
    border: 1px solid rgba(139,105,20,0.1) !important;
    font-family: var(--md-font-body) !important;
}

.litepicker .month-item-header {
    font-family: var(--md-font-heading) !important;
    color: var(--md-text) !important;
}

.litepicker .month-item-weekdays-row > div {
    color: var(--md-brand) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.litepicker .container__days .day-item {
    color: var(--md-text) !important;
    border-radius: 8px !important;
}

.litepicker .container__days .day-item:hover {
    background: var(--md-bg-alt) !important;
    color: var(--md-brand) !important;
}

.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date {
    background: var(--md-brand) !important;
    color: #fff !important;
}

.litepicker .container__days .day-item.is-in-range {
    background: rgba(139,105,20,0.12) !important;
}

.litepicker .container__days .day-item.is-today {
    color: var(--md-brand) !important;
    font-weight: 700 !important;
}

.litepicker .button-previous-month,
.litepicker .button-next-month {
    color: var(--md-brand) !important;
    fill: var(--md-brand) !important;
}

.litepicker { width: fit-content !important; }
.litepicker-backdrop { background: transparent !important; }

/* --- Litepicker — legenda (pół-daty) --- */
.litepicker__legend {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 24px !important;
    padding: 12px 20px 14px !important;
    border-top: 1px solid rgba(44,36,22,0.08) !important;
    background: var(--md-bg) !important;
    border-radius: 0 0 12px 12px !important;
}

.litepicker__legend .legend__halfBegin,
.litepicker__legend .legend__halfEnd {
    font-family: var(--md-font-body) !important;
    font-size: 11px !important;
    color: var(--md-text-muted) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.3 !important;
}

.litepicker__legend .legend__halfBegin::before,
.litepicker__legend .legend__halfEnd::before {
    content: '' !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.litepicker__legend .legend__halfBegin::before {
    background: #3a9a5b !important;
}

.litepicker__legend .legend__halfEnd::before {
    background: #c97b2a !important;
}

/* --- Wyszukiwarka MOBILE --- */
@media (max-width: 767px) {
    .iai-search {
        bottom: 24px !important;
        max-width: calc(100% - 32px) !important;
    }

    .iai_book_trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        background: var(--md-brand) !important;
        color: var(--md-bg) !important;
        border-radius: 12px !important;
        padding: 16px 24px !important;
        font-family: var(--md-font-body) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        box-shadow: 0 6px 24px rgba(139,105,20,0.3) !important;
        width: 100% !important;
    }

    .iai_book_trigger span,
    .iai_book_trigger b,
    .iai_book_trigger i {
        color: var(--md-bg) !important;
    }

    #iai_book_form {
        display: none !important;
    }

    #iai_book_form[style*="block"] {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        border-radius: 12px !important;
        margin-top: 8px !important;
        padding: 8px 0 !important;
    }

    #iai_book_form[style*="block"] .widget__option {
        border-right: none !important;
        border-bottom: 1px solid rgba(44,36,22,0.08) !important;
        min-height: 52px !important;
        padding: 10px 16px !important;
    }

    #iai_book_form[style*="block"] .formbutton {
        padding: 12px 8px 8px !important;
    }

    #iai_book_form[style*="block"] .formbutton button {
        min-height: 48px !important;
        border-radius: 10px !important;
    }
}

/* ============================================================
   LOCK HERO SLIDER — zawsze pierwszy slajd
   System (Slick) obraca slajdy — blokujemy CSS-em:
   pokazujemy TYLKO slajd [data-slick-index="0"], resztę ukrywamy.
   ============================================================ */

.parallax-slider .slick-track {
    transform: translate3d(0, 0, 0) !important;
    transition: none !important;
    animation: none !important;
    width: 100% !important;
}

.parallax-slider .slick-slide {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    pointer-events: none !important;
}

.parallax-slider .slick-slide[data-slick-index="0"] {
    opacity: 1 !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Ukryj nawigację slidera */
.parallax-slider .slick-arrow,
.parallax-slider .slick-prev,
.parallax-slider .slick-next,
.fp-controlArrow {
    display: none !important;
}

.parallax-slider .slick-dots {
    display: none !important;
}

/* Sekcje CMS fp-auto-height — widoczne (mogą zawierać treść strony) */
main > .section.fp-auto-height {
    display: block !important;
    height: auto !important;
}

/* Fix fullpage.js wrapper — disable scroll hijacking */
.fp-enabled body,
.fp-viewing-1 {
    overflow: auto !important;
}

html.fp-enabled {
    overflow: auto !important;
}

.fp-tableCell {
    display: block !important;
    height: auto !important;
}

/* Ensure page-index flows naturally */
.page-index {
    position: relative !important;
    transform: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* --- FOOTER --- */
footer {
    background: var(--md-bg) !important;
    border-top: 1px solid var(--md-border) !important;
    display: block !important;
}

footer .footer {
    background: var(--md-bg) !important;
    color: var(--md-text-muted) !important;
    font-size: 14px !important;
    padding: 48px 15px 32px !important;
}

footer .footer__wrapper {
    padding: 32px 0 !important;
    font-size: 14px !important;
}

footer .footer__contact {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 0 !important;
    margin: 0 0 20px !important;
}

footer .footer__contact,
footer .footer__contact li {
    color: var(--md-text-muted) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

footer .footer__contact li {
    padding: 0 18px !important;
}

footer .footer__contact li span {
    font-size: 14px !important;
}

footer .footer__contact a {
    color: var(--md-brand) !important;
    font-size: 14px !important;
    text-decoration: none;
    transition: color 0.25s;
}

footer .footer__contact a:hover {
    color: var(--md-brand-hover) !important;
}

footer .footer-contact-terms a {
    color: var(--md-text-subtle) !important;
    font-size: 13px !important;
    margin: 0 6px !important;
}

footer .footer-contact-terms a:hover {
    color: var(--md-brand) !important;
}

/* Social icons */
footer .footer-social-icons a {
    font-size: 24px !important;
}

/* Powered-by badge */
footer .powered_by {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--md-border-muted) !important;
}

footer .footer a[href*="idosell"] {
    opacity: 0.5;
    transition: opacity 0.25s;
}

footer .footer a[href*="idosell"]:hover {
    opacity: 0.8;
}

/* --- PAYMENT BAR (VISA/Mastercard) --- */
.footer-contact-baner {
    background: #3D3224 !important;
    padding: 14px 20px !important;
}

/* Back to top button */
#backTop {
    background: var(--md-brand) !important;
    border-color: var(--md-brand) !important;
}

#backTop:hover {
    background: var(--md-brand-hover) !important;
    border-color: var(--md-brand-hover) !important;
}

/* ============================================================
   SYSTEMOWE PODSTRONY — /offers, /contact
   Te strony generuje CMS automatycznie, nie mamy HTML.
   Stylujemy je przez CSS nadpisując klasy IdoSell.
   ============================================================ */

/* --- Ogólne tło i typografia podstron --- */
.page-offers,
.page-contact,
.page-text,
body {
    background: var(--md-bg) !important;
    color: var(--md-text) !important;
    font-family: var(--md-font-body) !important;
}

/* --- STRONA OFERT /offers --- */

/* Nagłówki ofert */
.offer-list h2,
.offer-list h3,
.offer-list .offer-name,
.offers-list .offer__name,
.offers h2,
.offers h3,
h1.big-label,
.room-name,
.room__name {
    font-family: var(--md-font-heading) !important;
    color: var(--md-text) !important;
    font-weight: 400 !important;
}

/* Karty ofert */
.offer-list .offer,
.offers-list .offer,
.offer-item,
.room-item,
.room__item {
    background: var(--md-bg-card) !important;
    border: 1px solid var(--md-border) !important;
    border-radius: 2px !important;
    transition: box-shadow 0.2s ease !important;
}

.offer-list .offer:hover,
.offers-list .offer:hover,
.offer-item:hover,
.room-item:hover,
.room__item:hover {
    box-shadow: 0 4px 20px rgba(44,36,22,0.1) !important;
}

/* Zdjęcia w ofertach */
.offer-list .offer img,
.offers-list .offer img,
.offer-item img,
.room-item img,
.room__photo img {
    border-radius: 2px 2px 0 0 !important;
}

/* Ceny */
.offer-list .price,
.offers-list .offer__price,
.offer-price,
.price,
.room-price,
.room__price {
    color: var(--md-brand) !important;
    font-family: var(--md-font-heading) !important;
    font-weight: 400 !important;
    font-size: 1.4rem !important;
}

/* Opisy ofert */
.offer-list .offer p,
.offers-list .offer__desc,
.offer-desc,
.room-desc,
.room__desc {
    color: var(--md-text-muted) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* ===== /offers — lista ofert ===== */

/* Ukryj duplikat przycisku z .accommodation-buttons */
.accommodation-buttons {
    display: none !important;
}

/* Przycisk "SZCZEGÓŁY" / "OFFER DETAILS" — hardcoded colors */
.offers-container a.offers-object-detail,
.accommodation-rest a.offers-object-detail,
a.offers-object-detail {
    background-color: #8B6914 !important;
    color: #FAF6F0 !important;
    border: 1px solid #8B6914 !important;
    border-radius: 2px !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 14px 18px !important;
    transition: background 0.25s, border-color 0.25s !important;
    font-family: 'DM Sans', sans-serif !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.3 !important;
    text-align: center !important;
    overflow: visible !important;
    text-indent: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    height: auto !important;
    min-height: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
}

.offers-container a.offers-object-detail:hover,
.accommodation-rest a.offers-object-detail:hover,
a.offers-object-detail:hover {
    background-color: #6F5310 !important;
    border-color: #6F5310 !important;
    color: #FAF6F0 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
}

/* ===== Ukrywanie wyszukiwarki dat na /offers — ZAWSZE ===== */
.page-offers .iai-search {
    display: none !important;
}

/* Filtry — bazowo zwinięte, rozwijane po kliknięciu #show_filters */
/* BEZ !important — żeby Bootstrap JS mógł nadpisać inline style="display:block" */
#menu_filter {
    display: none;
}

/* Przycisk "Pokaż filtry" — widoczny na wszystkich ekranach */
#show_filters {
    display: block !important;
    background-color: transparent !important;
    color: #8B6914 !important;
    border: 1px solid #8B6914 !important;
    border-radius: 2px !important;
    font-size: 14px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    font-family: 'DM Sans', sans-serif !important;
    cursor: pointer !important;
    transition: background 0.25s, color 0.25s !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    text-align: center !important;
}

#show_filters:hover {
    background-color: #8B6914 !important;
    color: #FAF6F0 !important;
}

/* Styl kontenera filtrów po rozwinięciu */
#menu_filter .filter_items {
    background: #FAF6F0 !important;
    border: 1px solid #E2D9CC !important;
    padding: 20px !important;
    border-radius: 2px !important;
}

#menu_filter .filter_header a {
    color: #2C2416 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
}

#menu_filter .filter_header strong {
    color: #2C2416 !important;
    font-family: 'Playfair Display', serif !important;
    letter-spacing: 0.03em !important;
}

#menu_filter h4 {
    color: #2C2416 !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
}

/* Przycisk "Zastosuj" w filtrach */
#menu_filter .btn,
.filters_submit .btn {
    background-color: #8B6914 !important;
    color: #FAF6F0 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
    border: 1px solid #8B6914 !important;
    border-radius: 2px !important;
    font-family: 'DM Sans', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 10px 24px !important;
}

#menu_filter .btn:hover,
.filters_submit .btn:hover {
    background-color: #6F5310 !important;
    border-color: #6F5310 !important;
}

/* ===== /offer/* — strona szczegółów obiektu ===== */

/* Przycisk "BOOK" / "ZAREZERWUJ" — hardcoded */
.accommodation-leftbutton,
span.accommodation-leftbutton,
span.btn.button.accommodation-leftbutton {
    background-color: #8B6914 !important;
    color: #FAF6F0 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
    border: 1px solid #8B6914 !important;
    border-radius: 2px !important;
    font-size: 16px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 32px !important;
    font-family: 'DM Sans', sans-serif !important;
    transition: background 0.25s, border-color 0.25s !important;
    cursor: pointer !important;
}

.accommodation-leftbutton:hover,
span.accommodation-leftbutton:hover,
span.btn.button.accommodation-leftbutton:hover {
    background-color: #6F5310 !important;
    border-color: #6F5310 !important;
    color: #FAF6F0 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
}

/* Przycisk "Pokaż na mapie" / "Show on map" */
.page-offer .btn.btn-reverse {
    background: transparent !important;
    color: #8B6914 !important;
    border: 1px solid #8B6914 !important;
    border-radius: 2px !important;
    font-size: 14px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 24px !important;
    font-family: 'DM Sans', sans-serif !important;
    transition: background 0.25s, color 0.25s !important;
}

.page-offer .btn.btn-reverse:hover {
    background-color: #8B6914 !important;
    color: #FAF6F0 !important;
}

/* Przycisk "Zarezerwuj teraz" w topbarze — hardcoded */
button.navbar-reservation.btn,
.navbar-reservation.btn {
    background-color: #8B6914 !important;
    color: #FAF6F0 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
    border: none !important;
    border-radius: 2px !important;
    font-size: 16px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 12px 22px !important;
    font-family: 'DM Sans', sans-serif !important;
    transition: background 0.25s !important;
}

button.navbar-reservation.btn:hover,
.navbar-reservation.btn:hover {
    background-color: #6F5310 !important;
    color: #FAF6F0 !important;
    -webkit-text-fill-color: #FAF6F0 !important;
}

/* Tagi / specyfikacja pokoju */
.offer-tags span,
.room-tags span,
.room__tag,
.offer__tag,
.amenity-tag {
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--md-text-muted) !important;
    border: 1px solid var(--md-border) !important;
    padding: 4px 10px !important;
    border-radius: 2px !important;
    font-family: var(--md-font-body) !important;
}

/* --- STRONA KONTAKT /contact --- */

/* Nagłówek kontaktu */
.page-contact h1,
.contact-page h1,
.contact h1 {
    font-family: var(--md-font-heading) !important;
    font-size: clamp(32px, 4vw, 52px) !important;
    font-weight: 400 !important;
    color: var(--md-text) !important;
}

/* Dane kontaktowe */
.contact-info,
.contact-data,
.contact__info {
    font-size: 1.05rem !important;
    color: var(--md-text-muted) !important;
    line-height: 1.8 !important;
}

.contact-info a,
.contact-data a,
.contact__info a {
    color: var(--md-brand) !important;
    text-decoration: none !important;
}

.contact-info a:hover,
.contact-data a:hover,
.contact__info a:hover {
    color: var(--md-brand-hover) !important;
    text-decoration: underline !important;
}

/* Formularz kontaktowy */
.contact-form,
.contact__form,
form.contact {
    background: var(--md-bg-card) !important;
    border: 1px solid var(--md-border) !important;
    border-radius: 2px !important;
    padding: 40px !important;
}

.contact-form label,
.contact__form label,
form.contact label {
    color: var(--md-text-muted) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    font-family: var(--md-font-body) !important;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contact__form input,
.contact__form textarea,
form.contact input,
form.contact textarea,
form.contact select {
    background: var(--md-bg) !important;
    border: 1px solid var(--md-border) !important;
    color: var(--md-text) !important;
    border-radius: 2px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    font-family: var(--md-font-body) !important;
    transition: border-color 0.2s !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact__form input:focus,
.contact__form textarea:focus,
form.contact input:focus,
form.contact textarea:focus {
    border-color: var(--md-brand) !important;
    outline: none !important;
}

.contact-form button,
.contact-form .btn,
.contact__form .btn,
form.contact button,
form.contact .btn {
    background: var(--md-brand) !important;
    color: #FAF6F0 !important;
    border: none !important;
    border-radius: 2px !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 36px !important;
    cursor: pointer !important;
    transition: background 0.25s !important;
    font-family: var(--md-font-body) !important;
}

.contact-form button:hover,
.contact-form .btn:hover,
form.contact button:hover,
form.contact .btn:hover {
    background: var(--md-brand-hover) !important;
}

/* Mapa kontaktowa */
.contact-map iframe,
.contact__map iframe,
.map-container iframe {
    border: 1px solid var(--md-border) !important;
    border-radius: 2px !important;
}

/* --- Ogólne linki na podstronach --- */
.page-text a,
.txt-text a,
main a:not(.md-btn):not(.nav-link):not(.navbar-brand) {
    color: var(--md-brand) !important;
    transition: color 0.2s !important;
}

.page-text a:hover,
.txt-text a:hover,
main a:not(.md-btn):not(.nav-link):not(.navbar-brand):hover {
    color: var(--md-brand-hover) !important;
}

/* --- Breadcrumbs --- */
.breadcrumb,
.breadcrumbs {
    background: transparent !important;
    font-size: 0.85rem !important;
    color: var(--md-text-muted) !important;
}

.breadcrumb a,
.breadcrumbs a {
    color: var(--md-brand) !important;
}

/* --- Paginacja --- */
.pagination .page-link {
    background: var(--md-bg) !important;
    color: var(--md-text) !important;
    border: 1px solid var(--md-border) !important;
}

.pagination .page-item.active .page-link {
    background: var(--md-brand) !important;
    color: #FAF6F0 !important;
    border-color: var(--md-brand) !important;
}


/* ============================================================
   WYRÓŻNIONE OFERTY — ukryte systemowe + własne karty JS
   System generuje .container-hotspot — ukrywamy go CSS-em.
   Skrypt w body_bottom czyta dane z ukrytego systemu,
   buduje własne karty #md-offers i wstawia je na stronę.
   ============================================================ */

/* --- Ukryj systemowe wyróżnione oferty --- */
.container-hotspot {
    display: none !important;
}

/* --- Własna sekcja ofert (generowana przez JS, grupowana po 3) --- */
.md-offers-section {
    position: relative;
    z-index: 0;
    padding: 48px 20px 56px;
}

.md-offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: var(--md-bg-muted);
    z-index: -1;
}

/* Naprzemienne tła — parzyste sekcje = białe */
.md-offers-section--alt::before {
    background: var(--md-bg);
}

.md-offers__inner {
    max-width: var(--md-max-width);
    margin: 0 auto;
}

.md-offers__title {
    font-family: var(--md-font-heading);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    color: var(--md-text);
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.md-offers__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--md-brand);
    margin: 12px auto 28px;
}

/* Subtitle pod głównym tytułem */
.md-offers__subtitle {
    font-family: var(--md-font-body);
    font-size: 12px;
    color: var(--md-text-muted);
    text-align: center;
    margin: -20px 0 32px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 400;
}

/* --- Nagłówek marki (numer + nazwa + opis) --- */
.md-offers__brand-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.md-offers__brand-num {
    font-family: var(--md-font-heading);
    font-size: 36px;
    font-weight: 300;
    color: var(--md-brand);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
}

.md-offers__brand {
    font-family: var(--md-font-heading);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 500;
    color: var(--md-text);
    margin: 0 0 4px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.md-offers__brand-desc {
    font-family: var(--md-font-body);
    font-size: 12px;
    line-height: 1.55;
    color: var(--md-text-muted);
    margin: 0;
    max-width: 600px;
}

.md-offers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Karta oferty --- */
.md-offer-card {
    background: var(--md-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(44, 36, 22, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.md-offer-card:hover {
    box-shadow: 0 8px 28px rgba(44, 36, 22, 0.13);
    transform: translateY(-5px);
    text-decoration: none !important;
    color: inherit;
}

/* --- Obrazek karty --- */
.md-offer-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--md-bg-alt);
}

.md-offer-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.md-offer-card:hover .md-offer-card__img img {
    transform: scale(1.06);
}

/* --- Treść karty --- */
.md-offer-card__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.md-offer-card__name {
    font-family: var(--md-font-heading);
    font-size: 17px;
    font-weight: 500;
    color: var(--md-text);
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.md-offer-card:hover .md-offer-card__name {
    color: var(--md-brand);
}

.md-offer-card__desc {
    font-family: var(--md-font-body);
    font-size: 13px;
    line-height: 1.55;
    color: var(--md-text-muted);
    margin: 0 0 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Meta (m² + osoby) --- */
.md-offer-card__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--md-font-body);
    font-size: 13px;
    color: var(--md-text-subtle);
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--md-border-muted);
}

.md-offer-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.md-offer-card__meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.55;
}

/* --- Przycisk CTA --- */
.md-offer-card__cta {
    display: inline-block;
    background: var(--md-brand);
    color: var(--md-bg) !important;
    font-family: var(--md-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 9px 20px;
    border-radius: 6px;
    transition: background 0.2s ease;
    text-align: center;
    align-self: flex-start;
}

.md-offer-card:hover .md-offer-card__cta {
    background: var(--md-brand-hover);
}

/* --- Responsive — 3 → 2 → 1 kolumna --- */
@media (max-width: 1024px) {
    .md-offers__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .md-offers__grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .md-offers-section {
        padding: 48px 16px 56px;
    }
    .md-offers__title {
        font-size: 22px;
    }
    .md-offers__grid {
        gap: 18px;
    }
    .md-offer-card__body {
        padding: 18px 18px 22px;
    }
    .md-offer-card__name {
        font-size: 18px;
    }
    .md-offers__subtitle {
        font-size: 13px;
        margin: -24px 0 36px;
    }
    .md-offers__brand-header {
        gap: 14px;
    }
    .md-offers__brand-num {
        font-size: 36px;
    }
}


/* ============================================================
   HELPERS — akcje sekcji, CTA ghost w barze
   ============================================================ */

.md-section__actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.md-cta-bar .md-btn--ghost {
    background: transparent;
    border: 1px solid rgba(250,246,240,0.3);
    color: #FAF6F0 !important;
}

.md-cta-bar .md-btn--ghost:hover {
    background: rgba(250,246,240,0.1);
    border-color: rgba(250,246,240,0.5);
    color: #FAF6F0 !important;
}

/* ============================================================
   REWIZJA — kompaktowe fonty, ukryte sekcje, layout fixes
   ============================================================ */

/* --- Globalna baza fontów --- */
body { font-size: 14px !important; }

/* --- UKRYJ sekcję "Lokalizacja" na stronie głównej --- */
.section_sub > .md-full:nth-child(4) {
    display: none !important;
}

/* --- "Witamy w Maderze" — cienki pasek intro --- */
.section_sub > .md-full:first-child .md-section {
    padding: 28px 0 24px !important;
    background: var(--md-bg-alt) !important;
}

.section_sub > .md-full:first-child .md-h2 {
    font-size: 20px !important;
    margin: 0 0 8px !important;
}

.section_sub > .md-full:first-child .md-intro {
    font-size: 13px !important;
}

.section_sub > .md-full:first-child .md-rule {
    display: none !important;
}

.section_sub > .md-full:first-child .md-split {
    gap: 40px !important;
}

/* --- Momenti Piccanti — 2-kolumnowy layout z opisem --- */
.md-offers-section + .md-offers-section + .md-offers-section .md-offers__grid {
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch !important;
}

.md-offers-section + .md-offers-section + .md-offers-section .md-offers__grid::after {
    content: 'Romantyczny apartament zaprojektowany z myślą o parach. Elegancka wanna, nastrojowe oświetlenie i pełna dyskrecja — idealne na wieczór we dwoje w Katowicach.';
    display: flex;
    align-items: center;
    padding: 32px;
    background: var(--md-bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44,36,22,0.06);
    font-family: var(--md-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--md-text-muted);
    font-style: italic;
}

/* --- Amenity/feature — mniejsze fonty --- */
.md-amenity__title { font-size: 14px !important; font-weight: 600 !important; }
.md-amenity__text,
.md-amenity p { font-size: 12px !important; line-height: 1.55 !important; }

/* --- Features list — mniejsze --- */
.md-features li {
    font-size: 13px !important;
    line-height: 1.55 !important;
    padding: 10px 0 !important;
}

/* --- CTA bar — bardziej kompaktowy --- */
.md-cta-bar { padding: 32px 0 !important; }
.md-cta-bar h3 { font-size: 20px !important; }
.md-cta-bar p { font-size: 13px !important; }

/* --- Sekcja Social — kompaktowa --- */
.section_sub > .md-full:nth-child(6) .md-section {
    padding: 32px 0 !important;
}

/* ============================================================
   GALERIA — kompaktowe nagłówki, mniej tekstu
   ============================================================ */

/* Nagłówek galerii */
.page-text .md-page-header .md-h2,
.page-text .md-page-header h2 {
    font-size: 28px !important;
}

.page-text .md-page-header .md-lead {
    font-size: 13px !important;
}

/* Album intro — schowaj całą sekcję "Cztery albumy zdjęć" (za dużo tekstu) */
.txt-text > .md-full:nth-child(2) {
    display: none !important;
}

/* Album headers w galerii — mniejsze */
.txt-text > .md-full .md-split .md-h2 {
    font-size: 18px !important;
}

.txt-text > .md-full .md-split .md-intro {
    font-size: 12px !important;
}

/* Album headers w galerii — mniejsze */
.md-album-header .md-h2 { font-size: 22px !important; }
.md-album-header .md-intro { font-size: 13px !important; }
.md-album-header .md-label { font-size: 9px !important; }

/* ============================================================
   SYSTEMOWE PODSTRONY — redukcja fontów
   ============================================================ */

.page-offers h2,
.page-contact h2,
.page-txt h2 {
    font-size: 22px !important;
}

.page-offers h3,
.page-contact h3,
.page-txt h3 {
    font-size: 16px !important;
}

.page-txt p,
.page-offers p,
.page-contact p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Podstrony /txt/ — hero title i desc za duże (system clamp = 76px) */
.txt-text .md-hero__title {
    font-size: 32px !important;
}

.txt-text .md-hero__desc {
    font-size: 13px !important;
    max-width: 520px !important;
}

.txt-text .md-hero__kicker {
    font-size: 10px !important;
}

/* System .txt-text nadaje 19px paragrafom — override */
.txt-text p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Offer card meta na podstronach */
.md-offer-card__meta { font-size: 12px !important; }

/* Offer card body padding */
.md-offer-card__body { padding: 18px 20px 22px !important; }

/* ============================================================
   "Witamy w Maderze" — przeniesione pod hero przez JS
   ============================================================ */
#md-witamy-clone {
    background: var(--md-bg-alt);
    padding: 28px 0 24px;
}

#md-witamy-clone .md-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

#md-witamy-clone .md-h2 {
    font-size: 20px !important;
    margin: 0 0 8px !important;
    text-align: center;
}

#md-witamy-clone .md-intro {
    font-size: 13px !important;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    color: var(--md-text-muted);
}

/* Ukryj oryginał "Witamy" po przeniesieniu */
.section_sub > .md-full:first-child {
    display: none !important;
}

/* ============================================================
   GALERIA — ukryj zepsute zdjęcia (fallback CSS)
   ============================================================ */
.md-photo--broken {
    display: none !important;
}

/* ============================================================
   FOOTER — payment bar full-width breakout
   ============================================================ */
.footer-contact-baner {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    background: #3D3224 !important;
    padding: 16px 20px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

footer {
    padding-bottom: 0 !important;
}

footer .footer {
    padding-bottom: 0 !important;
}

footer::after {
    content: '' !important;
    display: block !important;
    height: 20px !important;
    background: #3D3224 !important;
}

/* ============================================================
   CTA BAR — ciemne drewno + złoty akcent
   ============================================================ */
.md-cta-bar {
    background: #2C2416 !important;
}

.md-cta-bar .md-btn {
    background: var(--md-brand) !important;
    color: #FAF6F0 !important;
}

.md-cta-bar .md-btn:hover {
    background: var(--md-brand-hover) !important;
    color: #FAF6F0 !important;
}

.md-cta-bar .md-btn--ghost {
    background: transparent !important;
    border: 1px solid rgba(250,246,240,0.4) !important;
    color: #FAF6F0 !important;
}

.md-cta-bar .md-btn--ghost:hover {
    background: rgba(250,246,240,0.1) !important;
    border-color: #FAF6F0 !important;
    color: #FAF6F0 !important;
}

/* ============================================================
   PHOTO STRIP — "Co nas wyróżnia"
   ============================================================ */
.md-photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0 28px;
}

.md-photo-strip__item {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.md-photo-strip__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.md-photo-strip__item:hover img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .md-photo-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ============================================================
   SCENE STRIP — external photos with captions (Wikimedia)
   Used in "Wyobraź sobie" / "Imagine" section
   ============================================================ */
.md-scene-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0 28px;
}

.md-scene-strip__item {
    border-radius: 8px;
    overflow: hidden;
}

.md-scene-strip__item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.md-scene-strip__item:hover img {
    transform: scale(1.04);
}

.md-scene-strip__caption {
    display: block;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250,246,240,0.6);
    padding: 8px 0 2px;
}

@media (max-width: 768px) {
    .md-scene-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ============================================================
   SCENE SINGLE — single atmospheric photo with caption
   Used in "Bądź na bieżąco" / "Stay up to date" section
   ============================================================ */
.md-scene-single {
    margin: 16px 0 0;
}

.md-scene-single img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.md-scene-single__caption {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(44,36,22,0.5);
    padding: 6px 0 0;
}

/* ============================================================
   HERO BADGES — checkmarks under hero subtitle (JS-injected)
   ============================================================ */
.md-hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.md-hero-badges span {
    font-family: var(--md-font-body);
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(250,246,240,0.75);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .md-hero-badges {
        gap: 12px;
    }
}

/* ============================================================
   MOMENTI PICCANTI — compact hero + gallery-first layout
   ============================================================ */

/* Compact hero variant */
.md-hero--compact {
    padding: 40px 0 32px !important;
}

.md-hero--compact .md-hero__kicker {
    font-size: 10px !important;
    letter-spacing: 2px !important;
}

.md-hero--compact .md-hero__title {
    font-size: 28px !important;
    margin: 8px 0 10px !important;
}

.md-hero--compact .md-hero__desc {
    font-size: 13px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

/* Gallery right after hero — tighter top padding */
.md-section--gallery-top {
    padding-top: 20px !important;
}

.md-section--gallery-top .md-photos-count {
    margin-bottom: 16px !important;
}

/* Specs bar on Momenti — no header, just the bar */
.md-section--muted .md-specs {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .md-hero--compact .md-hero__title {
        font-size: 24px !important;
    }

    .md-hero--compact .md-hero__desc {
        font-size: 12px !important;
    }
}

/* Galeria /txt/202: ukryj systemowy .gallery-lightbox gdy mamy custom .md-albums
   System IdoSell auto-renderuje wszystkie zdjecia z /images/frontpageGallery/
   w .gallery-lightbox. Uzywamy wlasnej struktury (.md-albums + #album-*),
   wiec systemowa duplikuje content i pokazuje utility-zdjecia (np. Katowice). */
body.page-txt .container:has(.md-albums) .gallery-lightbox {
    display: none !important;
}
