/* ═══════════════════════════════════════════════════════════
   HOSSA Biuro Nieruchomości
   Kolor główny: #04a5dc (Jasna, lekka kolorystyka)

   Spis treści:
   1.  Zmienne (Design Tokens)
   2.  Reset & Base
   3.  Typografia
   4.  Komponenty: przyciski
   5.  Komponenty: formularze
   6.  Layout (container, section, page-header)
   7.  Breadcrumb
   8.  Navbar & mobile
   9.  Stopka
   10. Karty ofert (property-card) & Slider
   11. Galeria (property_detail)
   12. Sidebar (property_detail)
   13. Blog (lista i detal)
   14. Formularz kontaktowy
   15. Markdown content
   16. Strona główna (hero, features, CTA)
   17. Empty state & Error page
   18. Paginacja
   19. Wyszukiwarka (Pasek Kontrolny)
   20. Zagranica (lista krajów, detal, sidebar)
   21. Utility
   22. WhatsApp float
   23. Media queries (globalne)
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   HOSSA Biuro Nieruchomości
   Kolor główny: #04a5dc (Jasna, lekka kolorystyka)

   Spis treści:
   1.  Zmienne (Design Tokens)
   2.  Reset & Base
   3.  Typografia
   4.  Komponenty: przyciski
   5.  Komponenty: formularze
   6.  Layout (container, section, page-header)
   7.  Breadcrumb
   8.  Navbar & mobile
   9.  Stopka
   10. Karty ofert (property-card) & Slider
   11. Galeria (property_detail)
   12. Sidebar (property_detail)
   13. Blog (lista i detal)
   14. Formularz kontaktowy
   15. Markdown content
   16. Strona główna (hero, features, CTA)
   17. Empty state & Error page
   18. Paginacja
   19. Wyszukiwarka (Pasek Kontrolny)
   20. Utility
   21. Media queries (globalne)
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1. ZMIENNE
═══════════════════════════════════════════════════════════ */
:root {
    /* Kolory */
    --primary: #04a5dc;
    --primary-hover: #0390c4;
    --primary-active: #027aaa;
    --primary-light: #e6f6fd;
    --primary-lighter: #f0faff;

    --text: #222831;
    --text-muted: #5f6b7a;
    --text-light: #9aa5b1;
    --text-inverse: #ffffff;

    --bg: #ffffff;
    --surface: #f8f9fa;
    --surface-2: #f1f3f5;
    --surface-offset: #eaecef;

    --border: rgba(0, 0, 0, .09);
    --border-strong: rgba(0, 0, 0, .16);
    --color-divider: #e0e0e0;

    /* Typografia */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    --text-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
    --text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    --text-hero: clamp(2.25rem, 1rem + 4vw, 3.75rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Kształt */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Cienie */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
    --shadow-md: 0 4px 16px rgba(0,0,0,.09);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.12);

    /* Inne */
    --nav-h: 68px;
    --transition: 180ms cubic-bezier(.16,1,.3,1);
    --content-narrow: 640px;
    --content-default: 960px;
    --content-wide: 1200px;
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

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

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

table {
    border-collapse: collapse;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    text-wrap: balance;
    color: var(--text);
}

p, li {
    text-wrap: pretty;
    max-width: 72ch;
}

::selection {
    background: rgba(4,165,220,.18);
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

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

/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAFIA
═══════════════════════════════════════════════════════════ */
h1 { font-size: var(--text-2xl); font-weight: 700; }
h2 { font-size: var(--text-xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; }
h4 { font-size: var(--text-base); font-weight: 600; }
address { font-style: normal; }

/* ═══════════════════════════════════════════════════════════
   4. PRZYCISKI
═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: .55rem 1.25rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.3;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.btn:active { transform: translateY(1px); }

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

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-hover); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-sm { padding: .35rem .9rem; font-size: var(--text-xs); }
.btn-lg { padding: .75rem 1.75rem; font-size: var(--text-base); }

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════
   5. FORMULARZE
═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: var(--space-5); }
.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}
.form-input {
    width: 100%;
    padding: .6rem .9rem;
    font-size: var(--text-base);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4,165,220,.18);
}
.form-input--error { border-color: #dc3545; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-error { margin-top: var(--space-1); font-size: var(--text-xs); color: #dc3545; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--text-muted);
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}
.form-check__text { font-size: var(--text-sm); line-height: 1.5; }

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: var(--radius-lg);
    color: #166534;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   6. LAYOUT
═══════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--content-wide);
    margin-inline: auto;
    padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

.section { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section--alt { background: var(--surface); }
.section--tight { padding-block: clamp(var(--space-8), 4vw, var(--space-12)); }
.section--cta {
    background: linear-gradient(135deg, #0390c4 0%, #04a5dc 60%, #2bb5e8 100%);
    color: #fff;
    text-align: center;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}
.section-title { font-size: var(--text-xl); }
.section-title--center { text-align: center; }
.section-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* Page header */
.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding-block: var(--space-8) var(--space-3);
}
.page-title { font-size: var(--text-2xl); margin-top: var(--space-2); }
.page-lead {
    margin-top: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-base);
    max-width: 60ch;
}

/* Zmniejszenie o ok. 50% odstępu między page-header a treścią poniżej */
.page-header + .section {
    padding-top: clamp(var(--space-6), 3vw, var(--space-10));
}
.page-header + .section--tight {
    padding-top: clamp(var(--space-4), 2vw, var(--space-6));
}

/* ═══════════════════════════════════════════════════════════
   7. BREADCRUMB
═══════════════════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   8. NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    height: var(--nav-h);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand:hover { color: var(--primary); }
.active { color: var(--primary) !important; font-weight: 600; }

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
    flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: var(--space-2);
    border-radius: var(--radius);
    border: 1.5px solid var(--border-strong);
    background: transparent;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   9. STOPKA — wariant grafitowy
═══════════════════════════════════════════════════════════ */
.site-footer {
    background: #1b1f24;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-block: var(--space-8) var(--space-5);
    margin-top: auto;
}

.footer-inner {
    max-width: var(--content-wide);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-heading {
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.58);
}

.footer-links {
    list-style: none;
}

.footer-links li + li {
    margin-top: var(--space-2);
}

.footer-links a {
    display: inline-block;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-col address p,
.footer-col address a {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.footer-col address a:hover {
    color: var(--primary);
}

.footer-col--note .footer-note {
    max-width: 30ch;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p,
.footer-license {
    font-size: var(--text-xs);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.46);
}
/* ═══════════════════════════════════════════════════════════
   10. KARTY OFERT
═══════════════════════════════════════════════════════════ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: var(--space-6);
}
.property-grid--sm {
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: var(--space-4);
}

.property-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.property-card__img-link {
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--surface-2);
}
.property-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.property-card__img-link:hover .property-card__img { transform: scale(1.04); }
.property-card__img-link--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--text-xs);
}

.property-card__body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-2);
}
.property-card__type {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary);
}
.property-card__title {
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-display);
}
.property-card__title a { color: var(--text); }
.property-card__title a:hover { color: var(--primary); }

.property-card__location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.property-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    flex: 1;
}
.property-card__meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.property-card__meta span {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.property-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}
.property-card__price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
}
.property-card__price--ask {
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.property-card--sm .property-card__img-link { aspect-ratio: 3/2; }

/* Ribbony (etykety) na kartach ofert */
.property-card__img-link { position: relative; }
.property-card__ribbon {
    position: absolute;
    z-index: 5;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    line-height: 1.2;
}
.property-card__ribbon--top-left { top: 12px; left: 12px; }
.property-card__ribbon--top-right { top: 12px; right: 12px; }
.property-card__ribbon--bottom-left { bottom: 12px; left: 12px; }
.property-card__ribbon--bottom-right { bottom: 12px; right: 12px; }

/* Odznaka "Na wyłączność" */
.property-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
}
.property-status-badge svg { flex-shrink: 0; }


/* Poszukujemy kart (Wanted) */
.wanted-grid { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.wanted-card {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
.wanted-card__type { margin-bottom: 0.5rem; }
.wanted-card__title { margin-top: 0; margin-bottom: 1rem; }

/* Slider ofert (czysty CSS) */
.slider-container { position: relative; width: 100%; }
.property-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-6);
    padding-bottom: var(--space-4);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.property-slider::-webkit-scrollbar { display: none; }
.property-card--slide {
    flex: 0 0 calc(33.333% - (var(--space-6) * 2 / 3));
    scroll-snap-align: start;
    min-width: 300px;
}
.slider-hint {
    display: none;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
}
.slider-hint .arrow { display: inline-block; animation: slideArrow 1.5s infinite ease-in-out; }
@keyframes slideArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ═══════════════════════════════════════════════════════════
   11. GALERIA (property_detail)
═══════════════════════════════════════════════════════════ */
.gallery { margin-bottom: var(--space-8); }
.gallery__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--surface-2);
    margin-bottom: var(--space-3);
}
.gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s ease;
}
.gallery__thumbs {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.gallery__thumb {
    border-radius: calc(var(--radius-lg) - var(--space-3));
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition);
    background: none;
}
.gallery__thumb:hover, .gallery__thumb--active { border-color: var(--primary); }
.gallery__thumb img {
    width: 80px;
    height: 52px;
    object-fit: cover;
    display: block;
}

