:root {
    --vdm-prop-bg: #0b1016;
    --vdm-prop-panel: #111820;
    --vdm-prop-card: #151d27;
    --vdm-prop-gold: #c99a38;
    --vdm-prop-gold-soft: #e2bd69;
    --vdm-prop-cream: #f5f0e7;
    --vdm-prop-text: #f8f8f6;
    --vdm-prop-muted: #aeb6bf;
    --vdm-prop-border: rgba(226, 189, 105, .35);
    --vdm-prop-danger: #b93838;
    --vdm-prop-radius: 20px;
    --vdm-prop-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

.vdm-properties-app,
.vdm-property-detail,
.vdm-property-form-wrap,
.vdm-manage-properties {
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
}

.vdm-properties-app *,
.vdm-property-detail *,
.vdm-property-form-wrap *,
.vdm-manage-properties * {
    box-sizing: border-box;
}

.vdm-properties-app svg,
.vdm-property-detail svg,
.vdm-property-form-wrap svg,
.vdm-manage-properties svg {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vdm-properties-search-panel {
    padding: clamp(18px, 4vw, 34px);
    color: var(--vdm-prop-text);
    border: 1px solid var(--vdm-prop-border);
    border-radius: var(--vdm-prop-radius);
    background:
        radial-gradient(circle at 90% 0%, rgba(201, 154, 56, .13), transparent 36%),
        linear-gradient(145deg, #111821, #080d12);
    box-shadow: var(--vdm-prop-shadow);
}

.vdm-properties-heading {
    margin-bottom: 18px;
    text-align: center;
}

.vdm-properties-heading h2 {
    margin: 0 0 6px;
    color: var(--vdm-prop-gold-soft);
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.vdm-properties-heading p {
    margin: 0;
    color: #dce1e5;
}

.vdm-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.vdm-search-box {
    position: relative;
    display: block;
}

.vdm-search-box input,
.vdm-filter-grid input,
.vdm-filter-grid select,
.vdm-property-form input,
.vdm-property-form select,
.vdm-property-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d6dc;
    border-radius: 12px;
    background: #fff;
    color: #111820;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.vdm-search-box input {
    padding: 0 48px 0 14px;
}

.vdm-search-box input:focus,
.vdm-filter-grid input:focus,
.vdm-filter-grid select:focus,
.vdm-property-form input:focus,
.vdm-property-form select:focus,
.vdm-property-form textarea:focus {
    border-color: var(--vdm-prop-gold);
    box-shadow: 0 0 0 3px rgba(201, 154, 56, .18);
}

.vdm-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    color: #111820;
    transform: translateY(-50%);
}

.vdm-filter-toggle,
.vdm-button-primary,
.vdm-button-secondary,
.vdm-properties-pagination button,
.vdm-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.vdm-button-primary,
.vdm-request-button {
    color: #111820 !important;
    background: linear-gradient(135deg, var(--vdm-prop-gold-soft), var(--vdm-prop-gold));
    box-shadow: 0 8px 20px rgba(201, 154, 56, .22);
}

.vdm-button-primary:hover,
.vdm-request-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(201, 154, 56, .3);
}

.vdm-button-secondary,
.vdm-filter-toggle {
    color: var(--vdm-prop-text) !important;
    border-color: var(--vdm-prop-border);
    background: rgba(255, 255, 255, .04);
}

.vdm-type-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
}

.vdm-chip {
    position: relative;
    cursor: pointer;
}

.vdm-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vdm-chip span {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #eef1f3;
    background: #161d25;
    font-size: .88rem;
    transition: .2s ease;
}

.vdm-chip input:checked + span {
    color: var(--vdm-prop-gold-soft);
    border-color: var(--vdm-prop-gold);
    background: rgba(201, 154, 56, .09);
    box-shadow: inset 0 0 0 1px rgba(201, 154, 56, .08);
}

.vdm-advanced-filters {
    margin-top: 18px;
}

.vdm-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.vdm-filter-grid label,
.vdm-field {
    display: grid;
    gap: 7px;
}

.vdm-filter-grid label > span,
.vdm-field > span {
    color: #dfe4e8;
    font-size: .82rem;
    font-weight: 700;
}

.vdm-filter-grid input,
.vdm-filter-grid select {
    min-height: 42px;
    padding: 8px 10px;
}

.vdm-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.vdm-results-meta {
    margin: 20px 2px 10px;
    color: #59636e;
    font-size: .92rem;
    font-weight: 700;
}

.vdm-properties-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vdm-property-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 56, .26);
    border-radius: 18px;
    background: var(--vdm-prop-card);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.vdm-property-card-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.vdm-property-card-image {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background-color: #222b35;
    background-position: center;
    background-size: cover;
    transition: transform .35s ease;
}

.vdm-property-card:hover .vdm-property-card-image {
    transform: scale(1.012);
}

.vdm-card-overlay,
.vdm-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 12, .96) 0%, rgba(5, 8, 12, .55) 43%, rgba(5, 8, 12, .05) 76%);
}

.vdm-featured-badge,
.vdm-operation-badge,
.vdm-detail-operation,
.vdm-360-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.vdm-featured-badge {
    left: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--vdm-prop-gold-soft), #9c6e1d);
}

.vdm-operation-badge {
    right: 12px;
    color: var(--vdm-prop-gold-soft);
    border: 1px solid rgba(226, 189, 105, .5);
    background: rgba(8, 12, 17, .8);
    backdrop-filter: blur(7px);
}

.vdm-property-card-content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px 16px 16px;
    color: #fff;
}

.vdm-property-card-content h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.vdm-property-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 8px;
    color: #d9dee3;
    font-size: .82rem;
}

.vdm-property-address svg {
    flex: 0 0 auto;
    margin-top: 2px;
}

.vdm-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 13px;
    margin-bottom: 8px;
    color: #f1f3f5;
    font-size: .8rem;
}

.vdm-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vdm-card-price {
    color: var(--vdm-prop-gold-soft);
    font-size: 1.05rem;
    font-weight: 800;
}

