/* Proje Detay — Soft Premium 2026 */

.proje-detay-modern {
    --pdm-primary: #0d9488;
    --pdm-primary-dark: #0f766e;
    --pdm-primary-soft: rgba(13, 148, 136, 0.1);
    --pdm-accent: #6366f1;
    --pdm-dark: #0f172a;
    --pdm-muted: #64748b;
    --pdm-line: #e2e8f0;
    --pdm-surface: #f8fafc;
    --pdm-card: #ffffff;
    --pdm-radius: 16px;
    --pdm-radius-sm: 12px;
    --pdm-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --pdm-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    font-family: "Plus Jakarta Sans", "Kanit", system-ui, sans-serif;
    background: var(--pdm-surface);
}

.proje-detay-modern .detay-ust {
    margin-bottom: 0 !important;
}

.proje-detay-modern .detay-ust > .border-bottom {
    background: #fff !important;
    border-bottom: 1px solid var(--pdm-line) !important;
    box-shadow: none !important;
}

.proje-detay-modern .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
}

.proje-detay-modern .breadcrumb-item a {
    color: var(--pdm-muted);
}

.proje-detay-modern .breadcrumb-item.active,
.proje-detay-modern .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

/* ── Hero ── */
.pdm-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.pdm-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.pdm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.15) 0%,
        rgba(15, 23, 42, 0.45) 45%,
        rgba(15, 23, 42, 0.82) 100%
    );
}

.pdm-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0 2.5rem;
}

.pdm-hero__inner .col-lg-7 {
    min-width: 0;
}

.pdm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.pdm-hero__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdm-hero__loc {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
}

.pdm-hero__loc i {
    color: #5eead4;
}

.pdm-hero__price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--pdm-radius-sm);
    backdrop-filter: blur(10px);
    color: #fff;
}

.pdm-hero__price strong {
    font-size: 1.35rem;
    font-weight: 800;
}

.pdm-hero__price span {
    font-size: 0.8125rem;
    opacity: 0.85;
}

.pdm-hero__agent {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--pdm-radius-sm);
    backdrop-filter: blur(10px);
}

.pdm-hero__agent img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pdm-hero__agent-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
}

.pdm-hero__agent-sub {
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.pdm-hero__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pdm-dark) !important;
    background: #fff;
    border-radius: var(--pdm-radius-sm);
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pdm-hero__call:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--pdm-dark) !important;
}

/* ── Contact card ── */
.pdm-contact {
    background: var(--pdm-card);
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow-lg);
    overflow: hidden;
}

.pdm-contact__head {
    padding: 1.35rem 1.5rem 1rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-bottom: 1px solid var(--pdm-line);
}

.pdm-contact__head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pdm-dark);
}

.pdm-contact__head p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pdm-muted);
}

.pdm-contact__phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius-sm);
}

.pdm-contact__phone-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pdm-primary-soft);
    color: var(--pdm-primary-dark);
    border-radius: 10px;
    font-size: 1rem;
}

.pdm-contact__phone-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pdm-muted);
}

.pdm-contact__phone-num {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pdm-dark);
}

.pdm-contact__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.pdm-contact__body .form-control {
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: var(--pdm-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pdm-contact__body .form-control:focus {
    border-color: var(--pdm-primary);
    box-shadow: 0 0 0 3px var(--pdm-primary-soft);
    background: #fff;
}

.pdm-contact__body textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.pdm-contact__submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--pdm-primary);
    border: none;
    border-radius: var(--pdm-radius-sm);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}

.pdm-contact__submit:hover {
    background: var(--pdm-primary-dark);
    transform: translateY(-1px);
}

/* ── Stats bar ── */
.pdm-stats {
    background: #fff;
    border-bottom: 1px solid var(--pdm-line);
    padding: 1.25rem 0;
    margin-top: -1px;
    position: relative;
    z-index: 3;
}

.pdm-stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.pdm-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--pdm-surface);
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius-sm);
}

.pdm-stat__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--pdm-primary-soft);
    color: var(--pdm-primary-dark);
    border-radius: 10px;
    font-size: 1rem;
}

.pdm-stat__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pdm-muted);
}

.pdm-stat__value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pdm-dark);
    line-height: 1.3;
}

.pdm-stat__value--price {
    color: var(--pdm-primary-dark);
}

/* ── Main layout ── */
.pdm-main {
    padding: 2.5rem 0 4rem;
}

.pdm-section {
    margin-bottom: 2.5rem;
}

.pdm-section__title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pdm-dark);
    letter-spacing: -0.02em;
}

.pdm-section__title i {
    color: var(--pdm-primary);
    margin-right: 0.4rem;
}

/* ── Gallery ── */
.pdm-gallery {
    --pdm-thumb-rows: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(132px, 16vw, 168px);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.65rem;
    aspect-ratio: 16 / 10;
    min-height: 280px;
}

.pdm-gallery--single {
    grid-template-columns: 1fr;
}

.pdm-gallery__main {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    min-width: 0;
    border-radius: calc(var(--pdm-radius) - 2px);
    overflow: hidden;
    background: #e2e8f0;
}

