/* Primeviare — halka açık ilan detay */
:root {
    --xy-brand: #059669;
    --xy-brand-dark: #047857;
    --xy-brand-light: #10b981;
    --xy-brand-muted: rgba(5, 150, 105, 0.12);
    --xy-navy: #0c1222;
    --xy-navy-mid: #151d33;
    --xy-emerald: #059669;
    --xy-emerald-deep: #047857;
    --xy-slate: #64748b;
    --xy-border: rgba(148, 163, 184, 0.22);
    --ep-radius: 16px;
}

.emlak-public-page {
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #0c1222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.emlak-public-page h1,
.emlak-public-page h2,
.emlak-public-page .font-outfit {
    font-family: "Outfit", "DM Sans", sans-serif;
}

.emlak-public-page .btn-success {
    --bs-btn-bg: var(--xy-brand);
    --bs-btn-border-color: var(--xy-brand);
    --bs-btn-hover-bg: var(--xy-brand-dark);
    --bs-btn-hover-border-color: var(--xy-brand-dark);
}

.emlak-public-page .btn-outline-brand {
    color: var(--xy-brand);
    border-color: rgba(5, 150, 105, 0.45);
    font-weight: 600;
}

.emlak-public-page .btn-outline-brand:hover {
    background: var(--xy-brand-muted);
    color: var(--xy-brand-dark);
    border-color: var(--xy-brand);
}

.ep-brand-icon { color: var(--xy-brand); }
.ep-price { color: var(--xy-brand); font-family: "Outfit", sans-serif; }

/* Dil seçici */
.emlak-public-page .lang-switch .btn {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border-color: var(--xy-border);
}

.emlak-public-page .lang-switch .btn.active {
    background: var(--xy-brand);
    color: #fff;
    border-color: var(--xy-brand);
}

/* İçerik */
.emlak-detail-main {
    flex: 1;
    padding: 1.25rem 0 2.5rem;
    background: #f8fafc;
}

.emlak-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

.emlak-breadcrumb a {
    color: var(--xy-slate);
    text-decoration: none;
}

.emlak-breadcrumb a:hover { color: var(--xy-brand); }

.emlak-breadcrumb .sep {
    color: #c5c8bc;
    margin: 0 0.35rem;
}

/* Mobil başlık şeridi */
.emlak-detail-hero-bar {
    background: linear-gradient(135deg, #0c1222 0%, #151d33 100%);
    border-radius: var(--ep-radius);
    padding: 1.25rem 1.5rem;
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(12, 18, 34, 0.12);
}

.emlak-detail-hero-bar .ref {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
}

.emlak-detail-hero-bar h1 {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0.35rem 0 0.5rem;
    color: #fff;
}

.emlak-detail-hero-bar .loc { font-size: 0.9rem; opacity: 0.85; }

.emlak-detail-hero-bar .price {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

/* Galeri */
.emlak-gallery-hero {
    border-radius: var(--ep-radius);
    overflow: hidden;
    background: #ecece8;
    box-shadow: 0 16px 48px rgba(12, 18, 34, 0.1);
    margin-bottom: 0;
    border: 1px solid var(--xy-border);
}

.emlak-gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 520px;
    cursor: zoom-in;
    background: #ecece8;
}

.emlak-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emlak-gallery-main .no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    color: var(--xy-slate);
    gap: 0.5rem;
}

.emlak-gallery-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(12, 18, 34, 0.88);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.emlak-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
    padding: 0.65rem;
    background: #fff;
    border-top: 1px solid var(--xy-border);
}

@media (max-width: 767.98px) {
    .emlak-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

.emlak-gallery-thumbs button {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 4/3;
    background: #f5f5f0;
    cursor: pointer;
}

.emlak-gallery-thumbs button.active { border-color: var(--xy-brand); }

.emlak-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hızlı özet şeridi */
.emlak-quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0;
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--ep-radius);
    margin: 1rem 0 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 18, 34, 0.05);
}

.emlak-quick-facts__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-right: 1px solid var(--xy-border);
}

.emlak-quick-facts__item:last-child { border-right: none; }

.emlak-quick-facts__item i {
    font-size: 1.25rem;
    color: var(--xy-brand);
    opacity: 0.85;
}

.emlak-quick-facts__item .lbl {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--xy-slate);
}

.emlak-quick-facts__item .val {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--xy-brand);
    font-family: "Outfit", sans-serif;
}

/* Kartlar */
.emlak-panel {
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--ep-radius);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(12, 18, 34, 0.04);
}

.emlak-panel__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--xy-slate);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.emlak-panel__title i { color: var(--xy-brand); }

.emlak-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .emlak-spec-grid { grid-template-columns: repeat(3, 1fr); }
}

.emlak-spec-item {
    background: #f8fafc;
    border: 1px solid var(--xy-border);
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
}

.emlak-spec-item .lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--xy-slate);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.emlak-spec-item .val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--xy-brand);
    line-height: 1.3;
}

.emlak-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.emlak-feature-tags .tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: var(--xy-brand-muted);
    color: var(--xy-brand-dark);
    border: 1px solid rgba(12, 18, 34, 0.12);
}

.emlak-desc-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4a4d42;
    white-space: pre-wrap;
}

.emlak-location-card {
    border: 1px solid var(--xy-border);
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.emlak-location-card__row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(12, 18, 34, 0.12);
}

.emlak-location-card__row:last-child { border-bottom: 0; }

.emlak-location-card__row .lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--xy-slate);
    font-weight: 700;
}