.vdm-properties-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.vdm-properties-pagination button {
    min-width: 42px;
    color: #25303a;
    border-color: #d6dce1;
    background: #fff;
}

.vdm-properties-pagination button.is-current {
    color: #111820;
    border-color: var(--vdm-prop-gold);
    background: var(--vdm-prop-gold-soft);
}

.vdm-properties-results.is-loading {
    min-height: 220px;
    opacity: .45;
    pointer-events: none;
}

.vdm-empty-state {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
    padding: 34px 20px;
    border: 1px dashed #c9d0d7;
    border-radius: 16px;
    text-align: center;
    background: #fafbfc;
}

.vdm-empty-state strong {
    color: #17212b;
    font-size: 1.05rem;
}

.vdm-empty-state span {
    color: #68737e;
}

/* Detalle */
.vdm-property-detail {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 56, .3);
    border-radius: 24px;
    background: var(--vdm-prop-cream);
    box-shadow: var(--vdm-prop-shadow);
}

.vdm-detail-hero {
    position: relative;
    min-height: clamp(330px, 58vw, 590px);
    background-color: #17212b;
    background-position: center;
    background-size: cover;
}

.vdm-detail-heading {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(24px, 5vw, 44px);
    color: #fff;
}

.vdm-detail-heading h1 {
    max-width: 820px;
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 3rem);
}

.vdm-detail-heading p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    color: #e0e5e8;
}

.vdm-detail-heading strong {
    color: var(--vdm-prop-gold-soft);
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.vdm-detail-operation {
    right: 18px;
    color: #111820;
    background: var(--vdm-prop-gold-soft);
}

.vdm-360-badge {
    left: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(6px);
}

.vdm-detail-body {
    padding: clamp(18px, 4vw, 38px);
    color: #17212b;
}

.vdm-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: -64px;
    margin-bottom: 26px;
    padding: 15px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(201, 154, 56, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(20, 24, 30, .12);
}

.vdm-detail-stats > div {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px;
    text-align: center;
}

.vdm-detail-stats svg {
    color: #8a671f;
    font-size: 1.35rem;
}

.vdm-detail-stats strong {
    font-size: .98rem;
}

.vdm-detail-stats span {
    color: #69737c;
    font-size: .74rem;
}

.vdm-detail-section + .vdm-detail-section {
    margin-top: 28px;
}

.vdm-detail-section h2 {
    margin: 0 0 12px;
    color: #18222b;
    font-size: 1.2rem;
}

.vdm-detail-description {
    color: #3c4853;
    line-height: 1.7;
}

.vdm-detail-amenities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.vdm-detail-amenities > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0d8ca;
    border-radius: 12px;
    background: #fff;
}

.vdm-detail-amenities svg {
    flex: 0 0 auto;
    color: #8a671f;
}

.vdm-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.vdm-detail-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #dfe3e6;
}

.vdm-detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.vdm-detail-gallery a:hover img {
    transform: scale(1.04);
}

.vdm-tour-360 iframe {
    width: 100%;
    min-height: 500px;
    border: 0;
    border-radius: 16px;
}

.vdm-request-button {
    width: 100%;
    margin-top: 28px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Formularios */
.vdm-property-form-wrap,
.vdm-manage-properties {
    max-width: 1050px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 32px);
    border: 1px solid #dfe3e6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(14, 24, 35, .08);
}

.vdm-form-heading,
.vdm-manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.vdm-form-heading {
    justify-content: flex-start;
}

.vdm-form-heading h2,
.vdm-manage-header h2 {
    margin: 0 0 3px;
    color: #17212b;
}

.vdm-form-heading p,
.vdm-manage-header p {
    margin: 0;
    color: #69737d;
}

.vdm-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #111820;
    background: var(--vdm-prop-gold-soft);
}

.vdm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vdm-span-2 {
    grid-column: span 2;
}

.vdm-property-form .vdm-field > span {
    color: #303b45;
}

.vdm-property-form input,
.vdm-property-form select,
.vdm-property-form textarea {
    padding: 10px 12px;
}

.vdm-property-form textarea {
    resize: vertical;
}

.vdm-form-section {
    margin: 24px 0 0;
    padding: 20px;
    border: 1px solid #dfe4e8;
    border-radius: 16px;
    background: #fbfcfd;
}

.vdm-form-section legend {
    padding: 0 8px;
    color: #17212b;
    font-weight: 800;
}

.vdm-amenity-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 15px;
}

.vdm-amenity-checks label {
    position: relative;
    cursor: pointer;
}

.vdm-amenity-checks input {
    position: absolute;
    opacity: 0;
}

.vdm-amenity-checks span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #dfe4e8;
    border-radius: 11px;
    color: #37434e;
    background: #fff;
}

.vdm-amenity-checks svg {
    color: #a8b0b7;
}

.vdm-amenity-checks input:checked + span {
    color: #6c4f12;
    border-color: var(--vdm-prop-gold);
    background: #fff9eb;
}

.vdm-amenity-checks input:checked + span svg {
    color: var(--vdm-prop-gold);
}

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

.vdm-upload-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.vdm-upload-box {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 22px 16px;
    border: 1px dashed #b8c0c8;
    border-radius: 15px;
    text-align: center;
    background: #fff;
    cursor: pointer;
}

.vdm-upload-box small {
    color: #737d86;
}

.vdm-upload-box input {
    min-height: auto;
    border: 0;
    padding: 6px 0 0;
}

.vdm-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #7b5c1d;
    background: #fff4d9;
}

.vdm-remove-option,
.vdm-feature-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #4d5963;
}

.vdm-current-image {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0;
}

.vdm-current-image img {
    width: 140px;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
}

.vdm-current-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.vdm-current-gallery label {
    display: grid;
    gap: 5px;
    font-size: .78rem;
}

.vdm-current-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 9px;
}

.vdm-feature-toggle {
    margin: 20px 0 0;
    padding: 14px;
    border: 1px solid #ead9ad;
    border-radius: 12px;
    background: #fff9eb;
    color: #654b13;
    font-weight: 700;
}

