/**
 * Property detail — luxury listing experience
 * Loaded after glass-ui; specificity beats site-glass-theme overrides.
 */

/* ─── Glass theme kill-switch on this page ─── */
.page-property-detail.site-glass-theme {
    --pd-ink: #0e0e0e;
    --pd-muted: #5c5a56;
    --pd-line: rgba(20, 18, 14, 0.12);
    --pd-gold: var(--damac-gold, #d9c496);
    --pd-gold-soft: rgba(217, 196, 150, 0.22);
    --pd-surface: #f6f4ef;
    --pd-paper: #fffcf7;
    --pd-charcoal: #141414;
    --pd-charcoal-2: #1c1a17;
    background:
        radial-gradient(ellipse 90% 50% at 10% -10%, rgba(217, 196, 150, 0.14), transparent 50%),
        radial-gradient(ellipse 70% 40% at 100% 20%, rgba(20, 18, 14, 0.04), transparent 45%),
        linear-gradient(180deg, #f8f6f1 0%, #f3f1ec 40%, #f8f6f1 100%);
}

.page-property-detail.site-glass-theme .damac-breadcrumb {
    background: #0e0e0e !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(217, 196, 150, 0.28) !important;
}

.page-property-detail .damac-breadcrumb a,
.page-property-detail .damac-breadcrumb span {
    color: rgba(255, 255, 255, 0.68);
}

.page-property-detail .damac-breadcrumb a:hover {
    color: var(--pd-gold);
}

.page-property-detail .damac-breadcrumb [aria-current="page"] {
    color: #fff;
}

/* ─── Gallery mosaic ─── */
.pd-gallery {
    position: relative;
    background: #0a0a0a;
    padding: 0 0 1.25rem;
}

.pd-gallery__stage {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

@media (min-width: 1024px) {
    .pd-gallery__mosaic {
        display: grid;
        grid-template-columns: 1.55fr 0.9fr;
        gap: 0.65rem;
        min-height: min(72vh, 680px);
    }

    .pd-gallery__main {
        position: relative;
        overflow: hidden;
        min-height: min(72vh, 680px);
    }

    .pd-gallery__side {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 0.65rem;
        min-height: min(72vh, 680px);
    }

    .pd-gallery__side-item {
        position: relative;
        overflow: hidden;
    }

    .pd-gallery__side-item img,
    .pd-gallery__main .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .pd-gallery .property-main-gallery {
        height: 100%;
        min-height: min(72vh, 680px);
    }
}

@media (max-width: 1023px) {
    .pd-gallery__stage {
        padding: 0;
    }

    .pd-gallery__side {
        display: none;
    }

    .pd-gallery .property-main-gallery {
        height: min(62vh, 560px);
        min-height: 320px;
    }
}

.pd-gallery .property-main-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-gallery .property-main-gallery .swiper-slide-active img {
    transform: scale(1);
}

.pd-gallery__side-item img {
    transform: scale(1.03);
    transition: transform 0.8s ease, filter 0.35s ease;
    filter: brightness(0.92);
}

.pd-gallery__side-item:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.pd-gallery__count {
    position: absolute;
    left: clamp(1rem, 3vw, 2rem);
    bottom: 1.15rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(217, 196, 150, 0.5);
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: 'Josefin Sans', sans-serif;
    backdrop-filter: blur(10px);
}

.pd-gallery .swiper-button-next,
.pd-gallery .swiper-button-prev {
    width: 48px;
    height: 48px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.pd-gallery .swiper-button-next:after,
.pd-gallery .swiper-button-prev:after {
    font-size: 14px;
    font-weight: 700;
}

.pd-gallery .swiper-button-next:hover,
.pd-gallery .swiper-button-prev:hover {
    background: var(--pd-gold);
    border-color: var(--pd-gold);
    color: #111;
}

.pd-gallery .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.pd-gallery .swiper-pagination-bullet-active {
    background: var(--pd-gold);
}

.pd-gallery__thumbs {
    max-width: 1440px;
    margin: 0.85rem auto 0;
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.pd-gallery .property-thumb-gallery .swiper-slide {
    cursor: pointer;
}

.pd-gallery .property-thumb-gallery .swiper-slide img {
    height: 76px;
    width: 100%;
    object-fit: cover;
    opacity: 0.45;
    border: 1px solid transparent;
    filter: saturate(0.75);
    transition: opacity 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.pd-gallery .property-thumb-gallery .swiper-slide-thumb-active img,
.pd-gallery .property-thumb-gallery .swiper-slide:hover img {
    opacity: 1;
    filter: none;
    border-color: var(--pd-gold);
}

.pd-gallery__placeholder {
    min-height: min(58vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #151515 0%, #0a0a0a 50%, #1a1712 100%);
    color: rgba(255, 255, 255, 0.45);
}

/* ─── Intro band ─── */
.pd-intro {
    position: relative;
    margin-top: -2.5rem;
    z-index: 2;
    padding: 0 0 2rem;
}

@media (max-width: 1023px) {
    .pd-intro {
        margin-top: 0;
        padding-top: 1.75rem;
    }
}

.pd-intro__card {
    background: var(--pd-paper);
    border: 1px solid var(--pd-line);
    box-shadow: 0 28px 60px rgba(14, 14, 14, 0.1);
    padding: clamp(1.5rem, 3vw, 2.35rem);
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .pd-intro__card {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
        align-items: stretch;
        gap: 2.5rem;
    }
}

.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.pd-badge {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

.pd-badge--gold {
    background: var(--pd-gold);
    color: #111;
}

.pd-badge--ink {
    background: var(--pd-charcoal);
    color: #fff;
}

.pd-badge--soft {
    background: rgba(20, 18, 14, 0.06);
    color: var(--pd-muted);
    border: 1px solid var(--pd-line);
}

.pd-intro h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--pd-ink);
    margin: 0 0 0.65rem;
    max-width: 16ch;
}

.pd-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pd-muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.pd-location svg {
    color: var(--pd-gold);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pd-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pd-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    background: rgba(20, 18, 14, 0.035);
    border: 1px solid var(--pd-line);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--pd-ink);
}

.pd-spec svg {
    width: 15px;
    height: 15px;
    color: var(--pd-gold);
}

.pd-share {
    display: flex;
    gap: 0.45rem;
    margin-top: 1.35rem;
}

.pd-share a,
.pd-share button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pd-line);
    background: #fff;
    color: var(--pd-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pd-share a:hover,
.pd-share button:hover {
    border-color: var(--pd-gold);
    color: var(--pd-ink);
    background: rgba(217, 196, 150, 0.18);
}

/* Price panel */
.pd-price-panel {
    position: relative;
    background:
        linear-gradient(165deg, #1f1c18 0%, #121110 48%, #1a1712 100%);
    color: #fff;
    padding: 1.65rem 1.55rem 1.45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.35rem;
    overflow: hidden;
    min-height: 100%;
}

.pd-price-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pd-gold), #f3e7c8, var(--pd-gold), transparent);
}

.pd-price-panel::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 196, 150, 0.18), transparent 70%);
    pointer-events: none;
}

.pd-price-panel__eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(217, 196, 150, 0.9);
    margin: 0 0 0.45rem;
}