.emlak-location-card__row .val {
    font-size: 0.95rem;
    color: #0c1222;
    font-weight: 500;
    line-height: 1.55;
}

/* Sidebar */
.emlak-sidebar-sticky {
    position: sticky;
    top: 5.5rem;
}

/* Sahibinden tarzı dikey bilgi listesi */
.emlak-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emlak-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eeebe3;
    font-size: 0.88rem;
}

.emlak-info-list li:last-child {
    border-bottom: none;
}

.emlak-info-list .lbl {
    color: var(--xy-slate);
    flex-shrink: 0;
    max-width: 48%;
}

.emlak-info-list .val {
    font-weight: 650;
    color: var(--xy-brand);
    text-align: right;
}

.emlak-auth-meta {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--xy-border);
}

.emlak-auth-meta__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    padding: 0.28rem 0;
}

.emlak-auth-meta__row .lbl {
    color: var(--xy-slate);
    font-weight: 600;
}

.emlak-auth-meta__row .val {
    font-weight: 700;
    color: #0c1222;
    font-family: "Outfit", sans-serif;
}

/* Özellik tik listesi (V / check) */
.emlak-feature-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
}

.emlak-feature-checks li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0c1222;
}

.emlak-v-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: var(--xy-brand-muted);
    color: var(--xy-brand);
    flex-shrink: 0;
}

/* Yetki belgesi kartı (Bilgi alın üstü) */
.emlak-license-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #eef2ff 0%, #fff 55%);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.emlak-license-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--xy-brand);
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.emlak-license-card__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--xy-slate);
    margin-bottom: 0.2rem;
}

.emlak-license-card__value {
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--xy-brand);
    letter-spacing: 0.02em;
    word-break: break-all;
}

@media (max-width: 575px) {
    .emlak-feature-checks {
        grid-template-columns: 1fr;
    }
}

.emlak-summary-card {
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--ep-radius);
    padding: 1.35rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 28px rgba(12, 18, 34, 0.07);
}

.emlak-summary-card .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.ep-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
}

.ep-badge--type {
    background: var(--xy-brand);
    color: #fff;
}

.ep-badge--muted {
    background: #f5f5f0;
    color: var(--xy-brand);
    border: 1px solid var(--xy-border);
}

.ep-badge--featured {
    background: #f0ead6;
    color: #5c4a1a;
}

.emlak-summary-card .price-lg {
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--xy-brand);
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.emlak-summary-card .price-note {
    font-size: 0.8rem;
    color: var(--xy-slate);
}

.emlak-contact-card .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--xy-slate);
}

.emlak-contact-card .form-control:focus {
    border-color: var(--xy-brand);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}

.emlak-action-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.emlak-action-btns .btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
}

.emlak-action-btns .btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
}

.emlak-action-btns .btn {
    border-radius: 12px;
    font-weight: 600;
}

/* Benzer ilanlar */
.emlak-similar-card {
    border: 1px solid var(--xy-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: block;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.emlak-similar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(12, 18, 34, 0.1);
    color: inherit;
}

.emlak-similar-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.emlak-similar-card .body { padding: 0.85rem 1rem; }

/* Lightbox */
.emlak-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(61, 64, 48, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.emlak-lightbox.is-open { display: flex; }

.emlak-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.emlak-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.emlak-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.emlak-lightbox__nav--prev { left: 1rem; }
.emlak-lightbox__nav--next { right: 1rem; }

/* Galeri grid */
.emlak-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 0.5rem;
}

.emlak-gallery-grid__main {
    position: relative;
    min-height: 360px;
}

.emlak-gallery-grid__side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.emlak-gallery-side-thumb {
    flex: 1;
    border: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    min-height: 0;
}

.emlak-gallery-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emlak-gallery-expand {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--xy-brand);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.emlak-highlight-quote {
    background: linear-gradient(135deg, #f5f5f0, #ffffff);
    border: 1px solid var(--xy-border);
    border-left: 4px solid var(--xy-brand);
    border-radius: var(--ep-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.emlak-highlight-quote i {
    font-size: 1.75rem;
    color: var(--xy-brand);
    opacity: 0.45;
}

.emlak-highlight-quote p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--xy-brand);
    font-weight: 500;
}

.emlak-detail-nav a {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--xy-slate);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--xy-border);
    transition: all 0.15s;
}

.emlak-detail-nav a:hover {
    color: var(--xy-brand);
    border-color: rgba(37, 99, 235, 0.28);
    background: var(--xy-brand-muted);
}

.emlak-price-m2 {
    font-size: 0.875rem;
    color: var(--xy-slate);
    margin-top: 0.35rem;
}

.emlak-agent-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--xy-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: "Outfit", sans-serif;
    font-size: 1.25rem;
}

.emlak-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: #fff;
    border-top: 1px solid var(--xy-border);
    padding: 0.65rem 1rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 -8px 32px rgba(12, 18, 34, 0.08);
}

.emlak-public-page .emlak-detail-main { padding-bottom: 5rem; }

@media (min-width: 992px) {
    .emlak-public-page .emlak-detail-main { padding-bottom: 2rem; }
}

@media (max-width: 767px) {
    .emlak-gallery-grid { grid-template-columns: 1fr; }
    .emlak-gallery-grid__side {
        flex-direction: row;
        height: 100px;
    }
    .emlak-quick-facts__item {
        border-right: none;
        border-bottom: 1px solid var(--xy-border);
    }
    .emlak-quick-facts__item:last-child { border-bottom: none; }
}

@media (max-width: 575.98px) {
    .emlak-quick-facts { grid-template-columns: 1fr 1fr; }
}
