.home-hero {
    background: #151515;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.loteamientos-hero {
    background: #f7f8fa;
}

.propiedades-hero {
    background: #fff;
}

.loteamientos-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: #f27405;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.loteamientos-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid rgba(242, 116, 5, .38);
    border-radius: 50%;
    background: #f27405;
}

.loteamientos-summary,
.loteamientos-toolbar,
.loteamiento-card,
.loteamiento-detail-shell {
    background: #fff;
    border: 1px solid rgba(15, 42, 68, .08);
    box-shadow: 0 18px 42px rgba(15, 42, 68, .08);
}

.loteamientos-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: 8px;
}

.loteamientos-summary div {
    padding: 1.25rem;
}

.loteamientos-summary div + div {
    border-left: 1px solid rgba(15, 42, 68, .08);
}

.loteamientos-summary strong,
.loteamientos-summary span {
    display: block;
}

.loteamientos-summary strong {
    color: #0f2a44;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1;
}

.loteamientos-summary span {
    margin-top: .4rem;
    color: #6c757d;
    font-size: .82rem;
}

.loteamientos-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: .85rem;
    border-radius: 8px;
}

.loteamientos-search {
    min-width: min(100%, 320px);
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 1rem;
    color: #6c757d;
    background: #f7f8fa;
    border: 1px solid rgba(15, 42, 68, .08);
    border-radius: 999px;
}

.loteamientos-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f2a44;
}

.loteamientos-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.loteamientos-filter {
    border: 1px solid rgba(15, 42, 68, .1);
    border-radius: 999px;
    padding: .68rem 1rem;
    color: #0f2a44;
    background: #fff;
    font-weight: 700;
}

.loteamientos-filter.active,
.loteamientos-filter:hover {
    color: #fff;
    border-color: #f27405;
    background: #f27405;
}

.loteamientos-results,
.loteamiento-detail {
    background: #fff;
}

.loteamiento-card {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 92px 1fr;
    overflow: hidden;
    color: #0f2a44;
    text-decoration: none;
    border-radius: 8px;
}

.loteamiento-card:hover {
    color: #0f2a44;
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(15, 42, 68, .13);
}

.loteamiento-card-map {
    display: grid;
    place-items: center;
    min-height: 178px;
    color: #f27405;
    background: #f4f6f8;
    font-size: 2rem;
}

.loteamiento-card-body {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.loteamiento-card-body small,
.loteamiento-card-metrics small {
    display: block;
    color: #6c757d;
    font-size: .78rem;
}

.loteamiento-card-body > span:first-child strong {
    display: block;
    margin-top: .2rem;
    font-size: 1.08rem;
    line-height: 1.2;
}

.loteamiento-status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 30px;
    padding: 0 .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}

.loteamiento-status.is-sold {
    color: #555;
    background: #f1f2f3;
}

.loteamiento-status.is-open {
    color: #126c43;
    background: #e8f7ef;
}

.loteamiento-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
}

.loteamiento-card-metrics span {
    padding: .7rem;
    background: #f7f8fa;
    border-radius: 8px;
}

.loteamiento-card-metrics strong {
    display: block;
    color: #0f2a44;
    font-size: 1rem;
    line-height: 1;
}

.loteamiento-card-action {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #f27405;
    font-weight: 800;
}

.loteamientos-empty {
    display: grid;
    justify-items: center;
    gap: .45rem;
    padding: 2.4rem;
    color: #6c757d;
    text-align: center;
    background: #f7f8fa;
    border: 1px dashed rgba(15, 42, 68, .18);
    border-radius: 8px;
}

.loteamientos-empty i {
    color: #f27405;
    font-size: 2rem;
}

.loteamientos-empty strong {
    color: #0f2a44;
    font-size: 1.05rem;
}

.loteamiento-detail {
    background: #f7f8fa;
}

.loteamiento-detail-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    min-height: min(76vh, 760px);
    overflow: hidden;
    border-radius: 8px;
}

.loteamiento-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: #fff;
    border-right: 1px solid rgba(15, 42, 68, .08);
}

.loteamiento-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #f27405;
    font-weight: 800;
    text-decoration: none;
}

.loteamiento-side-panel h1 {
    margin: 0;
    color: #0f2a44;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1;
}

.loteamiento-side-panel p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

