.housivo-search-shell,
.housivo-widget {
    --housivo-surface: #ffffff;
    --housivo-surface-soft: #f4f7fb;
    --housivo-surface-strong: #eef4fb;
    --housivo-border: #d9e3ee;
    --housivo-border-strong: #c5d4e3;
    --housivo-text: #18232f;
    --housivo-muted: #5f6c79;
    --housivo-muted-strong: #41505f;
    --housivo-accent: #0e6ab8;
    --housivo-accent-strong: #0a568f;
    --housivo-icon-color: var(--housivo-accent);
    --housivo-button-bg: var(--housivo-accent);
    --housivo-button-text: #ffffff;
    --housivo-success: #e8f5ec;
    --housivo-warning: #fff3df;
    --housivo-danger: #fdebed;
    background: var(--housivo-widget-background, linear-gradient(180deg, #ffffff 0%, #f8fbff 100%));
    border: 1px solid var(--housivo-border);
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(15, 32, 52, 0.08);
    color: var(--housivo-text);
}

.housivo-search-shell {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.housivo-search {
    display: grid;
    gap: 18px;
}

.housivo-search__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.housivo-search--inline .housivo-search__grid {
    align-items: end;
}

.housivo-search--stacked .housivo-search__grid {
    align-items: start;
}

.housivo-search-field {
    grid-column: span 3;
    min-width: 0;
}

.housivo-search-field--wide {
    grid-column: span 6;
}

.housivo-search-field--checkbox {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.housivo-search-field label,
.housivo-search-field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--housivo-muted-strong);
}

.housivo-search-field .housivo-toggle {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    margin-bottom: 0;
    line-height: 1;
}

.housivo-search-field__control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    background: var(--housivo-surface);
    border: 1px solid var(--housivo-border-strong);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.housivo-search-field__control:focus-within {
    border-color: rgba(14, 106, 184, 0.65);
    box-shadow: 0 0 0 4px rgba(14, 106, 184, 0.12);
}

.housivo-search-field__icon,
.housivo-fact__icon,
.housivo-single__fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--housivo-icon-color);
    flex: 0 0 auto;
}

.housivo-search-field input:not([type="checkbox"]):not([type="radio"]),
.housivo-search-field select {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    min-height: 40px;
    color: var(--housivo-text);
    box-shadow: none;
}

.housivo-search-field input[type="number"]::-webkit-outer-spin-button,
.housivo-search-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.housivo-search-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.housivo-search-field input:not([type="checkbox"]):not([type="radio"]):focus,
.housivo-search-field select:focus {
    outline: 0;
    box-shadow: none;
}

.housivo-toggle {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--housivo-border-strong);
    border-radius: 16px;
    background: var(--housivo-surface);
    color: var(--housivo-text);
    line-height: 1;
}

.housivo-toggle__control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.housivo-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--housivo-accent);
    flex: 0 0 auto;
    align-self: center;
}

.housivo-toggle__text {
    display: block;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.housivo-search__actions,
.housivo-widget__actions,
.housivo-card__actions,
.housivo-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.housivo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.housivo-button__label {
    display: inline-block;
    min-width: 0;
    line-height: inherit;
}

.housivo-button__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: auto;
    line-height: 1;
}

.housivo-button__icon svg {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    vertical-align: middle;
}

.housivo-button:hover {
    transform: translateY(-1px);
}

.housivo-button.is-disabled,
.housivo-button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.housivo-button--primary {
    background: linear-gradient(135deg, var(--housivo-button-bg) 0%, color-mix(in srgb, var(--housivo-button-bg) 84%, #000 16%) 100%);
    border-color: color-mix(in srgb, var(--housivo-button-bg) 72%, #000 28%);
    color: var(--housivo-button-text);
    box-shadow: 0 10px 24px rgba(14, 106, 184, 0.2);
}

.housivo-button--secondary {
    background: var(--housivo-surface-strong);
    border-color: var(--housivo-border-strong);
    color: var(--housivo-text);
    box-shadow: none;
}

.housivo-button--outline {
    background: transparent;
    border-color: var(--housivo-accent);
    color: var(--housivo-accent);
    box-shadow: none;
}

.housivo-button--ghost {
    background: var(--housivo-surface-soft);
    border-color: var(--housivo-border-strong);
    color: var(--housivo-text);
}

.housivo-button--size-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.92rem;
}

.housivo-button--size-lg {
    min-height: 54px;
    padding: 0 24px;
    font-size: 1.02rem;
}

.housivo-button--circle {
    border-radius: 999px;
}

/* CTA modifiers used by Single Property section controls (Bricks parity). */
.housivo-button--outline-mod {
    background: transparent;
    box-shadow: none;
    border-color: currentColor;
}

/* Single Property buttons intentionally use native Bricks classes only. */
.housivo-property-shell .bricks-button .housivo-sp-button__icon svg {
    width: 1em;
    height: 1em;
}

.housivo-filter-chips,
.housivo-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--housivo-query-badge-gap, 10px);
}

