/* Zmienne CSS - Jasny Motyw Premium */
:root {
    --accent-primary: #4f46e5;      /* Indigo */
    --accent-secondary: #6366f1;
    --accent-glow: rgba(79, 70, 229, 0.12);
    --bg-color: #f8fafc;            /* Jasnoszary */
    
    --text-primary: #0f172a;        /* Ciemnogranatowy */
    --text-secondary: #475569;      /* Szary */
    
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.06);
    --input-bg: #ffffff;
    --input-border: #cbd5e1;

    --color-wolne: #059669;
    --color-zarezerwowane: #d97706;
    --color-sprzedane: #dc2626;
    --color-przeniesienie: #7c3aed;
    --color-wycofane: #6b7280;
    --color-wolne-bg: rgba(5, 150, 105, 0.08);
    --color-zarezerwowane-bg: rgba(217, 119, 6, 0.08);
    --color-sprzedane-bg: rgba(220, 38, 38, 0.08);
    --color-przeniesienie-bg: rgba(124, 58, 237, 0.08);
    --color-wycofane-bg: rgba(107, 114, 128, 0.08);
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
}

/* Predefiniowane motywy kolorystyczne (jasne) */
body.theme-indigo {
    --accent-primary: #4f46e5;
    --accent-secondary: #6366f1;
    --accent-glow: rgba(79, 70, 229, 0.12);
}
body.theme-emerald {
    --accent-primary: #059669;
    --accent-secondary: #10b981;
    --accent-glow: rgba(5, 150, 105, 0.12);
}
body.theme-amber {
    --accent-primary: #d97706;
    --accent-secondary: #f59e0b;
    --accent-glow: rgba(217, 119, 6, 0.12);
}
body.theme-rose {
    --accent-primary: #e11d48;
    --accent-secondary: #f43f5e;
    --accent-glow: rgba(225, 29, 72, 0.12);
}

/* =====================================================
   PRELOADER
   ===================================================== */

#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color, #f8fafc);
    transition: opacity 0.55s ease, visibility 0.55s ease;
    gap: 1.25rem;
}

#page-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Typ: spinner */
.preloader-type-spinner .preloader-visual {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(79, 70, 229, 0.15);
    border-top-color: var(--accent-primary, #4f46e5);
    animation: plSpin 0.85s linear infinite;
}

/* Typ: dots */
.preloader-type-dots .preloader-visual {
    display: flex;
    gap: 8px;
    align-items: center;
}

.preloader-type-dots .preloader-visual span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary, #4f46e5);
    animation: plDotPulse 1.3s ease-in-out infinite;
}

.preloader-type-dots .preloader-visual span:nth-child(2) { animation-delay: 0.2s; }
.preloader-type-dots .preloader-visual span:nth-child(3) { animation-delay: 0.4s; }

/* Typ: bar */
.preloader-type-bar {
    justify-content: flex-start;
    padding-top: 0;
    background: transparent;
    background: var(--bg-color, #f8fafc);
}

.preloader-type-bar .preloader-bar-track {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(79, 70, 229, 0.12);
    z-index: 10000;
}

.preloader-type-bar .preloader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-primary, #4f46e5), var(--accent-secondary, #6366f1));
    box-shadow: 0 0 12px var(--accent-glow, rgba(79,70,229,0.4));
    animation: plBarGrow 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-radius: 0 2px 2px 0;
}

.preloader-type-bar .preloader-visual {
    margin-top: 40vh;
}

/* Typ: pulse-logo */
.preloader-type-pulse-logo .preloader-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preloader-type-pulse-logo .preloader-logo-icon {
    font-size: 3rem;
    color: var(--accent-primary, #4f46e5);
    animation: plLogoPulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 16px var(--accent-glow, rgba(79,70,229,0.4)));
}

.preloader-type-pulse-logo .preloader-logo-text {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary, #4f46e5);
    letter-spacing: -0.02em;
    animation: plLogoPulse 1.6s ease-in-out infinite;
    animation-delay: 0.1s;
}

/* Typ: building */
.preloader-type-building .preloader-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.preloader-type-building .preloader-building-svg {
    animation: plBuildingRise 1.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px var(--accent-glow, rgba(79,70,229,0.35)));
}

/* Etykieta pod każdym preloaderem */
.preloader-label {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.85rem;
    color: var(--text-secondary, #475569);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Keyframes */
@keyframes plSpin {
    to { transform: rotate(360deg); }
}

@keyframes preloader-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes plDotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40%           { transform: scale(1);   opacity: 1; }
}

@keyframes plBarGrow {
    0%   { width: 0%; }
    30%  { width: 45%; }
    70%  { width: 75%; }
    95%  { width: 92%; }
    100% { width: 98%; }
}

@keyframes plLogoPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.15); opacity: 0.75; }
}

@keyframes plBuildingRise {
    0%, 100% { transform: translateY(0)    scale(1); }
    50%       { transform: translateY(-8px) scale(1.04); }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.4s ease;
}

/* Subtelne rozbłyski tła w jasnym motywie */
.glow-bg {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.06; /* Bardzo delikatny blask w jasnym motywie */
    z-index: 0;
    pointer-events: none;
    transition: var(--transition-smooth);

    &.glow-1 {
        top: -15%;
        left: -10%;
        background: var(--accent-primary);
    }

    &.glow-2 {
        bottom: 15%;
        right: -10%;
        background: var(--accent-secondary);
    }
}

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

button, .btn {
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

/* =====================================================
   GLOBALNE STYLE PRZYCISKÓW
   ===================================================== */
.btn {
    padding: 0.78rem 1.7rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

.btn-secondary-outline {
    background: transparent;
    border: 1.5px solid var(--input-border);
    color: var(--text-primary);
}

.btn-secondary-outline:hover {
    background: rgba(0,0,0,0.03);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* =========================================
   KOMPONENTY / UTILITIES (Portowane wzorce)
========================================= */

/* Adaptacja wzorca "Navbar" z daisyUI */
.navbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1; /* Wypełnia 50% dostępnej przestrzeni do środka */
}

.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Nigdy się nie kurczy, trzyma swój wymiar na środku */
}

.navbar-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1; /* Wypełnia drugie 50% dostępnej przestrzeni */
}