.loteamiento-status-card {
    padding: 1rem;
    color: #0f2a44;
    background: #fff7f1;
    border: 1px solid rgba(242, 116, 5, .16);
    border-radius: 8px;
}

.loteamiento-status-card.is-sold {
    background: #f3f4f5;
    border-color: rgba(108, 117, 125, .18);
}

.loteamiento-status-card span,
.loteamiento-status-card strong {
    display: block;
}

.loteamiento-status-card span {
    color: #6c757d;
    font-size: .82rem;
    font-weight: 700;
}

.loteamiento-status-card strong {
    margin-top: .25rem;
    font-size: 1.45rem;
}

.loteamiento-legend {
    display: grid;
    gap: .7rem;
    padding: 1rem;
    background: #f7f8fa;
    border-radius: 8px;
}

.loteamiento-legend div {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #0f2a44;
    font-weight: 700;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.is-open {
    background: #198754;
}

.legend-dot.is-reserved {
    background: #f59f00;
}

.legend-dot.is-sold {
    background: #6c757d;
}

.loteamiento-note {
    padding: 1rem;
    color: #5b6269;
    background: #f7f8fa;
    border-left: 4px solid #f27405;
    border-radius: 8px;
    line-height: 1.5;
}

.loteamiento-detail-shell .loteamiento-map-shell {
    height: auto;
    min-height: 560px;
    border: 0;
    border-radius: 0;
}

.lot-popup {
    min-width: 210px;
    display: grid;
    gap: .55rem;
}

.lot-popup-kicker,
.lot-popup small {
    color: #6c757d;
    font-size: .76rem;
}

.lot-popup-title {
    color: #0f2a44;
    font-size: 1rem;
}

.lot-popup-status {
    width: fit-content;
    padding: .25rem .6rem;
    color: #fff;
    background: var(--lot-color, #198754);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

.lot-popup-row {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    padding-top: .45rem;
    border-top: 1px solid rgba(15, 42, 68, .1);
}

.lot-popup-row span {
    color: #6c757d;
}

.lot-popup-row strong {
    color: #0f2a44;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 42, 68, .18);
}

@media (max-width: 991.98px) {
    .loteamiento-detail-shell {
        grid-template-columns: 1fr;
    }

    .loteamiento-side-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 42, 68, .08);
    }

    .loteamiento-detail-shell .loteamiento-map-shell {
        min-height: 520px;
    }
}

@media (max-width: 575.98px) {
    .loteamientos-summary {
        grid-template-columns: 1fr;
    }

    .loteamientos-summary div + div {
        border-left: 0;
        border-top: 1px solid rgba(15, 42, 68, .08);
    }

    .loteamientos-toolbar {
        align-items: stretch;
    }

    .loteamientos-filter-group,
    .loteamientos-toolbar .btn,
    .loteamientos-filter {
        width: 100%;
    }

    .loteamiento-card {
        grid-template-columns: 1fr;
    }

    .loteamiento-card-map {
        min-height: 92px;
    }

    .loteamiento-card-metrics {
        grid-template-columns: 1fr;
    }

    .loteamiento-detail-shell .loteamiento-map-shell {
        min-height: 440px;
    }
}

.home-hero-kicker {
    color: #ffb176;
    letter-spacing: .16em;
    font-size: .85rem;
}

.home-hero-title {
    font-size: clamp(2.35rem, 5vw, 4.75rem);
    line-height: .98;
    max-width: 680px;
}

.home-hero-copy {
    max-width: 560px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
    line-height: 1.7;
}

.home-hero-carousel {
    position: relative;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 26px;
    bottom: auto;
    border-radius: 50%;
    background: rgba(13, 13, 13, .58);
    opacity: 1;
}

.home-hero-carousel .carousel-control-prev {
    left: auto;
    right: 84px;
}

.home-hero-carousel .carousel-control-next {
    right: 26px;
}

.home-hero-property {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 28px;
    background: #111;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.home-hero-property-media,
.home-hero-property-empty {
    min-height: 500px;
}

.home-hero-property-media {
    position: relative;
}

.home-hero-property-media img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    object-fit: cover;
}

.home-hero-property-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
}

.home-hero-property-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .26);
    background: #202020;
    font-size: 7rem;
}

