/* ============================================================
   Proje Detay · Satış ofisi sunum sayfası
   Kapsam: .pd-page  (EmlakAssist _Layout içinde kullanılır)
   ============================================================ */

.pd-page {
    --pd-navy: #061a33;
    --pd-navy-2: #0b2545;
    --pd-navy-3: #123154;
    --pd-ink: #0f172a;
    --pd-slate: #475569;
    --pd-muted: #64748b;
    --pd-line: #e6ebf2;
    --pd-soft: #f4f7fb;
    --pd-orange: #f97316;
    --pd-orange-2: #fb923c;
    --pd-orange-3: #ea580c;
    --pd-radius: 26px;
    --pd-shadow: 0 30px 70px -46px rgba(6, 26, 51, .55);
    --pd-font: "Public Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    max-width: 1480px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
    color: var(--pd-ink);
    font-family: var(--pd-font);
    font-size: 15px;
    line-height: 1.6;
}

    .pd-page *,
    .pd-page *::before,
    .pd-page *::after {
        box-sizing: border-box;
    }

    .pd-page img {
        max-width: 100%;
    }

    .pd-page a {
        text-decoration: none;
    }

    .pd-page a:focus-visible,
    .pd-page button:focus-visible {
        outline: 3px solid rgba(249, 115, 22, .45);
        outline-offset: 2px;
    }

/* ---------- Üst şerit ---------- */
.pd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    flex-wrap: wrap;
}

.pd-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--pd-muted);
}

    .pd-crumb a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 13px;
        border-radius: 11px;
        background: #fff;
        border: 1px solid var(--pd-line);
        color: var(--pd-slate);
        transition: color .2s ease, border-color .2s ease, transform .2s ease;
    }

        .pd-crumb a:hover {
            color: var(--pd-navy);
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }

    .pd-crumb__sep {
        opacity: .45;
    }

    .pd-crumb__now {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--pd-navy);
        font-weight: 700;
    }

/* ---------- Kahraman (hero) ---------- */
.pd-hero {
    position: relative;
    display: flex;
    border-radius: var(--pd-radius);
    overflow: hidden;
    min-height: clamp(320px, 26vw, 380px);
    background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-navy-3) 100%);
    box-shadow: 0 44px 90px -60px rgba(6, 26, 51, .85);
    isolation: isolate;
}

.pd-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    transform: scale(1.01);
}

.pd-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 17, 34, .95) 0%, rgba(4, 17, 34, .88) 30%, rgba(4, 17, 34, .62) 56%, rgba(4, 17, 34, .12) 82%, rgba(4, 17, 34, .22) 100%),
        linear-gradient(0deg, rgba(4, 17, 34, .72) 0%, rgba(4, 17, 34, 0) 46%);
}

.pd-hero__content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    width: 100%;
    max-width: 880px;
    padding: 44px 46px 104px;
    color: #fff;
}

.pd-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

    .pd-eyebrow__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--pd-orange-2);
        box-shadow: 0 0 0 4px rgba(251, 146, 60, .22);
    }

.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb454, var(--pd-orange) 60%, var(--pd-orange-3));
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 10px 24px -12px rgba(234, 88, 12, .9);
}

.pd-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.9vw, 52px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-shadow: 0 18px 40px rgba(2, 8, 20, .35);
    overflow-wrap: anywhere;
}

.pd-hero__loc {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 0;
    font-size: clamp(14px, 1.35vw, 17px);
    font-weight: 600;
    color: rgba(255, 255, 255, .84);
}

    .pd-hero__loc i {
        color: var(--pd-orange-2);
        font-size: 1em;
    }

    .pd-hero__loc .pd-sep {
        opacity: .4;
        margin: 0 2px;
    }

.pd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.pd-page .ea-btn {
    font-size: 14px;
    padding: 13px 20px;
    border-radius: 13px;
}

    .pd-page .ea-btn i {
        font-size: 14px;
    }

.pd-hero__actions .ea-btn--ghost {
    backdrop-filter: blur(8px);
}

/* ---------- Künye şeridi ---------- */
.pd-facts {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: -58px 26px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: 22px;
    box-shadow: 0 34px 70px -50px rgba(6, 26, 51, .65);
}

.pd-fact {
    position: relative;
    padding: 16px 18px;
    min-width: 0;
    border-radius: 14px;
    transition: background .2s ease;
}

    .pd-fact + .pd-fact::before {
        content: "";
        position: absolute;
        left: 0;
        top: 18px;
        bottom: 18px;
        width: 1px;
        background: #eef2f7;
    }

    .pd-fact:hover {
        background: #f8fafc;
    }

.pd-fact__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 11px;
    border-radius: 11px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 13px;
}

    .pd-fact__icon--blue {
        background: #e6f4ff;
        color: #0284c7;
    }

    .pd-fact__icon--orange {
        background: #fff2e6;
        color: var(--pd-orange-3);
    }

    .pd-fact__icon--green {
        background: #ecfdf3;
        color: #16a34a;
    }

    .pd-fact__icon--violet {
        background: #f3ecff;
        color: #7c3aed;
    }

    .pd-fact__icon--rose {
        background: #ffecef;
        color: #e11d48;
    }