/* Opcjonalne dodatki do navbarów */
.navbar-end .btn, .navbar-start .btn {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* 1. NAGŁÓWEK (HEADER) */
.app-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.02);

    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 1.1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: var(--transition-smooth);
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: inherit;
        text-decoration: none;

        .brand-logo-img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
            display: block;
        }

        .logo-icon {
            font-size: 1.8rem;
            color: var(--accent-primary);
            text-shadow: 0 0 10px var(--accent-glow);
        }

        .brand-text {
            h1 {
                font-family: var(--font-heading);
                font-size: 1.35rem;
                font-weight: 700;
                letter-spacing: -0.02em;
            }
            p {
                font-size: 0.75rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.05em;
                margin-top: -2px;
            }
        }
    }

    .main-nav ul {
        display: flex;
        list-style: none;
        gap: 1.5rem;
        align-items: center;

        a {
            font-size: var(--nav-link-font-size, 0.9rem);
            font-weight: 500;
            color: var(--nav-link-color, var(--text-secondary));
            padding: 0.4rem 0.8rem;
            border-radius: 8px;

            &:hover, &.active {
                color: var(--nav-link-color-hover, var(--text-primary));
                background: rgba(0, 0, 0, 0.03);
            }
            &.active {
                box-shadow: inset 0 -2px 0 var(--accent-primary);
                border-radius: 8px 8px 0 0;
            }
        }
    }

    /* Wyśrodkowany układ nagłówka */
    &.layout-header-centered {
        .header-container {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }

        .main-nav ul {
            justify-content: center;
        }
    }

    @media (min-width: 901px) {
        &.header-menu-uppercase-pc .main-nav a { text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.05em; }
        &.header-menu-style-pc-bold .main-nav a { font-weight: 700; }
        &.header-menu-style-pc-underline .main-nav a { position: relative; }
        &.header-menu-style-pc-underline .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-primary); transition: width 0.3s ease; }
        &.header-menu-style-pc-underline .main-nav a:hover::after, &.header-menu-style-pc-underline .main-nav a.active::after { width: 100%; }
        &.header-menu-style-pc-pills .main-nav a { padding: 0.5rem 1.25rem; border-radius: 999px; transition: all 0.3s ease; }
        &.header-menu-style-pc-pills .main-nav a:hover, &.header-menu-style-pc-pills .main-nav a.active { background-color: color-mix(in srgb, var(--accent-primary) 10%, transparent); color: var(--accent-primary); }
    }

    @media (max-width: 900px) {
        &.header-menu-uppercase-mobile .main-nav a { text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.05em; }
        &.header-menu-style-mobile-bold .main-nav a { font-weight: 700; }
        &.header-menu-style-mobile-underline .main-nav a { position: relative; }
        &.header-menu-style-mobile-underline .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-primary); transition: width 0.3s ease; }
        &.header-menu-style-mobile-underline .main-nav a:hover::after, &.header-menu-style-mobile-underline .main-nav a.active::after { width: 100%; }
        &.header-menu-style-mobile-pills .main-nav a { padding: 0.5rem 1.25rem; border-radius: 999px; transition: all 0.3s ease; }
        &.header-menu-style-mobile-pills .main-nav a:hover, &.header-menu-style-mobile-pills .main-nav a.active { background-color: color-mix(in srgb, var(--accent-primary) 10%, transparent); color: var(--accent-primary); }
    }
}

.mobile-menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);

    span {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
}

@media (min-width: 769px) {
    .hide-desktop-menu-item {
        display: none !important;
    }
}

body.mobile-menu-open {
    overflow: hidden;

    .mobile-menu-toggle {
        background: transparent !important;
        border-color: transparent !important;
    }

    .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* MENU ROZWIJANE (DROPDOWN) */
.main-nav ul li {
    position: relative;
    
    &.dropdown {
        .arrow {
            font-size: 0.65rem;
            margin-left: 0.15rem;
            vertical-align: middle;
            display: inline-block;
            transition: transform 0.25s;
        }
        
        &:hover {
            .arrow {
                transform: rotate(180deg);
            }
            .dropdown-menu {
                opacity: 1;
                visibility: visible;
                transform: translateX(-50%) translateY(0);
            }
        }
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Nadpisanie odziedziczonego gap: 1.5rem z menu głównego */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    
    li {
        width: 100%;
    }

    a {
        display: block;
        text-align: left;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transition: all 0.2s ease;
    }
}

/* 1a. Desktop Dropdown: Wygodny (comfortable) */
body.dropdown-comfortable .dropdown-menu {
    min-width: 220px;
    padding: 0.3rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    gap: 0.25rem;

    a {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        padding: 0.38rem 0.9rem !important;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-primary) !important;
        border-radius: 10px !important;
        margin: 0 !important;

        &:hover {
            background: var(--accent-glow) !important;
            color: var(--accent-primary) !important;
        }
    }
}

/* 1b. Desktop Dropdown: Kompaktowy (compact) */
body.dropdown-compact .dropdown-menu {
    min-width: 180px;
    padding: 0.2rem 0;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    gap: 2px;

    a {
        padding: 0.28rem 0.75rem;
        font-size: 0.82rem;
        line-height: 1.35;
        color: var(--text-secondary) !important;
        border-radius: 6px !important;
        margin: 0 4px;

        &:hover {
            background: #f1f5f9 !important;
            color: var(--accent-primary) !important;
        }
    }
}

/* 1c. Desktop Dropdown: Minimalny (minimal) */
body.dropdown-minimal .dropdown-menu {
    min-width: 160px;
    padding: 0.15rem;
    border-radius: 8px;
    border: 1px solid var(--soft-border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    gap: 0;

    a {
        padding: 0.22rem 0.6rem;
        font-size: 0.78rem;
        font-weight: 400;
        color: var(--text-secondary) !important;
        border-radius: 4px !important;

        &:hover {
            background: transparent !important;
            color: var(--accent-primary) !important;
            padding-left: 0.8rem;
            font-weight: 500;
        }
    }
}

/* 2. HERO SECTION */
.hero-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 5;

    .hero-container {
        display: grid;
        align-items: center;
        gap: 3rem;
        transition: var(--transition-smooth);
    }

    .hero-content {
        h2 {
            font-family: var(--font-heading);
            font-size: 2.8rem;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.03em;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
        }
        
        .hero-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
    }

    .hero-image-wrapper {
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        border: 1px solid var(--card-border);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        
        img {
            width: 100%;
            height: auto;
            max-height: 480px;
            display: block;
            object-fit: cover;
        }
    }

    &.layout-hero-split {
        .hero-container {
            grid-template-columns: 1.2fr 1fr;
            text-align: left;
        }
    }

    &.layout-hero-centered {
        .hero-container {
            grid-template-columns: 1fr;
            text-align: center;
        }
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            
            .hero-actions {
                justify-content: center;
            }
        }
        .hero-image-wrapper {
            max-width: 900px;
            margin: 0 auto;
        }
    }
}

.hero-section.layout-hero-fullscreen-overlay {
    max-width: none;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    overflow: hidden;

    .hero-container {
        min-height: 100svh;
        max-width: none;
        grid-template-columns: 1fr;
        padding: clamp(6rem, 14vw, 11rem) clamp(1.5rem, 6vw, 6rem);
        position: relative;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        width: min(780px, 100%);
        margin: 0 auto;
        text-align: center;
        color: #ffffff;
        position: relative;
        z-index: 2;
    }

    .hero-content h2 {
        color: #ffffff;
        font-size: clamp(2.2rem, 5vw, 3.6rem);
        text-shadow: 0 4px 24px rgba(0,0,0,0.45);
        margin-bottom: 1.25rem;
    }

    .hero-content p {
        color: rgba(255,255,255,0.88);
        font-size: clamp(1rem, 2vw, 1.2rem);
        text-shadow: 0 2px 12px rgba(0,0,0,0.35);
        margin-bottom: 2.5rem;
    }

    /* Przyciski na ciemnym tle fullscreen */
    .hero-actions {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .btn-primary {
        background: var(--accent-primary);
        color: #fff;
        border: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        padding: 0.9rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
        backdrop-filter: blur(4px);

        &:hover {
            background: var(--accent-secondary);
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.4);
        }
    }

    .btn-secondary-outline {
        background: rgba(255,255,255,0.12);
        border: 1.5px solid rgba(255,255,255,0.65);
        color: #ffffff;
        padding: 0.9rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);

        &:hover {
            background: rgba(255,255,255,0.22);
            border-color: #ffffff;
            color: #ffffff;
            transform: translateY(-2px);
        }
    }

    .hero-image-wrapper {
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .hero-image-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            160deg,
            rgba(10, 15, 35, 0.62) 0%,
            rgba(10, 15, 35, 0.38) 50%,
            rgba(10, 15, 35, 0.52) 100%
        );
        opacity: 1;
        pointer-events: none;
        z-index: 1;
    }

    .hero-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        max-height: none;
    }
}

