/* Ficha individual. Archivo separado para aislarla del tema y de cachés antiguas. */
.vp-property-page {
    --vp-property-navy: var(--vp-primary, #1c2b39);
    --vp-property-navy-dark: var(--vp-primary-dark, #0f1821);
    --vp-property-accent: var(--vp-accent, #c5a880);
    --vp-property-text: var(--vp-text, #334155);
    --vp-property-muted: var(--vp-text-light, #64748b);
    --vp-property-border: var(--vp-border, #e2e8f0);
    --vp-property-bg: var(--vp-bg-light, #f8fafc);
    --vp-property-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(36px, 4vw, 64px) clamp(20px, 4vw, 56px);
    color: var(--vp-property-text);
    font-family: var(--vp-font-sans, Inter, Arial, sans-serif);
}

.vp-property-page,
.vp-property-page *,
.vp-property-page *::before,
.vp-property-page *::after { box-sizing: border-box; }

.vp-property-page .vp-property-hero { margin: 0 0 26px; }

.vp-property-page .vp-property-heading {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
}

.vp-property-page .vp-property-heading h1 {
    margin: 0;
    color: var(--vp-property-navy);
    font-family: var(--vp-font-serif, Georgia, serif);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.03;
}

.vp-property-page .vp-property-actions {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
}

.vp-property-page button.vp-property-action {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 44px;
    gap: 7px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 15px;
    border: 1px solid var(--vp-property-border);
    border-radius: 8px;
    background: #fff;
    color: var(--vp-property-navy);
    box-shadow: none;
    font: 700 14px/1 var(--vp-font-sans, Inter, Arial, sans-serif);
    text-decoration: none;
    text-transform: none;
}

.vp-property-page button.vp-property-action:hover,
.vp-property-page button.vp-property-action:focus-visible,
.vp-property-page button.vp-property-action.is-active {
    border-color: var(--vp-property-accent);
    background: #fff;
    color: var(--vp-property-navy);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .08);
}

.vp-property-page .vp-share-control { position: relative; }
.vp-property-page .vp-share-menu[hidden] { display: none !important; }

.vp-property-page .vp-share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 195px;
    padding: 7px;
    border: 1px solid var(--vp-property-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--vp-property-shadow);
}

.vp-property-page .vp-share-menu a,
.vp-property-page .vp-share-menu button {
    display: flex;
    width: 100%;
    min-height: 40px;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--vp-property-text);
    box-shadow: none;
    font: 500 14px/1.25 var(--vp-font-sans, Inter, Arial, sans-serif);
    text-align: left;
    text-decoration: none;
    text-transform: none;
}

.vp-property-page .vp-share-menu a:hover,
.vp-property-page .vp-share-menu button:hover { background: var(--vp-property-bg); }

.vp-property-page .vp-property-media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
    margin: 0 0 38px;
}

.vp-property-page .vp-property-gallery { min-width: 0; margin: 0; }

.vp-property-page .vp-property-main {
    display: grid;
    min-width: 0;
    gap: 24px;
}

.vp-property-page .vp-property-gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: var(--vp-property-bg);
}

.vp-property-page .vp-property-gallery-stage figure {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 220ms ease;
}

.vp-property-page .vp-property-gallery-stage figure.is-active {
    visibility: visible;
    opacity: 1;
}

.vp-property-page .vp-property-gallery-stage img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.vp-property-page .vp-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 46px;
    min-width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--vp-property-navy);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
    place-items: center;
    transform: translateY(-50%);
}

.vp-property-page .vp-gallery-arrow--previous { left: 16px; }
.vp-property-page .vp-gallery-arrow--next { right: 16px; }

.vp-property-page .vp-gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 24, 33, .82);
    color: #fff;
    font: 700 13px/1 var(--vp-font-sans, Inter, Arial, sans-serif);
}

.vp-property-page .vp-property-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 4px;
}

.vp-property-page button.vp-gallery-thumbnail {
    flex: 0 0 92px;
    width: 92px;
    height: 66px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 7px;
    background: var(--vp-property-bg);
    box-shadow: none;
    opacity: .72;
}

.vp-property-page button.vp-gallery-thumbnail.is-active,
.vp-property-page button.vp-gallery-thumbnail:focus-visible {
    border-color: var(--vp-property-accent);
    opacity: 1;
}

.vp-property-page .vp-property-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    min-width: 0;
    gap: 18px;
}

/* Los detalles se muestran antes que el formulario, en escritorio y móvil. */
.vp-property-page .vp-property-summary { order: -1; }

