﻿/* ══════════════════════════════════════════════════
   CATALOG-DETAIL.CSS — Gallardo E-Katalog — DETAY SAYFASI
   Tek sütun, tam sayfa proje detayı (galeri, fiyat, konum, vb.)

   Bu sürüm yalnızca görsel dili değiştirir (koyu lacivert zemin,
   Montserrat, ince ayraçlar, yumuşatılmış köşe/gölgeler).
   Seçiciler, CSS custom property adları (--brand, --accent vb.),
   .rt-tabgroup / .ns-* / .lb-* yapısı ve CatalogDetay.aspx.cs'in
   ürettiği HTML BİREBİR AYNI kaldı — kod tarafında hiçbir şey
   değişmedi.
   ══════════════════════════════════════════════════ */

:root {
    --brand: #0b326d;
    --brand2: #06203a;
    --grad: linear-gradient(135deg,#0b326d,#06203a);
    --bg: #081527;
    --surface: #0d1f38;
    --surface2: #0a1a30;
    --border: rgba(255,255,255,.08);
    --border-solid: #1c3050;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
    --shadow: 0 14px 34px rgba(0,0,0,.5);
    --text: #eef2f8;
    --text-strong: #ffffff;
    --muted: #93a4bd;
    --muted2: #b7c3d6;
    --accent: #6f9fdb;
    --accent-soft: rgba(111,159,219,.12);
    --card-bg: #0a1a30;
    --text-muted: #93a4bd;
    --accent-blue: #3f6fb0;
    --price-gold: #d4af6a;
    --price-gold-dim: rgba(201,162,39,.12);
    --price-gold-border: rgba(201,162,39,.35);
    --r: 6px;
    --r-sm: 4px;
    --r-xs: 2px;
    --header-h: 58px;
    --content-max-w: 1040px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg);
    min-height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

    button:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

/* ══════════════════════════════
   HEADER
   Marka adı CSS üzerinden "Gallardo E-Katalog" olarak
   görüntülenir — .aspx içindeki <h1>GALLARDO E-KATALOG</h1>
   metni HİÇ değiştirilmedi (kod/metin bozulmadı).
   ══════════════════════════════ */
.header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b326d !important;
    background-color: #0b326d !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 1px 0 rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-home-link {
    text-decoration: none;
}

.header h1 {
    position: relative;
    font-weight: 700;
    font-size: clamp(.85rem,2vw,1.2rem);
    letter-spacing: clamp(.14rem,.9vw,.42rem);
    color: transparent !important;
    user-select: none;
    white-space: nowrap;
}

    .header h1::after {
        content: "Gallardo E-Katalog";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-weight: 700;
        font-size: inherit;
        letter-spacing: inherit;
        white-space: nowrap;
    }

/* ══════════════════════════════
   SAYFA GÖVDESİ — tek sütun, ortalanmış
   ══════════════════════════════ */
.detail-page {
    position: relative;
    min-height: calc(100vh - var(--header-h));
}

.detail-container {
    max-width: var(--content-max-w);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.error-message {
    background: rgba(220,70,70,.10);
    color: #ff9b9b;
    padding: 1rem 1.2rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(220,70,70,.30);
    font-size: .83rem;
    line-height: 1.65;
    margin: 1.5rem;
}

.retry-btn {
    display: inline-block;
    margin-top: .6rem;
    padding: .5rem 1.1rem;
    background: var(--grad);
    color: #fff;
    border: none;
    text-decoration: none;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .24rem;
    padding: .48rem .72rem;
    background: var(--surface2);
    border: 1px solid var(--border-solid);
    border-radius: var(--r-xs);
    margin-bottom: 1rem;
    font-size: .73rem;
    font-weight: 500;
}

.bc-item {
    color: var(--muted);
    padding: .10rem .24rem;
    border-radius: 4px;
    white-space: nowrap;
    text-decoration: none;
    transition: background .14s,color .14s;
}

.bc-link {
    cursor: pointer;
    color: var(--accent);
}

    .bc-link:hover {
        background: var(--accent-soft);
    }

.bc-active {
    color: var(--text-strong);
    cursor: default;
}

.bc-sep {
    color: var(--border-solid);
    font-size: .63rem;
    display: flex;
    align-items: center;
}

.back-to-projects-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 0 0 1.25rem;
    padding: .6rem 1.1rem;
    border-radius: 50px;
    background: var(--grad);
    color: #fff;
    text-decoration: none;
    border: none;
    font-size: .78rem;
    font-weight: 600;
    transition: opacity .14s;
}

    .back-to-projects-btn:hover {
        opacity: .92;
    }

