/* Taj Alwuqar — صفحة تفاصيل العقار */

.page-property-detail {
    background: linear-gradient(180deg, #f8f6f1 0%, #f0ebe3 48%, #f8f6f1 100%);
    min-height: 100vh;
}

.prop-detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: calc(var(--contact-bar-h, 64px) + 16px) 16px 64px;
}

.page-property-detail.page-properties .prop-detail-wrap {
    padding-top: 16px;
}

.prop-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 241, 0.98) 100%);
    border: 1px solid rgba(198, 167, 106, 0.32);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(18, 24, 32, 0.07);
    position: sticky;
    top: calc(var(--contact-bar-h, 64px) + 8px);
    z-index: 10060;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.prop-page-head [data-fp-nav] {
    flex: 1 1 auto;
    min-width: 0;
}

.prop-lang-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1.5px solid rgba(198, 167, 106, 0.55);
    border-radius: 999px;
    background: linear-gradient(145deg, #121820 0%, #1a222c 100%);
    color: #e9dcc4;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(18, 24, 32, 0.18);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.prop-lang-btn i {
    color: var(--color-accent-gold, #c6a76a);
    font-size: 0.95rem;
}

.prop-lang-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(145deg, #c6a76a 0%, #b8925a 100%);
    color: #121820;
    border-color: #c6a76a;
    box-shadow: 0 10px 24px rgba(184, 146, 90, 0.35);
}

.prop-lang-btn:hover i {
    color: #121820;
}

.prop-lang-btn:focus-visible {
    outline: 2px solid var(--color-accent-gold, #b8925a);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .prop-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .prop-lang-btn {
        align-self: flex-end;
        width: auto;
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.82rem;
    }
}

.prop-detail-layout {
    min-height: 320px;
}

.prop-reviews-wrap {
    margin-top: 28px;
}

.prop-reviews-wrap .iqfal-reviews-section {
    margin-top: 0;
}

.prop-reviews-wrap:empty,
.prop-reviews-wrap[style*="display: none"] {
    display: none !important;
}

.prop-loading,
.prop-not-found {
    text-align: center;
    padding: 80px 24px;
    color: var(--color-brand-ink, #1a222c);
}

/* Skeleton loading */
.prop-skeleton {
    animation: propSkPulse 1.4s ease-in-out infinite;
}

.prop-skeleton__header {
    margin-bottom: 24px;
}

.prop-skeleton__pill {
    display: block;
    width: 88px;
    height: 28px;
    border-radius: 999px;
    background: rgba(198, 167, 106, 0.25);
    margin-bottom: 14px;
}

.prop-skeleton__line {
    display: block;
    height: 14px;
    border-radius: 8px;
    background: rgba(198, 167, 106, 0.2);
    margin-bottom: 10px;
}

.prop-skeleton__line--lg {
    width: min(100%, 420px);
    height: 28px;
}

.prop-skeleton__line--sm {
    width: min(100%, 180px);
}

.prop-skeleton__main {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .prop-skeleton__main {
        grid-template-columns: 1fr;
    }
}

.prop-skeleton__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prop-skeleton__box {
    display: block;
    height: 180px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(198, 167, 106, 0.2);
}

.prop-skeleton__btn {
    display: block;
    height: 48px;
    border-radius: 12px;
    background: rgba(198, 167, 106, 0.18);
}

.prop-skeleton__hero {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: rgba(26, 34, 44, 0.12);
}

@keyframes propSkPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.prop-qr-card--loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-video-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prop-not-found__icon {
    font-size: 3rem;
    color: var(--color-accent-gold, #b8925a);
    margin-bottom: 16px;
}

.prop-not-found h1 {
    font-family: var(--font-heading, 'Cairo', sans-serif);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    margin-bottom: 12px;
}

.prop-not-found p {
    color: #64748b;
    margin-bottom: 24px;
}

.prop-page-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(198, 167, 106, 0.35);
}

.prop-page-header__pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #121820, #1a222c);
    color: var(--color-accent-gold-soft, #e9dcc4);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.prop-page-header__title {
    font-family: var(--font-heading, 'Cairo', sans-serif);
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    font-weight: 800;
    color: var(--color-brand-ink-deep, #121820);
    line-height: 1.35;
    margin: 0 0 10px;
    letter-spacing: 0;
    text-shadow: none;
    -webkit-text-stroke: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.prop-page-header__loc {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.prop-page-header__loc i {
    color: var(--color-accent-gold, #b8925a);
    margin-left: 6px;
}

.prop-detail-main {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

.prop-detail-col {
    min-width: 0;
}

@media (max-width: 900px) {
    .prop-detail-main {
        grid-template-columns: 1fr;
    }

    .prop-detail-col--media {
        order: -1;
    }

    .prop-detail-col--sidebar {
        order: 0;
    }
}

.prop-gallery {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(18, 24, 32, 0.12);
    border: 1px solid rgba(198, 167, 106, 0.25);
    background: #fff;
}

.prop-gallery__hero {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #1a222c;
    overflow: hidden;
}

.prop-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.22s ease;
    background: #1a222c;
}

.prop-gallery__main.is-loading {
    opacity: 0.55;
}

.prop-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 8;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(18, 24, 32, 0.88) 0%, rgba(26, 34, 44, 0.82) 100%);
    color: var(--color-accent-gold-soft, #e9dcc4);
    border: 1.5px solid rgba(198, 167, 106, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.prop-gallery__nav i {
    font-size: 1rem;
    pointer-events: none;
}

.prop-gallery__nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: linear-gradient(145deg, #c6a76a 0%, #b8925a 100%);
    color: #121820;
    border-color: #c6a76a;
    box-shadow: 0 10px 28px rgba(184, 146, 90, 0.45);
}

.prop-gallery__nav:focus-visible {
    outline: 2px solid var(--color-accent-gold, #b8925a);
    outline-offset: 3px;
}

.prop-gallery__nav--prev {
    inset-inline-start: 14px;
}

.prop-gallery__nav--next {
    inset-inline-end: 14px;
}

.prop-gallery__counter {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    z-index: 8;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e9dcc4;
    background: rgba(18, 24, 32, 0.78);
    border: 1px solid rgba(198, 167, 106, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .prop-gallery__nav {
        width: 40px;
        height: 40px;
    }

    .prop-gallery__nav--prev {
        inset-inline-start: 8px;
    }

    .prop-gallery__nav--next {
        inset-inline-end: 8px;
    }

    .prop-gallery__counter {
        bottom: 10px;
        inset-inline-start: 10px;
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

.prop-gallery__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid rgba(198, 167, 106, 0.2);
}

.prop-gallery__thumb {
    flex: 0 0 72px;
    height: 54px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #f1f5f9;
    transition: border-color 0.2s;
}

.prop-gallery__thumb.is-active {
    border-color: var(--color-accent-gold, #b8925a);
}

.prop-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #1a222c;
}

.prop-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(198, 167, 106, 0.3);
    box-shadow: 0 8px 28px rgba(18, 24, 32, 0.08);
    margin-bottom: 16px;
}

.prop-info__price {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(198, 167, 106, 0.4);
}

.prop-info__price-val {
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 800;
    color: var(--color-brand-ink-deep, #121820);
}

.prop-info__price-cur {
    font-size: 1rem;
    color: var(--color-accent-gold, #b8925a);
    font-weight: 700;
}

.prop-info__price--contact,
.prop-info__price--locked {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
}

button.prop-info__price--locked {
    width: 100%;
    border: 1px dashed rgba(26, 34, 44, 0.18);
    border-radius: 12px;
    background: #f8f7f4;
    cursor: pointer;
    padding: 12px 14px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

button.prop-info__price--locked:hover {
    background: #f2f0eb;
    border-color: rgba(184, 146, 90, 0.45);
}

.prop-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.prop-info__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(233, 220, 196, 0.25);
}

.prop-info__stat-label {
    font-size: 0.78rem;
    color: #64748b;
}

.prop-info__stat-val {
    font-weight: 700;
    color: var(--color-brand-ink, #1a222c);
    font-size: 0.95rem;
}

.prop-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.prop-actions .btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-weight: 700;
    border-radius: 12px;
}

.prop-actions__calc {
    background: linear-gradient(165deg, #0f2744 0%, #15365a 100%);
    color: #fceea3;
    border: 1px solid rgba(201, 162, 77, 0.45);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.prop-actions__calc:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 39, 68, 0.28);
    color: #fff;
}

.prop-qr-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(198, 167, 106, 0.35);
    box-shadow: 0 6px 24px rgba(18, 24, 32, 0.06);
}

.prop-qr-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-brand-ink, #1a222c);
    margin: 0 0 14px;
}

.prop-qr-card__title i {
    color: var(--color-accent-gold, #b8925a);
    margin-left: 6px;
}

.prop-qr-card__wrap {
    display: flex;
    justify-content: center;
    padding: 8px;
}

.prop-qr-card__canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.prop-qr-card__img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.prop-qr-card__hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 10px 0 0;
}

.prop-details-section,
.prop-video-section,
.prop-similar-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(198, 167, 106, 0.22);
    box-shadow: 0 6px 24px rgba(18, 24, 32, 0.05);
}

.prop-section-title {
    font-family: var(--font-heading, 'Cairo', sans-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-brand-ink-deep, #121820);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(198, 167, 106, 0.35);
}

.prop-section-title i {
    color: var(--color-accent-gold, #b8925a);
    margin-left: 8px;
}

.prop-details-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.prop-details-list > div {
    padding: 12px;
    border-radius: 10px;
    background: rgba(248, 246, 241, 0.8);
}

.prop-details-list dt {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}

.prop-details-list dd {
    margin: 0;
    font-weight: 700;
    color: var(--color-brand-ink, #1a222c);
}

.prop-details-desc h3 {
    font-size: 1rem;
    margin: 0 0 10px;
}

.prop-details-desc p {
    line-height: 1.85;
    color: #334155;
    white-space: pre-wrap;
}

.prop-video-frame video,
.details-video-el {
    width: 100%;
    max-height: 420px;
    display: block;
}

.prop-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1024px) {
    .prop-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .prop-similar-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.prop-similar-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(198, 167, 106, 0.25);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.prop-similar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(18, 24, 32, 0.12);
}

.prop-similar-card__img {
    aspect-ratio: 4 / 3;
    background: #1a222c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-similar-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.prop-similar-card__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-accent-gold, #b8925a);
    font-weight: 700;
}

.prop-similar-card__body {
    padding: 14px;
}

.prop-similar-card__body h3 {
    font-size: 0.95rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.prop-similar-card__price {
    color: var(--color-accent-gold-hover, #a17d4a);
    font-weight: 800;
    margin: 0 0 4px;
}

.prop-similar-card__price--locked {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.prop-similar-card__price--locked i {
    margin-inline-end: 4px;
}

.prop-similar-card__area {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.prop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    color: #64748b;
}

.prop-breadcrumb a {
    color: var(--color-accent-gold-hover, #a17d4a);
    text-decoration: none;
    font-weight: 600;
}

/* ─── Mobile & tablet polish ─── */
@media (max-width: 480px) {
    .prop-detail-wrap {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 48px;
    }

    .prop-page-head {
        top: calc(var(--contact-bar-h, 64px) + 4px);
        padding: 10px 12px;
        border-radius: 12px;
    }

    .prop-breadcrumb {
        font-size: 0.78rem;
        gap: 6px;
        margin-bottom: 14px;
    }

    .prop-page-header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .prop-page-header__title {
        font-size: clamp(1.2rem, 5.5vw, 1.55rem);
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .prop-info-card,
    .prop-qr-card {
        padding: 16px;
        border-radius: 12px;
    }

    .prop-info__grid {
        grid-template-columns: 1fr;
    }

    .prop-details-section,
    .prop-video-section,
    .prop-similar-section {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .prop-details-list {
        grid-template-columns: 1fr;
    }

    .prop-section-title {
        font-size: 1.05rem;
    }

    .prop-similar-card__body {
        padding: 12px;
    }

    .prop-similar-card__body h3 {
        font-size: 0.88rem;
        line-height: 1.45;
        word-break: break-word;
    }

    .prop-gallery__hero {
        aspect-ratio: 4 / 3;
    }

    .prop-gallery__thumbs {
        padding: 10px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .prop-actions .btn {
        padding: 13px 14px;
        font-size: 0.92rem;
    }
}

/* ─── علامة مائية + حماية صور ─── */
.prop-gallery--protected .prop-gallery__hero,
.prop-gallery__thumb,
.prop-similar-card__img,
.prop-lightbox__frame {
    position: relative;
}

.prop-gallery--protected .prop-gallery__hero {
    cursor: zoom-in;
}

.iqfal-watermark-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iqfal-image-shield {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: transparent;
    -webkit-touch-callout: none;
}

.iqfal-watermark-txt--domain {
    position: relative;
    z-index: 2;
    font-family: ui-monospace, 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.36);
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.75),
        0 1px 8px rgba(0, 0, 0, 0.35);
    font-size: clamp(0.95rem, 3.2vw, 1.35rem);
    line-height: 1.2;
    white-space: nowrap;
}

.iqfal-watermark-txt--sm {
    font-size: clamp(0.58rem, 2vw, 0.75rem);
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.32);
}

.iqfal-watermark-overlay--lightbox .iqfal-watermark-txt--domain {
    font-size: clamp(1rem, 3.5vw, 1.65rem);
    color: rgba(255, 255, 255, 0.4);
}

.prop-similar-card--protected .prop-similar-card__img img,
.prop-gallery--protected img,
.prop-lightbox__img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}

/* ─── Lightbox (تكبير) ─── */
.prop-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(8, 12, 18, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.prop-lightbox.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.prop-lightbox__frame {
    position: relative;
    width: min(96vw, 1200px);
    aspect-ratio: 16 / 10;
    max-height: min(82vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #0f141c;
}

.prop-lightbox__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    background: #0f141c;
    transition: opacity 0.2s ease;
}

.prop-lightbox__img.is-loading {
    opacity: 0.45;
}

.prop-lightbox__close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top, 0px) + 8px);
    inset-inline-start: max(14px, env(safe-area-inset-left, 0px));
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    z-index: 6;
}

.prop-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    z-index: 6;
    pointer-events: auto;
}

.prop-lightbox__nav--prev {
    inset-inline-start: max(12px, env(safe-area-inset-left, 0px));
}

.prop-lightbox__nav--next {
    inset-inline-end: max(12px, env(safe-area-inset-right, 0px));
}

.prop-lightbox__counter {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom, 0px) + 8px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e9dcc4;
    background: rgba(18, 24, 32, 0.78);
    border: 1px solid rgba(198, 167, 106, 0.4);
    z-index: 4;
}

.prop-lightbox__hint {
    position: absolute;
    bottom: max(52px, env(safe-area-inset-bottom, 0px) + 44px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    z-index: 4;
    white-space: nowrap;
}

body.prop-lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .prop-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .prop-lightbox__hint {
        font-size: 0.65rem;
        max-width: 90vw;
        white-space: normal;
    }
}

@media print {
    .prop-gallery img,
    .prop-similar-card__img img,
    .prop-lightbox {
        visibility: hidden !important;
    }
}