.housivo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: var(--housivo-query-badge-padding, 0 12px);
    border-radius: 999px;
    background: var(--housivo-query-badge-background, #1f2a37);
    border: var(--housivo-query-badge-border, 1px solid rgba(255, 255, 255, 0.16));
    box-shadow: var(--housivo-query-badge-shadow, none);
    color: var(--housivo-query-badge-color, #ffffff);
    font-size: 0.84rem;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

.housivo-chip--accent {
    background: var(--housivo-query-featured-badge-background, #0b67b4);
    border: var(--housivo-query-featured-badge-border, 1px solid rgba(11, 103, 180, 0.55));
    box-shadow: var(--housivo-query-featured-badge-shadow, none);
    color: var(--housivo-query-featured-badge-color, #ffffff);
    padding: var(--housivo-query-featured-badge-padding, var(--housivo-query-badge-padding, 0 12px));
}

.housivo-chip--soft {
    background: #475467;
    border-color: rgba(71, 84, 103, 0.55);
    color: #ffffff;
}

.housivo-chip--warning {
    background: #b54708;
    border-color: rgba(181, 71, 8, 0.5);
    color: #ffffff;
}

.housivo-chip--danger {
    background: #b42318;
    border-color: rgba(180, 35, 24, 0.5);
    color: #ffffff;
}

.housivo-chip--contract {
    background: #155eef;
    border-color: rgba(21, 94, 239, 0.5);
}

.housivo-chip--status {
    background: #344054;
    border-color: rgba(52, 64, 84, 0.5);
}

.housivo-chip--type {
    background: #0e9384;
    border-color: rgba(14, 147, 132, 0.5);
}

.housivo-property-shell__hero-badges .housivo-chip,
.housivo-card__badges .housivo-chip {
    backdrop-filter: blur(4px);
}

.housivo-operator {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.housivo-operator__media {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--housivo-border);
}

.housivo-operator__media img,
.housivo-operator__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.housivo-operator__content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.housivo-module-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.3rem);
    line-height: 1.08;
}

.housivo-module-price {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 800;
    color: var(--housivo-icon-color);
}

.housivo-module-stack {
    display: grid;
    gap: 14px;
}

.housivo-widget--query {
    display: grid;
    gap: 22px;
}

.housivo-loop-parent {
    align-self: flex-start !important;
    margin-top: 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    align-content: start !important;
    justify-content: flex-start !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
}

.housivo-loop-parent > .housivo-loop-cell {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch !important;
    min-width: 0;
    width: 100%;
    min-height: 0;
    height: 100%;
    align-self: stretch !important;
    justify-self: stretch !important;
}

.housivo-loop-item,
.housivo-cards__item {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    justify-self: stretch;
    align-self: stretch;
}

.housivo-loop-parent > .housivo-loop-cell > .housivo-loop-item,
.housivo-loop-parent > .housivo-loop-cell > .housivo-cards__item,
.housivo-loop-item,
.housivo-cards__item {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    height: 100%;
}

.housivo-loop-parent > .housivo-loop-cell > .housivo-loop-item > .housivo-card,
.housivo-loop-parent > .housivo-loop-cell > .housivo-cards__item > .housivo-card,
.housivo-loop-item > .housivo-card,
.housivo-cards__item > .housivo-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    height: 100%;
}

.housivo-cards {
    --housivo-cards-cols-desktop: 3;
    --housivo-cards-cols-tablet: 2;
    --housivo-cards-cols-mobile: 1;
    --housivo-cards-gap-x: 22px;
    --housivo-cards-gap-y: 22px;
    display: grid;
    grid-template-columns: repeat(var(--housivo-cards-cols-desktop), minmax(0, 1fr));
    column-gap: var(--housivo-cards-gap-x);
    row-gap: var(--housivo-cards-gap-y);
}

.housivo-cards--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.housivo-cards--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.housivo-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--housivo-surface);
    border: 1px solid var(--housivo-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 32, 52, 0.08);
    align-self: stretch;
}

