@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ==========================================================================
   LFL Departamentos v8 — Frontend CSS
   Pixel-matched: Image 1 (Flat), Image 2 (Duplex), Popup
   Navy #163577 / #163577  |  Orange #c66f22
   ========================================================================== */

.lfl-dep {
    max-width: 1012px;   /* wider on desktop for better readability (+10%) */
    width: 100%;
    margin: 0 auto;
    font-family: 'AcuminConcept*', 'Source Sans 3', sans-serif;
    color: #676767;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.lfl-dep *, .lfl-dep *::before, .lfl-dep *::after { box-sizing: border-box; }
.lfl-dep ul, .lfl-dep li { list-style: none !important; list-style-type: none !important; padding-left: 0; }

/* ─── TABS ──────────────────────────────────────────────── */
.lfl-tabs {
    display: flex;
    width: 100%;
    gap: 4px;
    background: #fff;
    line-height: 1;
}
.lfl-tab {
    flex: 1 1 0;
    padding: 5px 10px;
    border: 0;
    cursor: pointer;
    font-size: 24px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: "acumin-variable",sans-serif;
    font-variation-settings: 'wght' 500, 'wdth' 67.5, 'slnt' 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: none;
    -webkit-tap-highlight-color: transparent;
    background: none;
    background-color: transparent;
}
.lfl-tab:hover,
.lfl-tab:focus,
.lfl-tab:active,
.lfl-tab:focus-visible { outline: 0 !important; box-shadow: none !important; border: 0 !important; }

.lfl-tab--flat           { background: #cbd2e1; color: #ffffff; }
.lfl-tab--flat.is-active { background: #163577; color: #fff; }
.lfl-tab--duplex              { background: #ecd0b6; color: #ffffff; }
.lfl-tab--duplex.is-active    { background: #c66f22; color: #fff; }

/* ─── PANELS ────────────────────────────────────────────── */
.lfl-panel { display: none; }
.lfl-panel.is-active { display: block; animation: lflFade .2s ease; }
@keyframes lflFade { from { opacity: 0; } to { opacity: 1; } }

/* ─── HERO ──────────────────────────────────────────────── */
.lfl-hero { width: 100%; margin-top: 8px; overflow: hidden; line-height: 0; position: relative; }
.lfl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,0) 65%);
    pointer-events: none;   /* overlay is decorative only, doesn't block clicks/scroll */
}
.lfl-hero img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}
.lfl-hero--empty { height: 260px; background: #e8e8e8; }

/* ─── ESQUEMA DE INFORMACIÓN ────────────────────────────── */
.lfl-esquema { padding: 22px 0 0; }

/* Heading on its own line — bold, colored, no divider below */
.lfl-esquema__heading {
    display: block;
    margin: 0 0 14px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-family: "acumin-variable",sans-serif;
    font-variation-settings: 'wght' 500, 'wdth' 67.5, 'slnt' 0;
}
[data-panel="flat"]   .lfl-esquema__heading { color: #163577; }
[data-panel="duplex"] .lfl-esquema__heading { color: #c66f22; }

/* m² icon + text row — full width, thicker bottom divider */
.lfl-esquema__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    width: 100%;
    border-bottom: 2px solid #a4a4a4;
}
.lfl-esquema__icon { width: 46px; height: 46px; flex-shrink: 0; }
.lfl-esquema__icon img { width: 46px; height: 46px; object-fit: contain; display: block; }
.lfl-esquema__text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;               /* allows flex children to shrink instead of overflowing */
    font-size: 20px;
    color: #676767;
    font-family: "acumin-variable",sans-serif;
    font-variation-settings: 'wght' 300, 'wdth' 100, 'slnt' 0;
}
.lfl-esquema__item { white-space: nowrap; }
.lfl-sep { color: #c0c0c0; margin: 0 12px; flex-shrink: 0; }

/* ─── BED GROUPS ────────────────────────────────────────── */
/*
  .lfl-groups-wrap has position:relative + ::before = ONE continuous vertical line
  Groups stack directly (no margin) — left/right sides use padding for spacing
  ::before spans 100% height of wrapper = guaranteed no break between groups
*/
.lfl-groups-wrap {
    margin-top: 20px;   /* gap below the top divider (esquema row bottom border) */
}

/* Each group row — margin-bottom creates the GAP between groups (line breaks here) */
.lfl-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 0 0 24px 0;
    padding: 0;
    min-height: 180px;      /* taller rows on desktop */
}
/* Last group: no margin gap, add bottom line with 20px gap above it */
.lfl-group:last-child {
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #c8c8c8;
}

/* Left 50%: xN + icon, row, centered */
.lfl-group__left {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;   /* xN number and bed icon centered relative to EACH OTHER */
    justify-content: center;
    gap: 18px;
    padding: 16px 16px 32px 0;
}

/* xN number */
.lfl-group__x {
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    flex-shrink: 0;
    font-family: 'AcuminConcept*', 'Source Sans 3', sans-serif;
}
[data-panel="flat"]   .lfl-group__x { color: #163577; }
[data-panel="duplex"] .lfl-group__x { color: #c66f22; }

/* Bed icon (PNG has circle) */
.lfl-group__bed { width: 104px; height: 104px; flex-shrink: 0; }
.lfl-group__bed img { width: 104px; height: 104px; object-fit: contain; display: block; }

/* Right 50%: unit list */
.lfl-group__list {
    flex: 0 0 50%;
    width: 50%;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 16px 0 32px 40px;   /* small top gap, first item near top */
    border-left: 2px solid #c8c8c8;   /* divider spans full group height */
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* items sit at top; empty space stays below inside divider */
}
.lfl-dep ul, .lfl-dep li, .lfl-dep ol { list-style: none !important; list-style-type: none !important; list-style-image: none !important; padding-left: 0 !important; margin-left: 0 !important; }
.lfl-dep li::marker, .lfl-dep li::-webkit-details-marker { display: none !important; content: "" !important; }
.lfl-group__list, .lfl-group__list li { list-style: none !important; list-style-type: none !important; }
.lfl-group__list li { padding-left: 40px !important; }   /* desktop — must come AFTER global li reset to win */

/* Unit items */
.lfl-unit { margin: 0 0 2px 0; }
.lfl-unit:last-child { margin-bottom: 0; }
.lfl-unit__btn {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    border-width: 0 !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 3px 0;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    font-family: "acumin-variable",sans-serif;
    font-variation-settings: 'wght' 400, 'wdth' 67.5, 'slnt' 0;
    font-size: 15px;
    color: #676767;
    line-height: 1.5;
    transition: none;
    -webkit-tap-highlight-color: transparent;
}
.lfl-unit__btn::-moz-focus-inner { border: 0 !important; padding: 0 !important; }
.lfl-unit__btn:hover,
.lfl-unit__btn:focus,
.lfl-unit__btn:active,
.lfl-unit__btn:focus-visible,
.lfl-unit__btn:focus-within,
.lfl-unit__btn:visited {
    background: none !important;
    background-color: transparent !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;
    filter: none !important;
}
/* Lead item keeps its color on hover */
[data-panel="flat"] .lfl-unit--lead .lfl-unit__btn:hover { color: #163577 !important; }
[data-panel="duplex"] .lfl-unit--lead .lfl-unit__btn:hover { color: #c66f22 !important; }

/* Arrow — only on lead */
.lfl-unit__arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    margin-right: 6px;
    flex-shrink: 0;
}
[data-panel="flat"]   .lfl-unit__arrow { color: #163577; }
[data-panel="duplex"] .lfl-unit__arrow { color: #c66f22; }
.lfl-unit__colon { color: #ccc; }
.lfl-unit__vendido { color: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; }

/* Lead item */
.lfl-unit--lead .lfl-unit__btn { font-weight: 700; }
[data-panel="flat"]   .lfl-unit--lead .lfl-unit__btn { color: #163577; }
[data-panel="duplex"] .lfl-unit--lead .lfl-unit__btn { color: #c66f22; }

/* Ensure ALL non-lead items share exact same size/color regardless of context */
.lfl-unit:not(.lfl-unit--lead) .lfl-unit__btn {
    font-weight: 400;
    color: #676767 !important;
}

.lfl-empty { padding: 20px 0; font-style: italic; color: #999; }

/* ─── POPUP ─────────────────────────────────────────────── */
.lfl-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none !important;
    overflow-y: auto;         /* scroll lives HERE — at the true viewport edge, same as page scroll */
    -webkit-overflow-scrolling: touch;
}
.lfl-popup.is-open {
    display: flex !important;
    align-items: safe center;   /* centers when content fits; scrolls from top when it doesn't (no clipped top) */
    justify-content: center;
    padding: 40px 0;             /* breathing room above/below when scrolled */
}

.lfl-popup__overlay {
    position: fixed;   /* fixed, not absolute — stays put regardless of popup's internal scroll position */
    inset: 0;
    background: rgba(0,0,0,.55);
    cursor: pointer;
    z-index: 0;
}
.lfl-popup__box {
    position: relative;
    z-index: 1;
    width: 740px;   /* wider on desktop */
    max-width: calc(100vw - 16px);
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    animation: lflPop .25s ease both;
    font-family: 'AcuminConcept*', 'Source Sans 3', sans-serif;   /* popup renders outside .lfl-dep, so font must be set here explicitly */
    flex-shrink: 0;
}
@keyframes lflPop {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

/* Popup head */
.lfl-popup__head {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    min-height: 84px;   /* flexible now — grows if children need more room */
}
.lfl-popup__label {
    color: #fff;
    display: flex;
    flex-direction: row;   /* FLAT and 101 on the SAME line */
    align-items: center;
    gap: 8px;
    padding: 0px 24px;   /* height + width dono barlo */
    flex: 0 0 auto;
    min-width: 216px;      /* increased width — matches ~29% of popup width per reference */
    margin-bottom: 6px;
}
.lfl-popup__type {
  font-family: "acumin-variable",sans-serif;
  font-variation-settings: 'wght' 500, 'wdth' 67.5, 'slnt' 0;
  font-size: 34px; letter-spacing: 2px;
}
.lfl-popup__num  {
  font-family: "acumin-variable",sans-serif;
  font-variation-settings: 'wght' 700, 'wdth' 67.5, 'slnt' 0;
  font-size: 60px; letter-spacing: 1px; line-height: 1;
}
.lfl-popup__loc  {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    margin-left: 6px;
    margin-bottom: 6px;
    padding: 10px 40px 10px 0px;
}
.lfl-popup__loc--empty { justify-content: flex-start; padding-left: 20px; }
.lfl-popup__loc img { max-height: 72px; width: auto; display: block; flex-shrink: 0; }

/* Floor info text (e.g. "5° y 6° piso" / "2° piso") next to location diagram */
.lfl-popup__piso {
    font-family: "acumin-variable",sans-serif;
    font-variation-settings: 'wght' 500, 'wdth' 100, 'slnt' 0;
    font-size: 20px;
    white-space: nowrap;
}

/* Floor plan column (rooms-side plano, or full-width second plano) */
.lfl-popup__plano-col { width: 100%; display: flex; flex-direction: column; gap: 10px; }

/* Wraps Planta 1 + inner divider + Planta 2 stacked vertically, sitting beside the room
   list (which spans alongside both). Room-list and this column are simple flex siblings —
   no absolute positioning, no JS measurement needed, so nothing can silently break. */
.lfl-popup__plantas-col {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;   /* allows proper shrinking so it never overflows the popup */
    padding-bottom: 18px;   /* extra gap after Planta 2's image */
}
.lfl-popup__hr--inner {
    border: 0;
    border-top: 2px solid #d5d5d5;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* PLANTA 1 / PLANTA 2 heading */
.lfl-popup__planta-head {
    display: flex;
    flex-direction: column;   /* title stacked ABOVE subtitle */
    gap: 1px;
    margin-bottom: 8px;
}
.lfl-popup__planta-title {
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-family: "acumin-variable",sans-serif;
    font-variation-settings: 'wght' 600, 'wdth' 67.5, 'slnt' 0;
    line-height: 1.2;
    /* color set inline per-unit (navy for flat, orange for duplex) */
}
.lfl-popup__planta-piso {
    font-size: 11px;
    color: #999;
    font-family: 'AcuminConcept*', 'Source Sans 3', sans-serif;
    line-height: 1.2;
}
.lfl-popup__x {
    position: absolute;
    top: 8px; right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-size: 42px;
    line-height: 1;
    color: #163577;
    cursor: pointer;
    z-index: 3;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 400;
    font-family: Arial, sans-serif;   /* consistent × glyph rendering */
}
.lfl-popup__x::-moz-focus-inner { border: 0 !important; padding: 0 !important; }
.lfl-popup__x:hover,
.lfl-popup__x:focus,
.lfl-popup__x:active,
.lfl-popup__x:focus-visible {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #0e2450 !important;
}

/* Carousel */
.lfl-carousel {
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
    width: 100%;
    height: 360px;          /* taller on desktop */
    flex-shrink: 0;
}
.lfl-carousel--empty {
    background: #ebebeb;    /* blank placeholder when no images */
}
.lfl-carousel__track {
    display: flex;
    height: 100%;
    transition: transform .3s ease;
    will-change: transform;
}
.lfl-carousel__slide {
    flex: 0 0 100%;
    height: 100%;
}
.lfl-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;            /* fill fixed height */
    object-fit: cover;       /* cover — no distortion */
    object-position: center;
}
.lfl-carousel__nav {
    position: absolute; bottom: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.85);
    background: rgba(0,0,0,.2); color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; transition: background .15s;
}
.lfl-carousel__nav:hover { background: rgba(0,0,0,.5); }
.lfl-carousel__prev { left:  calc(50% - 42px); }
.lfl-carousel__next { right: calc(50% - 42px); }

/* Popup meta */
.lfl-popup__meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 42px 40px 34px;   /* padding increased further */
    font-weight: 500;            /* lighter — was too bold */
    font-size: 19px;            /* bigger text, matching reference */
    flex-wrap: nowrap;         /* keep icon + text on same line */
    overflow-x: auto;           /* scroll horizontally if too narrow, never wraps */
    -webkit-overflow-scrolling: touch;
}
.lfl-popup__meta::-webkit-scrollbar { display: none; }
.lfl-popup__mx   { font-size: 32px; font-weight: 800; line-height: 1; }
.lfl-popup__mbed { width: 58px; height: 58px; object-fit: contain; }
.lfl-popup__mdiv { width: 1px; height: 46px; background: #d8d8d8; }
.lfl-popup__mm2  { width: 44px; height: 44px; object-fit: contain; }
.lfl-popup__mareas {
  font-family: "acumin-variable",sans-serif;
  font-variation-settings: 'wght' 500, 'wdth' 50, 'slnt' 0;
  letter-spacing: 3.0px; font-size: 23px;
}
.lfl-popup__mareas .lfl-sep { color: #b0b0b0; margin: 0 7px; }
.lfl-popup__box hr.lfl-popup__hr,
.lfl-popup__hr {
    border: 0 !important;
    border-top: 2px solid #d5d5d5 !important;
    margin-top: 6px !important;
    margin-right: 40px !important;
    margin-bottom: 0 !important;
    margin-left: 40px !important;   /* default for the regular divider; overridden with !important via JS for the --plano variant */
    width: auto !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Popup body */
.lfl-popup__body {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 14px 40px 10px;
    align-items: flex-start;
}
.lfl-popup__rooms {
    flex: 0 0 auto;
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 150px;
}
.lfl-popup__rooms li {
    list-style: none !important;
    list-style-type: none !important;
    position: relative;
    padding: 0 0 0 16px;
    margin: 0 0 10px 0 !important;   /* gap between items */
    font-family: "acumin-variable",sans-serif;
    font-variation-settings: 'wght' 300, 'wdth' 100, 'slnt' 0;
    font-size: 13.5px;
    color: #676767;
    line-height: 1.4;
}
.lfl-popup__rooms li:last-child { margin-bottom: 0 !important; }
.lfl-popup__rooms li::marker { content: none !important; display: none !important; }
.lfl-popup__rooms li::-webkit-details-marker { display: none !important; }
/* Bullet now rendered as inline <span> in PHP output (bulletproof, no CSS override risk) */
.lfl-popup__plano {
    flex: 0 0 auto;             /* no grow — box only ever matches its own content, never stretches into extra space */
    height: auto;               /* auto — matches image's natural size, no forced empty gap */
    max-height: 420px;          /* capped so a very tall image doesn't blow up the popup */
    overflow: hidden;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lfl-popup__plano img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;        /* shows full plan without cropping, fits within box */
}

/* Popup footer */
.lfl-popup__foot {
    padding: 24px 22px;   /* taller footer on desktop */
    display: flex;
    justify-content: flex-end;
    background: #f7f7f7;
    border-top: 1px solid #ececec;
}
.lfl-popup__morebtn {
    background: #fff;
    border: 1px solid #163577;
    color: #163577;
    padding: 7px 14px;   /* smaller button */
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'AcuminConcept*', 'Source Sans 3', sans-serif;
    transition: all .2s;
}
.lfl-popup__morebtn:hover { background: #163577; color: #fff; }

/* Body scroll-lock is handled entirely via JS (position:fixed + top offset technique)
   so the page's scroll position is preserved exactly when the popup opens and closes. */
html.lfl-popup-open {
    overflow: hidden !important;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── TABLET LANDSCAPE (≤ 1024px) — e.g. iPad landscape ── */
@media (max-width: 1024px) {
    .lfl-tab { font-size: 20px; padding: 8px 10px; }
    .lfl-esquema__heading { font-size: 20px; }
    .lfl-esquema__text { font-size: 17px; }
    .lfl-esquema__row { flex-wrap: wrap; row-gap: 8px; }   /* wraps instead of overflowing if still too tight */
    .lfl-popup__hr--inner { margin: 32px 0; }
    .lfl-popup__mareas { font-size: 19px; }
}

/* ── TABLET (≤ 782px) ── */
@media (max-width: 782px) {
    .lfl-tab { font-size: 16px; padding: 10px 10px; }
    .lfl-hero img { height: 190px; }
    .lfl-group__list { justify-content: flex-start; padding-top: 24px; }
    .lfl-unit { margin: 0 0 2px 0; }        /* tighter gap between items */
    .lfl-unit__btn { padding: 3px 0; }       /* tighter gap between items */

    .lfl-esquema__heading { font-size: 16px; }
    .lfl-esquema__text { font-size: 17px; }
    .lfl-esquema__icon,
    .lfl-esquema__icon img { width: 40px; height: 40px; }

    .lfl-group { min-height: 130px; }
    .lfl-group__x { font-size: 44px; }
    .lfl-group__bed, .lfl-group__bed img { width: 74px; height: 74px; }
    .lfl-group__left { gap: 12px; padding: 26px 12px 26px 0; }
    .lfl-group__list { padding: 26px 0 26px 40px; }
    .lfl-group__list li { padding-left: 40px !important; }   /* tablet */
    .lfl-popup__hr--inner { margin: 26px 0; }
    .lfl-popup__mareas { font-size: 16px; }
}

/* ── LARGE PHONE (≤ 560px) — stack esquema items ── */
@media (max-width: 560px) {
    .lfl-tab { font-size: 14px; padding: 12px 8px; }
    .lfl-hero img { height: 170px; }
    .lfl-popup__piso { font-size: 18px; }   /* keep desktop's 26px from applying on mobile */
    .lfl-group__list { justify-content: flex-start; padding-top: 16px !important; }
    .lfl-unit { margin: 0 0 3px 0; }
    .lfl-unit__btn { padding: 4px 0; font-size: 17px; }   /* bigger text on mobile */
    .lfl-unit__arrow { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 9px; margin-right: 7px; }   /* bigger triangle on mobile */
    .lfl-popup__hr--inner { margin: 20px 0; }

    /* xN number + bed icon — smaller on mobile */
    .lfl-group__x { font-size: 42px; }
    .lfl-group__bed, .lfl-group__bed img { width: 70px; height: 70px; }

    /* Close X — bigger and easier to tap on mobile */
    .lfl-popup__x { font-size: 38px; top: 6px; right: 6px; width: 48px; height: 48px; padding: 0 !important; }

    /* Esquema: stack the 3 area items vertically */
    .lfl-esquema__heading { font-size: 15px; }
    .lfl-esquema__text {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        font-size: 17px;
    }
    .lfl-esquema__text .lfl-sep { display: none; }  /* hide "|" when stacked */
    .lfl-esquema__item { white-space: normal; }

    /* Groups: stack left (xN+icon) above list */
    .lfl-group {
        flex-direction: column;
        min-height: 0;
        margin-bottom: 24px;
    }
    .lfl-group__left {
        flex: none;
        width: 100%;
        justify-content: flex-start;
        padding: 18px 0 14px 0;
    }
    .lfl-group__list {
        flex: none;
        width: 100%;
        border-left: 0;                      /* no vertical divider when stacked */
        border-top: 1px solid #e0e0e0;       /* horizontal divider instead */
        padding: 14px 0 6px 0;
        justify-content: flex-start;
    }
    .lfl-group__list li { padding-left: 0 !important; }   /* reset — mobile stacks vertically, no left indent needed */

    /* Popup: near full-width */
    .lfl-popup { padding: 8px; }
    .lfl-popup__box { width: 100%; }
    .lfl-popup.is-open { padding: 12px 0; }
    .lfl-popup__label { min-width: 100px; padding: 0 16px; }
    .lfl-popup__num { font-size: 32px; }
    .lfl-popup__type { font-size: 16px; }
    .lfl-carousel { height: 220px; }
    .lfl-popup__meta { gap: 8px; padding: 14px 16px 6px; font-size: 11.5px; flex-wrap: nowrap; }
    .lfl-popup__mareas { font-size: 14px; white-space: nowrap; }
    .lfl-popup__mbed { width: 34px; height: 34px; }
    .lfl-popup__mm2  { width: 26px; height: 26px; }
    .lfl-popup__mx   { font-size: 19px; }
    .lfl-popup__body { flex-direction: column; padding: 6px 16px 8px; }
    .lfl-popup__rooms { width: 100%; min-width: 0; }
    .lfl-popup__plano { width: 100%; height: auto; max-height: 320px; }
    .lfl-popup__plantas-col { width: 100%; margin-top: 14px; }
    .lfl-popup__box hr.lfl-popup__hr,
    .lfl-popup__hr { margin: 6px 16px 0 !important; }
    .lfl-popup__foot { padding: 12px 16px; }
    .lfl-popup__morebtn { padding: 6px 12px; font-size: 8px; letter-spacing: 1px; }
}

/* ── SMALL PHONE (≤ 400px) ── */
@media (max-width: 400px) {
    .lfl-popup__x { font-size: 36px; top: 4px; right: 4px; width: 46px; height: 46px; padding: 0 !important; }
    .lfl-tab { font-size: 12px; letter-spacing: 1.5px; padding: 10px 6px; }
    .lfl-hero img { height: 150px; }
    .lfl-esquema__heading { font-size: 14px; }
    .lfl-esquema__text { font-size: 16px; }
    .lfl-unit__arrow { border-top-width: 5px; border-bottom-width: 5px; border-left-width: 8px; margin-right: 6px; }
    .lfl-popup__hr--inner { margin: 16px 0; }
    .lfl-popup__mareas { font-size: 12px; }
    .lfl-group__x { font-size: 40px; }
    .lfl-group__bed, .lfl-group__bed img { width: 68px; height: 68px; }
    .lfl-carousel { height: 190px; }
    .lfl-popup__label { min-width: 88px; padding: 0 12px; }
    .lfl-popup__num { font-size: 28px; }
    .lfl-popup__loc { padding: 6px 40px 6px 6px; }
    .lfl-popup__loc img { max-height: 56px; }
}