.property-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-8);
    align-items: start;
}
.property-detail__main { min-width: 0; }
.property-detail__desc { margin-top: var(--space-8); }
.property-detail__location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
}
.detail-section-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}


/* Ribbon na galerii szczegółów oferty */
.gallery__main { position: relative; }
.property-detail__ribbon {
    position: absolute;
    z-index: 5;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    line-height: 1.2;
}
.property-detail__ribbon--top-left { top: 14px; left: 14px; }
.property-detail__ribbon--top-right { top: 14px; right: 14px; }
.property-detail__ribbon--bottom-left { bottom: 14px; left: 14px; }
.property-detail__ribbon--bottom-right { bottom: 14px; right: 14px; }

/* ═══════════════════════════════════════════════════════════
   12. SIDEBAR (property_detail)
═══════════════════════════════════════════════════════════ */
.property-detail__sidebar {
    position: sticky;
    top: calc(var(--nav-h) + var(--space-6));
}
.sidebar-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}
.sidebar-card--price { background: var(--primary-lighter); border-color: rgba(4,165,220,.2); }
.sidebar-card--contact { background: var(--surface); }

.sidebar-card__title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}
.sidebar-price {
    font-size: var(--text-2xl);
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text);
}
.sidebar-price--ask { font-size: var(--text-xl); color: var(--text-muted); }
.sidebar-price-sqm { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-1); }