.vdm-form-submit {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.vdm-property-form .vdm-button-secondary {
    color: #27313a !important;
    border-color: #cbd2d8;
    background: #fff;
}

.vdm-notice {
    max-width: 1050px;
    margin: 0 auto 14px;
    padding: 13px 15px;
    border-radius: 11px;
    font-weight: 700;
}

.vdm-notice-success {
    color: #155d39;
    border: 1px solid #a8d8bd;
    background: #eaf8f0;
}

.vdm-notice-error {
    color: #8a2020;
    border: 1px solid #e5b4b4;
    background: #fff0f0;
}

.vdm-notice-warning {
    color: #74550f;
    border: 1px solid #ead397;
    background: #fff8e5;
}

/* Panel */
.vdm-manage-list {
    display: grid;
    gap: 12px;
}

.vdm-manage-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid #e0e4e7;
    border-radius: 15px;
    background: #fbfcfd;
}

.vdm-manage-thumb {
    overflow: hidden;
    width: 150px;
    aspect-ratio: 4 / 3;
    border-radius: 11px;
    background: #dfe4e8;
}

.vdm-manage-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vdm-manage-info h3 {
    margin: 0 0 3px;
    color: #17212b;
}

.vdm-manage-info p {
    margin: 0 0 5px;
    color: #6c7781;
}

.vdm-manage-info strong {
    color: #8b671c;
}

.vdm-status {
    display: inline-flex;
    margin-left: 9px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #4d5963;
    background: #e8ecef;
    font-size: .72rem;
    font-weight: 800;
}

.vdm-status-publish {
    color: #15613c;
    background: #dff5e8;
}

.vdm-manage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vdm-manage-actions form {
    margin: 0;
}

.vdm-icon-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #ccd3d9;
    border-radius: 10px;
    color: #28333d !important;
    background: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.vdm-delete-button {
    color: #9b2c2c !important;
    border-color: #e6bcbc;
}

.vdm-field-error {
    display: block;
    margin-top: 5px;
    color: #a72c2c;
    font-size: .8rem;
}

@media (max-width: 900px) {
    .vdm-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vdm-detail-amenities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vdm-manage-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .vdm-manage-thumb {
        width: 120px;
    }

    .vdm-manage-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .vdm-properties-search-panel {
        border-radius: 18px;
    }

    .vdm-search-row {
        grid-template-columns: 1fr;
    }

    .vdm-filter-toggle {
        width: 100%;
    }

    .vdm-advanced-filters {
        display: none;
    }

    .vdm-advanced-filters.is-open {
        display: block;
    }

    .vdm-filter-grid,
    .vdm-properties-results,
    .vdm-form-grid,
    .vdm-upload-grid {
        grid-template-columns: 1fr;
    }

    .vdm-span-2 {
        grid-column: auto;
    }

    .vdm-filter-actions,
    .vdm-form-submit {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vdm-property-card-image {
        min-height: 290px;
    }

    .vdm-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -48px;
    }

    .vdm-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vdm-tour-360 iframe {
        min-height: 360px;
    }

    .vdm-amenity-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vdm-current-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vdm-manage-header {
        align-items: stretch;
        flex-direction: column;
    }

    .vdm-manage-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 11px;
    }

    .vdm-manage-thumb {
        width: 96px;
    }

    .vdm-manage-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .vdm-icon-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .vdm-type-chips {
        justify-content: flex-start;
    }

    .vdm-chip span {
        padding-inline: 11px;
        font-size: .8rem;
    }

    .vdm-property-card-image {
        min-height: 275px;
    }

    .vdm-detail-amenities,
    .vdm-amenity-checks {
        grid-template-columns: 1fr;
    }

    .vdm-detail-gallery {
        grid-template-columns: 1fr;
    }

    .vdm-manage-item {
        grid-template-columns: 1fr;
    }

    .vdm-manage-thumb {
        width: 100%;
        max-height: 220px;
    }
}

/* =========================================================
 * Partes de plantilla
 * ======================================================= */
.vdm-property-part,
.vdm-property-part * {
    box-sizing: border-box;
}

.vdm-property-part svg {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vdm-part-hero {
    min-height: clamp(330px, 58vw, 590px);
    overflow: hidden;
    border: 1px solid rgba(201, 154, 56, .3);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--vdm-prop-shadow);
}

.vdm-part-image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #17212b;
    box-shadow: var(--vdm-prop-shadow);
}

.vdm-part-image a,
.vdm-part-image img {
    display: block;
    width: 100%;
}

.vdm-part-image img {
    height: auto;
    min-height: 260px;
    max-height: 650px;
    object-fit: cover;
}

.vdm-part-title {
    margin: 0;
    color: #18222b;
    line-height: 1.15;
}

.vdm-part-title a {
    color: inherit;
    text-decoration: none;
}

.vdm-part-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #66717b;
    line-height: 1.45;
}

.vdm-part-address svg {
    flex: 0 0 auto;
    margin-top: .14em;
    color: #a67921;
}

.vdm-part-price {
    color: #a67921;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
}