.housivo-card__media {
    --housivo-card-media-ratio: 4 / 3;
    --housivo-card-image-fit: cover;
    --housivo-card-image-position: center center;
    position: relative;
    display: block;
    aspect-ratio: var(--housivo-card-media-ratio);
    min-height: 0;
    background: linear-gradient(145deg, #dde8f5 0%, #f7fbff 100%);
    text-decoration: none;
}

.housivo-card__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: var(--housivo-card-image-fit);
    object-position: var(--housivo-card-image-position);
    display: block;
}

.housivo-card__badges {
    position: absolute;
    inset: 16px 16px auto 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.housivo-card__placeholder {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 100%;
    padding: 28px;
    text-align: center;
    color: var(--housivo-muted);
    background: radial-gradient(circle at top, rgba(14, 106, 184, 0.08), rgba(255, 255, 255, 0.92));
}

.housivo-card__placeholder span {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--housivo-icon-color);
}

.housivo-card__placeholder--hero {
    min-height: 100%;
}

.housivo-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    align-items: stretch;
}

.housivo-card__location,
.housivo-single__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--housivo-muted);
    font-size: 0.92rem;
}

.housivo-card__topline {
    display: grid;
    gap: 8px;
}

.housivo-card__title {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.2;
}

.housivo-card__title a {
    color: inherit;
    text-decoration: none;
}

.housivo-card__price,
.housivo-single__price {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--housivo-icon-color);
}

.housivo-card__excerpt {
    margin: 0;
    color: var(--housivo-muted);
    line-height: 1.6;
}

.housivo-card--compact .housivo-card__media,
.housivo-card--compact .housivo-card__image,
.housivo-card--compact .housivo-card__placeholder {
    min-height: 190px;
}

.housivo-card--compact .housivo-card__body {
    padding: 18px;
    gap: 12px;
}

.housivo-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.housivo-fact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    background: var(--housivo-surface-soft);
    color: var(--housivo-muted-strong);
    font-size: 0.88rem;
    font-weight: 700;
}

.housivo-fact__icon {
    cursor: help;
}

.housivo-single {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.housivo-single__media,
.housivo-single__content {
    min-width: 0;
}

.housivo-single__hero {
    height: 100%;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--housivo-surface-soft);
}

.housivo-single__image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.housivo-single__content {
    display: grid;
    gap: 18px;
    padding: 4px 0;
}

.housivo-single__header {
    display: grid;
    gap: 12px;
}

.housivo-single__header h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.05;
}

.housivo-single__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.housivo-single__fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--housivo-surface-soft);
}

.housivo-single__fact small {
    display: block;
    color: var(--housivo-muted);
    margin-bottom: 4px;
}

.housivo-single__description {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f7fc 100%);
    color: var(--housivo-muted-strong);
    line-height: 1.7;
}

.housivo-widget__empty-state {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 220px;
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--housivo-border-strong);
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

.housivo-widget__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(14, 106, 184, 0.12);
    color: var(--housivo-icon-color);
}

.housivo-widget__empty {
    margin: 0;
    color: var(--housivo-muted);
}

.housivo-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.housivo-pagination a,
.housivo-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--housivo-border-strong);
    background: var(--housivo-surface);
    text-decoration: none;
    color: var(--housivo-text);
    font-weight: 700;
}

.housivo-pagination .current {
    background: var(--housivo-button-bg);
    border-color: var(--housivo-button-bg);
    color: var(--housivo-button-text);
}