.pd-fact__label {
    display: block;
    min-height: 29px;
    margin: 0 0 3px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pd-muted);
    line-height: 1.35;
}

.pd-fact__value {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--pd-navy);
    overflow-wrap: anywhere;
}

/* ---------- Hakkında ---------- */
.pd-about {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin: clamp(38px, 4.5vw, 64px) 4px 0;
}

    .pd-about--single {
        grid-template-columns: minmax(0, 1fr);
        max-width: 900px;
    }

.pd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pd-orange-3);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

    .pd-kicker::before {
        content: "";
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--pd-orange);
    }

.pd-about__title {
    margin: 10px 0 16px;
    font-size: clamp(24px, 2.3vw, 33px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--pd-navy);
}

.pd-rich {
    font-size: 15px;
    line-height: 1.95;
    color: var(--pd-slate);
    overflow-wrap: break-word;
}

    .pd-rich p {
        margin: 0 0 1em;
    }

        .pd-rich p:last-child {
            margin-bottom: 0;
        }

    .pd-rich b,
    .pd-rich strong {
        color: var(--pd-navy);
        font-weight: 700;
    }

    .pd-rich ul,
    .pd-rich ol {
        margin: 0 0 1em;
        padding-left: 1.2em;
    }

    .pd-rich a {
        color: var(--pd-orange-3);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.pd-about__media {
    position: relative;
    margin: 0;
}

    .pd-about__media img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        border-radius: 24px;
        box-shadow: 0 34px 70px -44px rgba(6, 26, 51, .7);
    }

    .pd-about__media::after {
        content: "";
        position: absolute;
        inset: auto -10px -10px auto;
        width: 92px;
        height: 92px;
        border-radius: 0 0 24px 0;
        border-right: 3px solid var(--pd-orange);
        border-bottom: 3px solid var(--pd-orange);
        opacity: .55;
        pointer-events: none;
    }

/* ---------- Sekmeler ---------- */
.pd-tabs {
    margin-top: clamp(38px, 4.5vw, 64px);
    padding: 18px;
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
}

.pd-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 2px 18px;
    border-bottom: 1px solid var(--pd-line);
    margin-bottom: 20px;
}

.pd-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f2f5fa;
    color: var(--pd-slate);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .pd-tab i {
        font-size: 13px;
        opacity: .8;
    }

    .pd-tab:hover {
        background: #e8eef7;
        color: var(--pd-navy);
        transform: translateY(-1px);
    }

    .pd-tab.active {
        background: var(--pd-navy);
        color: #fff;
        box-shadow: 0 14px 26px -16px rgba(6, 26, 51, .8);
    }

        .pd-tab.active i {
            opacity: 1;
            color: var(--pd-orange-2);
        }

.pd-tab__count {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .08);
    font-size: 10.5px;
    font-weight: 800;
    text-align: center;
}

.pd-tab.active .pd-tab__count {
    background: rgba(255, 255, 255, .18);
}

.pd-pane {
    padding: 4px;
}

/* ---------- Galeri ---------- */
.pd-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pd-shot {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    background: #eef2f7;
}

    .pd-shot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .65s cubic-bezier(.2, .7, .3, 1);
    }

    .pd-shot:hover img {
        transform: scale(1.06);
    }

.pd-shot__veil {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(0deg, rgba(4, 17, 34, .72), rgba(4, 17, 34, 0) 58%);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
}

.pd-shot:hover .pd-shot__veil {
    opacity: 1;
}

.pd-shot__zoom {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
    font-size: 13px;
}

.pd-shot__stamp {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(4, 17, 34, .74);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    backdrop-filter: blur(4px);
}

/* ---------- Video ---------- */
.pd-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.pd-video-card {
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: 18px;
    background: #0b1220;
    box-shadow: 0 24px 50px -40px rgba(6, 26, 51, .8);
}

    .pd-video-card video {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        background: #050b16;
    }

/* ---------- 360 ---------- */
/* Pannellum ".pnlm-container" kuralı yükseklik %100 verdiği için
   kapsamı daraltılmış seçici ile sabit yükseklik korunur. */
.pd-page .pd-pano {
    height: clamp(420px, 66vh, 640px);
    overflow: hidden;
    border-radius: 18px;
    background: #0b1220;
}

/* ---------- Daire tablosu ---------- */
.pd-table-wrap {
    border: 1px solid var(--pd-line);
    border-radius: 18px;
    overflow: hidden;
}