/* 3. O NAS / DEWELOPERZE (ABOUT) */
.about-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;

    .about-container {
        display: grid;
        align-items: center;
        gap: 4rem;
        transition: var(--transition-smooth);
    }

    .about-image-wrapper {
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        border: 1px solid var(--card-border);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);

        img {
            width: 100%;
            height: auto;
            max-height: 420px;
            display: block;
            object-fit: cover;
        }
    }

    .about-content {
        h2 {
            font-family: var(--font-heading);
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 0.5rem;
        }
        
        .divider {
            margin-bottom: 1.5rem;
        }

        p {
            font-size: 1.05rem;
            color: var(--text-secondary);
            white-space: pre-line;
        }
    }

    &.layout-about-image-left {
        .about-container {
            grid-template-columns: 1fr 1.2fr;
        }
    }

    &.layout-about-image-right {
        .about-container {
            grid-template-columns: 1.2fr 1fr;
        }
        .about-image-wrapper {
            grid-column: 2;
        }
        .about-content {
            grid-column: 1;
            grid-row: 1;
        }
    }

    &.layout-about-text-only {
        .about-container {
            grid-template-columns: 1fr;
            text-align: center;
        }
        .about-content {
            max-width: 800px;
            margin: 0 auto;
            
            .divider {
                margin: 0.5rem auto 1.5rem;
            }
        }
        .about-image-wrapper {
            display: none;
        }
    }
}

.hero-image-wrapper,
.about-image-wrapper,
.section-image-wrapper {
    position: relative;
}

.hero-image-wrapper::after,
.about-image-wrapper::after,
.section-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.image-shadow-none {
    box-shadow: none !important;
}

.image-shadow-soft {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.image-shadow-strong {
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18) !important;
}

.image-overlay-soft::after {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.22));
}

.image-overlay-strong::after {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.42));
}

/* 4. LISTA INWESTYCJI & MIESZKAŃ */
.main-content {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}

.section-title-wrapper {
    margin-bottom: 2.5rem;

    h2 {
        font-family: var(--font-heading);
        font-size: 2.2rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 0.25rem;
    }

    .section-subtitle {
        color: var(--text-secondary);
        font-size: 1.05rem;
    }

    .divider {
        margin-top: 1rem;
    }
}

/* Grid inwestycji */
.investments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Karta inwestycji */
.investment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);

    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08), 0 0 15px var(--accent-glow);
        border-color: rgba(79, 70, 229, 0.12);
        
        .btn-card-explore {
            background: var(--accent-primary);
            color: white;
            border-color: transparent;
        }
    }

    .card-img-wrapper {
        height: 200px;
        overflow: hidden;
        border-bottom: 1px solid var(--card-border);
        background: #f1f5f9;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    .card-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .card-main-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            margin-bottom: 0.75rem;

            h3 {
                font-family: var(--font-heading);
                font-size: 1.35rem;
                font-weight: 600;
                margin: 0;
            }

            .location {
                font-size: 0.85rem;
                color: var(--text-secondary);
                margin: 0;
            }
        }

        .card-dates {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            margin-bottom: 1rem;

            .date-start {
                font-size: 0.85rem; 
                color: var(--text-secondary); 
                font-weight: 500; 
                margin: 0;
            }

            .date-completion {
                font-size: 0.85rem; 
                color: var(--primary); 
                font-weight: 500; 
                margin: 0;
            }
        }

        p.desc {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.5;
        }

        .card-footer {
            margin-top: auto;
            display: flex;
            flex-wrap: wrap;
            gap: 1.25rem;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--card-border);
            padding-top: 1.2rem;
            
            .card-footer-stats {
                display: flex;
                gap: 1.5rem;
                flex-wrap: wrap;
                flex: 1;
            }

            .stats-box {
                display: flex;
                flex-direction: column;
                
                .label {
                    font-size: 0.75rem;
                    color: var(--text-secondary);
                    text-transform: uppercase;
                    letter-spacing: 0.05em;
                }
                .val {
                    font-weight: 600;
                    font-size: 0.95rem;
                    white-space: nowrap;
                }
            }
        }
    }
}

/* WIDOK SZCZEGÓŁÓW INWESTYCJI (Showcase) */
.back-btn {
    margin-bottom: 2rem;
}

.investment-showcase-wrapper {
    background: var(--card-bg);
    width: 100%;
    border-bottom: 1px solid var(--card-border);
    
    &:has(.hero-fullscreen-overlay) {
        background: transparent;
        border-bottom: none;
    }
}

.investment-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;

    &.hero-split {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
    }

    &.hero-centered {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
        
        .showcase-content {
            max-width: 800px;
            margin: 0 auto;
        }
        .showcase-image {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
        }
    }

    &.hero-fullscreen-overlay {
        max-width: 100%;
        padding: 0;
        min-height: 60vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        
        .showcase-image {
            position: absolute;
            inset: 0;
            z-index: 1;
            border-radius: 0;
            border: none;
            box-shadow: none;
            width: 100%;
            max-width: none;
            
            img {
                width: 100%;
                height: 100%;
                max-height: none;
                object-fit: cover;
            }

            &::after {
                content: '';
                position: absolute;
                inset: 0;
                background: rgba(15, 23, 42, 0.6);
            }
        }
        
        .showcase-content {
            position: relative;
            z-index: 2;
            color: #fff;
            text-align: center;
            padding: 4rem 1.5rem;
            max-width: 900px;
            margin: 0 auto;

            h2 {
                color: #ffffff;
                font-size: clamp(2.2rem, 5vw, 3.6rem);
                text-shadow: 0 4px 24px rgba(0,0,0,0.45);
                margin-bottom: 1.25rem;
            }

            .location, p {
                color: rgba(255,255,255,0.88);
                font-size: clamp(1rem, 2vw, 1.2rem);
                text-shadow: 0 2px 12px rgba(0,0,0,0.35);
                margin-bottom: 1rem;
            }
            
            .badge {
                font-size: 0.95rem;
                padding: 0.4rem 0.8rem;
                margin-bottom: 1rem;
            }
        }
    }

    .showcase-content {
        h2 {
            font-family: var(--font-heading);
            font-size: clamp(1.5rem, 3.5vw, 2.8rem);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.03em;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .location {
            font-size: clamp(0.9rem, 1.5vw, 1.1rem);
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
        }

        p {
            font-size: clamp(0.9rem, 1.5vw, 1.1rem);
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 2.5rem;
        }
        
        .badge {
            font-size: 0.95rem;
            padding: 0.4rem 0.8rem;
            margin-bottom: 1.5rem;
        }
    }


    .showcase-image {
        border-radius: var(--border-radius-md);
        overflow: hidden;
        border: 1px solid var(--card-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        background: #f1f5f9;
        
        img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            max-height: 350px;
        }
    }
}

.apartments-header-bar {
    margin-bottom: 2rem;
    
    h3 {
        font-family: var(--font-heading);
        font-size: 1.6rem;
        font-weight: 600;
    }
    p {
        font-size: 0.95rem;
        color: var(--text-secondary);
    }
    .divider {
        margin-top: 0.75rem;
    }
}

/* Panel wyszukiwania mieszkań */
.search-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);

    .filter-group-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-bottom: 1.5rem;

        &.ranges {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            border-top: 1px solid var(--card-border);
            padding-top: 1.5rem;
            margin-bottom: 0;
        }
    }

    .filter-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }


        input[type="text"],
        input[type="number"],
        select {
            background: var(--bg-color);
            border: 1px solid var(--input-border);
            border-radius: 8px;
            color: var(--text-primary);
            padding: 0.75rem 1rem;
            font-size: 0.95rem;
            font-family: var(--font-body);
            outline: none;
            transition: var(--transition-smooth);
            width: 100%;

            &:focus {
                border-color: var(--accent-primary);
                box-shadow: 0 0 0 3px var(--accent-glow);
            }
        }

        .range-inputs-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;

            .range-divider {
                color: var(--text-secondary);
                font-weight: 500;
            }
        }
    }

    .filter-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 1.5rem;
    }
}

/* Wskaźniki */
.loading-container,
.error-container,
.no-results-container {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    color: var(--text-secondary);
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

    .spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(0, 0, 0, 0.05);
        border-top-color: var(--accent-primary);
        border-radius: 50%;
        animation: spin 1s infinite linear;
    }
}

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