.housivo-widget__load.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.housivo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 13, 23, 0.86);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.housivo-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.housivo-lightbox__image {
    display: block;
    max-width: min(92vw, 1440px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.housivo-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f2034;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}



@media (max-width: 1180px) {
    .housivo-cards { grid-template-columns: repeat(var(--housivo-cards-cols-tablet), minmax(0, 1fr)); }

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

@media (max-width: 860px) {
    .housivo-search-shell,
    .housivo-widget,
    .housivo-search-shell {
        padding: 20px;
        border-radius: 22px;
    }

    .housivo-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .housivo-search-field,
    .housivo-search-field--wide,
    .housivo-search-field--checkbox {
        grid-column: span 1;
    }

    .housivo-single__facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .housivo-search__actions,
    .housivo-widget__actions,
    .housivo-card__actions,
    .housivo-single__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .housivo-search__grid {
        grid-template-columns: 1fr;
    }

    .housivo-cards {
        grid-template-columns: repeat(var(--housivo-cards-cols-mobile), minmax(0, 1fr));
    }

    .housivo-card__media,
    .housivo-card__image,
    .housivo-card__placeholder,
    .housivo-single__hero,
    .housivo-single__image {
        min-height: 220px;
    }
}

.housivo-filter-chips--quiet {
    justify-content: flex-end;
}

.housivo-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.housivo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(15, 32, 52, 0.12);
    border-color: rgba(14, 106, 184, 0.2);
}

.housivo-card__actions {
    margin-top: auto;
}

.housivo-card__body > .housivo-card__actions {
    margin-top: auto;
}

.housivo-card__topline {
    gap: 10px;
}

.housivo-card__price,
.housivo-property-shell__price,
.housivo-single__price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.housivo-property-shell {
    display: block;
}

.housivo-widget--single-template {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.housivo-property-shell__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px 28px;
    align-items: start;
}

.housivo-property-shell--layout-two-columns .housivo-property-shell__layout {
    grid-template-columns: minmax(0, 1fr);
}

.housivo-property-shell__layout-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 18px 28px;
    align-items: start;
    grid-column: 1 / -1;
}

.housivo-property-shell__layout-column {
    display: grid;
    gap: 18px;
    min-width: 0;
    align-content: start;
}

.housivo-property-shell__layout-item,
.housivo-property-shell__media-wrap,
.housivo-property-shell__content,
.housivo-property-shell__headline-meta {
    min-width: 0;
}

.housivo-property-shell--layout-two-columns .housivo-property-shell__layout-item--full {
    grid-column: 1 / -1;
}

.housivo-property-shell--layout-two-columns .housivo-property-shell__layout-item--main {
    grid-column: 1;
}

.housivo-property-shell--layout-two-columns .housivo-property-shell__layout-item--side {
    grid-column: 2;
}

.housivo-property-shell__meta-block {
    display: grid;
    gap: 10px;
}

.housivo-property-shell__meta-block--price {
    justify-items: start;
}

.housivo-property-shell__hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(145deg, #dde8f5 0%, #f7fbff 100%);
    border: 1px solid rgba(15, 32, 52, 0.08);
}

.housivo-property-shell__hero-link,
.housivo-property-shell__thumb-link,
.housivo-lightbox-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: zoom-in;
}

.housivo-property-shell__hero-image {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    display: block;
}

.housivo-property-shell__hero-badges {
    position: absolute;
    inset: 18px 18px auto 18px;
}

.housivo-property-shell__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.housivo-property-shell__thumb {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--housivo-border);
    background: var(--housivo-surface-soft);
    min-height: 112px;
}

.housivo-property-shell__thumb img,
.housivo-property-shell__thumb-image {
    width: 100%;
    height: 100%;
    min-height: 112px;
    display: block;
    object-fit: cover;
}

html.housivo-bricks-preview .housivo-cards {
    grid-template-columns: repeat(var(--housivo-cards-cols-desktop), minmax(0, 1fr));
}

.housivo-property-shell__heading {
    display: grid;
    gap: 10px;
}

.housivo-property-shell__heading h3 {
    margin: 0;
    font-size: clamp(1.65rem, 2.9vw, 2.45rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.housivo-property-shell__price {
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.housivo-property-shell__layout-item--cta .housivo-property-shell__footer {
    justify-content: flex-start;
}

.housivo-property-shell__section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--housivo-border);
    background-color: #ffffff;
}

.housivo-property-shell__section--prose {
    gap: 16px;
}

.housivo-property-shell__section-head {
    display: grid;
    gap: 6px;
}

.housivo-property-shell__section-head h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.housivo-property-shell__section-head p {
    margin: 0;
    color: var(--housivo-muted);
    line-height: 1.55;
}

.housivo-property-shell__details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.housivo-property-shell__detail-row {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--housivo-surface-soft);
}

.housivo-property-shell__detail-row dt {
    margin: 0;
    color: var(--housivo-muted);
    font-size: 0.88rem;
}

