/* main.css — Light Real-Estate style (WordPress theme)
   - Light palette similar to a real-estate demo
   - Header / Hero / Sections / Cards
   - Plans overlay (floors + roof) + hover/flash animations
   - CTA “View terrace / lawn”
   - FAQ accordion styles
   - Leaflet map container
*/

:root{
    --bg:#f4f2ee;
    --surface:#ffffff;
    --surface-2:#f6f7f9;
    --surface-3:#f1f5f9;

    --text:#0f172a;     /* slate-900 */
    --muted:#64748b;    /* slate-500 */
    --line:#e5e7eb;     /* gray-200 */

    --accent:#111827;   /* gray-900 (buttons) */
    --accent-2:#caa35c; /* "gold" accent */
    --success:#16a34a;
    --danger:#ef4444;

    --shadow: 0 18px 40px rgba(15,23,42,.08);
    --shadow-sm: 0 10px 24px rgba(15,23,42,.08);

    --radius: 18px;
    --radius-lg: 22px;

    /* Teal accent used across the theme (define to satisfy linter and provide consistent color) */
    --teal: #630410;

    /* Fixed header height — adjust if header becomes larger */
    --header-height: 72px;
}

*{ box-sizing:border-box }
html, body{ height:100% }
body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--text);
    background:var(--bg);

    /* Reserve space for the fixed header so content doesn't jump */
    padding-top: var(--header-height);
}

/* Page container: center content and limit width to match site design */
.container{
    max-width: 1120px;
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* When WP admin bar is visible, add its height to the top padding so content doesn't jump */
body.admin-bar{ padding-top: calc(var(--header-height)); }
@media (max-width: 782px){
    body.admin-bar{ padding-top: calc(var(--header-height) + 46px); }
}

/* Header */
.site-header{
    position: fixed; /* always visible */
    left:0;
    right:0;
    top:0;
    z-index:120;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-bottom:1px solid var(--line);
    height: var(--header-height);
}
.header-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 0;
    gap:16px;
}
.logo-image {
    height:45px;
}
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    font-weight:900;
    letter-spacing:-.02em;
}
.logo-mark{ font-size:18px }

/* Navigation (restore minimal original rules) */
.nav ul{
    display:flex;
    align-items:center;
    gap:18px;
    list-style:none;
    margin:0;
    padding:0;
}
.nav a{
    text-decoration:none;
    color: #0f172a;
    opacity: 1;
    font-weight:650;
}
.nav a:hover{ opacity: .8 }
.nav li.current-menu-item > a,
.nav li.current-page-item > a,
.nav li.current_page_item > a,
.nav li.current-menu-ancestor > a {
    color: #630410;
    opacity: 1;
}

/* Buttons */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:12px 18px;
    border-radius:999px;
    background:#630410!important;;
    color:#fff;
    text-decoration:none;
    font-weight:750;
    border:1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active{ transform: translateY(0) }
.btn-charter{
    padding: 8px 16px;
    font-size: 14px;
}
.btn-ghost{
    background:transparent;
    color:#ffffff;
    border:1px solid var(--line);
}
.btn-ghost:hover{
    background:var(--surface-2);
    box-shadow:none;
}

/* Sections */
.section{ padding:70px 0 }
.section-alt{
    background: var(--surface-2);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}
.section-head{
    margin-bottom:18px;
}
.section-head h2{
    margin:0 0 8px;
    font-size:34px;
    letter-spacing:-.02em;
}
.section-head p{
    margin:0;
    color:var(--muted);
    max-width:70ch;
    line-height:1.6;
}

/* Centered section head variant */
.section-head--center{ text-align:center; margin-bottom:28px; }

/* HERO */
.hero.hero--bg{
    position: relative;

    /* Small outer margins */
    margin: 0 24px 0;

    /* IMPORTANT: full width, no max-width */
    width: auto;

    border-radius: 20px;
    overflow: hidden;

    min-height: 88vh;

    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    background-image: var(--hero-bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /*background-color: #000; !* Добавляем фон, если картинка не на весь экран *!*/
}

/* Dim overlay */
.hero.hero--bg::before{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(0,0,0,-0.55);
}

/* Content */
.hero-inner{
    position:relative;
    z-index:1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title{
    color:#fff;
    font-size:64px;
    line-height:1.05;
    margin:0 0 22px;
}

.hero-eyebrow{
    color:rgba(255,255,255,.85);
    margin-bottom:12px;
}

/* Hero overlay opacity controlled by CSS var */
.hero.hero--bg::before{
    background: rgba(0,0,0,  -0.55);
}

/* Button */
body{ background:#f4f2ee; }

.map-description-panel {
    background: transparent; /* убрана белая заливка по запросу */
    border-radius: 20px;
    padding: 40px 24px; /* вертикальные и горизонтальные отступы оставлены */
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
    max-width: 1120px; /* ширина панели 1120px */
    margin: 0 auto; /* центрируем */
    text-align: center;
    margin-bottom: 30px;
}

/* Adaptive / Responsive */
@media (max-width: 900px){
    .hero.hero--bg{
        margin:16px;
        min-height:72vh;
    }
    .hero-title{ font-size:42px; }
}

/* Light CTA button like demo */
.btn.btn-light{
    background:#fff;
    color:#ffffff;
    border-color: transparent;
}

/* Hover feel (very soft like the demo) */
.fp-media{
    transition: transform .18s ease, box-shadow .18s ease;
}

/* Controls */
.controls{
    margin:18px 0 16px;
    display:flex;
    gap:16px;
    align-items:center;
    flex-wrap:wrap;
}

/* Tabs */
.floor-tabs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.tab{
    padding:10px 14px;
    border-radius:999px;
    border:1px solid var(--line);
    background: var(--surface);
    color:var(--text);
    cursor:pointer;
    font-weight:750;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tab:hover{
    background: #630410;
    transform: translateY(-1px);
}
.tab.is-active{
    background:#630410;
    color:#fff;
    box-shadow: var(--shadow-sm);
}
.tab-roof{
    background: var(--surface-3);
}
.type-filter{
    display:flex;
    gap:10px;
    align-items:center;
}
.type-filter label{
    color:var(--muted);
    font-weight:650;
}
.type-filter select{
    padding:10px 12px;
    border-radius:14px;
    border:1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-weight:650;
}

/* Legend */
.legend{
    color:var(--muted);
    display:flex;
    gap:10px;
    align-items:center;
}
.dot{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
}
.dot.available{ background: var(--success) }
.dot.sold{ background: var(--danger) }

/* Apartment grid + cards */
.apartment-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:18px;
}

.apartment-card{
    background: var(--surface);
    border:1px solid var(--line);
    border-radius: var(--radius);
    padding:16px;
    text-decoration:none;
    display:block;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}
.apartment-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(15,23,42,.15);
}
.card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    color:var(--muted);
    font-size:16px;
    margin-bottom:10px;
}
.floor{ white-space:nowrap }
.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:800;
    padding:7px 11px;
    border-radius:999px;
    border:1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}