.results-meta {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Grid mieszkań */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

/* Karta mieszkania */
.property-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);

    &:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08), 0 0 15px var(--accent-glow);
        
        .btn-card-details {
            background: var(--accent-primary);
            color: white;
            border-color: var(--accent-primary);
        }
    }

    .card-image {
        margin: -2rem -2rem 1.5rem -2rem;
        height: 220px;
        background: #f1f5f9;
        border-bottom: 1px solid var(--card-border);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        &.placeholder-image {
            background: #f8fafc;
        }
    }

    &:hover .card-image img {
        transform: scale(1.05);
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1.5rem;

        h3 {
            font-family: var(--font-heading);
            font-size: 1.4rem;
            font-weight: 600;
            letter-spacing: -0.01em;
        }
    }

    .specs-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem 1.8rem;
        margin-bottom: 2rem;

        .spec-icon-item {
            display: flex;
            flex-direction: column;
            
            .spec-label {
                font-size: 0.75rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }

            .spec-value {
                font-size: 0.95rem;
                font-weight: 600;
                margin-top: 0.15rem;
            }
        }
    }

    .card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid var(--card-border);

        .price-box {
            display: flex;
            flex-direction: column;

            .price-label {
                font-size: 0.75rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }

            .price-val {
                font-family: var(--font-heading);
                font-size: 1.3rem;
                font-weight: 700;
                color: var(--text-primary);
            }
        }
    }
}

/* Etykiety statusów */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;

    &.status-wolne, &.status-zrealizowane {
        background: var(--color-wolne-bg);
        color: var(--color-wolne);
    }
    
    &.status-zarezerwowane, &.status-w_budowie, &.status-planowane {
        background: var(--color-zarezerwowane-bg);
        color: var(--color-zarezerwowane);
    }
    
    &.status-sprzedane {
        background: var(--color-sprzedane-bg);
        color: var(--color-sprzedane);
    }

    &.status-przeniesienie {
        background: var(--color-przeniesienie-bg);
        color: var(--color-przeniesienie);
    }

    &.status-wycofane {
        background: var(--color-wycofane-bg);
        color: var(--color-wycofane);
    }
}

/* Przyciski */
.btn {
    padding: 0.75rem 1.6rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;

    &-primary {
        background: var(--accent-primary);
        color: white;
        
        &:hover {
            background: var(--accent-secondary);
            transform: translateY(-1px);
            box-shadow: 0 5px 15px var(--accent-glow);
        }
    }

    &-secondary-outline {
        background: transparent;
        border: 1px solid var(--input-border);
        color: var(--text-secondary);

        &:hover {
            color: var(--text-primary);
            border-color: var(--text-secondary);
            background: rgba(0, 0, 0, 0.02);
        }
    }

    &-card-details, &-card-explore {
        background: #f1f5f9;
        border: 1px solid var(--card-border);
        color: var(--text-primary);
    }

    &-block {
        width: 100%;
    }
}

/* 5. BIURO SPRZEDAŻY */
.office-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;

    .office-container {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
        align-items: stretch;
    }

    /* Wariant: Split Right */
    .office-container.layout-split-right {
        @media (min-width: 901px) {
            .office-info-card {
                order: 2;
            }
            .office-contact-form {
                order: 1;
            }
        }
    }

    /* Wariant: Stacked Compact */
    .office-container.layout-stacked {
        display: flex;
        flex-direction: column;
        max-width: 800px;
        margin: 0 auto;
        gap: 2.5rem;
    }
    
    .office-container.layout-stacked .office-info-card {
        padding: 2.5rem;
    }
    
    .office-container.layout-stacked .office-info-card > div:not(.contact-details) {
        justify-content: center !important;
        text-align: center;
    }
    
    .office-container.layout-stacked .contact-details {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem 3rem;
    }
    
    .office-container.layout-stacked .contact-detail-item {
        align-items: center;
        text-align: center;
        min-width: 160px;
    }


    .office-info-card {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius-lg);
        padding: 2.2rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);

        h2 {
            font-family: var(--font-heading);
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 0.5rem;
        }

        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 1.4rem;
            margin-top: 1.5rem;
        }

        .contact-detail-item {
            display: flex;
            flex-direction: column;

            .detail-label {
                font-size: 0.7rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }

            strong {
                font-size: 1.05rem;
                margin-top: 0.15rem;
                font-weight: 600;
                
                a {
                    color: var(--accent-primary);
                    &:hover {
                        color: var(--accent-secondary);
                        text-decoration: underline;
                    }
                }
            }
        }
    }

    .office-contact-form {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius-lg);
        padding: 2.2rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);

        h3 {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            margin-bottom: 1.25rem;
            font-weight: 600;
        }

        .form-group {
            margin-bottom: 1.2rem;
            
            label {
                display: block;
                font-size: 0.8rem;
                font-weight: 500;
                color: var(--text-secondary);
                margin-bottom: 0.4rem;
                text-transform: uppercase;
                letter-spacing: 0.03em;
            }

            input, textarea {
                width: 100%;
                background: var(--bg-color);
                border: 1px solid var(--input-border);
                border-radius: 8px;
                color: var(--text-primary);
                padding: 0.8rem 1rem;
                font-family: var(--font-body);
                font-size: 0.95rem;
                outline: none;
                transition: var(--transition-smooth);

                &:focus {
                    border-color: var(--accent-primary);
                    box-shadow: 0 0 0 2px var(--accent-glow);
                }
            }
            
            textarea {
                resize: vertical;
                transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
            }
        }

        .contact-success-label {
            color: var(--color-wolne);
            font-size: 0.9rem;
            margin-top: 0.8rem;
            text-align: center;
        }
    }
}

/* 6. STOPKA (FOOTER) */
.app-footer {
    background: color-mix(in srgb, var(--accent-primary) 7%, #ffffff);
    color: var(--text-primary);
    border-top: 1px solid color-mix(in srgb, var(--accent-primary) 18%, var(--card-border));
    padding: 4rem 1.5rem 2rem;
    position: relative;
    z-index: 5;

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: block;
        margin-bottom: 3rem;
    }

    .footer-info {
        h3 {
            font-family: var(--font-heading);
            font-size: 1.45rem;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }
        p {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
    }

    .footer-links {
        h4 {
            font-family: var(--font-heading);
            font-size: 1.1rem;
            margin-bottom: 1.2rem;
            color: var(--text-primary);
        }

        ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;

            a {
                color: var(--text-secondary);
                font-size: 0.95rem;

                &:hover {
                    color: var(--accent-primary);
                    padding-left: 4px;
                }
            }
        }
    }

    .footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 2rem;
        border-top: 1px solid color-mix(in srgb, var(--accent-primary) 15%, var(--card-border));
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.85rem;
    }
}

/* Native Dialog (Modal) */
.modal-dialog {
    margin: auto;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    width: 90%;
    color: var(--text-primary);
    outline: none;
    overflow: hidden;
    animation: dialogFadeIn 0.35s ease;

    &::backdrop {
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .modal-content {
        padding: 2.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-bottom: 1rem;

        h3 {
            font-family: var(--font-heading);
            font-size: 1.6rem;
            font-weight: 700;
        }

        .btn-close-modal {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 2rem;
            cursor: pointer;
            line-height: 1;

            &:hover {
                color: var(--text-primary);
            }
        }
    }

    .hero-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.4);
        color: white;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
        z-index: 10;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .hero-arrow:hover {
        background: rgba(0, 0, 0, 0.7);
        transform: translateY(-50%) scale(1.1);
    }

    .hero-arrow-left {
        left: 1rem;
    }

    .hero-arrow-right {
        right: 1rem;
    }

    .details-specs.single-column {
        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1.5rem;
        }

        .spec-item {
            display: flex;
            flex-direction: column;
            
            &.full-width {
                grid-column: 1 / -1;
            }

            .spec-label {
                font-size: 0.8rem;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }

            .spec-val {
                font-size: 1.1rem;
                font-weight: 600;
                margin-top: 0.25rem;
            }

            .badge {
                align-self: flex-start;
                margin-top: 0.35rem;
                margin-bottom: 0;
            }
        }
    }

}