.home-hero-property-panel {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 24px;
    color: #fff;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.home-hero-property-panel h2 {
    max-width: 520px;
    margin: .65rem 0 .45rem;
    color: #111;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.15;
}

.home-hero-property-panel p {
    margin: 0;
    color: #6c757d;
}

.home-hero-property-badge {
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    color: #fff;
    background: #f27405;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.home-hero-property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.1rem;
}

.home-hero-property-footer strong {
    color: #0d0d0d;
    font-size: 1.15rem;
}

.home-hero-property-footer a {
    color: #f27405;
    font-weight: 800;
}

.home-search-section {
    position: relative;
    z-index: 2;
    margin-top: -42px;
}

.home-search-card {
    padding: 26px;
    background: #fff;
    border: 1px solid rgba(13, 13, 13, .06);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(13, 13, 13, .14);
}

.home-whatsapp-cta {
    background: #fff;
}

.home-path-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: .15rem 1rem;
    height: 100%;
    padding: 24px;
    color: #0d0d0d;
    background: #fff;
    border: 1px solid rgba(13, 13, 13, .08);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(13, 13, 13, .07);
}

.home-path-card:hover {
    color: #0d0d0d;
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(13, 13, 13, .12);
}

.home-path-card span {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #f27405;
    border-radius: 16px;
    font-size: 1.35rem;
}

.home-path-card strong {
    align-self: end;
    font-size: 1.05rem;
}

.home-path-card small {
    color: #6c757d;
    line-height: 1.45;
}

.home-section-heading {
    padding: 28px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(13, 13, 13, .06);
}

.home-featured-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 31%);
    gap: 1.25rem;
    overflow-x: auto;
    padding: .4rem .2rem 1.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.home-featured-item {
    scroll-snap-align: start;
}

.home-featured-item .property-card {
    height: 100%;
}

.home-about-card {
    padding: clamp(1.4rem, 4vw, 3rem);
    background: #fff;
    border: 1px solid rgba(13, 13, 13, .08);
    border-radius: 26px;
    box-shadow: 0 18px 48px rgba(13, 13, 13, .08);
}

.home-about-list {
    display: grid;
    gap: .85rem;
}

.home-about-list div {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 16px;
}

.home-about-list i {
    color: #f27405;
    font-size: 1.25rem;
}

.home-whatsapp-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    background: #111;
    border-radius: 26px;
    box-shadow: 0 20px 52px rgba(13, 13, 13, .16);
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero-title {
        max-width: 720px;
    }

    .home-hero-property,
    .home-hero-property-media,
    .home-hero-property-media img,
    .home-hero-property-empty {
        min-height: 460px;
    }

    .home-search-section {
        margin-top: -28px;
    }

    .home-featured-rail {
        grid-auto-columns: minmax(280px, 48%);
    }

    .home-whatsapp-panel {
        display: grid;
        justify-items: start;
    }
}

.breadcrumb-title {
    max-width: 240px;
}

.property-main-media {
    max-height: 500px;
}

.property-main-media img {
    max-height: 500px;
    object-fit: cover;
}

.property-media-empty {
    height: 360px;
}

.property-gallery-img {
    height: 150px;
    object-fit: cover;
}

.property-map {
    height: 460px;
    min-height: 360px;
}

.property-sidebar {
    top: 80px;
}

.property-detail-price {
    font-size: 1.8rem;
    color: #1a3c5e;
}

.error-page {
    background: var(--color-surface);
    font-family: var(--bs-body-font-family);
}

.error-icon {
    font-size: 5rem;
}

.error-icon-primary,
.error-code-primary {
    color: #1a3c5e;
}

.error-code {
    line-height: 1;
}

.agent-grid {
    align-items: stretch;
}

.agent-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 42, 68, .1);
}

.agent-card-media {
    aspect-ratio: 4 / 3;
    background: #f3f6f8;
}

.agent-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agent-card-body {
    position: relative;
    margin: -24px 14px 14px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 42, 68, .1);
}

.agent-card-body h2 {
    margin: 0 0 4px;
    color: #0f2a44;
    font-size: .98rem;
    line-height: 1.25;
}

.agent-card-body p {
    margin: 0 0 12px;
    color: #6c757d;
    font-size: .84rem;
}

.agent-card-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    padding: .48rem .7rem;
    color: #fff;
    background: #25d366;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.agent-card-whatsapp:hover {
    color: #fff;
    background: #1fb759;
}

