/* ==========================================================================
   Page — Property Detail
   ========================================================================== */

.property-breadcrumb {
    padding-top: var(--space-6);
}

/* ---------- Title header ---------- */
.property-head {
    padding-block: var(--space-5) var(--space-6);
}

.property-head__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.property-head__location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.property-head__location svg {
    width: 15px;
    height: 15px;
    color: var(--color-accent);
}

.property-head__title {
    font-size: clamp(30px, 4vw, 40px);
    line-height: var(--lh-tight);
}

.property-head__address {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-3);
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
}

.property-head__address > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.property-head__address > span svg {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

.property-head__map {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-accent);
    transition: background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}

.property-head__map svg {
    width: 15px;
    height: 15px;
}

.property-head__map:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
}

.property-head__side {
    text-align: right;
}

.property-head__side .badge {
    margin-bottom: var(--space-3);
}

.property-head__price {
    font-family: var(--font-body);
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-normal);
    line-height: var(--lh-tight);
    color: var(--color-text-secondary);
}

.property-head__price-meta {
    margin-top: var(--space-1);
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .property-head__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .property-head__side {
        text-align: left;
    }
}

/* ---------- Gallery ---------- */
.property-gallery {
    padding-block: 0 var(--space-6);
}

.gallery__main {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-image);
    overflow: hidden;
    background-color: var(--color-bg-alt);
    box-shadow: var(--shadow-md);
}

.gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transition: background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.gallery__nav svg {
    width: 22px;
    height: 22px;
}

.gallery__nav:hover {
    background-color: var(--color-accent);
    color: var(--color-on-accent);
}

.gallery__nav:active {
    transform: translateY(-50%) scale(0.94);
}

.gallery__nav--prev { left: var(--space-5); }
.gallery__nav--next { right: var(--space-5); }

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.gallery__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    border-radius: var(--radius-field);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumb:hover {
    transform: translateY(-2px);
}

.gallery__thumb.is-active {
    border-color: var(--color-accent);
}

/* ---------- Facts strip ---------- */
.property-facts {
    padding-block: var(--space-4) var(--space-6);
}

.property-facts__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.property-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-5) var(--space-3);
    text-align: center;
}

.property-fact + .property-fact {
    border-left: 1px solid var(--color-border);
}

.property-fact svg {
    width: 24px;
    height: 24px;
    margin-bottom: var(--space-2);
    color: var(--color-accent);
}

.property-fact__value {
    font-family: var(--font-heading);
    font-size: var(--fs-sub);
    font-weight: var(--fw-normal);
    line-height: var(--lh-tight);
}

.property-fact__label {
    font-size: var(--fs-caption);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ---------- Body layout ---------- */
.property-body__grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.property-content__title {
    margin-bottom: var(--space-4);
}

.property-content__text {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.property-content__block {
    margin-top: var(--space-8);
}

/* ---------- Amenity grid ---------- */
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.amenity-grid li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-text-secondary);
}

.amenity-grid svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    padding: 4px;
    border-radius: 50%;
    background-color: var(--color-accent-tint);
    color: var(--color-accent);
}

/* ---------- Property video ---------- */
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-image);
    overflow: hidden;
    background-color: #000000;
    box-shadow: var(--shadow-md);
}

.video-frame iframe,
.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-frame--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
        linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-deeper) 100%);
}

.video-placeholder {
    text-align: center;
    padding: var(--space-7);
}

.video-placeholder__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.video-placeholder__icon svg {
    width: 26px;
    height: 26px;
}

.video-placeholder__title {
    color: var(--color-text-inverse);
    font-size: var(--fs-sub);
    margin-bottom: var(--space-2);
}

.video-placeholder__text {
    max-width: 40ch;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-small);
}

/* ---------- Property aside ---------- */
.property-aside {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
}

/* ---------- Related ---------- */
.property-related {
    margin-top: var(--space-4);
}

/* ---------- Not found ---------- */
.property-notfound {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.property-notfound__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-5);
    border-radius: 50%;
    background-color: var(--color-accent-tint);
    color: var(--color-accent);
}

.property-notfound__icon svg {
    width: 30px;
    height: 30px;
}

.property-notfound .section-header__eyebrow {
    justify-content: center;
    margin-bottom: var(--space-3);
}

.property-notfound__title {
    margin-bottom: var(--space-3);
}

.property-notfound__text {
    max-width: 46ch;
    margin: 0 auto var(--space-6);
    color: var(--color-text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .property-body__grid {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .property-aside {
        position: static;
    }

    .property-facts__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .property-fact:nth-child(4) {
        border-left: 0;
    }

    .property-fact:nth-child(n + 4) {
        border-top: 1px solid var(--color-border);
    }
}

@media (max-width: 640px) {
    .property-facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-fact + .property-fact {
        border-left: 0;
    }

    .property-fact:nth-child(odd) {
        border-right: 1px solid var(--color-border);
    }

    .property-fact:nth-child(n + 3) {
        border-top: 1px solid var(--color-border);
    }

    .amenity-grid {
        grid-template-columns: 1fr;
    }

    .gallery__nav {
        width: 44px;
        height: 44px;
    }

    .gallery__nav svg {
        width: 18px;
        height: 18px;
    }
}