@keyframes dialogFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ------------------------------------------------------------- */
/* UKŁADY INWESTYCJI NA STRONIE GŁÓWNEJ (LISTA I MINIMALISTYCZNY) */
/* ------------------------------------------------------------- */

/* UKŁAD: LIST (Poziome pasy) */
.investments-grid.layout-investments-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.investments-grid.layout-investments-list .investment-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
}

.investments-grid.layout-investments-list .investment-card .card-img-wrapper {
    width: 380px;
    height: auto;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--card-border);
}

.investments-grid.layout-investments-list .investment-card .card-content {
    flex-grow: 1;
    padding: 2rem;
}

/* UKŁAD: MINIMAL (Kompaktowa tabela/lista) */
.investments-grid.layout-investments-minimal {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.investments-grid.layout-investments-minimal .investment-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.investments-grid.layout-investments-minimal .investment-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.investments-grid.layout-investments-minimal .investment-card .card-img-wrapper {
    display: block;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.investments-grid.layout-investments-minimal .investment-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.investments-grid.layout-investments-minimal .investment-card .card-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1.5rem;
}

.investments-grid.layout-investments-minimal .investment-card .card-main-info {
    flex: 1.5;
    margin: 0;
    order: 1;
}

.investments-grid.layout-investments-minimal .investment-card .card-main-info h3 {
    font-size: 1.3rem;
}

.investments-grid.layout-investments-minimal .investment-card .card-dates {
    flex: 1;
    margin: 0;
    order: 2;
}

.investments-grid.layout-investments-minimal .investment-card .card-meta {
    margin: 0;
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    min-width: 120px;
}

.investments-grid.layout-investments-minimal .investment-card .badge {
    white-space: nowrap;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
}

.investments-grid.layout-investments-minimal .investment-card p.desc {
    display: none;
}

.investments-grid.layout-investments-minimal .investment-card .card-footer {
    margin: 0;
    padding: 0;
    border: none;
    order: 3;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 2;
    justify-content: flex-end;
}

.investments-grid.layout-investments-minimal .investment-card .card-footer-stats {
    display: flex;
    gap: 2rem;
}

.investments-grid.layout-investments-minimal .investment-card .card-footer .stats-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.investments-grid.layout-investments-minimal .investment-card .card-footer .stats-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.investments-grid.layout-investments-minimal .investment-card .card-footer .stats-box .val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.investments-grid.layout-investments-minimal .investment-card .btn-card-explore {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}


/* ------------------------------------------------------------- */
/* DYNAMICZNE WŁASNE SEKCJE (CUSTOM SECTIONS) */
/* ------------------------------------------------------------- */
.custom-sections-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin: 6rem auto;
}

.custom-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}

.custom-section .section-container {
    display: grid;
    align-items: center;
    gap: 4rem;
    transition: var(--transition-smooth);
}

.custom-section .section-image-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);

    img {
        width: 100%;
        height: auto;
        max-height: 420px;
        display: block;
        object-fit: cover;
    }
}