.pd-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 13px;
}

    .pd-table thead th {
        padding: 13px 14px;
        background: #f8fafc;
        border-bottom: 1px solid var(--pd-line);
        color: var(--pd-muted);
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
        white-space: nowrap;
        text-align: left;
    }

    .pd-table tbody td {
        padding: 12px 14px;
        border-bottom: 1px solid #eef2f7;
        color: var(--pd-slate);
        vertical-align: middle;
        white-space: nowrap;
    }

    .pd-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .pd-table tbody tr {
        transition: background .15s ease;
    }

        .pd-table tbody tr:hover {
            background: #f8fbff;
        }

    .pd-table .pd-num {
        text-align: right;
        font-variant-numeric: tabular-nums;
        color: var(--pd-navy);
        font-weight: 700;
    }

    .pd-table .pd-unit {
        font-weight: 800;
        color: var(--pd-navy);
    }

    .pd-table .badge {
        font-size: 10.5px;
        font-weight: 700;
        padding: 5px 9px;
        border-radius: 8px;
    }

    .pd-table .btn-icon {
        width: 32px;
        height: 32px;
        padding: 0;
        display: inline-grid;
        place-items: center;
        border-radius: 9px;
    }

.pd-table .dataTables_wrapper,
.dataTables_wrapper {
    font-size: 13px;
}

.pd-pane .dataTables_wrapper .row:first-child {
    margin: 0 0 12px;
}

.pd-pane .dataTables_filter input {
    border-radius: 10px;
}

.pd-pane .dataTables_length select {
    border-radius: 10px;
}

.pd-pane .dataTables_info {
    padding-top: 14px;
    color: var(--pd-muted);
    font-size: 12px;
}

.pd-pane .pagination {
    margin-top: 14px;
}

/* ---------- Dokümanlar ---------- */
.pd-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.pd-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid var(--pd-line);
    border-radius: 16px;
    background: #fff;
    color: var(--pd-ink);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .pd-doc:hover {
        border-color: #fbd0ad;
        transform: translateY(-2px);
        box-shadow: 0 20px 40px -34px rgba(6, 26, 51, .7);
        color: var(--pd-ink);
    }

.pd-doc__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 17px;
}

.pd-doc__body {
    min-width: 0;
    flex: 1 1 auto;
}

.pd-doc__name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--pd-navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-doc__hint {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--pd-muted);
}

.pd-doc__go {
    color: #cbd5e1;
    font-size: 12px;
    transition: transform .2s ease, color .2s ease;
}

.pd-doc:hover .pd-doc__go {
    color: var(--pd-orange-3);
    transform: translateX(3px);
}

/* ---------- Boş durum ---------- */
.pd-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 56px 20px;
    border: 1px dashed #d8e1ec;
    border-radius: 18px;
    background: #fbfcfe;
    text-align: center;
}

.pd-empty__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    border-radius: 16px;
    background: #eef2f7;
    color: #94a3b8;
    font-size: 20px;
}

.pd-empty b {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--pd-navy);
}

.pd-empty span {
    max-width: 420px;
    font-size: 13px;
    color: var(--pd-muted);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1199.98px) {
    .pd-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: -48px 18px 0;
    }

    .pd-fact:nth-child(4)::before {
        display: none;
    }

    .pd-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .pd-hero {
        min-height: 400px;
    }

    .pd-hero__content {
        padding: 34px 28px 96px;
        max-width: 100%;
    }

    .pd-about {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .pd-about__media {
        order: -1;
        max-width: 620px;
    }

    .pd-about__media::after {
        display: none;
    }

    .pd-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pd-page {
        font-size: 14px;
    }

    .pd-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .pd-hero {
        min-height: 360px;
        border-radius: 20px;
    }

    .pd-hero__content {
        padding: 28px 20px 86px;
    }

    .pd-hero__title {
        font-size: clamp(26px, 7vw, 34px);
    }

    .pd-hero__loc {
        font-size: 14px;
    }

    .pd-hero__actions .ea-btn {
        font-size: 13.5px;
        padding: 12px 16px;
    }

    .pd-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: -40px 10px 0;
        padding: 6px;
        border-radius: 18px;
    }

    .pd-fact {
        padding: 12px 12px;
    }

        .pd-fact + .pd-fact::before {
            display: none;
        }

    .pd-tabs {
        padding: 12px;
        border-radius: 20px;
    }

    .pd-tabs__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 14px;
        margin-bottom: 16px;
    }

        .pd-tabs__nav::-webkit-scrollbar {
            display: none;
        }

    .pd-gallery {
        gap: 10px;
    }

    .pd-shot {
        border-radius: 13px;
    }

    .pd-about {
        margin-left: 4px;
        margin-right: 4px;
    }
}

@media (max-width: 575.98px) {
    .pd-hero {
        min-height: 330px;
    }

    .pd-hero__badges {
        margin-bottom: 12px;
    }

    .pd-eyebrow {
        font-size: 9.5px;
        padding: 5px 10px;
        letter-spacing: .09em;
    }

    .pd-tag {
        font-size: 10.5px;
        padding: 5px 11px;
    }

    .pd-hero__actions {
        gap: 9px;
        margin-top: 20px;
    }

    .pd-fact__value {
        font-size: 14px;
    }

    .pd-fact__label {
        font-size: 9.5px;
    }

    .pd-tab {
        font-size: 12px;
        padding: 9px 12px;
    }

    .pd-about__title {
        font-size: 24px;
    }

    .pd-rich {
        font-size: 14px;
        line-height: 1.85;
    }

    .pd-videos,
    .pd-docs {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-page *,
    .pd-page *::before,
    .pd-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
