.property-card,
.property-map,
.property-gallery,
.property-single__terms {
    --homlity-primary-color: #ff6752;
    --homlity-primary-color-rgb: 255, 103, 82;
    --homlity-primary-color-soft: rgba(255, 103, 82, 0.12);
    --homlity-primary-color-strong: rgba(255, 103, 82, 0.18);
    --homlity-secondary-color: #37384a;
}

/* Divi font icons used by the adapted Homlity widgets. Their size must come
   from the widget context or its design control, never from Divi's 96px icon
   module default. */
.homlity-divi-icon {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1em;
    justify-content: center;
    max-height: 1em;
    max-width: 1em;
    speak: none;
    vertical-align: -0.125em;
    width: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.property-card {
    background: #fff;
    border: 1px solid rgba(55, 56, 74, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(55, 56, 74, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.property-card:hover {
    border-color: var(--homlity-primary-color-strong);
    box-shadow: 0 24px 54px rgba(var(--homlity-primary-color-rgb), 0.16);
    transform: translateY(-3px);
}

.property-card__gallery {
    display: block;
    gap: 0;
    grid-template-columns: 1fr;
    min-height: 200px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.property-card__gallery img {
    border-radius: 0;
    display: block;
    height: 200px;
    margin: 0;
    object-fit: cover;
    width: 100%;
}

.property-card__title,
.property-card__excerpt,
.property-card__features,
.property-card__price {
    padding-left: 20px;
    padding-right: 20px;
}

.property-card__title {
    color: #37384a;
    font-size: 1.2rem;
    margin: 8px 0 10px;
}

.property-card__excerpt {
    color: rgba(55, 56, 74, 0.82);
    line-height: 1.7;
    margin-bottom: 14px;
}

.property-card__features {
    color: rgba(55, 56, 74, 0.72);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
    margin: 0 0 12px;
    padding-bottom: 0;
    padding-left: 20px;
}

.property-card__price {
    color: var(--homlity-primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.property-card__whatsapp {
    align-items: center;
    background: linear-gradient(135deg, var(--homlity-primary-color), rgba(var(--homlity-primary-color-rgb), 0.72));
    color: #ffffff;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    margin: 0 20px 20px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
}

.property-single__terms {
    background: var(--homlity-primary-color-soft);
    border-radius: 999px;
    color: var(--homlity-primary-color);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 8px 8px 0;
    padding: 8px 12px;
}

.property-gallery {
    display: grid;
    gap: 16px;
}

.property-gallery--light {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.property-gallery__item--light {
    background: #fff;
    border-radius: 26px;
    display: block;
    grid-column: span 4;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.property-gallery__item--light:first-child {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 520px;
}

.property-gallery__item--light img,
.property-gallery__slide img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.property-gallery__item--light:not(:first-child) {
    min-height: 248px;
}

.property-gallery--owl .owl-stage-outer {
    border-radius: 28px;
    overflow: hidden;
}

.property-gallery__slide {
    margin: 0;
}

.property-gallery__slide-link {
    display: block;
    height: 100%;
}

.property-gallery__slide img {
    aspect-ratio: 16 / 10;
}

.property-gallery--owl .owl-dots {
    margin-top: 14px;
    text-align: center;
}

.property-gallery--owl .owl-dot span {
    background: rgba(var(--homlity-primary-color-rgb), 0.16) !important;
    transition: transform 0.18s ease, background 0.18s ease;
}

.property-gallery--owl .owl-dot.active span,
.property-gallery--owl .owl-dot:hover span {
    background: var(--homlity-primary-color) !important;
    transform: scale(1.08);
}

.property-map {
    --hml-property-map-height: 420px;
    background: #fff;
    border: 1px solid rgba(55, 56, 74, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(55, 56, 74, 0.08);
    padding: 24px;
    position: relative;
}

.property-map__tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    left: 38px;
    position: absolute;
    top: 38px;
    z-index: 1000;
}

.property-map__tab {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(var(--homlity-primary-color-rgb), 0.26);
    border-radius: 999px;
    color: #25263a;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    line-height: 1;
    padding: 10px 14px;
    white-space: nowrap;
}

.property-map__tab-icon {
    align-items: center;
    display: inline-flex;
    font-size: 0.95em;
    line-height: 1;
}

.property-map__tab.is-active {
    background: var(--homlity-primary-color);
    border-color: var(--homlity-primary-color);
    color: #fff;
}

.property-map__frame {
    background: linear-gradient(180deg, #fff, #fff6f4);
    border: 1px solid rgba(var(--homlity-primary-color-rgb), 0.12);
    border-radius: 24px;
    min-height: var(--hml-property-map-height);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.property-map__panel {
    display: none;
    min-height: var(--hml-property-map-height);
    width: 100%;
}

.property-map__panel.is-active {
    display: block;
}

.property-map__leaflet {
    height: var(--hml-property-map-height);
    width: 100%;
}

.property-map__street-canvas,
.property-map iframe {
    border: 0;
    display: block;
    height: var(--hml-property-map-height);
    min-height: var(--hml-property-map-height);
    width: 100%;
}

/* Ensure the hidden attribute is respected even when display:block is set above */
.property-map__street-canvas[hidden],
.property-map iframe[hidden] {
    display: none;
}

.property-map__street-fallback,
.property-map__empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed rgba(var(--homlity-primary-color-rgb), 0.35);
    border-radius: 14px;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin: 0;
    min-height: var(--hml-property-map-height);
    padding: 22px;
    text-align: center;
}

.property-map__tab.is-disabled {
    cursor: not-allowed;
    opacity: .55;
}

.homlity-related-marker {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.28);
    display: flex;
    justify-content: center;
}

.homlity-map-marker__wrap {
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.28);
    box-sizing: border-box;
    display: flex;
    height: 36px;
    justify-content: center;
    overflow: hidden;
    width: 36px;
}

.homlity-map-marker__wrap img {
    display: block;
    height: 22px;
    object-fit: contain;
    width: 22px;
}

.homlity-related-marker__dot {
    background: #2563eb;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
    display: block;
    height: 14px;
    width: 14px;
}

.property-map__powered-by {
    color: #6b7280;
    font-size: 12px;
    margin: 10px 4px 0;
    text-align: right;
}

.property-map__powered-by a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.property-map__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0;
}

.property-map__actions a {
    background: var(--homlity-primary-color-soft);
    border-radius: 999px;
    color: var(--homlity-primary-color);
    font-weight: 700;
    padding: 10px 16px;
    text-decoration: none;
}

.property-map__action-button {
    background: var(--homlity-primary-color-soft);
    border: 0;
    border-radius: 999px;
    color: var(--homlity-primary-color);
    cursor: pointer;
    font-weight: 700;
    padding: 10px 16px;
}

.property-map__copy-feedback {
    color: #0f766e;
    font-size: 13px;
    margin: 10px 0 0;
}

.property-share-widget--inline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.property-share-widget__heading {
    color: #1f1f1f;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.property-share-widget__list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.property-share__item {
    margin: 0;
    padding: 0;
}

.property-share__link {
    align-items: center;
    color: #5fa66a;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    text-decoration: none;
    transition: transform .16s ease, color .16s ease, opacity .16s ease;
}

.property-share__link:hover {
    color: #4b9458;
    opacity: .95;
    transform: translateY(-1px);
}

.property-share__link .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.property-share__icon,
.property-share__icon i,
.property-share__icon .homlity-divi-icon,
.property-share__icon svg {
    display: block;
    height: 1em;
    line-height: 1;
    width: 1em;
}

.property-share__icon {
    font-size: 20px;
}

.property-share__copy.is-copied {
    color: #2f7d42;
}

.property-share-widget--labels-hidden .property-share__label {
    display: none;
}

.property-share__toggle-btn {
    align-items: center;
    background: none;
    border: 1px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    gap: 4px;
    line-height: 1.2;
    padding: 5px 10px;
    transition: opacity .16s ease;
    white-space: nowrap;
}

.property-share__toggle-btn:hover {
    opacity: .8;
}

.property-tech-sheet-btn-wrap {
    /* En columna para que el aviso de estado quede debajo del botón, y
       `flex-start` porque en columna el reparto por defecto estiraría el botón
       a todo el ancho del contenedor —en fila no lo hacía—. */
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.property-tech-sheet-btn {
    align-items: center;
    background: var(--homlity-primary-color);
    border: 1px solid var(--homlity-primary-color);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1.1;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

.property-tech-sheet-btn:hover {
    color: #fff;
    opacity: 0.92;
}

/* ── Estado de descarga de la ficha ─────────────────────────────────────────
   El PDF lo compone Dompdf en el momento de pedirlo, y eso tarda. Como la
   respuesta es un adjunto, el navegador no navega ni pinta indicador alguno:
   sin lo que sigue el botón se queda quieto y parece que el clic no llegó.
   Lo enciende technical-sheet-download.js añadiendo `is-loading`. */

.property-tech-sheet-btn__spinner {
    display: none;
}

.property-tech-sheet-btn.is-loading {
    cursor: progress;
    /* Sin bajar la opacidad del todo: el texto del botón cambia a «Generando
       ficha…» y tiene que seguir leyéndose. */
    opacity: 0.85;
}

.property-tech-sheet-btn.is-loading .property-tech-sheet-btn__spinner {
    animation: homlity-tech-sheet-spin 0.7s linear infinite;
    /* Tres cuartos de aro en el color del texto y el cuarto que falta
       transparente: es el hueco lo que hace visible el giro. En `currentColor`
       y no en un gris fijo porque el botón lo repinta cada constructor —fondo
       oscuro o claro— y un aro de color fijo desaparecería en la mitad de los
       casos. */
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    display: inline-block;
    flex: none;
    height: 14px;
    margin-right: 8px;
    width: 14px;
}

@keyframes homlity-tech-sheet-spin {
    to { transform: rotate(360deg); }
}

/* Girar sin parar marea a quien pidió menos movimiento. El aro se queda
   quieto y late, que sigue diciendo «esto está en marcha». */
@media (prefers-reduced-motion: reduce) {
    .property-tech-sheet-btn.is-loading .property-tech-sheet-btn__spinner {
        animation: homlity-tech-sheet-pulse 1.4s ease-in-out infinite;
        border-right-color: currentColor;
    }

    @keyframes homlity-tech-sheet-pulse {
        50% { opacity: 0.25; }
    }
}

.property-tech-sheet-btn__status {
    display: none;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

.property-tech-sheet-btn__status.is-visible {
    display: block;
}

.homlity-tech-sheet {
    /* Every value below is a custom property so the Elementor/Divi/WPBakery
       "Ficha técnica del inmueble" widget can override spacing and colours
       without fighting specificity. */
    --sheet-max-width: 1080px;
    --sheet-gap: 12px;
    --sheet-card-bg: #fff;
    --sheet-card-border-color: rgba(15, 23, 42, 0.08);
    --sheet-card-radius: 14px;
    --sheet-card-padding: 14px;
    --sheet-heading-color: var(--sheet-primary, var(--homlity-primary-color));
    --sheet-text-color: inherit;
    --sheet-label-color: #6b7280;
    --sheet-grid-min: 220px;
    --sheet-gallery-min: 140px;

    color: var(--sheet-text-color);
    margin: 0 auto;
    max-width: var(--sheet-max-width);
    padding: 24px 16px 40px;
}

/* Long codes, addresses and URLs must wrap instead of overflowing the card. */
.homlity-tech-sheet,
.homlity-tech-sheet * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.homlity-tech-sheet__hero {
    background: var(--sheet-hero-bg, linear-gradient(135deg, rgba(var(--sheet-primary-rgb), 0.14), rgba(var(--sheet-primary-rgb), 0.03)));
    border: 1px solid rgba(var(--sheet-primary-rgb), 0.24);
    border-radius: var(--sheet-card-radius);
    margin-bottom: var(--sheet-gap);
    padding: var(--sheet-card-padding);
}

.homlity-tech-sheet__hero-text {
    min-width: 0;
}

.homlity-tech-sheet__hero-brand {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.homlity-tech-sheet__hero-logo {
    background: #fff;
    border: 1px solid rgba(var(--sheet-primary-rgb), 0.2);
    border-radius: 12px;
    height: 72px;
    object-fit: contain;
    padding: 8px;
    width: 72px;
}

.homlity-tech-sheet__hero-subtitle {
    color: #374151;
    margin: 6px 0 0;
}

.homlity-tech-sheet__header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.homlity-tech-sheet__brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.homlity-tech-sheet__brand-logo {
    border-radius: 10px;
    height: 58px;
    object-fit: contain;
    width: 58px;
}

.homlity-tech-sheet__brand-label {
    color: var(--sheet-primary, var(--homlity-primary-color));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.homlity-tech-sheet__header h1 {
    font-size: clamp(24px, 3vw, 36px);
    margin: 0;
}

.homlity-tech-sheet__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.homlity-tech-sheet__back,
.homlity-tech-sheet__print {
    background: var(--sheet-primary-soft, #fff6f4);
    border: 1px solid color-mix(in srgb, var(--sheet-primary, var(--homlity-primary-color)) 35%, #ffffff);
    border-radius: 10px;
    color: var(--sheet-primary, var(--homlity-primary-color));
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
    text-decoration: none;
}

.homlity-tech-sheet__card {
    background: var(--sheet-card-bg);
    border: 1px solid var(--sheet-card-border-color);
    border-radius: var(--sheet-card-radius);
    margin-bottom: var(--sheet-gap);
    padding: var(--sheet-card-padding);
}

.homlity-tech-sheet__card h2 {
    color: var(--sheet-heading-color);
    font-size: 17px;
    margin: 0 0 10px;
}

.homlity-tech-sheet__card h3 {
    font-size: 14px;
    margin: 12px 0 8px;
}

.homlity-tech-sheet__grid {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--sheet-grid-min), 100%), 1fr));
}

.homlity-tech-sheet__grid > * {
    min-width: 0;
}

.homlity-tech-sheet__stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--sheet-grid-min), 100%), 1fr));
}

.homlity-tech-sheet__stats > * {
    min-width: 0;
}

.homlity-tech-sheet__stat {
    background: rgba(var(--sheet-primary-rgb), 0.05);
    border: 1px solid rgba(var(--sheet-primary-rgb), 0.2);
    border-radius: 12px;
    padding: 12px;
}

.homlity-tech-sheet__stat-label {
    color: var(--sheet-label-color);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.homlity-tech-sheet__stat-value {
    color: #0f172a;
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.homlity-tech-sheet__advisor-row {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 110px minmax(0, 1fr);
}

.homlity-tech-sheet__advisor-avatar {
    border-radius: 14px;
    display: block;
    height: 100px;
    object-fit: cover;
    width: 100px;
}

.homlity-tech-sheet__advisor-avatar--fallback {
    background: linear-gradient(135deg, rgba(var(--sheet-primary-rgb), 0.22), rgba(var(--sheet-primary-rgb), 0.06));
}

.homlity-tech-sheet__features-list {
    columns: 2;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.homlity-tech-sheet__features-list li {
    align-items: center;
    break-inside: avoid;
    display: flex;
    font-size: 14px;
    margin-bottom: 8px;
}

.homlity-tech-sheet__features-list li::before {
    background: var(--sheet-primary, var(--homlity-primary-color));
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 7px;
    margin-right: 8px;
    width: 7px;
}

.homlity-tech-sheet__description p {
    margin: 0 0 10px;
}

/* Descriptions imported from a CRM often carry wide tables and full-size
   images; without this they push the card past the viewport. */
.homlity-tech-sheet__description img,
.homlity-tech-sheet__description iframe {
    height: auto;
    max-width: 100%;
}

.homlity-tech-sheet__description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.homlity-tech-sheet__legal {
    color: #4b5563;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

.homlity-tech-sheet__gallery {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--sheet-gallery-min), 100%), 1fr));
}

.homlity-tech-sheet__gallery img {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.homlity-tech-sheet__media-links {
    display: grid;
    gap: 10px 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    margin-top: 12px;
}

.homlity-tech-sheet__media-links > * {
    min-width: 0;
}

.homlity-tech-sheet__media-links h3 {
    margin-top: 0;
}

.homlity-tech-sheet__media-links ul {
    margin: 0;
    padding-left: 16px;
}

.homlity-tech-sheet__media-links li {
    margin-bottom: 4px;
}

@media (max-width: 960px) {
    .property-gallery--light {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-gallery__item--light,
    .property-gallery__item--light:first-child {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 280px;
    }

    .property-share-widget__heading {
        font-size: 20px;
    }

    .property-share__link {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .homlity-tech-sheet__hero-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .homlity-tech-sheet__advisor-row {
        grid-template-columns: 1fr;
    }

    .homlity-tech-sheet__features-list {
        columns: 1;
    }

    .property-map {
        padding: 16px;
    }

    .property-map__tabs {
        left: 24px;
        top: 24px;
    }

    .property-map__tab {
        font-size: 12px;
        padding: 9px 12px;
    }

    .property-card__gallery {
        grid-template-columns: 1fr;
    }

    .property-card__gallery img {
        height: 220px;
    }

    .property-gallery--light {
        grid-template-columns: 1fr;
    }

    .property-gallery__item--light,
    .property-gallery__item--light:first-child {
        min-height: 240px;
    }

    .property-map {
        padding: 16px;
    }

    .property-map__leaflet {
        height: var(--hml-property-map-height);
    }
}

.property-gallery--swiper .swiper {
  width: 100%;
  --homlity-gallery-gap: 12px;
}

.property-gallery--swiper .swiper-slide {
  border-radius: 18px;
  overflow: hidden;
}

.property-gallery--swiper .swiper-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.property-gallery__thumbs {
  margin-top: 12px;
}

.property-gallery__thumbs .swiper {
  --homlity-thumb-gap: 10px;
}

.property-gallery__thumbs .swiper-wrapper {
  gap: var(--homlity-thumb-gap);
}

.property-gallery__thumbs .swiper-slide {
  border: 2px solid rgba(55, 56, 74, 0.14);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
}

.property-gallery__thumbs .swiper-slide-thumb-active {
  border-color: var(--homlity-primary-color);
  opacity: 1;
}

.property-gallery__thumbs .swiper-slide img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
}

.property-gallery--swiper-masonry .swiper-slide.is-masonry-1 img,
.property-gallery--swiper-masonry .swiper-slide.is-masonry-4 img {
  height: 420px;
}

.property-gallery--swiper-masonry .swiper-slide.is-masonry-2 img,
.property-gallery--swiper-masonry .swiper-slide.is-masonry-5 img {
  height: 260px;
}

.property-gallery--swiper-masonry .swiper-slide.is-masonry-3 img,
.property-gallery--swiper-masonry .swiper-slide.is-masonry-6 img {
  height: 340px;
}

.property-gallery--preset-minimal .swiper-slide,
.property-gallery--preset-minimal .property-gallery__item--light {
  border-radius: 10px;
  box-shadow: none;
}

.property-gallery--preset-rounded .swiper-slide,
.property-gallery--preset-rounded .property-gallery__item--light {
  border-radius: 26px;
}

.property-gallery--preset-shadow_card {
  background: #fff;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.12);
}

.property-gallery--preset-shadow_card .swiper-slide,
.property-gallery--preset-shadow_card .property-gallery__item--light {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.16);
}

/* ── Gallery tabs ────────────────────────────────────────────────────────── */
.property-gallery-tabs__nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.property-gallery-tabs--align-center .property-gallery-tabs__nav { justify-content: center; }
.property-gallery-tabs--align-right .property-gallery-tabs__nav { justify-content: flex-end; }
.property-gallery-tabs--align-justify .property-gallery-tabs__nav { justify-content: stretch; }
.property-gallery-tabs--align-justify .property-gallery-tabs__btn { flex: 1 1 0; justify-content: center; }
.property-gallery-tabs--vertical .property-gallery-tabs__nav { flex-direction: column; align-items: stretch; }

.property-gallery-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 2px solid rgba(55, 56, 74, 0.18);
  border-radius: 40px;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.property-gallery-tabs__btn:hover {
  border-color: var(--homlity-primary-color, #6355ff);
  color: var(--homlity-primary-color, #6355ff);
}

.property-gallery-tabs__btn.is-active {
  background: var(--homlity-primary-color, #6355ff);
  border-color: var(--homlity-primary-color, #6355ff);
  color: #fff;
}

.property-gallery-tabs__panel {
  display: none;
}

.property-gallery-tabs__panel.is-active {
  display: block;
}

.property-gallery-tabs__count {
  font-size: 0.75em;
  opacity: 0.85;
}

.property-gallery-tabs__empty {
  min-height: 140px;
  border: 1px dashed rgba(55, 56, 74, 0.24);
  border-radius: 14px;
  background: rgba(55, 56, 74, 0.04);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.property-gallery-tabs__empty--icon::before {
  content: "○";
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

/* Videos */
.property-gallery-tabs__videos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-gallery-tabs__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.property-gallery-tabs__video-wrap iframe,
.property-gallery-tabs__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Fotos 360 */
.property-gallery-tabs__360-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.property-gallery-tabs__360-item {
  position: relative;
  padding-bottom: 66.67%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.property-gallery-tabs__360-item > a {
  position: absolute;
  inset: 0;
  display: block;
}

.property-gallery-tabs__360-item img,
.property-gallery-tabs__360-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.property-gallery-tabs__panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111;
}

.property-gallery-tabs__360-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: none;
}

/* Recorridos 360 */
.property-gallery-tabs__tours {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-gallery-tabs__tour-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.property-gallery-tabs__tour-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.property-gallery-tabs__tour-link {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-weight: 600;
}

/* Asesor del inmueble */
/* La direccion la fija el control "Disposicion" del widget; column es el valor
   por defecto y lo que ven las tarjetas guardadas antes de que existiera. */
.property-agent-block__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* En horizontal la foto manda el ancho y los datos ocupan el resto. min-width:0
   deja que un correo largo se encoja en vez de desbordar la tarjeta. */
.property-agent-block__avatar {
  flex: 0 0 auto;
}

.property-agent-block__info {
  flex: 1 1 auto;
  min-width: 0;
}

.property-agent-block__avatar img {
  display: block;
}

.property-agent-block__info > p {
  margin: 0 0 8px;
}

.property-agent-block__phone,
.property-agent-block__email a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.property-agent-block__email a {
  text-decoration: none;
}

.property-agent-block__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.property-agent-block__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.property-agent-block__icon .homlity-divi-icon {
  font-size: 16px;
}

.property-agent-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.property-agent-block__cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-decoration: none;
}

.property-agent-block__count {
  font-weight: 600;
}

.property-agent-block__bio {
  margin: 0 0 8px;
}

.property-agent-block__bio p:last-child {
  margin-bottom: 0;
}

/* Perfil del asesor (/property-agent/{asesor}/) */
.property-agent {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.property-agent__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.property-agent__avatar img {
  display: block;
  border-radius: 50%;
}

.property-agent__name {
  margin: 0 0 0.25rem;
}

.property-agent__info > p {
  margin: 0 0 0.35rem;
}

.property-agent__count {
  font-weight: 600;
}

.property-agent__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  background: #25d366;
  color: #fff;
}

.property-agent__cta:hover {
  color: #fff;
  opacity: 0.88;
}

.property-agent__bio {
  margin-bottom: 2rem;
}

.property-agent__properties > h2 {
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .property-agent__header {
    gap: 1rem;
  }
}

/* Breadcrumb detalle inmueble */
.property-breadcrumb-widget {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.45;
}

.property-breadcrumb-widget__sep {
  opacity: 0.65;
}

.property-breadcrumb-widget a {
  text-decoration: none;
}

.property-features--primary {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Base reset for Homlity Elementor widgets */
.elementor-widget[class*="elementor-widget-property_"] :where(h1, h2, h3, h4, h5, h6, p) {
  margin: 0;
}

.elementor-widget[class*="elementor-widget-property_"] :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.elementor-widget[class*="elementor-widget-property_"] :where(figure) {
  margin: 0;
}

.elementor-widget[class*="elementor-widget-property_"] :where(a) {
  color: inherit;
}

.elementor-widget[class*="elementor-widget-property_"] :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

.elementor-widget[class*="elementor-widget-property_"] :where(button) {
  border: 0;
  background: none;
  padding: 0;
}

.property-related__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(var(--related-cols, 3), minmax(0, 1fr));
}

/* mapa.php */
@media (max-width: 700px) {
  .mapa-inmueble {
    width: 96%;
  }
}

/* search-form-sidebar.php */
.boton-buscar input,
.boton-limpiar a {
  margin-top: 2%;
  display: block;
  width: 100%;
  text-align: center;
}

/* asesores.php */
.card-asesor {
  font-size: var(--e-global-typography-e92d54e-font-size);
  font-family: var(--e-global-typography-e92d54e-font-family), Sans-serif;
}
.btn-whatsapp-homlity {
  background-color: var(--e-global-color-primary);
  color: #fff !important;
  border: none;
}
.card-asesor a {
  color: var(--e-global-color-primary);
}

/* cover-image.php */
.property-noavaliable::after {
  content: attr(data-unavailable-label);
}

/* property-unavailable.php */
.hml-unavailable-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
  padding: 40px 20px;
  box-sizing: border-box;
}
.hml-unavailable-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
  padding: 52px 48px 44px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.hml-unavailable-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: #9ca3af;
}
.hml-unavailable-icon svg {
  width: 72px;
  height: 72px;
}
.hml-unavailable-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin: 0 0 14px;
}
.hml-unavailable-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #6b7280;
  margin: 0 0 32px;
}
.hml-unavailable-btn {
  display: inline-block;
  background: var(--homlity-primary-color, #6355ff);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 40px;
  transition: opacity 0.18s ease;
}
.hml-unavailable-btn:hover {
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}
.hml-unavailable-results {
  margin: 0 auto 56px;
  max-width: 1240px;
  padding: 0 20px;
  box-sizing: border-box;
}
.hml-unavailable-results__inner {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  padding: 24px;
}
.hml-unavailable-results__title {
  color: #111827;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
}
@media (max-width: 520px) {
  .hml-unavailable-card {
    padding: 40px 28px 36px;
  }
  .hml-unavailable-title {
    font-size: 1.2rem;
  }
  .hml-unavailable-results__inner {
    padding: 16px;
  }
}

/* Descripción del inmueble.
   ------------------------------------------------------------------
   El texto llega del editor con su formato: negritas, cursivas, listas,
   títulos. El widget ya no lo pisa con su tipografía, pero algunos temas
   quitan de raíz los marcadores de lista o el peso de <strong>, y para eso
   no hay control en el widget. Esto sólo devuelve el comportamiento por
   defecto del navegador, y sólo dentro de la descripción. */
.property-content-widget strong,
.property-content-widget b {
    font-weight: bolder;
}

.property-content-widget em,
.property-content-widget i {
    font-style: italic;
}

.property-content-widget ul,
.property-content-widget ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.property-content-widget ul {
    list-style: disc outside;
}

.property-content-widget ol {
    list-style: decimal outside;
}

.property-content-widget li {
    list-style: inherit;
}