.custom-section .section-content {
    h2 {
        font-family: var(--font-heading);
        font-size: 2.2rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .divider {
        margin-bottom: 1.5rem;
    }

    p {
        font-size: 1.05rem;
        color: var(--text-secondary);
        white-space: pre-line;
    }
}

/* Wariacja: Obraz po lewej, tekst po prawej */
.custom-section.layout-section-image-left .section-container {
    grid-template-columns: 1fr 1.2fr;
}

/* Wariacja: Tekst po lewej, obraz po prawej */
.custom-section.layout-section-image-right .section-container {
    grid-template-columns: 1.2fr 1fr;
}
.custom-section.layout-section-image-right .section-image-wrapper {
    grid-column: 2;
}
.custom-section.layout-section-image-right .section-content {
    grid-column: 1;
    grid-row: 1;
}

/* Wariacja: Tylko tekst (wyśrodkowany) */
.custom-section.layout-section-text-only .section-container {
    grid-template-columns: 1fr;
    text-align: center;
}
.custom-section.layout-section-text-only .section-content {
    max-width: 800px;
    margin: 0 auto;

    .divider {
        margin: 0.5rem auto 1.5rem;
    }
}
.custom-section.layout-section-text-only .section-image-wrapper {
    display: none;
}

body.animations-enabled {
    .hero-content,
    .hero-image-wrapper,
    .about-container,
    .custom-section,
    .investment-card,
    .office-container {
        animation-duration: 0.55s;
        animation-fill-mode: both;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    }

    .investment-card:nth-child(2) { animation-delay: 0.06s; }
    .investment-card:nth-child(3) { animation-delay: 0.12s; }
}

body.animations-enabled.animation-fade-up {
    .hero-content,
    .hero-image-wrapper,
    .about-container,
    .custom-section,
    .investment-card,
    .office-container {
        animation-name: fadeUpSoft;
    }
}

body.animations-enabled.animation-soft-scale {
    .hero-content,
    .hero-image-wrapper,
    .about-container,
    .custom-section,
    .investment-card,
    .office-container {
        animation-name: softScaleIn;
    }
}

body.animations-enabled.animation-slide-soft {
    .hero-content,
    .hero-image-wrapper,
    .about-container,
    .custom-section,
    .investment-card,
    .office-container {
        animation-name: slideSoftIn;
    }
}

@keyframes fadeUpSoft {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes softScaleIn {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideSoftIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    body.animations-enabled * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Responsywność */
@media (max-width: 900px) {
    .app-header {
        &.layout-header-centered .header-container {
            flex-direction: row;
            text-align: left;
        }

        .header-container {
            flex-direction: row;
            gap: 1rem;
            text-align: left;
            padding: 0.85rem 1rem;
        }

        .brand {
            min-width: 0;
        }

        .brand-text h1 {
            font-size: 1.05rem;
        }

        .brand-text p {
            font-size: 0.65rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 190px;
        }

        .mobile-menu-toggle {
            display: inline-flex;
            flex: 0 0 auto;
        }

        .main-nav {
            position: fixed;
            top: 72px;
            left: 0;
            right: 0;
            max-height: calc(100vh - 72px);
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.98);
            border-top: 1px solid var(--card-border);
            border-bottom: 1px solid var(--card-border);
            border-radius: 0;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
            padding: 1.5rem 1rem;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
            z-index: 999;
        }

        .hide-mobile-menu-item {
            display: none !important;
        }

        .main-nav ul {
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            gap: 0.1rem;
        }

        .main-nav ul li.dropdown .arrow {
            display: none !important;
        }

        .main-nav ul a {
            display: flex;
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.96rem;
            justify-content: space-between;
            align-items: center;
        }

        .dropdown-menu {
            position: static;
            left: auto;
            top: auto;
            transform: none;
            min-width: 100%;
            opacity: 1;
            visibility: visible;
            box-shadow: none;
            border: none;
            border-radius: 0;
            background: transparent;
            margin: 0 0 0 1rem !important; /* Wcięcie */
            padding: 0;
            display: flex !important; /* Zawsze widoczne */
            flex-direction: column;
        }
    } /* ZAMKNIĘCIE .app-header */

        /* Czyste wcięcie na mobile, ignorujemy desktopowe tła/ramki */
        body[class*="dropdown-"] .dropdown-menu {
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
            margin: 0 0 0 1rem !important;
            padding: 0 !important;
            gap: 0 !important;
            transform: none !important; /* Blokada uciekania w lewo na hover */
            min-width: 100% !important;
            width: auto !important;
        }
        body[class*="dropdown-"] .dropdown-menu a {
            background: transparent !important;
            border-radius: 8px !important;
            padding: 0.6rem 0.8rem !important;
            margin: 0 !important;
            color: var(--text-secondary) !important;
            display: block !important;
            width: 100% !important;
            font-size: 0.92rem !important;
            transition: color 0.2s, background 0.2s !important;
            transform: none !important;
        }
        body[class*="dropdown-"] .dropdown-menu a:hover,
        body[class*="dropdown-"] .dropdown-menu a:active {
            color: var(--text-primary) !important;
            background: rgba(0, 0, 0, 0.03) !important;
        }

        body.mobile-menu-drawer .main-nav {
            top: 0;
            left: auto;
            right: 0;
            bottom: 0;
            width: min(330px, 86vw);
            height: 100vh;
            height: 100dvh;
            max-height: none;
            border-radius: 20px 0 0 20px;
            padding: 6.5rem 1rem 1rem;
            transform: translateX(100%);
            box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
        }

        body.mobile-menu-fullscreen .main-nav {
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            height: 100vh;
            height: 100dvh;
            max-height: none;
            border-radius: 0;
            padding: 7.5rem 1.25rem 1.25rem;
            background: rgba(255, 255, 255, 0.98);
            transform: translateY(-12px);
        }

        body.mobile-menu-fullscreen .main-nav ul a {
            justify-content: center;
            text-align: center;
            font-size: 1.05rem;
        }

        body.mobile-menu-fullscreen .dropdown-menu {
            border-left: none;
            margin-left: 0;
            padding-left: 0;
            text-align: center;
        }

    body.mobile-menu-open .app-header .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    body.mobile-menu-open.mobile-menu-drawer .app-header .main-nav {
        transform: translateX(0);
    }

    body.mobile-menu-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.22);
        z-index: 90;
    }

    .hero-section {
        margin: 1.25rem auto 3rem;
        padding: 0 1rem;
        
        .hero-container {
            grid-template-columns: 1fr !important;
            text-align: center !important;
            gap: 1.5rem;
            padding: 2rem 1.25rem;
        }

        .hero-actions {
            justify-content: center;
            flex-direction: column;
            align-items: stretch;
        }

        .hero-content h2 {
            font-size: 2rem;
            line-height: 1.12;
        }

        .hero-content p {
            font-size: 1rem;
        }
    }

    .about-section {
        margin: 4rem auto;

        .about-container {
            grid-template-columns: 1fr !important;
            text-align: center !important;
            gap: 2.5rem;
        }

        .about-image-wrapper {
            grid-column: 1 !important;
            max-width: 500px;
            margin: 0 auto;
        }

        .about-content {
            grid-column: 1 !important;
            
            .divider {
                margin: 0.5rem auto 1.5rem;
            }
        }
    }

    .investment-showcase {
        grid-template-columns: 1fr !important;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
        
        .showcase-image {
            max-width: 500px;
            margin: 0 auto;
        }
    }

    .office-section {
        margin: 4rem auto;

        .office-container {
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }
        
        .office-info-card,
        .office-contact-form {
            padding: 2rem;
        }
    }

    .app-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-dialog {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
        animation: none; /* Disable desktop animation */
        
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, display 0.4s ease allow-discrete;
        transform: translateY(0);
        opacity: 1;

        &::backdrop {
            transition: background 0.4s ease, backdrop-filter 0.4s ease, display 0.4s ease allow-discrete;
            background: rgba(15, 23, 42, 0.5);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        /* Drag handle indicator */
        &::before {
            content: '';
            display: block;
            width: 44px;
            height: 5px;
            background: #cbd5e1;
            border-radius: 999px;
            margin: 12px auto 4px auto;
        }

        .modal-content {
            padding: 1.5rem;
            padding-top: 0.5rem;
            padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0));
            overflow-y: auto;
            max-height: calc(85vh - 24px);
        }

        .modal-header {
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            
            h3 {
                font-size: 1.35rem;
            }
        }

        .property-details-layout {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        &:not([open]) {
            transform: translateY(100%);
            opacity: 0;

            &::backdrop {
                background: rgba(15, 23, 42, 0);
                backdrop-filter: blur(0px);
                -webkit-backdrop-filter: blur(0px);
            }
        }
    }

    @starting-style {
        .modal-dialog[open] {
            transform: translateY(100%);
            opacity: 0;
        }
        .modal-dialog[open]::backdrop {
            background: rgba(15, 23, 42, 0);
            backdrop-filter: blur(0px);
            -webkit-backdrop-filter: blur(0px);
        }
    }

    /* Responsywność dla nowych układów inwestycji i sekcji */
    .investments-grid.layout-investments-list .investment-card {
        flex-direction: column !important;
    }
    .investments-grid.layout-investments-list .investment-card .card-img-wrapper {
        width: 100% !important;
        height: 200px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--card-border) !important;
    }

    .investments-grid.layout-investments-minimal .investment-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.25rem !important;
        gap: 1.25rem !important;
    }

    .investments-grid.layout-investments-minimal .investment-card .card-img-wrapper {
        width: 100% !important;
        height: 180px !important;
    }

    .investments-grid.layout-investments-minimal .investment-card .card-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }
    .investments-grid.layout-investments-minimal .investment-card .card-meta {
        order: 1 !important;
        width: 100% !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    .investments-grid.layout-investments-minimal .investment-card .card-main-info {
        order: 2 !important;
        width: 100% !important;
    }
    .investments-grid.layout-investments-minimal .investment-card .card-dates {
        order: 3 !important;
        width: 100% !important;
    }
    .investments-grid.layout-investments-minimal .investment-card .card-footer {
        order: 4 !important;
        width: 100% !important;
        justify-content: space-between !important;
        border-top: 1px solid var(--card-border) !important;
        padding-top: 1rem !important;
        margin-top: 0.5rem !important;
    }
    .investments-grid.layout-investments-minimal .investment-card .card-footer .stats-box {
        display: flex !important;
    }
    .investments-grid.layout-investments-minimal .investment-card .card-footer .card-footer-stats {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .custom-section {
        margin: 4rem auto !important;

        .section-container {
            grid-template-columns: 1fr !important;
            text-align: center !important;
            gap: 2.5rem !important;
        }

        .section-image-wrapper {
            grid-column: 1 !important;
            max-width: 500px !important;
            margin: 0 auto !important;
        }

        .section-content {
            grid-column: 1 !important;
            
            .divider {
                margin: 0.5rem auto 1.5rem !important;
            }
        }
    }

    /* Mobile Bottom Nav Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--card-border);
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.05);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        font-size: 0.72rem;
        font-weight: 600;
        text-decoration: none;
        width: 25%;
        height: 100%;
        gap: 3px;
        transition: var(--transition-smooth);
        min-height: 48px;

        .nav-icon {
            width: 22px;
            height: 22px;
            stroke-width: 2;
            transition: var(--transition-smooth);
        }

        &:hover, &.active {
            color: var(--accent-primary);
            
            .nav-icon {
                transform: translateY(-2px);
                stroke: var(--accent-primary);
            }
        }
    }
    
    body {
        padding-bottom: 2px;
    }
}

.app-header.header-menu-uppercase .nav-menu a {
    /* usunięte błędne selektory */
}

@media (max-width: 560px) {
    .hero-section .hero-content h2,
    .section-title-wrapper h2,
    .about-content h2,
    .office-info-card h2 {
        font-size: 1.75rem;
    }

    .main-content,
    .about-section,
    .office-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .investments-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Usunięto nieprawidłowe pionowe układanie stopek inwestycji na małych ekranach */

    .office-info-card,
    .office-contact-form,
    .investment-showcase,
    .search-panel {
        padding: 1.25rem !important;
    }
}

/* Mobile Bottom Navigation Hidden on Desktop */
.mobile-bottom-nav {
    display: none;
}


/* --- UKŁADY LOKALI (LIST, MINIMAL) --- */

/* LIST */
.properties-grid.apt-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.properties-grid.apt-list .property-card {
    display: grid;
    grid-template-columns: 280px 1.5fr 3fr 2fr;
    gap: 2rem;
    align-items: stretch;
    padding: 0;
}

.properties-grid.apt-list .property-card .card-image {
    margin: 0;
    height: auto;
    align-self: stretch;
    align-items: stretch; /* To pozwoli dziecku <img> wypełnić całą wysokość flex-containera */
    border-bottom: none;
    border-right: 1px solid var(--card-border);
}

.properties-grid.apt-list .property-card .card-header {
    margin-bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    align-self: center;
}

.properties-grid.apt-list .property-card .specs-list {
    margin-bottom: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    align-self: center;
}

.properties-grid.apt-list .property-card .card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem 1.5rem 0;
    border-top: none;
    text-align: right;
    align-self: center;
}