.pdm-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdm-gallery__overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.65));
}

.pdm-gallery__counter {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

.pdm-gallery__viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.pdm-gallery__thumbs {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-rows: repeat(var(--pdm-thumb-rows), minmax(0, 1fr));
    gap: 0.65rem;
    min-height: 0;
    min-width: 0;
}

.pdm-gallery__thumb {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    border: none;
    padding: 0;
    border-radius: calc(var(--pdm-radius-sm) - 2px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.pdm-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.pdm-gallery__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.12);
    transition: background 0.2s;
    pointer-events: none;
}

.pdm-gallery__thumb:hover::after,
.pdm-gallery__thumb.is-active::after {
    background: rgba(13, 148, 136, 0.35);
}

.pdm-gallery__more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: var(--pdm-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.pdm-gallery__more::after {
    display: none;
}

.pdm-gallery__more small {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--pdm-muted);
    text-transform: uppercase;
}

/* ── About card ── */
.pdm-about {
    background: var(--pdm-card);
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdm-about__body {
    flex: 1;
    padding: 1.5rem 1.75rem;
    max-height: 420px;
    overflow-y: auto;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #475569;
}

.pdm-about__body::-webkit-scrollbar {
    width: 6px;
}

.pdm-about__body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* ── Summary grid ── */
.pdm-summary {
    background: var(--pdm-card);
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow);
    padding: 1.5rem 1.75rem;
}

.pdm-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
}

.pdm-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.pdm-summary__label {
    font-size: 0.875rem;
    color: #94a3b8;
}

.pdm-summary__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pdm-dark);
    text-align: right;
}

.pdm-type-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── Floor plans ── */
.pdm-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pdm-plan {
    background: var(--pdm-card);
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.pdm-plan:hover {
    transform: translateY(-3px);
    box-shadow: var(--pdm-shadow-lg);
}

.pdm-plan__img {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--pdm-surface);
}

.pdm-plan__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.pdm-plan:hover .pdm-plan__img img {
    transform: scale(1.04);
}

.pdm-plan__body {
    padding: 1.15rem 1.25rem 1.25rem;
    text-align: center;
}

.pdm-plan__room {
    margin: 0 0 0.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pdm-dark);
}

.pdm-plan__meta {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    color: var(--pdm-muted);
}

.pdm-plan__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.pdm-plan__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--pdm-primary-dark);
    background: var(--pdm-primary-soft);
    border-radius: 6px;
}

.pdm-plan__price {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pdm-primary-dark);
}

/* ── Media tabs (video / street / map) ── */
.pdm-media-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pdm-media-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pdm-muted);
    background: #fff;
    border: 1px solid var(--pdm-line);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.pdm-media-tab.is-active,
.pdm-media-tab:hover {
    color: var(--pdm-primary-dark);
    border-color: var(--pdm-primary);
    background: var(--pdm-primary-soft);
}

.pdm-media-panel {
    display: none;
    background: var(--pdm-card);
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow);
    overflow: hidden;
}

.pdm-media-panel.is-active {
    display: block;
}

.pdm-media-panel[data-pdm-panel="map"] .pdm-media-panel__inner {
    padding: 1rem;
    min-height: 360px;
}

.pdm-media-panel[data-pdm-panel="video"] .pdm-media-panel__inner,
.pdm-media-panel[data-pdm-panel="street"] .pdm-media-panel__inner {
    position: relative;
    padding: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: clamp(300px, 56.25vw, 540px);
    overflow: hidden;
    background: #0f172a;
}

.pdm-media-panel[data-pdm-panel="video"] .pdm-media-panel__inner > *,
.pdm-media-panel[data-pdm-panel="street"] .pdm-media-panel__inner > *,
.pdm-media-panel[data-pdm-panel="video"] .pdm-media-panel__inner iframe,
.pdm-media-panel[data-pdm-panel="street"] .pdm-media-panel__inner iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0;
    display: block;
}

.pdm-map {
    height: 420px;
    border-radius: var(--pdm-radius-sm);
}

.pdm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: var(--pdm-muted);
    text-align: center;
}

.pdm-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Reuse idm features inside proje page */
.proje-detay-modern .idm-summary-card {
    border: 1px solid var(--pdm-line);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow);
}

@media (max-width: 991px) {
    .pdm-hero {
        min-height: auto;
    }

    .pdm-hero__inner {
        padding: 2rem 0 1.5rem;
    }

    .pdm-contact {
        margin-top: 1.5rem;
    }

    .pdm-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdm-gallery:not(.pdm-gallery--single) {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }

    .pdm-gallery:not(.pdm-gallery--single) .pdm-gallery__main {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 16 / 10;
    }

    .pdm-gallery__thumbs {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 0.5rem;
        margin-top: 0.15rem;
    }

    .pdm-gallery:not(.pdm-gallery--single) .pdm-gallery__thumb {
        aspect-ratio: 4 / 3;
        min-height: 72px;
    }

    .pdm-plans {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdm-summary__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .pdm-stats__grid {
        grid-template-columns: 1fr;
    }

    .pdm-plans {
        grid-template-columns: 1fr;
    }
}