/* ════════════════════════════════
   HERO — Dış Mekan galerisinin ilk görseli tam genişlik arkaplan.
   Fiyat damgası (.price-banner) buraya köşe olarak taşınır; görsel
   yoksa (.no-image) sade, düz renkli bir başlık şeridine düşer.
   ════════════════════════════════ */
.hero {
    position: relative;
    margin: 0 -1.5rem 1.4rem;
    min-height: min(56vw, 420px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg,#0d1f38,#081527);
}

    .hero.no-image {
        min-height: 160px;
        padding: 1.6rem 1.5rem;
    }

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,11,22,.92) 0%, rgba(4,11,22,.45) 40%, rgba(4,11,22,.05) 70%), linear-gradient(to right, rgba(4,11,22,.35) 0%, rgba(4,11,22,0) 45%);
}

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.6rem 1.5rem;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: .5rem;
}

.hero-title {
    font-size: clamp(1.35rem,3.6vw,2.3rem);
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.08;
}

.hero.no-image .hero-title {
    color: var(--text-strong);
}

/* Fiyat damgası artık hero'nun sağ alt köşesinde — konumu burada
   override ediyoruz, kendi görünümü (renk/ikon) değişmiyor. */
.hero .price-banner {
    margin: 0;
    flex: none;
    background: rgba(8,21,39,.72);
    backdrop-filter: blur(6px);
    max-width: 320px;
}

.project-description {
    font-size: .9rem;
    color: var(--muted2);
    line-height: 1.7;
    margin-bottom: .4rem;
}

.price-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(201,162,39,.08);
    border: 1px solid var(--price-gold-border);
    border-radius: var(--r-sm);
    padding: .9rem 1.1rem;
    margin-bottom: 1.1rem;
    position: relative;
    overflow: hidden;
}

    .price-banner::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg,#c8a84b,rgba(200,168,75,.18));
        border-radius: 3px 0 0 3px;
    }

.price-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--price-gold-dim);
    border: 1px solid var(--price-gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--price-gold);
}

.price-banner-body {
    flex: 1;
    min-width: 0;
}

.price-banner-label {
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(212,175,106,.80);
    margin-bottom: .2rem;
}

.price-banner-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.price-banner-amount {
    font-size: clamp(1.05rem,2.4vw,1.5rem);
    font-weight: 700;
    color: var(--price-gold);
}

.price-banner-from {
    font-size: .78rem;
    color: var(--muted);
    font-style: normal;
}

.price-type-badges {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .4rem;
}

.price-type-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    background: var(--price-gold-dim);
    color: var(--price-gold);
    border: 1px solid var(--price-gold-border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
    gap: .7rem;
    margin: 1rem 0;
}

.info-card {
    background: transparent;
    padding: .78rem 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-solid);
}

.info-label {
    font-size: .64rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .22rem;
}

.info-value {
    font-size: .9rem;
    font-weight: 700;
    color: var(--accent);
}

.section {
    margin: 1.6rem 0;
}

.section-title {
    font-size: clamp(.95rem,2.4vw,1.2rem);
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: .82rem;
    display: flex;
    align-items: center;
    gap: .44rem;
}

    .section-title i {
        color: var(--accent);
    }