/* MINIMAL */
.properties-grid.apt-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.properties-grid.apt-minimal .property-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.properties-grid.apt-minimal .property-card .card-image {
    display: none;
}

.properties-grid.apt-minimal .property-card .card-header {
    margin-bottom: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    min-width: 200px;
}

.properties-grid.apt-minimal .property-card .specs-list {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.properties-grid.apt-minimal .property-card .card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding-top: 0;
    border-top: none;
    min-width: 250px;
    justify-content: flex-end;
}

/* ─────────────────────────────────────────────────────────────────
   UKŁADY LOKALI — RESPONSYWNOŚĆ
   Desktop ≥993px : grid 280px | 1.5fr | 3fr | 2fr
   Tablet 561–992px : grid 200px | 1fr (2 kolumny)
   Mobile ≤560px   : grid 140px | 1fr (2 kolumny, mniejszy tekst)
   ───────────────────────────────────────────────────────────────── */

/* TABLET (561px – 992px) — poziomy układ, zdjęcie 200px */
@media (min-width: 561px) and (max-width: 992px) {
    .properties-grid.apt-list .property-card {
        display: grid;
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto auto auto;
        padding: 0;
        gap: 0;
        align-items: start;
    }

    .properties-grid.apt-list .property-card .card-image {
        grid-column: 1;
        grid-row: 1 / 4;
        margin: 0;
        border-right: 1px solid var(--card-border);
        border-bottom: none;
        height: 100%;
        min-height: 160px;
    }

    .properties-grid.apt-list .property-card .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .properties-grid.apt-list .property-card .card-image.placeholder-image {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
    }

    .properties-grid.apt-list .property-card .card-header {
        grid-column: 2;
        grid-row: 1;
        padding: 1.1rem 1.25rem 0.5rem;
        margin-bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .properties-grid.apt-list .property-card .specs-list {
        grid-column: 2;
        grid-row: 2;
        padding: 0.5rem 1.25rem;
        margin-bottom: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 2.2rem;
        align-items: flex-start;
    }

    .properties-grid.apt-list .property-card .card-footer {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem 1rem;
        margin-top: 0;
        border-top: 1px solid var(--card-border);
        text-align: left;
    }

    /* APT-MINIMAL na tablecie — zachowaj poziomy flex */
    .properties-grid.apt-minimal .property-card {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.85rem 1.25rem;
        gap: 0.5rem;
    }

    .properties-grid.apt-minimal .property-card .card-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        min-width: 0;
        flex: 0 0 auto;
    }

    .properties-grid.apt-minimal .property-card .specs-list {
        flex: 1;
        display: flex;
        justify-content: space-around;
        margin-bottom: 0;
    }

    .properties-grid.apt-minimal .property-card .card-footer {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        padding-top: 0;
        border-top: none;
        min-width: 200px;
        justify-content: flex-end;
    }
}