.param-list { display: flex; flex-direction: column; gap: 0; }
.param-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}
.param-row:last-child { border-bottom: none; }
.param-row dt { color: var(--text-muted); flex-shrink: 0; }
.param-row dd { font-weight: 600; text-align: right; }

/* ═══════════════════════════════════════════════════════════
   13. BLOG (lista i detal)
═══════════════════════════════════════════════════════════ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-6);
}
.post-card {
    padding: var(--space-6);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card__meta { font-size: var(--text-xs); color: var(--text-light); }
.post-card__title { font-size: var(--text-base); font-weight: 700; line-height: 1.3; font-family: var(--font-display); }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { font-size: var(--text-sm); color: var(--text-muted); flex: 1; }
.post-card__link { font-size: var(--text-sm); font-weight: 600; color: var(--primary); margin-top: auto; }

/* Lista na blogu */
.post-list { display: flex; flex-direction: column; gap: var(--space-10); }
.post-item { padding-top: var(--space-10); border-top: 1px solid var(--color-divider); }
.post-item__inner {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: var(--space-8);
    align-items: start;
}
.post-item__img-wrap {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
}
.post-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.post-item__img-wrap:hover .post-item__img { transform: scale(1.03); }
.post-item__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}
.post-item__cat {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.post-item__title { font-size: var(--text-xl); font-weight: 700; line-height: 1.25; font-family: var(--font-display); margin-bottom: var(--space-4); }
.post-item__title a { color: var(--text); }
.post-item__title a:hover { color: var(--primary); }
.post-item__excerpt { font-size: var(--text-base); color: var(--text-muted); max-width: 65ch; margin-bottom: var(--space-4); line-height: 1.7; }
.post-item__link { font-size: var(--text-sm); font-weight: 600; color: var(--primary); width: fit-content; text-decoration: none; }
.post-item__link:hover { text-decoration: underline; }

/* Detal wpisu / static page */
.post-header { margin-bottom: var(--space-8); }
.post-header__cat {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    margin-bottom: var(--space-3);
}
.post-header__title { font-size: var(--text-2xl); line-height: 1.15; margin-bottom: var(--space-3); }
.post-header__meta { font-size: var(--text-sm); color: var(--text-muted); }
.post-header__image { margin-bottom: var(--space-6); overflow: hidden; border-radius: var(--radius-lg); }
.post-hero-img, .static-page__img { width: 100%; max-width: 768px; height: 420px; object-fit: cover; border-radius: var(--radius-lg); display: block; margin-bottom: var(--space-8); }
.post-footer { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════
   14. FORMULARZ KONTAKTOWY
═══════════════════════════════════════════════════════════ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-12);
    align-items: start;
}
.contact-info__title, .contact-form-wrap__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
}
.contact-address {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.contact-address__name { font-weight: 700; font-size: var(--text-lg); }
.contact-address__row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-muted);
}
.contact-address__row svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.contact-address__row a { color: var(--text-muted); }
.contact-address__row a:hover { color: var(--primary); }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}
.contact-team {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.contact-team__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 var(--space-1);
    padding-top: var(--space-2);
}
.contact-agent {
    padding: var(--space-5);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.contact-agent__name { font-size: var(--text-lg); font-weight: 700; line-height: 1.25; color: var(--text); margin: 0 0 var(--space-2); }
.contact-agent__role { font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); margin: 0 0 var(--space-3); }
.contact-agent__meta { font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); margin: 0 0 var(--space-4); }
.contact-agent__rows { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-agent__rows .contact-address__row { font-size: var(--text-sm); line-height: 1.55; }
.contact-agent__rows .contact-address__row a,
.contact-agent__rows .contact-address__row span { line-height: 1.55; }

/* Prawa kolumna: formularz */
.contact-form-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-xl);
    padding: clamp(var(--space-6), 4vw, var(--space-10));
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.contact-form-wrap__intro { margin-bottom: var(--space-6); }
.contact-form-wrap__eyebrow {
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}
.contact-form-wrap__lead { max-width: 58ch; color: var(--text-muted); }