.gallery-description {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: .72rem .88rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: .84rem;
    color: var(--muted2);
    line-height: 1.65;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.advantages-list {
    list-style: none;
}

.advantage-item {
    padding: .42rem .3rem;
    margin-bottom: .16rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .82rem;
    color: var(--muted2);
    line-height: 1.55;
}

    .advantage-item i {
        color: var(--accent);
        font-size: .85rem;
        margin-top: .1rem;
        flex-shrink: 0;
    }

.map-container {
    border-radius: var(--r-sm);
    overflow: hidden;
    height: 260px;
    border: 1px solid var(--border-solid);
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        /* Google Haritalar'ın kendi (açık renk) arayüzünü, sayfanın
           koyu temasına yaklaştırmak için hafif bir ters/gri filtre. */
        filter: invert(.92) grayscale(.28) contrast(.92);
    }

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--surface2);
    color: var(--muted);
    font-size: .82rem;
    gap: .6rem;
}

    .map-placeholder i {
        font-size: 1.7rem;
        color: var(--accent);
    }

.types-grid, .commercial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
    gap: .7rem;
}

.type-card, .commercial-card {
    background: var(--surface2);
    padding: 1rem .9rem;
    border-radius: var(--r-sm);
    text-align: center;
    border: 1px solid var(--border-solid);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

    .type-card:hover, .commercial-card:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
        box-shadow: var(--shadow-sm);
    }

    .type-card:active, .commercial-card:active {
        transform: scale(.97);
    }

    .type-card.shop-card {
        background: var(--grad);
        border-color: transparent;
    }

        .type-card.shop-card .type-number, .type-card.shop-card .type-label {
            color: #fff;
        }

.type-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: .4rem;
}

.type-label {
    font-size: .78rem;
    color: var(--muted2);
    font-weight: 500;
    line-height: 1.5;
}

.type-extra {
    font-size: .72em;
    opacity: .68;
    margin-top: .16rem;
}

/* ══════════════════════════════
   DAİRE / BİRİM DAĞILIMI — oransal segment çubuğu.
   Yalnızca tüm sayılar gerçek rakamsa BuildProjectTypesHtml bunu
   üretir; aksi halde yukarıdaki .types-grid/.type-card'a düşer.
   ══════════════════════════════ */
.mix-bar {
    display: flex;
    width: 100%;
    height: 40px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--border-solid);
}

.mix-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    min-width: 2px;
    transition: filter .18s ease;
}

    .mix-seg:hover {
        filter: brightness(1.15);
    }

.mix-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 1px;
    margin-top: .85rem;
    background: var(--border-solid);
    border: 1px solid var(--border-solid);
}

.mix-item {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    background: var(--surface2);
    padding: .68rem .8rem;
    border-left: 3px solid var(--accent);
}

.mix-name {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .74rem;
    color: var(--muted2);
}

.mix-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.mix-count {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-strong);
}

.commercial-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: .5rem;
}

.commercial-name {
    font-weight: 600;
    color: var(--text);
    font-size: .8rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: #000;
}

    .video-container iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* ══════════════════════════════
   GALERİ CAROUSEL (.ns-wrapper) — CSS scroll-snap ile kayar.
   JS sadece ok butonlarını / thumbnail tıklamasını / sayacı
   senkronize eder (bkz. catalog.js). Slayta tıklamak lightbox açar.
   Yapı aynı — yalnızca renk/gölge/köşe güncellendi.
   ══════════════════════════════ */
.ns-wrapper {
    width: 100%;
    margin: 0 0 1.5rem;
}

.ns-stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

.ns-track-wrap {
    flex: 1;
    overflow: hidden;
    border-radius: var(--r-sm);
    position: relative;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    min-height: 180px;
    border: 1px solid var(--border-solid);
}

.ns-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .ns-track::-webkit-scrollbar {
        display: none;
    }

.ns-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gal-thumb.ns-img-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}