.apartment-card h3{
    margin:0;
    font-size:20px;
    letter-spacing:-.01em;
}
.meta{
    color: var(--muted);
    margin:8px 0 0;
    line-height:1.6;
}
.more{
    display:inline-flex;
    margin-top:12px;
    color: var(--text);
    opacity:.9;
    font-weight:750;
}

/* Sold */
.apartment-card.is-sold{
    opacity:.58;
}
.apartment-card.is-sold:hover{
    transform:none;
    box-shadow:none;
}

/* Feature badges under card */
.feature-badges{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px;
}
.badge-feature{
    background: #fff7e6;
    border-color: rgba(202,163,92,.45);
}

/* FAQ */
.faq{
    border:1px solid var(--line);
    border-radius: var(--radius);
    overflow:hidden;
    background: var(--surface);
}

/* Accordion answer: collapse by default, animate max-height + opacity */
.faq-a{
    max-height: 0;
    overflow: hidden;
    padding: 0 0; /* padding will be controlled by inner spacing below */
    opacity: 0;
    transition: max-height 520ms cubic-bezier(.2,.9,.2,1), opacity 360ms ease;
}

/* Inner answer content padding to keep spacing consistent (measured by scrollHeight) */
.faq-a .faq-a-inner{
    padding: 12px 0 26px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
}

/* When question expanded, we only change aria attribute and JS will set max-height and opacity */

/* Constrain FAQ panel width and center it to 1120px */
.section-whatwedo, .faq-panel{
    margin: 0 auto; /* center */
    max-width: 1120px; /* tightened width */
    background: transparent;
    border-radius: 0;
    padding: 56px 18px; /* modest vertical padding */
    box-shadow: none;
}

/* Remove large horizontal paddings inside faq head/grid because panel centers content */
.section-whatwedo .faq-head,
.section-whatwedo .faq-grid{
    padding-left: 24px; /* was 120px, reduced to make content wider */
    padding-right: 24px;
}