.contact-form { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.contact-form .form-input,
.contact-form .form-textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid rgba(0,0,0,.12);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .form-input:focus,
.contact-form .form-textarea:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(4,165,220,.14);
}
.form-group--consent { margin-top: var(--space-2); }
.contact-form__actions { margin-top: var(--space-3); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.contact-form__note { font-size: var(--text-sm); color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════
   15. MARKDOWN CONTENT
═══════════════════════════════════════════════════════════ */
.markdown-content {
    color: var(--text);
    font-size: var(--text-base);
    line-height: 1.75;
}
.markdown-content h2 { font-size: var(--text-xl); margin-top: var(--space-10); margin-bottom: var(--space-4); }
.markdown-content h3 { font-size: var(--text-lg); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.markdown-content h4 { font-size: var(--text-base); font-weight: 700; margin-top: var(--space-6); margin-bottom: var(--space-2); }
.markdown-content p { margin-bottom: var(--space-4); max-width: 72ch; }
.markdown-content ul, .markdown-content ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.markdown-content li { margin-bottom: var(--space-2); }
.markdown-content strong { font-weight: 700; }
.markdown-content em { font-style: italic; }
.markdown-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.markdown-content a:hover { color: var(--primary-hover); }
.markdown-content hr { border: none; border-top: 1px solid var(--border); margin-block: var(--space-8); }
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    overflow-x: auto;
    display: block;
}
.markdown-content th, .markdown-content td { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); text-align: left; }
.markdown-content th { background: var(--surface); font-weight: 700; }
.markdown-content blockquote {
    border-left: 3px solid var(--primary);
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-6);
    background: var(--primary-lighter);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted);
}
.markdown-content code { background: var(--surface-2); padding: 2px 6px; border-radius: var(--radius-sm); font-size: .9em; }
.markdown-content pre { background: var(--surface-2); padding: var(--space-5); border-radius: var(--radius-lg); overflow-x: auto; margin-bottom: var(--space-6); }
.markdown-content pre code { background: none; padding: 0; }
.markdown-content--page { max-width: var(--content-narrow); margin-inline: auto; }
.markdown-content--post { max-width: 68ch; }

