/* ===== Premium Single Property ===== */
.pf-single {
    max-width: none;
    padding: 0;
    background: #f8f9fb;
}

.pf-sp {
    --pf-gold: #c9a84c;
    --pf-dark: #0f172a;
    --pf-muted: #64748b;
    --pf-radius: 16px;
    --pf-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    font-family: inherit;
    color: var(--pf-dark);
}

/* Gallery */
.pf-sp-gallery {
    background: var(--pf-dark);
    position: relative;
}

.pf-sp-gallery__stage {
    position: relative;
    height: clamp(320px, 55vh, 620px);
    overflow: hidden;
}

.pf-sp-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

.pf-sp-gallery__main.is-fading {
    opacity: 0.4;
}

.pf-sp-gallery__stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 40%);
    pointer-events: none;
}

.pf-sp-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pf-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--pf-shadow);
    transition: transform 0.2s, background 0.2s;
}

.pf-sp-gallery__arrow:hover {
    transform: translateY(-50%) scale(1.06);
    background: #fff;
}

.pf-sp-gallery__arrow--prev { left: 20px; }
.pf-sp-gallery__arrow--next { right: 20px; }

.pf-sp-gallery__zoom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pf-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.pf-sp-gallery__zoom:hover {
    background: #fff;
}

.pf-sp-gallery__counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.pf-sp-gallery__thumbs {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    background: #0a0e17;
}

.pf-sp-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.pf-sp-gallery__thumb {
    flex: 0 0 88px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
    background: none;
}

.pf-sp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-sp-gallery__thumb.is-active,
.pf-sp-gallery__thumb:hover {
    opacity: 1;
    border-color: var(--pf-gold);
}

/* Hero */
.pf-sp-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.pf-sp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pf-sp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-sp-badge--type {
    background: var(--pf-gold);
    color: var(--pf-dark);
}

.pf-sp-badge--muted {
    background: #e2e8f0;
    color: var(--pf-muted);
}

.pf-sp-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.pf-sp-title-ar {
    font-size: 1.15rem;
    color: var(--pf-muted);
    margin: 0 0 12px;
}

.pf-sp-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pf-muted);
    font-size: 1rem;
    margin: 0 0 6px;
}

.pf-sp-location svg {
    color: var(--pf-gold);
    flex-shrink: 0;
}

.pf-sp-ref {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.pf-sp-hero__price {
    text-align: right;
    flex-shrink: 0;
}

.pf-sp-price {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--pf-dark);
    line-height: 1;
    letter-spacing: -0.03em;
}

.pf-sp-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pf-muted);
    margin-left: 4px;
}

.pf-sp-price-period {
    display: block;
    font-size: 14px;
    color: var(--pf-muted);
    margin-top: 4px;
}

/* Stats bar */
.pf-sp-stats {
    max-width: 1280px;
    margin: 0 auto 32px;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    overflow: hidden;
}

.pf-sp-stat {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-right: 1px solid #f1f5f9;
}

.pf-sp-stat:last-child {
    border-right: none;
}

.pf-sp-stat__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.pf-sp-stat__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-dark);
}

/* Body layout */
.pf-sp-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.pf-sp-block {
    background: #fff;
    border-radius: var(--pf-radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--pf-shadow);
}

.pf-sp-block__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pf-gold);
}

.pf-sp-prose {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.pf-sp-prose--ar {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.pf-sp-prose--ar h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

/* Amenities */
.pf-sp-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pf-sp-amenities li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    text-transform: capitalize;
}

.pf-sp-amenities svg {
    color: var(--pf-gold);
    flex-shrink: 0;
}

/* Map */
.pf-sp-map {
    border-radius: 12px;
    overflow: hidden;
}

.pf-sp-map .pf-property-map {
    border-radius: 12px;
}

/* Sidebar */
.pf-sp-sidebar__sticky {
    position: sticky;
    top: 24px;
}

.pf-sp-card {
    background: #fff;
    border-radius: var(--pf-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--pf-shadow);
}

.pf-sp-card--price {
    border-top: 4px solid var(--pf-gold);
}

.pf-sp-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--pf-dark);
}

.pf-sp-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pf-sp-card__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pf-dark);
}

.pf-sp-card__type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--pf-muted);
}

.pf-sp-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    margin-bottom: 10px;
}

.pf-sp-btn:last-child {
    margin-bottom: 0;
}

.pf-sp-btn--primary {
    background: linear-gradient(135deg, var(--pf-gold), #a88a3a);
    color: var(--pf-dark);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.pf-sp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45);
    color: var(--pf-dark);
}

.pf-sp-btn--outline {
    background: transparent;
    border-color: #e2e8f0;
    color: var(--pf-dark);
}

.pf-sp-btn--outline:hover {
    border-color: var(--pf-gold);
    color: var(--pf-dark);
}

.pf-sp-btn--ghost {
    background: #f8fafc;
    color: var(--pf-muted);
}

.pf-sp-btn--ghost:hover {
    background: #f1f5f9;
    color: var(--pf-dark);
}

/* Details list */
.pf-sp-dl {
    margin: 0;
}

.pf-sp-dl > div {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}

.pf-sp-dl > div:last-child {
    border-bottom: none;
}

.pf-sp-dl dt {
    font-size: 13px;
    color: var(--pf-muted);
    font-weight: 500;
}

.pf-sp-dl dd {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-align: right;
    text-transform: capitalize;
}

/* Agent */
.pf-sp-agent {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pf-sp-agent--link {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 8px;
    margin: -8px -8px 12px;
    transition: background 0.2s ease;
}

.pf-sp-agent--link:hover {
    background: #f8fafc;
}

.pf-sp-agent--link:hover .pf-sp-agent__name {
    color: var(--pf-gold, #c9a84c);
}

.pf-sp-agent__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pf-gold);
    flex-shrink: 0;
}

.pf-sp-agent__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pf-gold), #a88a3a);
    color: var(--pf-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.pf-sp-agent__name {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.pf-sp-agent__role {
    font-size: 13px;
    color: var(--pf-muted);
}

.pf-sp-agent__listings {
    display: block;
    font-size: 12px;
    color: var(--pf-muted);
    margin-top: 4px;
}

.pf-sp-agent__actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Lightbox */
.pf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-lightbox[hidden] {
    display: none;
}

.pf-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.pf-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.pf-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pf-lightbox__close:hover {
    opacity: 1;
}

.pf-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.pf-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.pf-lightbox__nav--prev { left: 20px; }
.pf-lightbox__nav--next { right: 20px; }

.pf-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
    .pf-sp-body {
        grid-template-columns: 1fr;
    }

    .pf-sp-sidebar__sticky {
        position: static;
    }

    .pf-sp-hero__price {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .pf-sp-gallery__arrow {
        width: 40px;
        height: 40px;
    }

    .pf-sp-gallery__arrow--prev { left: 10px; }
    .pf-sp-gallery__arrow--next { right: 10px; }

    .pf-sp-stats {
        flex-direction: column;
    }

    .pf-sp-stat {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .pf-sp-block {
        padding: 24px 20px;
    }
}