.ns-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ns-btn {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}

    .ns-btn:hover {
        background: var(--accent-blue);
    }

.ns-wrapper.single .ns-btn {
    display: none;
}

.ns-footer {
    display: flex;
    justify-content: center;
    margin: .4rem 0 .2rem;
    color: var(--text-muted);
    font-size: .85rem;
}

.nst-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

    .nst-row::-webkit-scrollbar {
        height: 4px;
    }

    .nst-row::-webkit-scrollbar-thumb {
        background: var(--border-solid);
        border-radius: 2px;
    }

.nst-item {
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    border-radius: var(--r-xs);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s;
    display: block;
    text-decoration: none;
}

    .nst-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .nst-item.active {
        border-color: var(--accent-blue);
    }

    .nst-item:hover {
        border-color: rgba(111,159,219,.5);
    }

/* ══════════════════════════════
   ODA TİPİ SEKMELERİ — SAF CSS (radio + :checked)
   JS yok. Bkz. CatalogDetay.aspx.cs → BuildGroupedGalleryHtml
   (her grup için dinamik <style> kuralı üretir; o kural
   var(--brand) + color:#fff kullanır, bu dosyada dokunulmadı).
   ══════════════════════════════ */
.rt-tabgroup {
    position: relative;
}

.rt-tab-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.rt-tabbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .28rem;
    padding: .44rem 0 .64rem;
    margin-bottom: .7rem;
    border-bottom: 1px solid var(--border-solid);
}

.rt-tab {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .35rem .84rem;
    background: var(--surface2);
    border: 1px solid var(--border-solid);
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
    user-select: none;
}

    .rt-tab i {
        font-size: .74rem;
        opacity: .72;
    }

    .rt-tab .rt-tab-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--border-solid);
        color: var(--muted);
        font-size: .6rem;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 20px;
        padding: 0 4px;
        margin-left: .06rem;
    }

    .rt-tab:hover {
        background: var(--accent-soft);
        border-color: var(--accent);
        color: var(--text-strong);
    }

/* Aktif tab rengi CatalogDetay.aspx.cs'in ürettiği dinamik
   <style> bloğundan gelir (id bazlı, en yüksek özgüllük):
   background:var(--brand); color:#fff — dokunulmadı, zaten
   koyu temada da doğrudan çalışır. */

.rt-panel {
    display: none;
}

/* ══════════════════════════════
   LIGHTBOX (görsel büyütme) — tek client-side parça
   ══════════════════════════════ */
.lb-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

    .lb-modal.active {
        opacity: 1;
        pointer-events: all;
    }

.lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.96);
    cursor: pointer;
}

.lb-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-image {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity .2s ease;
}

.lb-spinner {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    display: flex;
    pointer-events: none;
}

.lb-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 34px;
    color: #fff;
    background: none;
    border: none;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.10);
    border: 1.5px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lb-prev {
    left: 12px;
}

.lb-next {
    right: 12px;
}

.lb-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 600;
    z-index: 1;
}

/* ══════════════════════════════════════════════
   MOBİL ≤ 900px
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .detail-container {
        padding: 1rem;
    }

    .hero {
        margin: 0 -1rem 1.1rem;
        min-height: 260px;
    }

    .hero-content {
        padding: 1.1rem 1rem;
    }

    .hero .price-banner {
        max-width: 100%;
        width: 100%;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .types-grid, .commercial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ns-btn {
        width: 30px;
        height: 30px;
        font-size: .8rem;
    }

    .ns-track-wrap {
        aspect-ratio: 4/3;
    }

    .nst-item {
        width: 48px;
        height: 36px;
    }

    .lb-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .lb-prev {
        left: 8px;
    }

    .lb-next {
        right: 8px;
    }

    .rt-tabbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .rt-tabbar::-webkit-scrollbar {
            display: none;
        }

    .rt-tab {
        flex-shrink: 0;
    }

    .back-to-projects-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-track, .nst-row, .lb-image {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