/* ═══════════════════════════════════════════════════════════
   16. STRONA GŁÓWNA (Hero, Features, CTA)
═══════════════════════════════════════════════════════════ */
.hero {
    background: #eef8fd;
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: nowrap;
}
.hero-content {
    flex: 1 1 50%;
    max-width: 560px;
}
.hero-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: var(--space-4);
}
.hero-title {
    font-size: var(--text-hero);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--space-5);
    color: var(--text);
}
.hero-lead {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    max-width: 52ch;
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-image-wrapper { flex: 1 1 50%; display: flex; justify-content: flex-end; }
.hero-image { display: block; width: 100%; max-width: 560px; height: auto; border-radius: 20px; object-fit: cover; }

.features-list { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.feature__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
}
.feature__title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-1); }
.feature__desc { font-size: var(--text-sm); color: var(--text-muted); }

.cta-title { font-size: var(--text-2xl); font-weight: 800; color: #fff; margin-bottom: var(--space-3); }
.cta-lead { font-size: var(--text-base); color: rgba(255,255,255,.85); margin-bottom: var(--space-8); max-width: 52ch; margin-inline: auto; }
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

.cta-box {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: var(--primary-lighter);
    border: 1px solid rgba(4,165,220,.2);
    border-radius: var(--radius-xl);
    text-align: center;
}
.cta-box__title { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.cta-box__lead { font-size: var(--text-base); color: var(--text-muted); margin-bottom: var(--space-6); margin-inline: auto; }

/* ═══════════════════════════════════════════════════════════
   17. EMPTY STATE & ERROR PAGE
═══════════════════════════════════════════════════════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--text-muted);
    gap: var(--space-4);
}
.empty-state svg { color: var(--text-light); }
.empty-state h2 { font-size: var(--text-xl); color: var(--text); }
.empty-state p { max-width: 40ch; font-size: var(--text-base); }
.empty-state a { color: var(--primary); font-weight: 600; }

.error-page { text-align: center; padding-block: var(--space-20); }
.error-page__code {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-4);
}
.error-page__title { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.error-page__lead { font-size: var(--text-base); color: var(--text-muted); margin-bottom: var(--space-8); margin-inline: auto; }

/* ═══════════════════════════════════════════════════════════
   18. PAGINACJA
═══════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-10);
    flex-wrap: wrap;
}
.pagination__btn {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.pagination__btn:hover { background: var(--primary); color: #fff; }
.pagination__info { font-size: var(--text-sm); color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   19. WYSZUKIWARKA / PASEK KONTROLNY
═══════════════════════════════════════════════════════════ */
.list-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

.list-controls__count {
    color: var(--text-muted);
    font-size: var(--text-base);
    white-space: nowrap;
}

.inline-search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-primary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Panel Zaawansowany (rozwijany) */
.search-advanced-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    animation: fadeIn 0.2s ease-in-out;
}

/* Wspólne pola i selekty */
.search-select, .search-input {
    height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    background-color: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}

.search-select:focus, .search-input:focus {
    border-color: var(--primary);
}

.search-field--range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-field--range .search-input { width: 120px; }
.search-field--reset .btn { width: 100%; justify-content: center; }

/* Przyciski (Lupa i Hamburger) */
.search-btn, .filters-toggle-btn {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
}

.search-btn {
    background-color: var(--primary);
    color: #fff;
    transition: background-color var(--transition);
}
.search-btn:hover { background-color: var(--primary-hover); }

.filters-toggle-btn {
    background-color: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
}
.filters-toggle-btn.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-only { display: none; }

.search-field--reset {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

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

/* ═══════════════════════════════════════════════════════════
   /* ═══════════════════════════════════════════════════════════
   20. ZAGRANICA (lista krajów, detal, sidebar)
═══════════════════════════════════════════════════════════ */
.foreign-hero { margin-bottom: var(--space-8); }

.foreign-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.foreign-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.foreign-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.foreign-card__title { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.foreign-card__title a { color: var(--text); text-decoration: none; }
.foreign-card__title a:hover { color: var(--primary); }
.foreign-card__intro {
    color: var(--text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    max-width: 65ch;
}
.foreign-card__regions { margin-bottom: var(--space-4); }
.foreign-card__subtitle {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}
.foreign-card__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.foreign-card__list li a {
    display: inline-block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
}
.foreign-card__list li a:hover { color: var(--primary); background: var(--primary-light); }
.foreign-card__actions { margin-top: var(--space-2); }

/* Detal kraju/regionu */
.foreign-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-8);
    align-items: start;
}
.foreign-main { min-width: 0; }
.foreign-content { margin-bottom: var(--space-10); }
.foreign-children { margin-bottom: var(--space-10); }
.foreign-widget { margin-top: var(--space-10); }
.foreign-widget__box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}
.foreign-widget__box iframe { border-radius: var(--radius); display: block; }

/* Sidebar */
.foreign-sidebar__card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}
.foreign-sidebar__title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}
.foreign-sidebar__list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}
.foreign-sidebar__list li:last-child { border-bottom: none; }
.foreign-sidebar__list a { color: var(--text-muted); }
.foreign-sidebar__list a:hover { color: var(--primary); }
.foreign-sidebar__card p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); }