.pd-price-panel__amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.01em;
}

.pd-price-panel__amount span {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    opacity: 0.55;
    margin-top: 0.35rem;
    font-weight: 400;
}

.pd-price-panel__meta {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-price-panel__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
}

.pd-price-panel__meta-row span:first-child {
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pd-price-panel .btn-damac,
.pd-enquire .btn-damac {
    background: var(--pd-gold) !important;
    color: #111 !important;
    border-color: var(--pd-gold) !important;
    width: 100%;
    justify-content: center;
    letter-spacing: 0.08em;
}

.pd-price-panel .btn-damac:hover,
.pd-enquire .btn-damac:hover {
    background: #e8d9b8 !important;
}

.pd-price-panel__secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.pd-price-panel__secondary a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: border-color 0.2s, background 0.2s;
}

.pd-price-panel__secondary a:hover {
    border-color: var(--pd-gold);
    background: rgba(217, 196, 150, 0.12);
}

/* ─── Body layout ─── */
.pd-body {
    padding: 0.5rem 0 3.5rem;
}

.pd-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1100px) {
    .pd-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 2.5rem;
        align-items: start;
    }
}

.pd-kpi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 2rem;
}

@media (min-width: 720px) {
    .pd-kpi {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pd-kpi__item {
    background: #fff;
    border: 1px solid var(--pd-line);
    padding: 1.25rem 1rem 1.1rem;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pd-kpi__item:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 196, 150, 0.75);
    box-shadow: 0 14px 28px rgba(14, 14, 14, 0.06);
}

.pd-kpi__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--pd-gold);
    line-height: 1;
}

.pd-kpi__label {
    margin-top: 0.45rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

.pd-block {
    background: #fff;
    border: 1px solid var(--pd-line);
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
    margin-bottom: 1.15rem;
    box-shadow: 0 10px 30px rgba(14, 14, 14, 0.03);
}

.pd-block h2,
.page-property-detail .damac-detail-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 600;
    color: var(--pd-ink);
    margin: 0 0 1.1rem;
    padding-bottom: 0.7rem;
    position: relative;
}

.pd-block h2::after,
.page-property-detail .damac-detail-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--pd-gold);
}

.pd-prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a4742;
    font-weight: 300;
}

.pd-amenity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