.vdm-part-type,
.vdm-part-operation {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

.vdm-part-type {
    color: #e7c878;
    border: 1px solid rgba(226, 189, 105, .42);
    background: #111820;
}

.vdm-part-operation {
    color: #111820;
    background: linear-gradient(135deg, var(--vdm-prop-gold-soft), var(--vdm-prop-gold));
}

.vdm-part-stats.vdm-detail-stats {
    margin: 0;
}

.vdm-part-stat {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 3px 8px;
    min-width: 115px;
    padding: 12px 14px;
    border: 1px solid #e0d8ca;
    border-radius: 13px;
    color: #18222b;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 24, 30, .07);
}

.vdm-part-stat svg {
    grid-row: span 2;
    color: #8a671f;
    font-size: 1.35rem;
}

.vdm-part-stat strong {
    line-height: 1.1;
}

.vdm-part-stat span {
    color: #69737c;
    font-size: .74rem;
}

.vdm-part-description,
.vdm-part-amenities,
.vdm-part-gallery,
.vdm-part-tour {
    margin: 0;
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid #e5ded2;
    border-radius: 18px;
    background: var(--vdm-prop-cream);
}

.vdm-part-amenities .vdm-detail-amenities {
    grid-template-columns: repeat(var(--vdm-part-columns, 4), minmax(0, 1fr));
}

.vdm-part-gallery .vdm-detail-gallery {
    grid-template-columns: repeat(var(--vdm-part-columns, 3), minmax(0, 1fr));
}

.vdm-part-button.vdm-request-button {
    width: 100%;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: .03em;
}

@media (max-width: 680px) {
    .vdm-part-hero {
        min-height: 430px;
        border-radius: 20px 20px 0 0;
    }

    .vdm-part-hero .vdm-detail-heading {
        padding: 24px 18px;
    }

    .vdm-part-amenities .vdm-detail-amenities,
    .vdm-part-gallery .vdm-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .vdm-part-image {
        border-radius: 17px;
    }

    .vdm-part-image img {
        min-height: 230px;
    }

    .vdm-part-description,
    .vdm-part-amenities,
    .vdm-part-gallery,
    .vdm-part-tour {
        padding: 16px;
        border-radius: 15px;
    }

    .vdm-part-amenities .vdm-detail-amenities,
    .vdm-part-gallery .vdm-detail-gallery {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
 * Carrusel y visor ampliado de la galería — v1.3.0
 * ======================================================= */
.vdm-gallery-carousel,
.vdm-gallery-carousel * {
    box-sizing: border-box;
}

.vdm-gallery-carousel {
    --vdm-gallery-gap: 12px;
    position: relative;
    width: 100%;
    padding: 0 48px 30px;
}

.vdm-gallery-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vdm-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.vdm-gallery-track {
    display: flex;
    align-items: stretch;
    gap: var(--vdm-gallery-gap);
}

.vdm-gallery-slide {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - var(--vdm-gallery-space, 24px)) / var(--vdm-gallery-visible, 3));
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #dfe3e6;
    cursor: zoom-in;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.vdm-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
}

.vdm-gallery-slide:hover img,
.vdm-gallery-slide:focus-visible img {
    transform: scale(1.045);
    filter: brightness(.88);
}

.vdm-gallery-slide:focus-visible {
    outline: 3px solid #c79a38;
    outline-offset: 3px;
}

.vdm-gallery-expand {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(9, 14, 19, .72);
    backdrop-filter: blur(7px);
    pointer-events: none;
}

.vdm-gallery-expand svg,
.vdm-gallery-nav svg,
.vdm-lightbox-button svg,
.vdm-lightbox-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vdm-gallery-nav {
    position: absolute;
    top: calc(50% - 15px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(199, 154, 56, .45);
    border-radius: 50%;
    color: #f4cf72;
    background: #111820;
    box-shadow: 0 7px 18px rgba(0,0,0,.2);
    cursor: pointer;
    transform: translateY(-50%);
}

.vdm-gallery-prev {
    left: 0;
}

.vdm-gallery-next {
    right: 0;
}

.vdm-gallery-nav:hover,
.vdm-gallery-nav:focus-visible {
    color: #111820;
    background: #e6bd5a;
}

.vdm-gallery-nav:disabled {
    opacity: .35;
    cursor: default;
}

.vdm-gallery-status {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 23px;
    padding: 3px 10px;
    border-radius: 999px;
    color: #f8e4a7;
    background: #111820;
    font-size: .76rem;
    font-weight: 800;
    transform: translateX(-50%);
}

body.vdm-lightbox-open {
    overflow: hidden !important;
}

/*
 * Compatibilidad con VDM Bloques Flotantes.
 * Mientras la imagen ampliada esté abierta, el popup que contiene la galería
 * se mantiene detrás del visor, sin cerrarse ni perder su contenido.
 */
body.vdm-lightbox-open .vdm-bf-overlay {
    z-index: 2147480000 !important;
}

.vdm-gallery-lightbox[hidden] {
    display: none !important;
}

.vdm-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    display: grid;
    place-items: center;
    padding: 56px 74px 48px;
    color: #fff;
    background: rgba(4, 7, 10, .94);
    backdrop-filter: blur(10px);
}

.vdm-gallery-lightbox-dialog {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.vdm-gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(0,0,0,.45);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
}

.vdm-lightbox-close,
.vdm-lightbox-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
    background: rgba(17, 24, 32, .82);
    cursor: pointer;
}

.vdm-lightbox-close:hover,
.vdm-lightbox-button:hover,
.vdm-lightbox-close:focus-visible,
.vdm-lightbox-button:focus-visible {
    color: #111820;
    background: #e6bd5a;
}

.vdm-lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
}

.vdm-lightbox-button {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
}

.vdm-lightbox-prev {
    left: 16px;
}

.vdm-lightbox-next {
    right: 16px;
}

.vdm-lightbox-footer {
    position: absolute;
    left: 50%;
    bottom: 14px;
    display: grid;
    justify-items: center;
    gap: 3px;
    max-width: calc(100% - 130px);
    padding: 7px 14px;
    border-radius: 13px;
    color: #fff;
    background: rgba(17, 24, 32, .8);
    text-align: center;
    transform: translateX(-50%);
}

.vdm-lightbox-counter {
    color: #f4cf72;
    font-weight: 800;
}

.vdm-lightbox-hint {
    font-size: .75rem;
    opacity: .82;
}

/* El tema no podrá volver blancos o demasiado claros estos datos. */
.vdm-detail-stats > div,
.vdm-part-stats.vdm-detail-stats > div {
    color: #1c252e !important;
}

.vdm-detail-stats > div strong,
.vdm-part-stats.vdm-detail-stats > div strong {
    color: #17212b !important;
    font-weight: 800;
    text-shadow: none !important;
}

.vdm-detail-stats > div span,
.vdm-part-stats.vdm-detail-stats > div span {
    color: #46525d !important;
    font-weight: 700;
    opacity: 1 !important;
    text-shadow: none !important;
}

.vdm-detail-stats > div svg,
.vdm-part-stats.vdm-detail-stats > div svg {
    color: #9a6d12 !important;
}