.vp-property-page .vp-property-contact,
.vp-property-page .vp-property-summary,
.vp-property-page .vp-property-description {
    width: 100%;
    margin: 0;
    padding: 26px;
    border: 1px solid var(--vp-property-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--vp-property-shadow);
}

.vp-property-page .vp-property-contact h2,
.vp-property-page .vp-property-summary h2,
.vp-property-page .vp-property-description h2 {
    margin: 0 0 12px;
    color: var(--vp-property-navy);
    font-family: var(--vp-font-serif, Georgia, serif);
    font-size: 28px;
    line-height: 1.15;
}

.vp-property-page .vp-property-contact > p {
    margin: 0 0 20px;
    color: var(--vp-property-muted);
    font-size: 14px;
    line-height: 1.55;
}

.vp-property-page form.vp-property-contact-form {
    display: grid;
    width: 100%;
    gap: 14px;
    margin: 0;
}

.vp-property-page .vp-property-contact-form > label:not(.vp-privacy-check) {
    display: grid;
    width: 100%;
    gap: 6px;
    margin: 0;
    color: var(--vp-property-navy);
    font: 700 13px/1.3 var(--vp-font-sans, Inter, Arial, sans-serif);
}

.vp-property-page .vp-property-contact-form input[type="text"],
.vp-property-page .vp-property-contact-form input[type="email"],
.vp-property-page .vp-property-contact-form input[type="tel"],
.vp-property-page .vp-property-contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--vp-property-border);
    border-radius: 7px;
    background: #fff;
    color: var(--vp-property-text);
    box-shadow: none;
    font: 400 15px/1.4 var(--vp-font-sans, Inter, Arial, sans-serif);
}

.vp-property-page .vp-property-contact-form input { height: 44px; }
.vp-property-page .vp-property-contact-form textarea { min-height: 94px; resize: vertical; }

.vp-property-page .vp-property-contact-form input:focus,
.vp-property-page .vp-property-contact-form textarea:focus {
    border-color: var(--vp-property-accent);
    outline: 3px solid rgba(197, 168, 128, .22);
}

.vp-property-page label.vp-privacy-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    width: 100%;
    gap: 9px;
    align-items: start;
    margin: 0;
    color: var(--vp-property-muted);
    font: 400 12px/1.45 var(--vp-font-sans, Inter, Arial, sans-serif);
}

.vp-property-page .vp-privacy-check input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 2px 0 0;
}

.vp-property-page button.vp-contact-submit {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 16px;
    border: 0;
    border-radius: 7px;
    background: var(--vp-property-navy);
    color: #fff;
    box-shadow: none;
    font: 800 14px/1.2 var(--vp-font-sans, Inter, Arial, sans-serif);
    text-align: center;
    text-transform: none;
}

.vp-property-page button.vp-contact-submit:hover,
.vp-property-page button.vp-contact-submit:focus-visible {
    background: var(--vp-property-navy-dark);
    color: #fff;
}

.vp-property-page .vp-contact-feedback { display: none; margin: 0; padding: 10px; border-radius: 7px; font-size: 13px; }
.vp-property-page .vp-contact-feedback.is-success,
.vp-property-page .vp-contact-feedback.is-error { display: block; }
.vp-property-page .vp-contact-feedback.is-success { background: #eaf7ef; color: #17653a; }
.vp-property-page .vp-contact-feedback.is-error { background: #fff0f1; color: #a12435; }

.vp-property-page .vp-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.vp-property-page .vp-property-summary dl { margin: 0; }
.vp-property-page .vp-property-summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--vp-property-border); }
.vp-property-page .vp-property-summary dt { color: var(--vp-property-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vp-property-page .vp-property-summary dd { margin: 0; color: var(--vp-property-navy); font-weight: 700; text-align: right; }

@media (max-width: 992px) {
    .vp-property-page .vp-property-media-layout { grid-template-columns: 1fr; }
    .vp-property-page .vp-property-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .vp-property-page { padding: 32px 16px 48px; }
    .vp-property-page .vp-property-heading { align-items: flex-start; flex-direction: column; }
    .vp-property-page .vp-property-actions { flex-wrap: wrap; }
    .vp-property-page .vp-property-gallery-stage { aspect-ratio: 4 / 3; }
    .vp-property-page .vp-property-sidebar { grid-template-columns: 1fr; }
    .vp-property-page .vp-property-contact,
    .vp-property-page .vp-property-summary,
    .vp-property-page .vp-property-description { padding: 22px; }
}
