/* AQARK Marketplace R25 — Property Detail UX / Navigation / SEO presentation
   Existing AQARK identity is intentionally retained. No logo or shared theme mutation. */

.aqark-property-detail-v2 {
    padding-block: clamp(20px, 3vw, 42px) 96px;
}

.aqark-property-detail-v2__breadcrumbs {
    margin-block-end: 10px;
}

.aqark-property-back-v3 {
    align-items: center;
    border-radius: 999px;
    color: var(--aqark-primary, #212356);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 8px;
    margin-block-end: 22px;
    min-height: 44px;
    padding-inline: 12px;
    text-decoration: none;
}

.aqark-property-back-v3:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.aqark-property-back-v3:focus-visible,
.aqark-property-detail-v2 a:focus-visible,
.aqark-property-detail-v2 button:focus-visible,
.aqark-property-detail-v2 input:focus-visible,
.aqark-property-detail-v2 textarea:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.aqark-property-detail-intro-v3 {
    align-items: start;
    display: grid;
    gap: clamp(18px, 3vw, 36px);
    grid-template-columns: minmax(0, 1fr) auto;
    margin-block-end: 22px;
}

.aqark-property-detail-intro-v3__copy h1 {
    line-height: 1.2;
    margin-block: 8px 0;
    max-width: 24ch;
    text-wrap: balance;
}

.aqark-property-detail-intro-v3__commercial {
    min-width: min(100%, 290px);
}

.aqark-property-detail-intro-v3__commercial > strong {
    display: block;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.2;
    margin-block-end: 12px;
}

.aqark-property-detail-intro-v3__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aqark-property-gallery-v2 {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 2fr) minmax(210px, 0.8fr);
    margin-block-end: 28px;
}

.aqark-property-gallery-v2--single {
    grid-template-columns: minmax(0, 1fr);
}

.aqark-property-gallery-v2__main,
.aqark-property-gallery-v2__thumb {
    overflow: hidden;
}

.aqark-property-gallery-v2__main {
    aspect-ratio: 16 / 10;
    min-height: 0;
    position: relative;
}

.aqark-property-gallery-v2__main > img,
.aqark-property-gallery-v2__thumb > img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.aqark-property-gallery-v2__side {
    display: grid;
    gap: 12px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.aqark-property-gallery-v2__thumb {
    aspect-ratio: 16 / 10;
}

.aqark-property-detail-layout-v2 {
    align-items: start;
    display: grid;
    gap: clamp(20px, 3vw, 34px);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.aqark-property-detail-main-v2 {
    min-width: 0;
}

.aqark-property-detail-main-v2 > section + section {
    margin-block-start: 18px;
}

.aqark-property-detail-summary-v2,
.aqark-property-detail-section-v2,
.aqark-profile-section-v2 {
    scroll-margin-top: 110px;
}

.aqark-property-detail-facts-v2 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.aqark-property-detail-facts-v2 > div {
    min-width: 0;
}

.aqark-property-detail-sidebar-v2 {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.aqark-property-contact-card-v2 .aqark-btn {
    justify-content: center;
    min-height: 46px;
    width: 100%;
}

.aqark-property-contact-card-v2 .aqark-btn + .aqark-btn {
    margin-block-start: 10px;
}

.aqark-property-similar-grid-v2 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.aqark-similar-property-card-v2 {
    min-width: 0;
}

.aqark-similar-property-card-v2__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.aqark-similar-property-card-v2__media > img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.aqark-lead-form-v2 input,
.aqark-lead-form-v2 textarea,
.aqark-lead-form-v2 button {
    min-height: 46px;
}

.aqark-property-mobile-actions-v2 a {
    min-height: 48px;
}

@media (max-width: 900px) {
    .aqark-property-detail-intro-v3,
    .aqark-property-detail-layout-v2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .aqark-property-detail-intro-v3__commercial {
        min-width: 0;
        width: 100%;
    }

    .aqark-property-detail-sidebar-v2 {
        position: static;
    }
}

@media (max-width: 680px) {
    .aqark-property-detail-v2 {
        padding-block-start: 14px;
    }

    .aqark-property-gallery-v2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .aqark-property-gallery-v2__side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .aqark-property-detail-intro-v3__actions .aqark-btn {
        flex: 1 1 150px;
        justify-content: center;
        min-height: 46px;
    }

    .aqark-property-detail-facts-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aqark-property-similar-grid-v2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aqark-property-detail-v2 *,
    .aqark-property-detail-v2 *::before,
    .aqark-property-detail-v2 *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