@media (max-width: 820px) {
    .vdm-gallery-carousel {
        --vdm-gallery-visible: 2 !important;
        --vdm-gallery-space: 12px !important;
        padding-inline: 42px;
    }

    .vdm-gallery-lightbox {
        padding: 62px 54px 54px;
    }
}

@media (max-width: 560px) {
    .vdm-gallery-carousel {
        --vdm-gallery-visible: 1 !important;
        --vdm-gallery-space: 0px !important;
        --vdm-gallery-gap: 9px;
        padding: 0 0 29px;
    }

    .vdm-gallery-nav {
        top: 50%;
        width: 36px;
        height: 36px;
        color: #fff;
        background: rgba(17, 24, 32, .78);
    }

    .vdm-gallery-prev {
        left: 8px;
    }

    .vdm-gallery-next {
        right: 8px;
    }

    .vdm-gallery-slide {
        flex-basis: 92%;
        border-radius: 13px;
    }

    .vdm-gallery-lightbox {
        padding: 60px 10px 64px;
    }

    .vdm-gallery-lightbox-image {
        max-height: calc(100vh - 145px);
        border-radius: 7px;
    }

    .vdm-lightbox-button {
        top: auto;
        bottom: 14px;
        width: 43px;
        height: 43px;
        transform: none;
    }

    .vdm-lightbox-prev {
        left: 14px;
    }

    .vdm-lightbox-next {
        right: 14px;
    }

    .vdm-lightbox-footer {
        bottom: 13px;
        max-width: calc(100% - 125px);
        padding: 5px 9px;
    }

    .vdm-lightbox-hint {
        display: none;
    }

    .vdm-detail-stats > div strong,
    .vdm-part-stats.vdm-detail-stats > div strong {
        font-size: .92rem;
    }

    .vdm-detail-stats > div span,
    .vdm-part-stats.vdm-detail-stats > div span {
        font-size: .72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vdm-gallery-viewport,
    .vdm-gallery-slide img {
        scroll-behavior: auto;
        transition: none;
    }
}


/* =========================================================
 * Recorridos 360 múltiples y buscadores separados — v1.4.0
 * ======================================================= */
.vdm-front-360-repeater,
.vdm-tours-360 {
    display: grid;
    gap: 18px;
}

.vdm-front-360-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #ddd5c8;
    border-radius: 14px;
    background: #fff;
}

.vdm-front-360-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vdm-button-link-danger {
    padding: 4px 0;
    border: 0;
    color: #a51d1d;
    background: transparent;
    cursor: pointer;
}

.vdm-add-360-button {
    margin-top: 12px;
}

.vdm-field-help {
    display: block;
    margin-top: 8px;
    color: #66717a;
}

.vdm-tour-360-item {
    min-width: 0;
}

.vdm-tour-360-item h3 {
    margin: 0 0 10px;
    color: #1c252d;
    font-size: 1.05rem;
}

.vdm-tour-360-item + .vdm-tour-360-item {
    padding-top: 18px;
    border-top: 1px solid #e2dbd0;
}

.vdm-locked-operation {
    display: grid;
    gap: 7px;
}

.vdm-locked-operation strong {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #d7d9dc;
    border-radius: 10px;
    color: #332819;
    background: #f6ead1;
}

@media (max-width: 680px) {
    .vdm-front-360-item {
        padding: 13px;
    }

    .vdm-tour-360 iframe {
        min-height: 360px;
    }
}

/* =========================================================
 * Favoritos privados — v1.5.0
 * ======================================================= */
.vdm-property-card {
    position: relative;
}

.vdm-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid rgba(201, 154, 56, .55);
    border-radius: 999px;
    color: #8a671f;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.vdm-favorite-button svg,
.vdm-favorites-app svg,
.vdm-favorite-shortcode svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill .2s ease, transform .2s ease;
}

.vdm-favorite-button:hover {
    color: #6f5016;
    border-color: var(--vdm-prop-gold);
    transform: translateY(-1px);
}

.vdm-favorite-button:focus-visible {
    outline: 3px solid rgba(226, 189, 105, .55);
    outline-offset: 3px;
}