@media (max-width: 991px) {
    .foreign-layout { grid-template-columns: 1fr; }
    .foreign-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .foreign-layout { grid-template-columns: 1fr; }
    .foreign-sidebar { order: -1; }
}
@media (max-width: 768px) {
    .foreign-grid { gap: 1.25rem; }
    .foreign-card { padding: 1.25rem; }
}

21. UTILITY
═══════════════════════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════
   22. WHATSAPP FLOAT
═══════════════════════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	overflow: hidden;  
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    z-index: 1200;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.22); color: #fff; }
.whatsapp-float:focus-visible { outline: 3px solid rgba(37,211,102,.28); outline-offset: 3px; }
.whatsapp-float svg { width: 28px; height: 28px; }

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

/* ═══════════════════════════════════════════════════════════
   23. MEDIA QUERIES (Globalne)
═══════════════════════════════════════════════════════════ */

/* --- Duży Tablet (992px) --- */
@media (max-width: 992px) {
    .property-card--slide { flex: 0 0 calc(50% - (var(--space-6) / 2)); }
    .hero-container { flex-direction: column; gap: 24px; }
    .hero-content, .hero-image-wrapper { max-width: 100%; width: 100%; }
    .hero-image-wrapper { justify-content: center; }
}

/* --- Średni Tablet (900px) --- */
@media (max-width: 900px) {
    .property-detail-layout { grid-template-columns: 1fr; }
    .property-detail__sidebar { position: static; }
    .contact-layout { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* --- Smartfon (768px) --- */
.nav-mobile-only { display: none; }
@media (max-width: 768px) {
    /* Navbar */
    .nav-mobile-only { display: list-item; }
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: var(--space-4); gap: var(--space-1);
        box-shadow: var(--shadow-md);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu a { padding: .7rem 1rem; font-size: var(--text-base); }
    .nav-cta .btn-primary { display: none; }

    /* Wyszukiwarka */
    .list-controls { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .list-controls__count { padding-bottom: 0.5rem; }
    .search-primary-row { width: 100%; gap: 8px; }
    .search-field { width: calc(50% - 4px); }
    .search-select { width: 100%; }
    .search-btn { flex-grow: 1; gap: 8px; }
    .filters-toggle-btn { flex-shrink: 0; }
    .mobile-only { display: inline-block; font-weight: 600; }
    .search-advanced-panel { flex-direction: column; align-items: stretch; }
    .search-field--range { flex-direction: row; }
    .search-field--range .search-input { width: 100%; }
    .search-field--reset { margin-top: 0.5rem; }

    /* Hero & Gridy */
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .property-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .features-list { gap: var(--space-4); }
    .feature { flex-direction: column; }

    /* Blog Lista */
    .post-item__inner { grid-template-columns: 1fr; }
    .post-item__img-wrap { aspect-ratio: 16/9; }
    .static-page__img { height: 220px; }

    /* Footer */
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }

    /* Galeria i Slider */
    .gallery__thumbs { gap: var(--space-2); }
    .gallery__thumb img { width: 64px; height: 42px; }
    .property-card--slide { flex: 0 0 85%; }
    .slider-hint { display: block; }

    /* CTA */
    .cta-actions { flex-direction: column; align-items: center; }

    /* Sidebar na dół */
    .property-detail-layout { display: flex; flex-direction: column; }
    .property-detail__sidebar { order: -1; }

    /* WhatsApp float */
    .whatsapp-float { left: 16px; bottom: 16px; width: 54px; height: 54px; }

    /* Formularz kontaktowy */
    .contact-form__grid { grid-template-columns: 1fr; gap: var(--space-4); }
    .form-group--spacer { display: none; }
    .contact-form__actions { align-items: stretch; flex-direction: column; }
    .contact-form__actions .btn { width: 100%; justify-content: center; }
}

/* --- Mały Smartfon (400px) --- */
@media (max-width: 400px) {
    .container { padding-inline: var(--space-4); }
    .sidebar-price { font-size: var(--text-xl); }
    .footer-columns { grid-template-columns: 1fr; }
}

.static-page__img {
    width: 100%;
    max-width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    display: block;
}

@media (max-width: 768px) {
    .static-page__img {
        height: 260px;
    }
}

/* Ribbon na kartach ofert, także w sekcji „Podobne oferty” */
.property-cardimg-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.property-card__ribbon {
    position: absolute;
    z-index: 5;
    display: inline-block;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.property-card__ribbon--top-left {
    top: 12px;
    left: 12px;
}

.property-card__ribbon--top-right {
    top: 12px;
    right: 12px;
}

.property-card__ribbon--bottom-left {
    bottom: 12px;
    left: 12px;
}

.property-card__ribbon--bottom-right {
    right: 12px;
    bottom: 12px;
}

.section--alt .property-card--sm .property-cardbody {
    padding: var(--space-4);
}

.section--alt .property-card--sm .property-cardtitle {
    font-size: var(--text-sm);
    line-height: 1.35;
}

.section--alt .property-card--sm .property-cardprice {
    font-size: var(--text-base);
}

.section--alt .property-card--sm .property-cardfooter {
    margin-top: auto;
    padding-top: var(--space-3);
}

.section--alt .property-card--sm .property-cardmeta {
    gap: var(--space-2);
}