/* FAQ — reuse visual style from What We Do but stacked (no grid)
   The generic .faq-panel will have panel visuals; sections that should not use it (what-we-do) will override below.
*/
.faq-panel{
    margin: 0 24px;
    background: #fff;
    border-radius: 20px;
    padding: 56px 0;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

/* Ensure FAQ inside .section-whatwedo is centered and uses transparent background (override) */
.section-whatwedo .faq-panel{
    margin: 0 auto;
    max-width: 1120px;
    background: transparent;
    border-radius: 0;
    padding: 56px 18px;
    box-shadow: none;
}

.section-whatwedo .faq-head,
.section-whatwedo .faq-grid,
.faq-head,
.faq-grid{
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 120px;
    padding-right: 120px;
}

.section-whatwedo .faq-head,
.faq-head{
    text-align: center;
    margin-bottom: 34px;
}

.section-whatwedo .faq-title,
.faq-title{
    margin:0 0 12px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    color:#111;
}

.section-whatwedo .faq-sub,
.faq-sub{
    margin: 0 auto;
    text-align:center;
    max-width: 640px;
    color:#6b7280;
    font-size: 12.5px;
    line-height: 1.9;
}

.section-whatwedo .faq-line,
.faq-line{
    width: 38px;
    height: 2px;
    margin: 22px auto 0;
    background: var(--teal, #630410);
    border-radius: 999px;
}

/* The accordion container inside the panel — stacked list; explicitly NOT grid */
.section-whatwedo .faq,
.faq{
    max-width: 100%; /* allow full container width */
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    display: block; /* ensure stacked layout, not grid */
}

/* Adjust question button to hold text + chevron */
.section-whatwedo .faq-q,
.faq-q{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    text-align:left;
    background: transparent;
    border: none;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

/* Chevron */
.faq-chevron{
    width:22px;
    height:22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
    transition: transform 360ms cubic-bezier(.2,.9,.2,1), color 260ms ease;
}

.faq-q[aria-expanded="true"] .faq-chevron{
    transform: rotate(180deg);
    color: var(--teal, #630410);
}

.section-whatwedo .faq-q[aria-expanded="true"],
.faq-q[aria-expanded="true"]{
    color: var(--teal, #630410);
}

.section-whatwedo .faq-a,
.faq-a{
    padding: 12px 0 26px;
    color:#6b7280;
    font-size: 13px;
    line-height: 1.8;
}

@media (max-width: 1200px){
    .section-whatwedo .faq-head,
    .section-whatwedo .faq-grid,
    .faq-head,
    .faq-grid{
        padding-left: 64px;
        padding-right: 64px;
    }
}

@media (max-width: 640px){
    .section-whatwedo .faq-panel,
    .faq-panel{
        margin: 0 12px;
        padding: 34px 0 34px;
        border-radius: 18px;
    }
    .section-whatwedo .faq-head,
    .section-whatwedo .faq-grid,
    .faq-head,
    .faq-grid{
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Remove panel styling from What We Do (we want it to be inline with page background) */
.section-whatwedo .whatwedo-panel{
    margin: 0; /* restore default spacing */
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Apply panel styling to Featured Properties */
.section-featured .featured-panel{
    /*background:#fff;*/
    border-radius: 20px;
    padding: 72px 0 72px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

/* Limit inner width and keep internal padding similar to what-we-do */
.section-featured .featured-head,
.section-featured .featured-grid{
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 120px;
    padding-right: 120px;
}

@media (max-width: 1200px){
    .section-featured .featured-head,
    .section-featured .featured-grid{
        padding-left: 64px;
        padding-right: 64px;
    }
}

@media (max-width: 640px){
    .section-featured .featured-panel{
        margin: 0 12px;
        padding: 44px 0 44px;
        border-radius: 18px;
    }
    .section-featured .featured-head,
    .section-featured .featured-grid{
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Map */
.map{
    height:760px; /* увеличено в 2 раза (раньше 380px) */
    border-radius: var(--radius);
    border:1px solid var(--line);
    overflow:hidden;
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}

/* Full-bleed map wrapper (stretch map to viewport width) */
.map-full{
    width: 100vw; /* full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* pull to full-bleed */
    margin-right: -50vw;
    padding: 20px 0; /* vertical spacing above/below map */
    background: transparent;
}

/* When map placed in .map-full, remove panel visuals so it sits edge-to-edge */
.map-full .map{
    width: calc(100% - 40px); /* account for horizontal padding */
    margin: 0 auto;
    border-radius: 0; /* no rounded corners on full width */
    box-shadow: none;
    border: none;
}

/* Ensure the embedded map (shortcode output) fills the container */
.map-full iframe,
.map-full .wpgmza_map{
    width:100% !important;
    height:760px !important; /* увеличено в 2 раза (раньше 380px) */
    display:block;
}

/* Responsive: keep smaller height on narrow screens for usability */
@media (max-width: 640px){
    .map{ height: 380px; }
    .map-full iframe,
    .map-full .wpgmza_map{ height: 380px !important; }
}

/* Smooth scrolling for anchor links (user requested smoother) */
html{
    scroll-behavior: smooth;
}

/* Make scroll even slower for very smooth feel when using JS anchors */
:root{
    --scroll-duration: 700ms; /* used by JS smooth scroll if present */
}

/* FAQ transitions — make them a little slower and smoother */
.faq-a{
    max-height: 0;
    overflow: hidden;
    padding: 0 0; /* padding will be controlled by inner spacing below */
    opacity: 0;
    transition: max-height 520ms cubic-bezier(.2,.9,.2,1), opacity 360ms ease;
}

.faq-chevron{
    width:22px;
    height:22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
    transition: transform 360ms cubic-bezier(.2,.9,.2,1), color 260ms ease;
}

/* Footer */
.site-footer{
    border-top:1px solid var(--line);
    padding:34px 0 18px;
    margin-top:40px;
    background: var(--surface);
}
.footer-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:18px;
}
.site-footer h3, .site-footer h4{
    margin:0 0 10px;
    letter-spacing:-.01em;
}
.site-footer p{
    margin:6px 0;
    color: var(--muted);
}
.footer-bottom{
    color:var(--muted);
    margin-top:16px;
    padding-top:16px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    list-style:none;
    padding: 0;
}
a.legal-links {
    font-size:16px;
    color: #6b7280;
    line-height: 1.75;
    text-decoration: none;
}
a.legal-links:hover {
    color: #000000;
    text-decoration: underline;
}

.footer-bottom p{
    margin:0;
    font-size:14px;
}
.footer-bottom p a{
    color:var(--muted);
    text-decoration:underline;
}

/* -------------------------
   Plans (floors + roof)
-------------------------- */
.plan-wrap{ margin-top:18px }
.plan-stage{
    position:relative;
    border-radius: var(--radius);
    border:1px solid var(--line);
    overflow:hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.plan-image{
    display:block;
    width:100%;
    height:auto;
}

/* Overlay SVG */
.plan-overlay{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none; /* включаем только в режиме разметки */
}

/* Show/hide plan floors */
.plan-floor{ display:none; }
.plan-floor.is-active{ display:block; }

.plan-hint{
    margin-top:12px;
    color:var(--muted);
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}
.plan-hint .sep{ opacity:.55 }

/* Apartment polygons */
.apt-poly{
    cursor:pointer;
    stroke: rgba(17,24,39,.55);
    stroke-width: 1.2;
    fill-opacity: .18;
    transition: fill-opacity .15s ease, stroke-width .15s ease, filter .15s ease;
}
.apt-poly.is-available{ fill: rgba(22,163,74,.28) }
.apt-poly.is-sold{ fill: rgba(239,68,68,.20) }
.apt-link.is-disabled{ pointer-events:none }

/* Hover + flash animations */
.apt-poly.is-hover{
    fill-opacity: .38;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 10px rgba(17,24,39,.16));
}
.apt-poly.is-flash{
    fill-opacity: .55;
    stroke-width: 2.8;
    filter: drop-shadow(0 0 16px rgba(202,163,92,.35));
}

/* Edit mode for overlay */
.plan-overlay.is-edit{ pointer-events:auto }

/* -------------------------
   CTA (Terrace / Lawn)
-------------------------- */
.selection-cta{
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
}
.selection-cta .btn{
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.selection-cta__text{
    color: var(--text);
    font-weight: 800;
    letter-spacing:-.01em;
    line-height:1.3;
}
.selection-cta__close{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border:1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor:pointer;
    font-weight:900;
}
.selection-cta__close:hover{
    background: var(--surface-2);
}

/* Typography to match demo vibe */
body{ font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
h1,h2,h3,h4,.hero-title{ font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Transparent header ONLY on homepage */
.home .site-header{
    position: fixed;
    left:0; right:0; top:0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    backdrop-filter:none;
}
.home .header-row{ padding:18px 0; }
.home .logo, .home .nav a{ color:var(--text); opacity:1; }
.home .nav a:hover{ opacity:1; }

/* Remove explicit admin-bar overrides added earlier: let WP default handling remain */

/* =========================
   Demo-like section headings
========================= */
.demo-head{
    text-align:center;
    margin-bottom: 26px;
}
.demo-kicker{
    margin:0 0 10px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
}
.demo-title{
    margin:0;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -.02em;
}
.demo-head--row{
    text-align:left;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom: 18px;
}
@media (max-width: 780px){
    .demo-head--row{ flex-direction:column; align-items:flex-start; }
}
/* =========================
   What We Do — FIX (like demo)
========================= */

.section-whatwedo{
    padding: 70px 0 80px;
}

.section-whatwedo .whatwedo-panel{
    margin: 0; /* restore default spacing */
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.section-whatwedo .whatwedo-head,
.section-whatwedo .whatwedo-grid{
    max-width: 1120px;             /* ensure inner column is full 1120 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;            /* small page gutters, not huge internal padding */
    padding-right: 18px;
}

.section-whatwedo .whatwedo-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;                      /* slightly tighter gap so columns get proportionally wider */
    align-items: start;
}

.section-whatwedo .whatwedo-item{
    /* Make items use full column space and keep internal spacing proportional */
    background: transparent;
    padding: 12px 8px;
    border-radius: 12px;
}

.section-whatwedo .whatwedo-no{
    font-size: 12px;                /* keep the small kicker but slightly larger for visual weight */
}

.section-whatwedo .whatwedo-h{
    font-size: 18px;                /* slightly larger headline inside the column */
}

.section-whatwedo .whatwedo-p{
    font-size: 16px;
    line-height: 1.85;
    color: var(--muted);
}

/* Ensure What We Do title + subtitle are centered */
.section-whatwedo .whatwedo-head{ text-align: center; margin-bottom: 58px; }
.section-whatwedo .whatwedo-title,
.whatwedo-title{ display:block; text-align:center; margin: 0 auto 12px; }
.section-whatwedo .whatwedo-sub,
.whatwedo-sub{ margin: 0 auto; text-align:center; max-width: 640px; color:var(--muted); }

@media (max-width: 1100px){
    .section-whatwedo .whatwedo-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 640px){
    .section-whatwedo .whatwedo-head,
    .section-whatwedo .whatwedo-grid{
        padding-left: 18px;
        padding-right: 18px;
    }
    .section-whatwedo .whatwedo-grid{ grid-template-columns: 1fr; gap: 18px; }
}

/* =========================
   Featured Properties — like DEMO
========================= */
.section-featured{
    padding: 70px 0 ;
}

.featured-head{
    text-align:center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.featured-title{
    margin:0 0 14px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 600;
    color:#111;
}

.featured-sub{
    margin:0;
    color:#6b7280;
    font-size: 16px;
    line-height: 1.9;
}

.featured-line{
    display:block;
    width: 38px;
    height: 2px;
    background: var(--teal, #630410);
    margin: 22px auto 0;
    border-radius: 999px;
}

.featured-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    align-items:start;
}

/* Card */
.fp-card{
    background: transparent;
}

.fp-media{
    border-radius: 18px;
    overflow:hidden;
    background:#fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
.fp-media img{
    display:block;
    width:100%;
    height: 260px;
    object-fit: cover;
}

.fp-body{
    padding-top: 16px;
}

.fp-meta{
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color:#6b7280;
    font-weight: 700;
    margin-bottom: 10px;
}

.fp-name{
    margin:0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color:#111;
}

.fp-desc{
    margin:0 0 14px;
    color:#6b7280;
    font-size: 16px;
    line-height: 1.85;
    max-width: 48ch;
}

.fp-price{
    color: var(--teal, #630410);
    font-weight: 800;
    font-size: 13px;
}

/* Hover feel (очень мягко как в демо) */
.fp-media{
    transition: transform .18s ease, box-shadow .18s ease;
}
.fp-card:hover .fp-media{
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
}

/* Card head: title left, View more button right */
.apt-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.apt-card-head h3{ margin:0; font-size:18px; }
.apt-card-head .view-more{
    padding:8px 12px;
    border-radius:999px;
    border:1px solid var(--line);
    background: transparent;
    color: #ffffff;
    text-decoration:none;
    font-weight:700;
}

/* Make .sold badge in apt-card-head match the "View more" button size and typography */
.apt-card-head .ap-card__badge.sold{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 12px; /* same as .apt-card-head .view-more */
    border-radius:999px;
    font-weight:700;
    font-size:14px; /* match button size */
    line-height:1;
    background:#fef2f2; /* original sold background */
    color:#b91c1c;      /* original sold text color */
}

@media (max-width: 780px){
    .apt-card-head{ flex-direction: row; }
    .apt-card-head h3{ font-size:16px; }
    .apt-card-head .view-more{ padding:6px 10px; }
}

/* Thumbnail rules for apartment cards (prevent oversized images) */
.ap-card__media{
    flex: 0 0 210px;
    max-width: 210px;
    display:block;
}
.ap-card__thumb{
    width:100%;
    height:130px; /* fixed thumbnail height */
    object-fit: cover;
    display:block;
    border-radius:12px;
}
.ap-card__thumb-placeholder{
    width:100%;
    height:130px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
    color:var(--muted);
    border-radius:12px;
}

@media (max-width: 780px){
    .ap-card__main{ flex-direction:column; align-items:flex-start; }
    .ap-card__media{ width:100%; max-width:100%; }
    .ap-card__thumb{ height:180px; }
}

/* =========================
   Responsive
-------------------------- */
@media (max-width: 980px){
    h1{ font-size:44px }
    .hero-grid{ grid-template-columns: 1fr }
    .apartment-grid{ grid-template-columns: 1fr 1fr }
    .footer-grid{ grid-template-columns: 1fr }
}

@media (max-width: 620px){
    .apartment-grid{ grid-template-columns: 1fr }
    .header-row{ flex-direction:column; align-items:flex-start }
    .nav ul{ flex-wrap:wrap }
    .selection-cta{ right: 12px; bottom: 12px; }
}
/* =========================
   Footer — multi-column demo style
========================= */

.site-footer{
    background: #f4f2ee;
    margin-top: 70px;
    padding-top: 56px;
    color: #111;
}

.footer-top{
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.4fr 1.3fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 42px;
}

.footer-col p{
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.75;
}

.footer-title{
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 600;
    color: #630410;
}

.footer-logo{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    font-size: 18px;
}

.footer-logo-mark{
    font-size: 18px;
}
.footer-logo-image {
    height: 45px;
    width: auto;
}

.footer-contact a{
    color: var(--teal, #630410);
    text-decoration: none;
}
.footer-contact a:hover{
    text-decoration: underline;
}

.footer-search{
    display: flex;
    align-items: center;
    margin-top: 22px;
    max-width: 320px;
}

.footer-search input{
    flex: 1;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-right: 0;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    color: #111;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.footer-search button{
    width: 62px;
    height: 44px;
    border: 0;
    cursor: pointer;
    background: var(--teal, #630410);
    color: #fff;
    font-size: 18px;
    border-radius: 0 22px 22px 0;
}

.footer-divider{
    border-top: 1px solid rgba(17,17,17,.08);
}

.footer-bottom{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 26px;
    padding-bottom: 18px;
}

.footer-copy{
    color: #630410;
    font-size: 14px;
}

.footer-socials{
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials a{
    color: var(--teal, #630410);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
}

.footer-socials a:hover{
    opacity: .75;
}

/* Make FAQ appear as a white panel matching What We Do layout */
section#faq.section-whatwedo .faq-panel,
.section-whatwedo .faq-panel{
    margin: 0 24px;               /* page gutters */
    background: #fff;             /* white panel */
    border-radius: 20px;
    padding: 56px 0;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

/* Inner column: same as what-we-do */
.section-whatwedo .faq-head,
.section-whatwedo .faq-grid,
.faq-head,
.faq-grid{
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 120px;
    padding-right: 120px;
}

/* Accordion column inside panel */
.section-whatwedo .faq,
.faq{
    max-width: 920px;
    margin: 0 auto;
}

/* Ensure small-screen adjustments remain consistent */
@media (max-width: 1200px){
    .section-whatwedo .faq-head,
    .section-whatwedo .faq-grid,
    .faq-head,
    .faq-grid{
        padding-left: 64px;
        padding-right: 64px;
    }
}

@media (max-width: 640px){
    .section-whatwedo .faq-panel,
    .faq-panel{
        margin: 0 12px;
        padding: 34px 0 34px;
        border-radius: 18px;
    }
    .section-whatwedo .faq-head,
    .section-whatwedo .faq-grid,
    .faq-head,
    .faq-grid{
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Map panel inside the main column (max-width 1120px) */
.map-panel{
    max-width: 1120px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.map-panel .map{
    height:900px; /* увеличено с 760px до 900px */
    border-radius: 14px; /* small radius inside panel */
    overflow:hidden;
    border:1px solid var(--line);
}

/* Ensure embedded map inside panel fills new height */
.map-panel .map iframe,
.map-panel .map .wpgmza_map{
    width:100% !important;
    height:900px !important;
    display:block;
}

@media (max-width:640px){
    .map-panel .map{ height:380px; }
    .map-panel .map iframe,
    .map-panel .map .wpgmza_map{ height:380px !important; }
}

/* Map Info Content */
.map-info-content {
    margin-top: 50px;
    padding: 0 15px;
}

.map-info-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    color: #111;
    margin: 0 0 16px;
}

.map-info-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--teal, #630410);
    font-weight: 500;
    margin: 0 0 30px;
    font-style: italic;
}

.map-info-text {
    max-width: 100%;
    margin: 0 auto;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.75;
    text-align: justify;
}

.map-info-text p {
    margin-bottom: 20px;
}

.map-info-text p:last-child {
    margin-bottom: 0;
}
.accent-link {
    color:#b1525e;
    text-decoration: underline;
    font-weight: 500;
}
.accent-link:hover {
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 768px) {
    .map-info-title {
        font-size: 24px;
    }
    .map-info-subtitle {
        font-size: 18px;
    }
}

/* =========================
   Ask a Question / CF7
========================= */
.section-ask{
    padding: 80px 0 90px;
}

.ask-wrap{
    /*background:#ffffff;*/
    border-radius: 20px;
    padding: 56px 56px 50px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.ask-head{
    text-align:center;
    max-width: 720px;
    margin: 0 auto 32px;
}

.ask-title{
    margin:0 0 12px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    color:#111;
}

.ask-sub{
    margin:0;
    color:#6b7280;
    font-size: 16px;
    line-height: 1.85;
}

.ask-form{
    max-width: 900px;
    margin: 0 auto;
}

/* CF7 layout */
.cf7-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px; /* уменьшено с 18px до 8px для компактной верстки */
}

.cf7-field--full{
    grid-column: 1 / -1;
}

.ask-form input,
.ask-form textarea{
    width:100%;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#111;
    font-size:16px;
    padding:14px 16px;
    border-radius: 12px;
    outline:none;
    transition:border-color .15s ease, box-shadow .15s ease;
}

.ask-form input{
    height:52px;
}

.ask-form textarea{
    min-height:140px;
    resize:vertical;
}

.ask-form input:focus,
.ask-form textarea:focus{
    border-color: var(--teal, #630410);
    box-shadow: 0 0 0 3px rgba(42,166,161,.12);
}

.ask-form input[type="submit"]{
    width:auto;
    min-width: 180px;
    height:52px;
    border:0;
    border-radius:999px;
    background: var(--teal, #630410);
    color:#fff;
    font-weight:700;
    cursor:pointer;
    padding: 0 24px;
}

.ask-form input[type="submit"]:hover{
    opacity:.92;
}

/* CF7 messages */
.wpcf7 form .wpcf7-response-output{
    margin: 16px 0 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.wpcf7-not-valid-tip{
    font-size: 12px;
    margin-top: 6px;
}

/* =========================
   GDPR checkbox – Contact Form 7
========================= */

.wpcf7-acceptance{
    margin-top: 8px; /* уменьшено с 24px */
    margin-bottom: 8px; /* уменьшено с 10px */
}

.wpcf7-acceptance label{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.wpcf7-acceptance input[type="checkbox"]{
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    accent-color: var(--teal, #630410);
    cursor: pointer;
}

.wpcf7-acceptance span{
    display: inline-block;
    max-width: 520px;
}

.wpcf7-acceptance a{
    color: var(--teal, #630410);
    text-decoration: none;
}

.wpcf7-acceptance a:hover{
    text-decoration: underline;
}

/* =========================
   Default Page
========================= */
.page-content-section{
    padding: 70px 0 90px;
}

.page-content-wrap{
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 48px 56px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.page-title{
    margin: 0 0 24px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    color: #111;
}

.page-content{
    color: #4b5563;
    font-size: 15px;
    line-height: 1.9;
}

.page-content p{
    margin: 0 0 18px;
}

.page-content h2,
.page-content h3,
.page-content h4{
    color: #111;
    margin: 28px 0 12px;
}

.page-content a{
    color: var(--teal, #630410);
    text-decoration: none;
}

.page-content a:hover{
    text-decoration: underline;
}

@media (max-width: 640px){
    .page-content-wrap{
        padding: 30px 18px 36px;
        border-radius: 18px;
    }

    .page-title{
        font-size: 30px;
    }
}


/* =========================
   404 Page
========================= */
.error404 .site-header{
    position: relative;
    background: rgba(255,255,255,.92);
    border-bottom: 1px var(--line) solid;
    backdrop-filter: blur(10px);
}

.error404-section{
    padding: 72px 24px 90px;
    background: #f4f2ee;
}

.error404-wrap{
    max-width: 1100px;
    margin: 0 auto;
    min-height: 68vh;
    border-radius: 24px;
    overflow: hidden;
    background:
            linear-gradient(rgba(17,17,17,.42), rgba(17,17,17,.42)),
            url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

.error404-kicker{
    margin: 0 0 12px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
}

.error404-title{
    margin: 0 0 16px;
    color: #fff;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 600;
    max-width: 800px;
}

.error404-text{
    margin: 0;
    max-width: 640px;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.8;
}

.error404-actions{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
}

.error404 .btn-ghost{
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.35);
    color: #fff;
}

.error404 .btn-ghost:hover{
    background: rgba(255,255,255,.18);
}

@media (max-width: 900px){
    .error404-title{
        font-size: 40px;
    }

    .error404_wrap{
        min-height: 58vh;
    }
}

@media (max-width: 640px){
    .error404-section{
        padding: 20px 12px 50px;
    }

    .error404-wrap{
        min-height: 52vh;
        border-radius: 18px;
        padding: 42px 18px;
    }

    .error404-title{
        font-size: 32px;
    }

    .error404-text{
        font-size: 15px;
    }
}

/* WP admin-bar handling: when admin bar is present, push header down so it doesn't overlap */
.admin-bar .site-header{
    top: 32px; /* WP admin bar height on desktop */
}

.admin-bar .home .site-header{
    top: 32px; /* when homepage header is absolute, keep it below admin bar */
}

@media (max-width: 782px){
    .admin-bar .site-header{
        top: 46px; /* WP admin bar height on mobile/tablet */
    }
    .admin-bar .home .site-header{
        top: 46px;
    }
}

/* NOTE: .container definition was moved up to the global section above to ensure consistent layout */

/* Footer adjustments: align columns and remove default ul spacing so "Legal" links sit flush under the title */
.footer-top .footer-col{
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* make children align to the left and not stretch */
    justify-content: flex-start;
    padding-top: 0; /* remove any accidental top padding */
}

.footer-top .footer-col .footer-title{
    margin-top: 0; /* ensure title starts at column top */
    margin-bottom: 8px; /* tighter gap under title */
}

.footer-links{
    list-style: none;
    margin: 0; /* remove default margins */
    padding: 0; /* remove default left padding */
    display: flex;
    flex-direction: column;
    gap: 6px; /* small gap between links */
}
.footer-links li{ margin: 0; }
.footer-links a.legal-links{ color: var(--text); text-decoration: none; }
.footer-links a.legal-links:hover{ text-decoration: underline; }

/* If any footer columns had extra top margin on their first child, reset it */
.footer-top .footer-col > *:first-child{ margin-top: 0; }

/* =========================
   Apartment Types
========================= */

.container-1120{
    max-width:1120px;
    margin:auto;
}

.section-apartment-types{
    padding:80px 0;
}

.apt-head{
    text-align:center;
    max-width:720px;
    margin:0 auto 50px;
}

.apt-title{
    font-size:40px;
    margin-bottom:14px;
}

.apt-sub{
    color:#6b7280;
    font-size:14px;
    line-height:1.8;
}

.apt-line{
    display:block;
    width:40px;
    height:2px;
    background:var(--teal,#630410);
    margin:20px auto 0;
}

/* Apartment types panel — reuse Featured Properties visual style */
.section-apartment-types .apt-panel{
    background: transparent; /* убрана белая заливка по запросу */
    border-radius: 20px;
    padding: 40px 24px; /* вертикальные и горизонтальные отступы оставлены */
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
    max-width: 1120px; /* ширина панели 1120px */
    margin: 0 auto; /* центрируем */
}

/* Grid of apartment cards */
.section-apartment-types .apt-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 18px;
}

/* Card */
.apt-card{
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Media block: full-width image on top of card */
.apt-media{
    width: 100%;
    height: 220px; /* adjust as needed */
    overflow: hidden;
    border-radius: 12px;
    background: #e9eef0;
}
.apt-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================
   Apartments Archive
========================= */
.apartments-archive{
    padding: 72px 0 90px;
}

.apartments-head{
    text-align:center;
    max-width: 760px;
    margin: 0 auto 42px;
}

.apartments-title{
    margin:0 0 12px;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
    color:#111;
}

.apartments-sub{
    margin:0;
    color:#6b7280;
    font-size:14px;
    line-height:1.9;
}

.apartments-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.apartment-item{
    background:#fff;
    border-radius: 20px;
    overflow:hidden;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.apartment-item__link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.apartment-item__media{
    position:relative;
}

.apartment-item__media img{
    display:block;
    width:100%;
    height:320px;
    object-fit:cover;
}

.apartment-item__placeholder{
    height:320px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
    color:#6b7280;
    font-size:18px;
}

.apartment-item__badges{
    position:absolute;
    top:16px;
    left:16px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.apartment-item__badge{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    line-height:1;
    background:#fff;
    color:#111;
}

.apartment-item__badge.available{
    background:#e8faf2;
    color:#15803d;
}

.apartment-item__badge.sold{
    background:#fef2f2;
    color:#b91c1c;
}

.apartment-item__badge.feature{
    background:#fff7ed;
    color:#9a3412;
}

.apartment-item__body{
    padding:20px 22px 24px;
}

.apartment-item__meta{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    color:#6b7280;
    font-size:13px;
    margin-bottom:10px;
}

.apartment-item__title{
    margin:0 0 10px;
    font-size:24px;
    line-height:1.2;
    font-weight:600;
}

.apartment-item__info{
    margin:0 0 16px;
    color:#6b7280;
    font-size:14px;
    line-height:1.8;
}

.apartment-item__more{
    color:var(--teal, #630410);
    font-weight:700;
}

/* =========================
   Single Apartment
========================= */
.single-apartment-section{
    padding: 72px 0 90px;
}

.single-apartment__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}
.single-apartment__title-row{
    display:flex;
    flex-direction: row;
    align-items:flex-start;
    gap:12px;
}
.single-apartment__title{ margin:0; font-size:34px; }
.single-apartment__status{
    padding:6px 12px;
    border-radius: 999px;
    font-weight:700;
    color:#fff;
}
.single-apartment__status.available{ background: var(--teal, #630410); }
.single-apartment__status.sold{ background: #ef4444; }

.single-apartment__head-right .back-button{
    text-decoration:none;
    padding:10px 16px;
    border-radius:999px;
    border:1px solid var(--line);
    background: transparent;
    color: #ffffff;
}
.details-list {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
}

@media (max-width:900px){
    .single-apartment__top{ flex-direction:column; align-items:flex-start; }
    .single-apartment__head-right{ align-self:flex-start; }
    .single-apartment__title{ font-size:28px; }
}
.single-apartment__title{
    margin:0 0 10px;
    font-size:42px;
    line-height:1.1;
    font-weight:600;
}

.single-apartment__sub{
    margin:0;
    color:#6b7280;
    font-size:16px;
    line-height:1.8;
    padding-bottom: 20px;
}

.single-apartment__status{
    padding:10px 14px;
    border-radius: 999px;
    font-size:20px;
    font-weight:700;
    white-space:nowrap;
}

.single-apartment__status.available{
    background:#e8faf2;
    color:#15803d;
}

.single-apartment__status.sold{
    background:#fef2f2;
    color:#b91c1c;
}

.single-apartment__grid{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap:28px;
}
.single-apartment__media{
    width:100%;
}
.single-apartment__media img,
.plan-image{
    width:100%;
    height:auto;
    display:block;
    border-radius:20px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
    object-fit:contain;
}

/* Блок под сеткой: описание и кухня */
.single-apartment__below{
    margin-top:24px;
    display:flex;
    flex-direction:column;
    gap:20px;
}
.single-apartment__below .single-apartment__card{
    padding:24px;
    border-radius:20px;
    background:#fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

/* Kitchen block should be transparent / no white background */
.single-apartment__kitchen{
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.single-apartment__kitchen .single-apartment__kitchen-layout img{
    border-radius:12px;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
    width:100%;
    height:auto;
    display:block;
}

/* Kitchen two-column layout: description left, image right */
.kitchen-grid{
    display:grid;
    /* Make columns match top grid: description ~ .8fr, image ~ 1.2fr */
    grid-template-columns: .8fr 1.2fr;
    gap:20px;
    align-items:stretch;
    padding:0;
}
.kitchen-desc{
    padding-right:10px;
}
.kitchen-desc.single-apartment__card{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}
.kitchen-media{
    display:flex;
    align-items:stretch;
    justify-content:center;
}

/* Ensure kitchen image fills the right column and matches plan image styles */
.single-apartment__kitchen-layout{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}
.single-apartment__kitchen-layout img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:20px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
    display:block;
}

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

/* Адаптация: на мобильных — одна колонка */
@media (max-width: 900px){
    .single-apartment__grid{
        grid-template-columns: 1fr;
    }
}

.single-apartment__details{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.single-apartment__card{
    background:#fff;
    border-radius:20px;
    padding:24px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.single-apartment__card h3{
    margin:0 0 16px;
    font-size:20px;
}

.single-apartment__list{
    list-style:none;
    margin:0;
    padding:0;
}

.single-apartment__list li{
    padding:8px 0;
    border-bottom:1px solid #eee;
    color:#4b5563;
}

.single-apartment__list li:last-child{
    border-bottom:0;
}

.single-apartment__content{
    color:#4b5563;
    line-height:1.85;
    font-size:15px;
}

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

    .single-apartment__grid{
        grid-template-columns: 1fr;
    }

    .single-apartment__top{
        flex-direction:column;
        align-items:flex-start;
    }
}

/* Image modal (single apartment) */
.image-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}
.image-modal.is-open{ display:flex; }
.image-modal__overlay{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.56);
}
.image-modal__dialog{
    position:relative;
    /* сделано в 1.5 раза больше по ширине: было 50vw → теперь 75vw */
    width: 75vw; /* примерно 75% ширины экрана */
    max-width: 1350px; /* увеличено 900px → 1350px */
    background: transparent; /* прозрачный фон, чтобы картинка выглядела крупно */
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    z-index: 10;
    overflow: hidden;
    animation: modalIn .18s ease;
}
@keyframes modalIn{ from{ transform: translateY(8px) scale(.99); opacity:0 } to{ transform: translateY(0) scale(1); opacity:1 } }
.image-modal__body{
    padding: 12px;
    background: #fff;
    border-radius: 12px;
}
.image-modal__img{
    width:100%;
    height:auto;
    display:block;
    max-height: 80vh; /* не превышать высоту экрана */
    object-fit: contain;
}
.image-modal__close{
    position:absolute;
    right:8px;
    top:8px;
    z-index:20;
    background: rgba(255,255,255,0.9);
    border:0;
    width:38px;
    height:38px;
    border-radius:999px;
    font-size:20px;
    cursor:pointer;
}

@media (max-width: 900px){
    /* на мобильных оставляем диалог почти на весь экран, но немного меньше для отступов */
    .image-modal__dialog{ width: 96vw; }
    .image-modal__body{ padding:8px; }
}

/* Business > 60m2 grid (reuses apartment card styles) */
.business-large-section{ padding-top: 40px; padding-bottom: 40px; }
.business-large-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (max-width: 980px){
    .business-large-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Apartments Cards — compact / boutique style
========================= */

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

.ap-card{
    background:#fff;
    border-radius: 18px;
    border: 1px solid rgba(17,17,17,.06);
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ap-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15,23,42,.08);
    border-color: rgba(17,17,17,.10);
}

.ap-card__link{
    display:block;
    text-decoration:none;
    color:inherit;
    padding: 22px 22px 18px;
    min-height: 190px; /* ниже, чем раньше */
}

.ap-card__top{
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
    gap:14px;
    margin-bottom: 28px;
}

.ap-card__eyebrow{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #6b7280;
    font-weight: 700;
}

.ap-card__badges{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.ap-card__badge{
    display:inline-flex;
    align-items:center;
    padding:7px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    line-height:1;
    border:1px solid transparent;
}

.ap-card__badge.available{
    background:#e8faf2;
    color:#15803d;
}

.ap-card__badge.sold{
    background:#fef2f2;
    color:#b91c1c;
}

.ap-card__badge.feature{
    background:#fff7ed;
    color:#9a3412;
    border-color: rgba(154,52,18,.08);
}

.ap-card__main{
    display: flex;            /* restore horizontal layout: thumbnail left, content right */
    gap: 18px;
    align-items: center;
}

.ap-card__content-wrap{ display:flex; flex-direction:column; }

/* Apartment card bottom button: position left-bottom and styled as .btn */
.ap-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.ap-card__footer{
    padding: 14px 18px 18px; /* spacing inside footer */
    border-top: 1px solid rgba(17,17,17,.04);
    background: transparent;
}

.ap-card__footer-inner{
    display:flex;
    align-items:center;
    justify-content:flex-start; /* left aligned */
}

.ap-card__btn{
    padding:10px 14px;
    border-radius: 999px;
    background: var(--teal, #630410);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
}
.ap-card__btn:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,23,42,.12); }

/* Remove previous absolute bottom layout rules */
.ap-card__bottom{ position: static; display:none; }

@media (max-width: 780px){
    .ap-card__footer{ padding: 12px; }
}

/* ...existing code... */


/* =========================
   Documents
========================= */
.documents-section {
    padding: 80px 0;
}

.documents-header {
    margin-bottom: 40px;
    text-align: center;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.document-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.document-card-content {
    flex-grow: 1;
}

.document-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.document-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.document-card-footer {
    margin-top: auto;
}

.btn-document {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-document:hover {
    background: #334155;
    color: #fff;
}

.btn-document svg {
    flex-shrink: 0;
}

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

/* ── Burger menu ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 130;
}
.burger span {
    display: block;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 430px) {
    .container {
        margin: 0 0;
        min-width: 100%;
    }
    body.admin-bar {
        padding: 0!important;
    }
    .admin-bar .site-header {
        top:0!important;
    }
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 120;
    }

    .hero.hero--bg {
        background-image: var(--hero-bg-mobile);
        margin: 15px;
        min-height: 33vh;
    }
    .hero-title {
        font-size: 30px;
    }

    .burger { display: flex; z-index: 121; }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 16px 20px 24px;
        z-index: 119;
    }
    .nav.is-open { display: block; }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav li { width: 100%; }
    .nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }
    .nav li:last-child a { border-bottom: none; }

    .home .header-row {
        padding:18px 16px!important;
    }
    .header-row {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
    .header-action { display: none; }

    .section {
        padding: 30px 16px!important;
    }
    .featured-title, .apt-title, .cs-faq__title, .demo-title, .ask-title {
        font-size:30px!important;
    }

    a.view-more {
        font-size:11px !important;
    }
    .apt-card {
        gap:8px !important;
    }
    .ap-card__btn {
        text-align: center !important;
    }
    #plans {
        padding: 30px 0 !important;
    }
    #apartmentGrid {
        grid-template-columns: repeat(1,  1fr) !important;
    }
    .ap-card__footer-inner {
        justify-content: center;
    }
    .apartments-grid {
        grid-template-columns: repeat(1, 1fr)!important;
    }
    .cs-faq {
        padding: 20px 16px !important;
    }
    .site-footer {
        margin-top: 0;
        padding: 18px 16px!important;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 10px;
    }
    .footer-bottom {
        padding-top: 0!important;
    }
    .footer-socials {
        display: none;
    }
    .footer-copy {
        padding: 18px 0 !important;
    }
    .map-description-panel {
        padding: 20px 16px!important;
    }

    .ask-wrap {
        padding: 20px!important;
    }

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

    .wpcf7-form-control-wrap >input {
        width: 100% !important;
    }

    .ask-form input[type="submit"] {
        display: block;
        margin: 0 auto;
    }

}