.vdm-favorite-button.is-favorite {
    color: #fff;
    border-color: var(--vdm-prop-gold-soft);
    background: linear-gradient(135deg, var(--vdm-prop-gold-soft), #a77520);
}

.vdm-favorite-button.is-favorite svg {
    fill: currentColor;
    transform: scale(1.04);
}

.vdm-favorite-button.is-busy,
.vdm-favorite-button:disabled {
    opacity: .58;
    cursor: wait;
    transform: none;
}

.vdm-favorite-card,
.vdm-favorite-hero {
    position: absolute;
    z-index: 6;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #f0c66e;
    border-color: rgba(240, 198, 110, .72);
    background: rgba(10, 15, 20, .76);
    backdrop-filter: blur(8px);
}

.vdm-favorite-card {
    top: 56px;
    right: 12px;
}

.vdm-favorite-hero {
    top: 62px;
    right: 18px;
}

.vdm-favorite-card:hover,
.vdm-favorite-hero:hover {
    color: #fff;
    background: rgba(10, 15, 20, .92);
}

.vdm-favorite-card.is-favorite,
.vdm-favorite-hero.is-favorite {
    color: #fff;
    background: linear-gradient(135deg, #d6aa4e, #9e6d19);
}

.vdm-favorite-shortcode {
    display: flex;
}

.vdm-favorite-inline {
    min-height: 46px;
    color: #2d2418;
    background: #fffaf0;
}

.vdm-favorites-app {
    width: 100%;
    box-sizing: border-box;
}

.vdm-favorites-app *,
.vdm-favorites-app *::before,
.vdm-favorites-app *::after {
    box-sizing: border-box;
}

.vdm-favorites-heading {
    margin-bottom: 18px;
    padding: clamp(18px, 4vw, 28px);
    color: var(--vdm-prop-text);
    border: 1px solid var(--vdm-prop-border);
    border-radius: var(--vdm-prop-radius);
    background: linear-gradient(145deg, #111821, #080d12);
}

.vdm-favorites-heading h2 {
    margin: 0 0 7px;
    color: var(--vdm-prop-gold-soft);
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.vdm-favorites-heading p {
    margin: 0;
    color: #dce1e5;
    font-size: .92rem;
}

.vdm-favorites-results.is-loading {
    min-height: 180px;
    opacity: .48;
    pointer-events: none;
}

.vdm-favorites-loading {
    grid-column: 1 / -1;
    padding: 28px;
    color: #59636e;
    text-align: center;
}

.vdm-favorite-notice {
    position: fixed;
    z-index: 100000;
    right: 18px;
    bottom: 22px;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 16px;
    border: 1px solid rgba(226, 189, 105, .55);
    border-radius: 12px;
    color: #fff;
    background: #111820;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.vdm-favorite-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 680px) {
    .vdm-favorite-card {
        top: 54px;
        right: 10px;
    }

    .vdm-favorite-hero {
        top: 60px;
        right: 12px;
    }

    .vdm-favorite-notice {
        right: 12px;
        bottom: 14px;
        max-width: calc(100vw - 24px);
    }
}


/* Ubicación / mapa embebido */
.vdm-property-map {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(183, 139, 42, .25);
    border-radius: 20px;
    background: #f2f2f2;
}

.vdm-property-map iframe {
    display: block;
    width: 100%;
    height: var(--vdm-map-height, 420px);
    min-height: 280px;
    border: 0;
}

@media (max-width: 640px) {
    .vdm-property-map {
        border-radius: 14px;
    }

    .vdm-property-map iframe {
        height: min(var(--vdm-map-height, 360px), 65vh);
        min-height: 300px;
    }
}


/* Video de la propiedad */
.vdm-property-video {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(183, 139, 42, .25);
    border-radius: 20px;
    background: #050607;
}

.vdm-property-video iframe,
.vdm-property-video video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #050607;
    object-fit: contain;
}

.vdm-part-video .vdm-property-video {
    height: min(var(--vdm-video-height, 520px), 72vw);
    min-height: 320px;
    aspect-ratio: auto;
}

.vdm-current-video {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.vdm-current-video > label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

@media (max-width: 640px) {
    .vdm-property-video {
        border-radius: 14px;
    }

    .vdm-part-video .vdm-property-video {
        height: min(var(--vdm-video-height, 520px), 62vw);
        min-height: 220px;
    }
}


.vdm-sold-ribbon {
    position: absolute;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 10px 18px;
    color: #fff !important;
    background: linear-gradient(135deg, #d41414, #8f0d0d);
    box-shadow: 0 10px 24px rgba(119, 0, 0, .35);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .16em;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, .22);
    pointer-events: none;
}

.vdm-sold-ribbon-card {
    top: 18px;
    left: -52px;
    transform: rotate(-34deg);
    font-size: .78rem;
}

.vdm-sold-ribbon-hero {
    top: 28px;
    left: -46px;
    transform: rotate(-34deg);
    min-width: 220px;
    font-size: .9rem;
}

@media (max-width: 767px) {
    .vdm-sold-ribbon-card {
        top: 16px;
        left: -58px;
        min-width: 165px;
        font-size: .72rem;
    }

    .vdm-sold-ribbon-hero {
        top: 24px;
        left: -60px;
        min-width: 190px;
        font-size: .78rem;
    }
}


/* v1.8.1 - Área de datos en fondo negro con texto blanco */
.vdm-detail-stats,
.vdm-part-stats.vdm-detail-stats {
    background: rgba(5, 8, 13, .98) !important;
    border: 1px solid rgba(214, 170, 78, .32) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .42) !important;
}

.vdm-detail-stats > div,
.vdm-part-stats.vdm-detail-stats > div {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .02);
    border-radius: 12px;
}

.vdm-detail-stats > div strong,
.vdm-part-stats.vdm-detail-stats > div strong {
    color: #ffffff !important;
}

.vdm-detail-stats > div span,
.vdm-part-stats.vdm-detail-stats > div span {
    color: rgba(255, 255, 255, .92) !important;
}

.vdm-detail-stats > div svg,
.vdm-part-stats.vdm-detail-stats > div svg {
    color: var(--vdm-prop-gold-soft) !important;
}


/* v1.8.2 - Corrección definitiva del bloque de datos */
.vdm-property-detail .vdm-detail-stats,
.vdm-property-part.vdm-part-stats,
.vdm-part-stats.vdm-detail-stats,
.vdm-detail-stats {
    background: #05080d !important;
    background-color: #05080d !important;
    background-image: none !important;
    border-color: rgba(226, 189, 105, .55) !important;
    color: #ffffff !important;
}

.vdm-property-detail .vdm-detail-stats > div,
.vdm-property-part.vdm-part-stats > div,
.vdm-part-stats.vdm-detail-stats > div,
.vdm-detail-stats > div {
    background: transparent !important;
    color: #ffffff !important;
}

.vdm-property-detail .vdm-detail-stats strong,
.vdm-property-detail .vdm-detail-stats span,
.vdm-property-part.vdm-part-stats strong,
.vdm-property-part.vdm-part-stats span,
.vdm-part-stats.vdm-detail-stats strong,
.vdm-part-stats.vdm-detail-stats span,
.vdm-detail-stats strong,
.vdm-detail-stats span {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.vdm-property-detail .vdm-detail-stats svg,
.vdm-property-part.vdm-part-stats svg,
.vdm-part-stats.vdm-detail-stats svg,
.vdm-detail-stats svg {
    color: #e2bd69 !important;
    stroke: currentColor !important;
}


/* =========================================================
 * v1.8.3 - Tema oscuro reforzado para secciones y ventanas
 * Fondos negros, texto blanco y encabezados dorados #A77C36
 * ======================================================= */
:root {
    --vdm-prop-gold-soft: #A77C36;
}

.vdm-detail-body,
.vdm-property-part,
.vdm-part-description,
.vdm-part-amenities,
.vdm-part-gallery,
.vdm-part-tour,
.vdm-part-video,
.vdm-part-map,
.vdm-property-map,
.vdm-tours-360,
.vdm-tour-360-item,
.vdm-property-form-wrap,
.vdm-manage-properties {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(167, 124, 54, .35) !important;
}

.vdm-detail-section h2,
.vdm-property-part h1,
.vdm-property-part h2,
.vdm-property-part h3,
.vdm-property-part h4,
.vdm-property-part h5,
.vdm-property-part h6,
.vdm-tour-360-item h3,
.vdm-form-heading h2,
.vdm-manage-header h2,
.vdm-form-heading h1,
.vdm-manage-header h1 {
    color: #A77C36 !important;
}

.vdm-detail-description,
.vdm-detail-description p,
.vdm-detail-description li,
.vdm-detail-description span,
.vdm-property-part p,
.vdm-property-part li,
.vdm-property-part label,
.vdm-property-part small,
.vdm-property-part .description,
.vdm-tour-360-item,
.vdm-field-help {
    color: #ffffff !important;
}

.vdm-detail-amenities > div,
.vdm-part-stat,
.vdm-front-360-item,
.vdm-locked-operation strong {
    background: #050505 !important;
    color: #ffffff !important;
    border-color: rgba(167, 124, 54, .35) !important;
    box-shadow: none !important;
}

.vdm-detail-amenities svg,
.vdm-part-stat svg,
.vdm-tour-360-item svg,
.vdm-property-part svg,
.vdm-detail-stats > div svg,
.vdm-part-stats.vdm-detail-stats > div svg {
    color: #A77C36 !important;
}

.vdm-detail-gallery a,
.vdm-gallery-slide,
.vdm-property-video,
.vdm-property-video iframe,
.vdm-property-video video,
.vdm-property-map,
.vdm-tour-360 iframe {
    background: #000000 !important;
    border-color: rgba(167, 124, 54, .35) !important;
}

.vdm-gallery-lightbox,
.vdm-gallery-lightbox-dialog,
.vdm-lightbox-footer {
    background-color: rgba(0, 0, 0, .96) !important;
    color: #ffffff !important;
}

.vdm-lightbox-counter,
.vdm-gallery-status,
.vdm-form-heading strong,
.vdm-manage-header strong {
    color: #A77C36 !important;
}

.vdm-lightbox-close,
.vdm-lightbox-button,
.vdm-gallery-nav {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(167, 124, 54, .45) !important;
}

.vdm-lightbox-close:hover,
.vdm-lightbox-button:hover,
.vdm-lightbox-close:focus-visible,
.vdm-lightbox-button:focus-visible,
.vdm-gallery-nav:hover,
.vdm-gallery-nav:focus-visible {
    background: #A77C36 !important;
    color: #000000 !important;
}

.vdm-detail-stats,
.vdm-part-stats.vdm-detail-stats,
.vdm-property-part.vdm-part-stats {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(167, 124, 54, .35) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .42) !important;
}

.vdm-detail-stats > div,
.vdm-part-stats.vdm-detail-stats > div,
.vdm-property-part.vdm-part-stats > div {
    background: rgba(255,255,255,.02) !important;
    color: #ffffff !important;
}

.vdm-detail-stats > div strong,
.vdm-detail-stats > div span,
.vdm-part-stats.vdm-detail-stats > div strong,
.vdm-part-stats.vdm-detail-stats > div span,
.vdm-property-part.vdm-part-stats strong,
.vdm-property-part.vdm-part-stats span {
    color: #ffffff !important;
}

.vdm-property-map iframe {
    background: #000000 !important;
}


/* v1.8.4 - La imagen principal del hero conserva su background-image inline. */
.vdm-part-hero.vdm-detail-hero,
.vdm-detail-hero {
    background-color: #000000 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}


/* =========================================================
 * v1.8.6 - Video vertical en relación 9:16
 * ======================================================= */
.vdm-property-video,
.vdm-part-video .vdm-property-video,
.vdm-detail-section.vdm-part-video .vdm-property-video {
    width: min(100%, var(--vdm-video-width, 430px)) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    aspect-ratio: 9 / 16 !important;
}

.vdm-property-video iframe,
.vdm-property-video video {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 9 / 16 !important;
    object-fit: contain !important;
}

@media (max-width: 640px) {
    .vdm-property-video,
    .vdm-part-video .vdm-property-video,
    .vdm-detail-section.vdm-part-video .vdm-property-video {
        width: min(100%, var(--vdm-video-width, 430px)) !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 9 / 16 !important;
    }
}

/* Componentes modulares 1.9.0 */
.vdm-standalone-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
}

.vdm-standalone-search .vdm-button-primary {
    min-width: 110px;
}

.vdm-modular-listing-heading h2 {
    margin: 0 0 8px;
    color: #17212b;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.vdm-modular-pagination a,
.vdm-modular-pagination > span:not(.vdm-pagination-ellipsis) {
    display: inline-flex;
    min-width: 42px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #d6dce1;
    border-radius: 12px;
    color: #25303a;
    background: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
}

.vdm-modular-pagination > span.is-current {
    color: #111820;
    border-color: var(--vdm-prop-gold);
    background: var(--vdm-prop-gold-soft);
}

.vdm-pagination-ellipsis {
    display: inline-flex;
    min-width: 24px;
    align-items: center;
    justify-content: center;
    color: #59636e;
}

@media (max-width: 600px) {
    .vdm-standalone-search {
        grid-template-columns: 1fr;
    }

    .vdm-standalone-search .vdm-button-primary {
        width: 100%;
    }
}


/* =========================================================
 * v1.10.1 - Carrusel modular responsive 1 por 1
 * ======================================================= */
.vdm-property-carousel {
    --vdm-carousel-gap: 18px;
    width: 100%;
    min-width: 0;
    position: relative;
}

.vdm-property-carousel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.vdm-property-carousel-heading h2 {
    margin: 0;
    color: #17212b;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15;
}

.vdm-property-carousel-controls {
    display: inline-flex;
    gap: 8px;
    flex: 0 0 auto;
}

.vdm-property-carousel-arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(167, 124, 54, .45);
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}

.vdm-property-carousel-arrow span {
    display: block;
    margin-top: -3px;
    font-size: 2rem;
    font-weight: 400;
}

.vdm-property-carousel-arrow:hover,
.vdm-property-carousel-arrow:focus-visible {
    background: #A77C36;
    color: #000000;
    transform: translateY(-1px);
}

.vdm-property-carousel-arrow:disabled {
    opacity: .35;
    cursor: default;
    transform: none;
}

.vdm-property-carousel-track {
    display: flex;
    gap: var(--vdm-carousel-gap);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 12px;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.vdm-property-carousel-track::-webkit-scrollbar {
    display: none;
}

.vdm-property-carousel-track > .vdm-property-card {
    /* Sin atributo columnas el carrusel trabaja 1 por 1. */
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.vdm-property-carousel[data-columns="1"] .vdm-property-carousel-track > .vdm-property-card {
    flex-basis: 100%;
}

.vdm-property-carousel[data-columns="2"] .vdm-property-carousel-track > .vdm-property-card {
    flex-basis: calc((100% - var(--vdm-carousel-gap)) / 2);
}

.vdm-property-carousel[data-columns="3"] .vdm-property-carousel-track > .vdm-property-card {
    flex-basis: calc((100% - var(--vdm-carousel-gap) - var(--vdm-carousel-gap)) / 3);
}

.vdm-property-carousel[data-columns="4"] .vdm-property-carousel-track > .vdm-property-card {
    flex-basis: calc((100% - var(--vdm-carousel-gap) - var(--vdm-carousel-gap) - var(--vdm-carousel-gap)) / 4);
}

.vdm-property-carousel[data-columns="5"] .vdm-property-carousel-track > .vdm-property-card {
    flex-basis: calc((100% - var(--vdm-carousel-gap) - var(--vdm-carousel-gap) - var(--vdm-carousel-gap) - var(--vdm-carousel-gap)) / 5);
}

.vdm-property-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 18px;
    margin-top: 7px;
}

.vdm-property-carousel-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c7ccd0;
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
}

.vdm-property-carousel-dot.is-active {
    width: 25px;
    background: #A77C36;
}

.vdm-property-carousel-dot:focus-visible {
    outline: 2px solid #A77C36;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .vdm-property-carousel-track > .vdm-property-card {
        flex-basis: calc((100% - var(--vdm-carousel-gap)) / 2);
    }
}

@media (max-width: 640px) {
    .vdm-property-carousel {
        --vdm-carousel-gap: 12px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .vdm-property-carousel-heading {
        align-items: center;
    }

    .vdm-property-carousel-controls {
        gap: 6px;
    }

    .vdm-property-carousel-arrow {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .vdm-property-carousel-track {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 3px 0 12px;
        box-sizing: border-box;
    }

    /* En teléfono siempre se muestra exactamente una propiedad por pantalla,
       aunque el shortcode tenga columnas configuradas para escritorio. */
    .vdm-property-carousel-track > .vdm-property-card,
    .vdm-property-carousel[data-columns="1"] .vdm-property-carousel-track > .vdm-property-card,
    .vdm-property-carousel[data-columns="2"] .vdm-property-carousel-track > .vdm-property-card,
    .vdm-property-carousel[data-columns="3"] .vdm-property-carousel-track > .vdm-property-card,
    .vdm-property-carousel[data-columns="4"] .vdm-property-carousel-track > .vdm-property-card,
    .vdm-property-carousel[data-columns="5"] .vdm-property-carousel-track > .vdm-property-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vdm-property-carousel-track {
        scroll-behavior: auto;
    }
}

/* =========================================================
 * Tarjeta simplificada y blindada — v1.11.1
 * Imagen + título + precio; conserva badges y favoritos.
 * ======================================================= */
.vdm-property-card-simple,
.vdm-property-card-simple .vdm-property-card-link,
.vdm-property-card-simple .vdm-property-card-image {
    position: relative;
    isolation: isolate;
}

/* Evita pseudo-elementos heredados del tema/constructor que pueden formar
   triángulos, cintas u otras figuras encima de la imagen. */
.vdm-property-card-simple::before,
.vdm-property-card-simple::after,
.vdm-property-card-simple .vdm-property-card-link::before,
.vdm-property-card-simple .vdm-property-card-link::after,
.vdm-property-card-simple .vdm-property-card-image::before,
.vdm-property-card-simple .vdm-property-card-image::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.vdm-property-card-simple .vdm-property-card-image {
    min-height: 310px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.vdm-property-card-simple .vdm-card-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(5, 8, 12, .92) 0%,
        rgba(5, 8, 12, .54) 32%,
        rgba(5, 8, 12, .08) 68%,
        rgba(5, 8, 12, 0) 100%
    );
}

.vdm-property-card-simple .vdm-property-card-content {
    z-index: 3;
    display: block !important;
    padding: 22px 17px 17px;
    pointer-events: none;
}

.vdm-property-card-simple .vdm-property-card-title,
.vdm-property-card-simple .vdm-property-card-content h3 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    max-width: calc(100% - 8px);
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: clamp(1.12rem, 2.2vw, 1.42rem) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

.vdm-property-card-simple .vdm-card-price {
    display: block !important;
    margin: 0 !important;
    color: var(--vdm-prop-gold-soft) !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

/* Mantiene por encima de la imagen los estados y el favorito. */
.vdm-property-card-simple .vdm-featured-badge,
.vdm-property-card-simple .vdm-operation-badge,
.vdm-property-card-simple .vdm-sold-ribbon,
.vdm-property-card-simple .vdm-favorite-card {
    z-index: 8;
}

@media (max-width: 640px) {
    .vdm-property-card-simple .vdm-property-card-image {
        min-height: 360px;
    }

    .vdm-property-card-simple .vdm-property-card-content {
        padding: 22px 18px 18px;
    }

    .vdm-property-card-simple .vdm-property-card-title,
    .vdm-property-card-simple .vdm-property-card-content h3 {
        font-size: 1.32rem !important;
    }

    .vdm-property-card-simple .vdm-card-price {
        font-size: 1.12rem !important;
    }
}