@media (min-width: 640px) {
    .pd-amenity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .pd-amenity-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pd-amenity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--pd-line);
    background: linear-gradient(180deg, #fff, #faf8f4);
    font-size: 0.875rem;
    color: var(--pd-ink);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.pd-amenity:hover {
    border-color: rgba(217, 196, 150, 0.85);
    transform: translateY(-1px);
    background: #fff;
}

.pd-amenity svg {
    color: var(--pd-gold);
    flex-shrink: 0;
}

/* Detail helper sections */
.page-property-detail .damac-detail-section {
    background: #fff;
    border: 1px solid var(--pd-line);
    padding: clamp(1.35rem, 2.5vw, 1.85rem) !important;
    margin-bottom: 1.15rem;
    border-top: 1px solid var(--pd-line) !important;
    box-shadow: 0 10px 30px rgba(14, 14, 14, 0.03);
}

.page-property-detail .damac-detail-row {
    padding: 0.35rem 0;
}

.page-property-detail .damac-property-amenity {
    background: linear-gradient(180deg, #fff, #faf8f4);
    border-color: var(--pd-line);
}

/* ─── Enquire panel (must beat glass) ─── */
.page-property-detail.site-glass-theme .pd-enquire,
.page-property-detail .pd-enquire {
    position: sticky;
    top: 92px;
    background:
        linear-gradient(168deg, #1f1c18 0%, #121110 52%, #1a1611 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(217, 196, 150, 0.35) !important;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28) !important;
    color: #fff !important;
    padding: 1.65rem 1.45rem 1.5rem !important;
    scroll-margin-top: 100px;
}

.pd-enquire__ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(217, 196, 150, 0.95) !important;
    margin: 0 0 0.55rem;
}

.pd-enquire h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.85rem !important;
    color: #fff !important;
    margin: 0 0 0.45rem !important;
    line-height: 1.15;
}

.pd-enquire__lead {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.pd-enquire__highlights {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pd-enquire__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
}

.pd-enquire__row span:first-child {
    color: rgba(255, 255, 255, 0.45) !important;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pd-enquire__row span:last-child {
    color: #fff !important;
    text-align: right;
    font-weight: 500;
}

.page-property-detail.site-glass-theme .pd-enquire label,
.page-property-detail .pd-enquire label {
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55) !important;
}

.page-property-detail.site-glass-theme .pd-enquire .damac-field,
.page-property-detail .pd-enquire .damac-field,
.page-property-detail.site-glass-theme .pd-enquire input,
.page-property-detail.site-glass-theme .pd-enquire textarea,
.page-property-detail .pd-enquire input,
.page-property-detail .pd-enquire textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    padding: 0.8rem 0.9rem;
    border-radius: 0;
    box-shadow: none !important;
}

.page-property-detail .pd-enquire .damac-field:focus,
.page-property-detail .pd-enquire input:focus,
.page-property-detail .pd-enquire textarea:focus {
    border-color: var(--pd-gold) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 196, 150, 0.22) !important;
}

.page-property-detail .pd-enquire .damac-field::placeholder,
.page-property-detail .pd-enquire input::placeholder,
.page-property-detail .pd-enquire textarea::placeholder {
    color: rgba(255, 255, 255, 0.32) !important;
}

.pd-enquire__fields {
    display: grid;
    gap: 0.85rem;
}

.pd-enquire__contact {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
}

.pd-enquire__contact p {
    margin: 0.2rem 0;
    color: rgba(255, 255, 255, 0.65) !important;
}

.pd-enquire__contact a {
    color: #fff !important;
    text-decoration: none;
}

.pd-enquire__contact a:hover {
    color: var(--pd-gold) !important;
}

.pd-enquire__assurance {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    background: rgba(217, 196, 150, 0.1);
    border: 1px solid rgba(217, 196, 150, 0.28);
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72) !important;
}

.pd-enquire__assurance svg {
    color: var(--pd-gold);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Similar */
.page-property-detail.site-glass-theme .pd-similar,
.page-property-detail .pd-similar {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(217, 196, 150, 0.12), transparent 60%),
        #efece5 !important;
    backdrop-filter: none !important;
    border-top: 1px solid var(--pd-line);
    padding: 3.5rem 0 4rem;
}

.pd-similar__head {
    text-align: center;
    margin-bottom: 2rem;
}

.pd-similar__head .eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pd-muted);
    margin-bottom: 0.45rem;
}

.pd-similar__head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    margin: 0;
    color: var(--pd-ink);
}

/* Motion */
.pd-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: pdReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pd-reveal--1 { animation-delay: 0.06s; }
.pd-reveal--2 { animation-delay: 0.14s; }
.pd-reveal--3 { animation-delay: 0.22s; }

@keyframes pdReveal {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .pd-gallery .property-main-gallery .swiper-slide img,
    .pd-gallery__side-item img {
        transition: none;
        transform: none;
    }
}

/* Mobile sticky enquire focus */
@media (max-width: 1099px) {
    .page-property-detail .pd-enquire {
        position: relative;
        top: auto;
        margin-top: 0.5rem;
    }
}

@media print {
    .no-print,
    .pd-share,
    .damac-mobile-sticky-bar {
        display: none !important;
    }
}
