.portal-property {
    padding: 36px 0 var(--pt-section-y);
}

.portal-property__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--pt-color-text-muted);
    font-size: .95rem;
}

.portal-property__breadcrumb a {
    color: var(--pt-color-text-soft);
    text-decoration: none;
}

.portal-property__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
}

.portal-property__main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.portal-gallery__hero {
    aspect-ratio: 4 / 3;
    border-radius: var(--pt-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--pt-color-bg-soft) 0%, var(--pt-color-border-soft) 100%);
    box-shadow: var(--pt-shadow-sm);
}

.portal-gallery__hero-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.portal-gallery__hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.portal-gallery__hero-btn:hover .portal-gallery__hero-image {
    transform: scale(1.02);
}

.portal-gallery__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background .25s ease;
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
}

.portal-gallery__hero-btn:hover .portal-gallery__hero-overlay {
    background: rgba(0, 0, 0, .25);
    opacity: 1;
}

.portal-gallery__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--pt-color-text-muted);
}

.portal-gallery__placeholder i {
    font-size: 2.4rem;
    color: var(--pt-color-primary);
}

.portal-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.portal-gallery__thumb {
    border: 1px solid var(--pt-color-border);
    border-radius: var(--pt-radius-md);
    overflow: hidden;
    padding: 0;
    background: var(--pt-color-bg);
    flex: 0 0 108px;
    box-shadow: var(--pt-shadow-xs);
}

.portal-gallery__thumb.is-active {
    border-color: var(--pt-color-primary);
    box-shadow: var(--pt-shadow-sm);
}

.portal-gallery__thumb img {
    width: 108px;
    height: 82px;
    display: block;
    object-fit: cover;
}

.portal-property__section {
    background: var(--pt-color-bg);
    border: 1px solid var(--pt-color-border-soft);
    border-radius: var(--pt-radius-lg);
    padding: 28px;
    box-shadow: var(--pt-shadow-sm);
}

.portal-property__section--placeholder {
    text-align: center;
}

.portal-property__section-title {
    margin: 0 0 18px;
    font-size: 1.4rem;
}

.portal-property__description {
    color: var(--pt-color-text-soft);
    line-height: 1.8;
}

.portal-property__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.portal-property__feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--pt-color-border);
    border-radius: var(--pt-radius-md);
    background: var(--pt-color-bg-soft);
    color: var(--pt-color-text-soft);
}

.portal-property__feature i {
    color: var(--pt-color-primary);
}

.portal-property__aside {
    position: relative;
}

.portal-property__panel {
    position: sticky;
    top: 108px;
    background: var(--pt-color-bg);
    border: 1px solid var(--pt-color-border-soft);
    border-radius: var(--pt-radius-lg);
    padding: 28px;
    box-shadow: var(--pt-shadow-md);
}

.portal-property__price-label {
    margin: 0 0 8px;
    color: var(--pt-color-text-muted);
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.portal-property__price {
    margin: 0 0 22px;
    font-family: var(--pt-font-display);
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1;
}

.portal-property__cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 22px;
}

.portal-property__agent {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--pt-color-border-soft);
    margin-bottom: 4px;
}

.portal-property__agent-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pt-color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pt-color-text-muted);
    font-size: 1.4rem;
    border: 1px solid var(--pt-color-border-soft);
}

.portal-property__agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-property__agent-name {
    margin: 0;
    font-weight: 600;
    font-size: .95rem;
    color: var(--pt-color-text);
}

.portal-property__agent-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: .85rem;
    color: var(--pt-color-primary);
    text-decoration: none;
}

.portal-property__agent-phone:hover {
    text-decoration: underline;
}

.portal-property__agent-wa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: .85rem;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s;
}

.portal-property__agent-wa:hover {
    background: #bbf7d0;
    color: #14532d;
}

.portal-property__agent-info {
    display: flex;
    flex-direction: column;
}

.portal-property__share {
    padding-top: 16px;
    border-top: 1px solid var(--pt-color-border-soft);
    margin-top: 4px;
}

.portal-property__share-label {
    margin: 0 0 8px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pt-color-text-muted);
}

.portal-property__share-btns {
    display: flex;
    gap: 8px;
}

.portal-property__share-wa,
.portal-property__share-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: filter .15s;
}

.portal-property__share-wa {
    background: #25D366;
    color: #fff;
}

.portal-property__share-copy {
    background: var(--pt-color-bg-soft);
    color: var(--pt-color-text);
    border: 1px solid var(--pt-color-border-soft);
}

.portal-property__share-wa:hover,
.portal-property__share-copy:hover {
    filter: brightness(.93);
}

.portal-property__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.portal-property__info-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
}

.portal-property__info-row dt {
    color: var(--pt-color-text-muted);
    font-weight: 600;
}

.portal-property__info-row dd {
    margin: 0;
    color: var(--pt-color-text);
}

.portal-property__contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.portal-property__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-property__field--full {
    grid-column: 1 / -1;
}

.portal-property__field span,
.portal-property__checkbox span {
    color: var(--pt-color-text-soft);
    font-size: .92rem;
    font-weight: 600;
}

.portal-property__field input,
.portal-property__field textarea {
    width: 100%;
    border: 1px solid var(--pt-color-border);
    border-radius: var(--pt-radius-md);
    background: var(--pt-color-bg);
    color: var(--pt-color-text);
    padding: 14px 16px;
    font: inherit;
}

.portal-property__field textarea {
    resize: vertical;
}

.portal-property__checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
}

.portal-property__placeholder-text {
    margin: 0;
    color: var(--pt-color-text-soft);
}

.portal-property__modal {
    border: none;
    border-radius: var(--pt-radius-lg);
    box-shadow: var(--pt-shadow-lg);
}

.portal-property__modal-title {
    margin: 0;
    font-size: 1.3rem;
}

.portal-error404 {
    padding: var(--pt-section-y) 0;
}

.portal-error404__box {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 32px;
    border: 1px solid var(--pt-color-border-soft);
    border-radius: var(--pt-radius-lg);
    background: var(--pt-color-bg);
    box-shadow: var(--pt-shadow-sm);
    text-align: center;
}

.portal-error404__box i {
    font-size: 3rem;
    color: var(--pt-color-primary);
    margin-bottom: 18px;
}

.portal-error404__box h1 {
    margin-bottom: 12px;
}

.portal-error404__box p {
    margin: 0 0 24px;
    color: var(--pt-color-text-soft);
}

@media (max-width: 991.98px) {
    .portal-property__layout {
        grid-template-columns: 1fr;
    }

    .portal-property__panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .portal-property {
        padding-top: 24px;
    }

    .portal-property__section,
    .portal-property__panel,
    .portal-error404__box {
        padding: 22px;
    }

    .portal-property__contact-grid,
    .portal-property__features {
        grid-template-columns: 1fr;
    }

    .portal-property__info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ── Propiedades similares ───────────────────────────────────── */
.portal-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ── Mapa de ubicación ───────────────────────────────────────── */
.portal-property__map {
    height: 320px;
    border-radius: var(--pt-radius-md);
    overflow: hidden;
    margin-top: 12px;
}

.portal-property__map-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: .85rem;
    color: var(--pt-color-text-muted);
}