/* MOBILE (≤560px) — poziomy układ, zdjęcie 140px */
@media (max-width: 560px) {
    /* APT-LIST */
    .properties-grid.apt-list .property-card {
        display: grid;
        grid-template-columns: 140px 1fr;
        grid-template-rows: auto auto auto;
        padding: 0;
        gap: 0;
        align-items: start;
    }

    .properties-grid.apt-list .property-card .card-image {
        grid-column: 1;
        grid-row: 1 / 4;
        margin: 0;
        border-right: 1px solid var(--card-border);
        border-bottom: none;
        height: 100%;
        min-height: 140px;
    }

    .properties-grid.apt-list .property-card .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .properties-grid.apt-list .property-card .card-image.placeholder-image {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        min-height: 140px;
    }

    .properties-grid.apt-list .property-card .card-header {
        grid-column: 2;
        grid-row: 1;
        padding: 0.85rem 0.85rem 0.35rem;
        margin-bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .properties-grid.apt-list .property-card .card-header h3 {
        font-size: 1rem;
    }

    .properties-grid.apt-list .property-card .specs-list {
        grid-column: 2;
        grid-row: 2;
        padding: 0.4rem 0.85rem;
        margin-bottom: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        align-items: flex-start;
    }

    .properties-grid.apt-list .property-card .specs-list .spec-icon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .properties-grid.apt-list .property-card .specs-list .spec-label {
        font-size: 0.67rem;
    }

    .properties-grid.apt-list .property-card .specs-list .spec-value {
        font-size: 0.85rem;
    }

    .properties-grid.apt-list .property-card .card-footer {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.85rem 0.85rem;
        margin-top: 0;
        border-top: 1px solid var(--card-border);
        text-align: left;
    }

    .properties-grid.apt-list .property-card .card-footer .price-box {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .properties-grid.apt-list .property-card .card-footer .price-label {
        font-size: 0.67rem;
    }

    .properties-grid.apt-list .property-card .card-footer .price-val {
        font-size: 0.92rem;
        font-weight: 700;
    }

    .properties-grid.apt-list .property-card .card-footer .btn-card-details {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    /* APT-MINIMAL na mobile */
    .properties-grid.apt-minimal .property-card {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.85rem 1rem;
        gap: 0.5rem;
        align-items: center;
    }

    .properties-grid.apt-minimal .property-card .card-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .properties-grid.apt-minimal .property-card .specs-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem 1rem;
        width: 100%;
        margin-bottom: 0;
        padding-top: 0.5rem;
        border-top: 1px solid var(--card-border);
    }

    .properties-grid.apt-minimal .property-card .card-footer {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--card-border);
        margin-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* UKŁADY STOPKI */
.app-footer.layout-footer-centered .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-footer.layout-footer-centered .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid color-mix(in srgb, var(--text-secondary) 20%, transparent);
    padding-top: 2rem;
}

.app-footer.layout-footer-minimal .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.app-footer.layout-footer-minimal .footer-bottom {
    display: none; /* In minimal layout, maybe we move the text to the right side of footer-container */
}

@media (min-width: 993px) {
    .app-footer.layout-footer-minimal {
        padding: 2rem 1.5rem;
    }
    .app-footer.layout-footer-minimal .footer-container {
        grid-template-columns: 1fr; /* To override the 2fr 1fr grid */
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
}
@media (max-width: 992px) {
    .app-footer.layout-footer-minimal .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}.app-footer.layout-footer-minimal .footer-bottom-content {
    text-align: right;
}
.app-footer.layout-footer-minimal .footer-bottom-content p {
    margin: 0;
}
@media (max-width: 992px) {
    .app-footer.layout-footer-minimal .footer-bottom-content {
        text-align: center;
    }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Tooltip statusu biura */
.status-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-left: -2px;
    cursor: help;
}

.status-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 6px 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    letter-spacing: normal;
    text-transform: none;
}

.status-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.status-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Footer Columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(var(--footer-cols, 3), 1fr);
    gap: 3rem;
    width: 100%;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col .footer-logo,
.footer-col .footer-favicon {
    max-height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 0.5rem;
}

.footer-col .footer-favicon {
    max-height: 32px;
}

.app-footer.layout-footer-centered .footer-col .footer-logo,
.app-footer.layout-footer-centered .footer-col .footer-favicon {
    object-position: center center;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-hover);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer-socials a:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* ═══════════════════════════════════════════════════════════════════
   UZUPEŁNIAJĄCE BREAKPOINTY — uniwersalne pokrycie urządzeń
   ─────────────────────────────────────────────────────────────────
   System breakpointów (od najszerszego do najwęższego):
     ≥ 1400px — Large desktop (4K, ultrawide, duże monitory)
     ≥ 1280px — Standard desktop (laptopy 13-15")
     ≤  900px — Tablet/small laptop (główny, istniejący)
     ≤  768px — Tablet portrait (iPad mini, Surface Go)
     ≤  600px — Large phone (Galaxy S Ultra, iPhone Max, foldables)
     ≤  430px — Modern phone (iPhone 15, Galaxy S24, Pixel 8)
     ≤  390px — Standard phone (iPhone 13-14, Pixel 7)
     ≤  360px — Baseline Android (Samsung A series, Xiaomi)
   ═══════════════════════════════════════════════════════════════════ */


/* ─── LARGE DESKTOP ≥1400px ─────────────────────────────────────── */
@media (min-width: 1400px) {
    /* Więcej przestrzeni w hero */
    .hero-section .hero-container {
        padding: 5rem 4rem;
        gap: 5rem;
    }

    /* Sekcje do szerszych kontenerów */
    .about-section,
    .investments-section,
    .office-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Showcase inwestycji — więcej przestrzeni */
    .investment-showcase {
        padding: 5rem 2rem;
        gap: 4rem;
    }
}


/* ─── TABLET PORTRAIT ≤768px ─────────────────────────────────────
   iPad mini, Surface Go, małe tablety w pionie
   Uzupełnienie między głównym 900px a mobilnym 560px              */
@media (max-width: 768px) {
    /* Showcase inwestycji — zmniejsz padding */
    .investment-showcase {
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }

    /* Sekcja "O nas" */
    .about-section .about-container {
        gap: 2rem;
    }

    /* Filtry — 2 kolumny zamiast 4 */
    .search-panel .filter-group-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .search-panel .filter-group-row.ranges {
        grid-template-columns: 1fr 1fr;
    }

    /* Siatka inwestycji — 2 kolumny max */
    .investments-grid:not(.layout-investments-list):not(.layout-investments-minimal) {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Karty grid lokali — 2 kolumny */
    .properties-grid.apt-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Modal — większy na tablecie */
    .modal-dialog {
        max-width: 600px;
    }
}


/* ─── LARGE PHONE ≤600px ─────────────────────────────────────────
   Galaxy S Ultra, iPhone 15 Plus/Max, foldables rozłożone       */
@media (max-width: 600px) {
    /* Padding sekcji */
    .main-content,
    .hero-section,
    .about-section,
    .investments-section,
    .office-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Siatka inwestycji — 1 kolumna */
    .investments-grid:not(.layout-investments-list):not(.layout-investments-minimal) {
        grid-template-columns: 1fr !important;
    }

    /* Showcase — węższy padding */
    .investment-showcase {
        padding: 1.5rem 1rem;
    }

    /* Karty grid lokali — 1 kolumna */
    .properties-grid.apt-grid {
        grid-template-columns: 1fr !important;
    }

    /* Filtry — 1 kolumna */
    .search-panel .filter-group-row {
        grid-template-columns: 1fr;
    }

    /* Footer sekcja kontakt */
    .office-section .office-container {
        gap: 1.5rem;
    }
}


/* ─── MODERN PHONE ≤430px ────────────────────────────────────────
   iPhone 13-16, Galaxy S21-S24, Pixel 6-8 (złoty środek)       */
@media (max-width: 430px) {
    /* Header — jeszcze mniejszy brand text */
    .app-header .brand-text h1 {
        font-size: 0.95rem;
    }

    .app-header .brand-text p {
        max-width: 140px;
        font-size: 0.6rem;
    }

    /* Hero — bardziej zwarty */
    .hero-section .hero-container {
        padding: 1.75rem 1rem;
    }

    .hero-section .hero-content h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    /* Showcase inwestycji */
    .investment-showcase {
        padding: 1.25rem 0.875rem;
    }

    /* Przyciski — pełna szerokość w groupach */
    .hero-actions .btn,
    .investment-showcase .btn {
        width: 100%;
        justify-content: center;
    }

    /* Specs lokalu — 2 kolumny bliżej */
    .specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* Modal — pełna szerokość */
    .modal-dialog {
        border-radius: 20px 20px 0 0;
    }

    /* Kontakt — mniejszy padding */
    .office-info-card,
    .office-contact-form {
        padding: 1.25rem 1rem;
    }

    /* Wyszukiwarka lokali — kompaktowa */
    .search-panel {
        padding: 1rem !important;
    }
}


/* ─── STANDARD PHONE ≤390px ──────────────────────────────────────
   iPhone SE 2022, iPhone 12 mini, mniejsze Androidy             */
@media (max-width: 390px) {
    /* Dalsze zmniejszenie hero */
    .hero-section .hero-content h2 {
        font-size: clamp(1.35rem, 7.5vw, 1.75rem);
    }

    .hero-section .hero-content p {
        font-size: 0.92rem;
    }

    /* Showcase — minimalny padding */
    .investment-showcase {
        padding: 1rem 0.75rem;
    }

    /* Apartament list — nieco węższe zdjęcie */
    .properties-grid.apt-list .property-card {
        grid-template-columns: 120px 1fr;
    }

    /* Stopka — pełna szerokość linków */
    .footer-socials {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Headingi sekcji */
    .section-title-wrapper h2,
    .about-content h2,
    .apartments-header-bar h3 {
        font-size: clamp(1.25rem, 7vw, 1.6rem);
    }

    /* Karty inwestycji — mniejszy padding */
    .investment-card {
        padding: 0 !important;
    }

    .investment-card .card-content {
        padding: 1rem;
    }
}


/* ─── BASELINE ANDROID ≤360px ────────────────────────────────────
   Samsung Galaxy A-series, Xiaomi Redmi (stress-test)           */
@media (max-width: 360px) {
    /* Maksymalne uproszczenie — layout nie może się rozpaść */

    .app-header .header-container {
        padding: 0.75rem 0.75rem;
    }

    /* Brand text ukryj podtytuł */
    .app-header .brand-text p {
        display: none;
    }

    /* Showcase — priorytet czytelności */
    .investment-showcase {
        padding: 1rem 0.625rem;
    }

    /* Apartament list — bardziej zwarty */
    .properties-grid.apt-list .property-card {
        grid-template-columns: 100px 1fr;
    }

    .properties-grid.apt-list .property-card .card-header h3 {
        font-size: 0.9rem;
    }

    .properties-grid.apt-list .property-card .card-footer .price-val {
        font-size: 0.85rem;
    }

    .properties-grid.apt-list .property-card .card-footer .btn-card-details {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Filtry — pełna szerokość inputów */
    .search-panel input,
    .search-panel select {
        font-size: 0.85rem;
    }

    /* Przyciski — mniejszy padding */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Modal drag handle i treść */
    .modal-dialog .modal-content {
        padding: 1rem;
    }
}
/* --- Wstrzyknięte dynamiczne zmienne --- */
@media (min-width: 901px) { :root { --nav-link-color: #64748b !important; --nav-link-color-hover: #4f46e5 !important;  } }
@media (max-width: 900px) { :root { --nav-link-color: #64748b !important; --nav-link-color-hover: #4f46e5 !important;  } }