.housivo-property-shell__detail-row dd {
    margin: 0;
    font-weight: 700;
    color: var(--housivo-text);
}

.housivo-property-shell__prose {
    color: var(--housivo-muted-strong);
    line-height: 1.72;
}

.housivo-property-shell__prose > :first-child {
    margin-top: 0;
}

.housivo-property-shell__prose > :last-child {
    margin-bottom: 0;
}

.housivo-property-shell__footer,
.housivo-property-shell__headline-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


@media (max-width: 1180px) {
    .housivo-property-shell--layout-two-columns .housivo-property-shell__layout {
        grid-template-columns: 1fr;
    }

    .housivo-property-shell--tablet-layout-single .housivo-property-shell__layout-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .housivo-property-shell--tablet-layout-two-columns .housivo-property-shell__layout-columns {
        grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    }
}

@media (max-width: 860px) {
    .housivo-property-shell--mobile-layout-single .housivo-property-shell__layout-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .housivo-property-shell--mobile-layout-two-columns .housivo-property-shell__layout-columns {
        grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    }

    .housivo-property-shell__details-grid,
    .housivo-property-shell__thumbs {
        grid-template-columns: 1fr;
    }

    .housivo-operator {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

.housivo-lightbox__dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(96vw, 1680px);
    min-height: min(92vh, 980px);
    padding: 56px 74px 42px;
}

.housivo-lightbox__figure {
    margin: 0;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.housivo-lightbox__caption,
.housivo-lightbox__counter {
    color: #f4f7fb;
    font-size: 0.95rem;
    line-height: 1.45;
}

.housivo-lightbox__counter {
    position: absolute;
    inset: auto 50% 10px auto;
    transform: translateX(50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 15, 23, 0.64);
}

.housivo-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 15, 23, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.housivo-lightbox__nav:hover {
    background: rgba(10, 15, 23, 0.88);
}

.housivo-lightbox__nav--prev {
    left: 14px;
}

.housivo-lightbox__nav--next {
    right: 14px;
}

@media (max-width: 860px) {
    .housivo-lightbox__dialog {
        width: 100vw;
        min-height: 100vh;
        padding: 52px 20px 34px;
    }

    .housivo-lightbox__nav {
        width: 42px;
        height: 42px;
    }

    .housivo-lightbox__nav--prev {
        left: 10px;
    }

    .housivo-lightbox__nav--next {
        right: 10px;
    }
}


html.housivo-bricks-preview .housivo-loop-parent,
.bricks-is-frontend .housivo-loop-parent {
    align-self: flex-start;
    margin-top: 0 !important;
    align-items: stretch;
    align-content: start;
}

html.housivo-bricks-preview .housivo-loop-parent > .housivo-loop-cell,
.bricks-is-frontend .housivo-loop-parent > .housivo-loop-cell,
html.housivo-bricks-preview .housivo-loop-item,
.bricks-is-frontend .housivo-loop-item {
    min-height: 0;
    height: 100%;
}

html.housivo-bricks-preview .housivo-loop-parent > .housivo-loop-cell > .housivo-loop-item > .housivo-card,
.bricks-is-frontend .housivo-loop-parent > .housivo-loop-cell > .housivo-loop-item > .housivo-card,
html.housivo-bricks-preview .housivo-loop-item > .housivo-card,
.bricks-is-frontend .housivo-loop-item > .housivo-card {
    min-height: 0;
    height: 100%;
}

.housivo-loop-parent > .housivo-loop-cell > .housivo-loop-item > .housivo-card,
.housivo-loop-parent > .housivo-loop-cell > .housivo-cards__item > .housivo-card,
.housivo-loop-item > .housivo-card,
.housivo-cards__item > .housivo-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.housivo-card__topline {
    align-items: stretch;
}

.housivo-card__actions {
    align-self: stretch;
    width: 100%;
}

.housivo-card__actions .housivo-button {
    align-self: flex-start;
}


/* Bricks button-state bridge for custom-element output.
   Housivo only forces the outline geometry/transparent fill. Colors stay tied
   to Bricks classes such as bricks-color-primary/currentColor. */
.housivo-property-shell .bricks-button.outline {
    background: transparent !important;
    background-image: none !important;
    border-color: currentColor !important;
    border-style: solid !important;
    box-shadow: none !important;
}

.housivo-property-shell .bricks-button.circle {
    border-radius: 999px !important;
}