.agent-card-whatsapp span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-card-share {
    position: absolute;
    top: -18px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #f27405;
    box-shadow: 0 8px 16px rgba(242, 116, 5, .24);
    font-size: .82rem;
}

.identity-body {
    max-width: 760px;
    font-size: clamp(1rem, 1.1vw, 1.18rem);
    line-height: 1.65;
}

.contact-map-section {
    position: relative;
    height: min(58vh, 560px);
    min-height: 360px;
    background: #f3f6f8;
    overflow: hidden;
}

.contact-map-section iframe {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    filter: saturate(.92) contrast(1.02);
}

.contact-map-placeholder {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .55rem;
    color: #0f2a44;
    text-align: center;
    background: #f4f6f8;
    transition: opacity .35s ease, visibility .35s ease;
}

.contact-map-section.is-loaded .contact-map-placeholder {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.contact-map-placeholder strong {
    font-size: 1.1rem;
}

.contact-map-placeholder small {
    color: #6c757d;
}

.contact-map-loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(242, 116, 5, .18);
    border-top-color: #f27405;
    border-radius: 50%;
    animation: contactMapSpin .85s linear infinite;
}

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

.contact-info-section {
    position: relative;
    margin-top: -56px;
    z-index: 2;
    background: #f4f6f8;
}

.contact-info-card {
    min-height: 150px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
    padding: 1.45rem;
    color: #0f2a44;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(15, 42, 68, .08);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 42, 68, .1);
}

.contact-info-card:hover {
    color: #0f2a44;
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 42, 68, .14);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #f27405;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(242, 116, 5, .2);
}

.contact-info-card strong,
.contact-info-card small {
    display: block;
}

.contact-info-card strong {
    margin-bottom: .35rem;
    font-size: 1.05rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.contact-info-card small {
    color: #6c757d;
    line-height: 1.45;
}

.contact-office-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #0f2a44;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(15, 42, 68, .18);
}

.contact-office-card img {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    padding: .5rem;
    background: #fff;
    border-radius: 8px;
}

.contact-office-card dl {
    display: grid;
    gap: 1.15rem;
    margin: 0;
}

.contact-office-card div {
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.contact-office-card div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-office-card dt {
    color: rgba(255, 255, 255, .62);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.contact-office-card dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
}

.contact-info-section .row,
.contact-detail-section .row {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 575.98px) {
    .home-search-card .form-select,
    .home-search-card .form-control,
    .home-search-card .btn,
    .card .form-select,
    .card .form-control,
    .card .btn {
        min-height: 48px;
    }

    .home-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .home-hero-title {
        font-size: 2.25rem;
    }

    .home-hero-copy {
        font-size: 1rem;
    }

    .home-hero-property,
    .home-hero-property-media,
    .home-hero-property-media img,
    .home-hero-property-empty {
        min-height: 430px;
    }

    .home-hero-carousel .carousel-control-prev,
    .home-hero-carousel .carousel-control-next {
        top: 16px;
        width: 42px;
        height: 42px;
    }

    .home-hero-carousel .carousel-control-prev {
        right: 68px;
    }

    .home-hero-carousel .carousel-control-next {
        right: 16px;
    }

    .home-hero-property-panel {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 18px;
    }

    .home-hero-property-footer {
        display: block;
    }

    .home-hero-property-footer a {
        display: inline-block;
        margin-top: .65rem;
    }

    .home-search-card {
        padding: 18px;
    }

    .home-path-card {
        grid-template-columns: 48px 1fr;
        padding: 18px;
    }

    .home-path-card span {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .home-section-heading {
        padding: 22px;
    }

    .home-section-heading .btn {
        width: 100%;
    }

    .home-featured-rail {
        grid-auto-columns: minmax(260px, 86%);
    }

    .home-whatsapp-panel {
        text-align: left;
    }

    .home-whatsapp-panel .btn {
        width: 100%;
    }

    .agent-card-body {
        margin: -20px 12px 14px;
        padding: 14px;
    }

    .contact-map-section {
        height: 360px;
    }

    .contact-info-section {
        margin-top: 0;
    }

    .contact-info-card {
        min-height: auto;
        padding: 1.2rem;
    }

    .contact-info-card strong {
        font-size: 1rem;
    }
}
