/* ═══════ NOTE: Critical CSS (:root, body, header, sidebar layout) is inlined in index.php ═══════ */

/* ═══════ STATS COUNTER BAR ═══════ */
.v-stats-bar {
    background: var(--v-surface);
    border-bottom: 1px solid var(--v-border);
    padding: 0;
    overflow: hidden;
    z-index: 999;
    position: relative;
    flex-shrink: 0;
}
.v-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.v-stats-inner::-webkit-scrollbar { display: none; }
.v-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 16px;
    flex-shrink: 0;
    min-width: 0;
}
.v-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--v-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.v-stat-num.v-stat-active { color: var(--v-primary); }
.v-stat-num.v-stat-upcoming { color: var(--v-warning); }
.v-stat-num.v-stat-completed { color: var(--v-success); }
.v-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--v-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.v-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--v-border);
    flex-shrink: 0;
}

/* ═══════ MAP OVERLAY BADGE ═══════ */
.v-map-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 500;
    background: var(--v-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--v-border);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--v-text);
    box-shadow: var(--v-shadow);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.v-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.v-badge-sep {
    color: var(--v-text-muted);
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ═══════ MOBILE DRAG HANDLE ═══════ */
.v-drag-handle {
    display: none;
    justify-content: center;
    padding: 10px 0 4px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.v-drag-bar {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: var(--v-text-muted);
    opacity: 0.35;
    transition: opacity 0.2s, width 0.2s;
}
.v-drag-handle:active .v-drag-bar {
    opacity: 0.7;
    width: 50px;
}

/* ═══════ SUCCESS ANIMATION (Lead Form) ═══════ */
.v-success-check {
    display: inline-block;
    animation: v-success-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes v-success-pop {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.v-check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: v-circle-draw 0.6s ease-in-out 0.2s forwards;
}
.v-check-mark {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: v-check-draw 0.4s ease-in-out 0.6s forwards;
}
@keyframes v-circle-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes v-check-draw {
    to { stroke-dashoffset: 0; }
}

/* ═══════ PULL-TO-REFRESH INDICATOR ═══════ */
.v-pull-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 8px;
    font-size: 0.75rem;
    color: var(--v-text-muted);
    gap: 6px;
}
.v-pull-indicator.active {
    display: flex;
}
.v-pull-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--v-border);
    border-top-color: var(--v-primary);
    border-radius: 50%;
    animation: v-spin 0.6s linear infinite;
}

/* ═══════ MARKER CLUSTER CUSTOM STYLES ═══════ */
.marker-cluster-small {
    background-color: rgba(var(--v-primary-rgb), 0.15) !important;
}
.marker-cluster-small div {
    background-color: rgba(var(--v-primary-rgb), 0.7) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}
.marker-cluster-medium {
    background-color: rgba(var(--v-warning-rgb), 0.15) !important;
}
.marker-cluster-medium div {
    background-color: rgba(var(--v-warning-rgb), 0.7) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}
.marker-cluster-large {
    background-color: rgba(var(--v-success-rgb), 0.15) !important;
}
.marker-cluster-large div {
    background-color: rgba(var(--v-success-rgb), 0.7) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 991px) {
    .v-stats-bar {
        overflow-x: auto;
    }
    .v-stats-inner {
        padding: 8px 1rem;
        justify-content: flex-start;
    }
    .v-stat-item {
        padding: 0 12px;
    }
    .v-stat-num {
        font-size: 1.1rem;
    }
    .v-map-badge {
        display: none; /* sidebar ile çakışmasın */
    }
    .v-drag-handle {
        display: flex;
    }
}
@media (max-width: 575px) {
    .v-stats-inner {
        padding: 6px 0.75rem;
    }
    .v-stat-item {
        padding: 0 8px;
    }
    .v-stat-num {
        font-size: 0.95rem;
    }
    .v-stat-label {
        font-size: 0.58rem;
    }
    .v-stat-divider {
        height: 22px;
    }
}

/* ═══════ TOUCH OPTIMIZATION ═══════ */
@media (pointer: coarse) {
    .v-filter-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 14px;
    }
    .v-tab {
        min-height: 44px;
    }
    .v-project-card {
        padding: 16px 20px;
        min-height: 64px;
    }
    .v-map-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .v-detail-back {
        min-height: 44px;
        min-width: 44px;
    }
    .v-apt-cta-btn {
        min-height: 44px;
        padding: 10px 16px;
    }
    .v-gallery-nav {
        min-height: 44px;
        min-width: 44px;
    }
    .v-sale-card {
        padding: 14px 20px;
        min-height: 56px;
    }
}

[data-theme="dark"] .form-control {
    background-color: var(--v-bg) !important;
    color: var(--v-text) !important;
    border-color: var(--v-border) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--v-text-muted) !important;
    opacity: 1;
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--v-hover) !important;
    color: var(--v-text) !important;
    border-color: var(--v-primary) !important;
}

[data-theme="dark"] textarea.form-control {
    background-color: var(--v-bg) !important;
    color: var(--v-text) !important;
}

/* ═══════ HEADER CONTACT ═══════ */
.v-header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.v-header-contact a {
    color: var(--v-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v-header-contact a:hover {
    color: var(--v-text);
}

/* (Duplicate .v-main, .v-map-wrap, #vitrinMap rules removed — inlined in index.php) */

.v-legend {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--v-surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--v-radius);
    padding: 14px 18px;
    z-index: 500;
    box-shadow: var(--v-shadow);
    border: 1px solid var(--v-border);
    font-size: 0.8rem;
    color: var(--v-text);
}

.v-legend-title {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--v-text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.v-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.v-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ═══════ SIDEBAR ═══════ */
.v-sidebar {
    width: 420px;
    background: var(--v-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--v-border);
    display: flex;
    flex-direction: column;
    z-index: 600;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.05);
}

.v-sidebar-header {
    padding: 1rem 1.5rem 0;
    border-bottom: 1px solid var(--v-border);
    background: transparent;
}

/* Tabs */
.v-tabs {
    display: flex;
    gap: 0;
    margin-top: 12px;
}

.v-tab {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--v-text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.v-tab:hover {
    color: var(--v-text);
}

.v-tab.active {
    color: var(--v-primary);
    border-bottom-color: var(--v-primary);
}

.v-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.v-search-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--v-border);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--v-text);
    background: var(--v-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.v-search-wrap input:focus {
    border-color: var(--v-primary);
    box-shadow: 0 0 0 4px rgba(var(--v-primary-rgb), 0.1);
}

.v-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v-text-muted);
}

/* Status Filters */
.v-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.v-filter-btn {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--v-border);
    background: var(--v-surface);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--v-text-muted);
}

.v-filter-btn:hover {
    border-color: var(--v-primary);
    color: var(--v-primary);
}

.v-filter-btn.active {
    background: var(--v-primary);
    color: #fff;
    border-color: var(--v-primary);
}

/* Tab content */
.v-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    flex-direction: column;
}

.v-tab-content.active {
    display: flex;
}

/* ═══════ MODERN SCROLLBAR ═══════ */
.v-tab-content {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.v-tab-content:hover {
    scrollbar-color: rgba(var(--v-muted-rgb), 0.5) transparent;
}

.v-tab-content::-webkit-scrollbar {
    width: 8px;
}

.v-tab-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
    margin: 8px 0;
}

.v-tab-content::-webkit-scrollbar-thumb {
    background: rgba(var(--v-muted-rgb), 0);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background 0.3s ease;
}

.v-tab-content:hover::-webkit-scrollbar-thumb {
    background: rgba(var(--v-muted-rgb), 0.5);
    border: 2px solid transparent;
    background-clip: content-box;
}

.v-tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--v-muted-rgb), 0.7) !important;
    border: 2px solid transparent;
    background-clip: content-box;
}

.v-tab-content::-webkit-scrollbar-thumb:active {
    background: rgba(71, 85, 105, 0.85) !important;
    border: 1px solid transparent;
    background-clip: content-box;
}

/* Dark mode scrollbar */
[data-theme="dark"] .v-tab-content:hover {
    scrollbar-color: rgba(var(--v-muted-rgb), 0.5) transparent;
}

[data-theme="dark"] .v-tab-content:hover::-webkit-scrollbar-thumb {
    background: rgba(var(--v-muted-rgb), 0.5);
    border: 2px solid transparent;
    background-clip: content-box;
}

[data-theme="dark"] .v-tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--v-muted-rgb), 0.6) !important;
    border: 2px solid transparent;
    background-clip: content-box;
}

[data-theme="dark"] .v-tab-content::-webkit-scrollbar-thumb:active {
    background: rgba(var(--v-muted-rgb), 0.8) !important;
    border: 1px solid transparent;
    background-clip: content-box;
}

/* Project Cards */
.v-project-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--v-border);
    cursor: pointer;
    transition: background 0.2s;
}

.v-project-card:hover {
    background: var(--v-hover);
}

.v-project-card.active {
    background: rgba(var(--v-primary-rgb), 0.05);
    border-left: 3px solid var(--v-primary);
}

.v-project-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes dot-pulse-aktif {
    0% { box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(var(--v-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0); }
}
@keyframes dot-pulse-baslayacak {
    0% { box-shadow: 0 0 0 0 rgba(var(--v-warning-rgb), 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(var(--v-warning-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--v-warning-rgb), 0); }
}
@keyframes dot-pulse-bitmis {
    0% { box-shadow: 0 0 0 0 rgba(var(--v-success-rgb), 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(var(--v-success-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--v-success-rgb), 0); }
}

.v-dot-aktif {
    background: var(--v-primary);
    animation: dot-pulse-aktif 2s infinite;
}

.v-dot-baslayacak {
    background: var(--v-warning);
    animation: dot-pulse-baslayacak 2s infinite;
}

.v-dot-bitmis {
    background: var(--v-success);
    animation: dot-pulse-bitmis 2s infinite;
}

.v-project-info {
    flex: 1;
    min-width: 0;
}

.v-project-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--v-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v-project-loc {
    font-size: 0.78rem;
    color: var(--v-text-muted);
}

.v-project-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.v-project-meta span {
    font-size: 0.72rem;
    color: var(--v-text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.v-project-count {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    background: var(--v-bg);
    color: var(--v-text);
    border-radius: 8px;
    border: 1px solid var(--v-border);
    padding: 6px 10px;
    line-height: 1;
    flex-shrink: 0;
}

.v-project-count small {
    display: block;
    font-size: 0.6rem;
    color: var(--v-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.v-project-arrow {
    color: var(--v-text-muted);
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.v-project-card:hover .v-project-arrow {
    opacity: 1;
    color: var(--v-primary);
}

.v-project-card:hover .v-share-btn {
    opacity: 1;
}

/* POI Container */
.v-poi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.v-poi-item {
    display: flex;
    align-items: center;
    background: var(--v-surface-glass);
    border: 1px solid var(--v-border);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.v-poi-item:hover {
    transform: translateY(-2px);
}

.v-poi-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.v-poi-text {
    line-height: 1.2;
}

.v-poi-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--v-text);
}

.v-poi-dist {
    font-size: 0.7rem;
    color: var(--v-text-muted);
}

/* ═══════ VITRIN FEATURES GRID ═══════ */
.v-features-section {
    margin-bottom: 24px;
}
.v-features-title {
    font-weight: 700;
    color: var(--v-text);
    font-size: 1.05rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.v-features-title i {
    color: var(--v-primary);
}
.v-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
}
.v-feature-card {
    background: var(--v-bg);
    border: 1px solid var(--v-border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.v-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.v-feature-cat-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--v-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.v-feature-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 6px;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    border: 1px solid rgba(0,0,0,0.04);
    display: block;
}
[data-theme="dark"] .v-feature-logo {
    background: rgba(255,255,255,0.95);
}
.v-feature-brand-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--v-text);
    line-height: 1.2;
}
.v-feature-brand-placeholder {
    width: 60px;
    height: 60px;
    margin: 0 auto 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--v-bg), var(--v-border));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--v-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    padding: 4px;
}

/* Hotspots */
.v-hotspot {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.v-hotspot-dot {
    width: 16px;
    height: 16px;
    background: var(--v-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0.7);
    cursor: pointer;
    animation: pulse-ring 2s infinite;
}

.v-hotspot-label {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--v-dark);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.v-hotspot-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--v-dark) transparent transparent transparent;
}

.v-hotspot:hover .v-hotspot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Dark theme hotspot balloon fix */
[data-theme="dark"] .v-hotspot-label {
    background: var(--v-surface);
    color: var(--v-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .v-hotspot-label::after {
    border-color: var(--v-surface) transparent transparent transparent;
}

[data-theme="dark"] .v-hotspot-dot {
    border-color: var(--v-border);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--v-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0);
    }
}

@keyframes vFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v-fade-up {
    opacity: 0;
    animation: vFadeUp 0.6s ease forwards;
}

/* Sale Apartments list */
/* Kart artık <a>: her satılık mülkün kendi sayfası var ve bağlantı gerçek
   olmalı — orta tıkla yeni sekmede açılabilsin, arama motoru izleyebilsin.
   Adresi olmayan (henüz slug üretilmemiş) kayıtlar <div> olarak basılıyor,
   bu yüzden iki öğe de aynı görünmek zorunda. */
.v-sale-card {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--v-border);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.v-sale-card:hover {
    background: var(--v-hover);
}

.v-sale-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.v-sale-card-project {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--v-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.v-sale-card-apt {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--v-dark);
}

.v-sale-card-loc {
    font-size: 0.75rem;
    color: var(--v-text-muted);
}

/* ═══════ DETAIL PANEL ═══════ */
.v-detail-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: var(--v-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--v-border);
    z-index: 1010;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
}

.v-detail-panel.open {
    transform: translateX(0);
}

.v-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--v-border);
    background: transparent;
}

.v-detail-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--v-border);
    background: var(--v-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--v-text-muted);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.v-detail-back:hover {
    border-color: var(--v-primary);
    color: var(--v-primary);
}

.v-detail-title {
    font-weight: 800;
    font-size: 1.1rem;
    flex: 1;
    color: var(--v-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.v-detail-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.v-detail-body:hover {
    scrollbar-color: rgba(var(--v-muted-rgb), 0.5) transparent;
}

.v-detail-body::-webkit-scrollbar,
.v-modern-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.v-detail-body::-webkit-scrollbar-track,
.v-modern-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
    margin: 8px 0;
}

.v-detail-body::-webkit-scrollbar-thumb,
.v-modern-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(var(--v-muted-rgb), 0);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background 0.3s ease;
}

.v-detail-body:hover::-webkit-scrollbar-thumb,
.v-modern-scrollbar:hover::-webkit-scrollbar-thumb {
    background: rgba(var(--v-muted-rgb), 0.5);
    border: 2px solid transparent;
    background-clip: content-box;
}

.v-detail-body::-webkit-scrollbar-thumb:hover,
.v-modern-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--v-muted-rgb), 0.7) !important;
    border: 2px solid transparent;
    background-clip: content-box;
}

.v-detail-body::-webkit-scrollbar-thumb:active,
.v-modern-scrollbar::-webkit-scrollbar-thumb:active {
    background: rgba(71, 85, 105, 0.85) !important;
    border: 1px solid transparent;
    background-clip: content-box;
}

[data-theme="dark"] .v-detail-body:hover,
[data-theme="dark"] .v-modern-scrollbar:hover {
    scrollbar-color: rgba(var(--v-muted-rgb), 0.5) transparent;
}

[data-theme="dark"] .v-detail-body:hover::-webkit-scrollbar-thumb,
[data-theme="dark"] .v-modern-scrollbar:hover::-webkit-scrollbar-thumb {
    background: rgba(var(--v-muted-rgb), 0.5);
    border: 2px solid transparent;
    background-clip: content-box;
}

[data-theme="dark"] .v-detail-body::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .v-modern-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--v-muted-rgb), 0.6) !important;
    border: 2px solid transparent;
    background-clip: content-box;
}

.v-modern-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.v-modern-scrollbar:hover {
    scrollbar-color: rgba(var(--v-muted-rgb), 0.5) transparent;
}

.v-detail-image {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    background: var(--v-bg);
    border-bottom: 1px solid var(--v-border);
}

.v-detail-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--v-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v-text-muted);
    font-size: 3rem;
}

/* ===== GALLERY SLIDER ===== */
.v-gallery-wrap {
    position: relative;
    width: 100%;
    background: #0a0a0a;
    border-bottom: 1px solid var(--v-border);
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.v-gallery-slider {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.v-gallery-slider.v-dragging {
    transition: none;
}
.v-gallery-slide {
    min-width: 100%;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.v-gallery-slide img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}
.v-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}
.v-gallery-nav:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}
.v-gallery-nav.v-prev { left: 8px; }
.v-gallery-nav.v-next { right: 8px; }
.v-gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
    backdrop-filter: blur(4px);
}
.v-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    background: #0a0a0a;
    border-bottom: 1px solid var(--v-border);
}
.v-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}
.v-gallery-dot.active {
    background: #fff;
    transform: scale(1.3);
}
.v-gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 6px 10px;
    overflow-x: auto;
    background: #0a0a0a;
    border-bottom: 1px solid var(--v-border);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.v-gallery-thumbs::-webkit-scrollbar { display: none; }
.v-gallery-thumb {
    width: 52px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s;
}
.v-gallery-thumb.active {
    border-color: #fff;
    opacity: 1;
}
.v-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== LIGHTBOX ===== */
.v-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    touch-action: pan-y;
}
.v-lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}
.v-lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.v-lightbox-close:hover { opacity: 1; }
.v-lightbox-slider {
    display: flex;
    width: 100%;
    max-width: 100vw;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: center;
}
.v-lightbox-slider.v-dragging { transition: none; }
.v-lightbox-slide {
    min-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.v-lightbox-slide img {
    max-width: 95vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}
.v-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.v-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.v-lightbox-nav.v-prev { left: 12px; }
.v-lightbox-nav.v-next { right: 12px; }
.v-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}
.v-lightbox-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.v-lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}
.v-lightbox-dot.active {
    background: #fff;
    transform: scale(1.4);
}

.v-detail-content {
    padding: 20px;
}

.v-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.v-info-card {
    background: var(--v-bg);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--v-border);
}

.v-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--v-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.v-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--v-dark);
}

.v-info-full {
    grid-column: 1 / -1;
}

.v-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.v-status-aktif {
    background: rgba(var(--v-primary-rgb), 0.1);
    color: var(--v-primary);
}

.v-status-baslayacak {
    background: rgba(var(--v-warning-rgb), 0.1);
    color: var(--v-warning);
}

.v-status-bitmis {
    background: rgba(var(--v-success-rgb), 0.1);
    color: var(--v-success);
}

.v-desc-text {
    font-size: 0.875rem;
    color: var(--v-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Apartment list */
.v-apt-section-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--v-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-apt-item {
    background: var(--v-bg);
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--v-border);
    padding: 16px;
    transition: all 0.25s ease;
    position: relative;
}

.v-apt-item:hover {
    border-color: var(--v-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.v-apt-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.v-apt-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-apt-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--v-text);
}

.v-apt-floor {
    font-size: 0.7rem;
    color: var(--v-text-muted);
    background: var(--v-surface);
    padding: 2px 8px;
    border-radius: 6px;
}

.v-apt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.v-apt-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--v-text-muted);
    background: var(--v-surface);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--v-border);
}

.v-apt-tag i {
    font-size: 0.68rem;
    color: var(--v-text-muted);
}

.v-apt-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.v-apt-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--v-text-muted);
    cursor: default;
    transition: all 0.2s;
}

.v-apt-feature i {
    font-size: 0.78rem;
    color: var(--v-text-muted);
}

.v-apt-feature:hover {
    background: var(--v-hover);
    border-color: var(--v-primary);
}

.v-apt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.v-apt-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--v-success);
    letter-spacing: -0.01em;
}

.v-apt-price-ask {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--v-text-muted);
    font-style: italic;
}

.v-apt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--v-primary), var(--v-primary-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.v-apt-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--v-primary-rgb), 0.35);
}

.v-apt-plan-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--v-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.v-apt-plan-link:hover {
    text-decoration: underline;
}

.v-sale-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.v-sale-satilik {
    background: linear-gradient(135deg, rgba(var(--v-primary-rgb), 0.12), rgba(var(--v-primary-rgb), 0.06));
    color: var(--v-primary);
    border: 1px solid rgba(var(--v-primary-rgb), 0.15);
}

.v-sale-satildi {
    background: linear-gradient(135deg, rgba(var(--v-danger-rgb), 0.12), rgba(var(--v-danger-rgb), 0.06));
    color: var(--v-danger);
    border: 1px solid rgba(var(--v-danger-rgb), 0.15);
}

.v-sale-rezerve {
    background: linear-gradient(135deg, rgba(var(--v-warning-rgb), 0.12), rgba(var(--v-warning-rgb), 0.06));
    color: var(--v-warning);
    border: 1px solid rgba(var(--v-warning-rgb), 0.15);
}

.v-sale-katmaligi {
    background: linear-gradient(135deg, rgba(var(--v-muted-rgb), 0.12), rgba(var(--v-muted-rgb), 0.06));
    color: var(--v-text-muted);
    border: 1px solid rgba(var(--v-muted-rgb), 0.15);
}



/* Empty State */
.v-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--v-text-muted);
}

.v-empty i {
    font-size: 3rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 12px;
}

/* Loading */
.v-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.v-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--v-border);
    border-top-color: var(--v-primary);
    border-radius: 50%;
    animation: v-spin 0.8s linear infinite;
}

@keyframes v-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Leaflet Tile Gap Fix (Sub-pixel rendering lines) */
.leaflet-tile {
    margin: -1px;
    padding: 1px;
    outline: 1px solid transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Leaflet Custom Marker — yalnızca durum renkleri.
   Geometri (boyut, kenarlık, ikon puntosu) aşağıdaki "HARİTA İŞARETÇİLERİ"
   bölümünde TEK yerde. Burada da bir kopyası vardı (32px) ve aşağıdaki blok
   onu zaten eziyordu: iki farklı sayı aynı şeyi anlatıyordu. */

.v-marker-aktif {
    background: var(--v-primary);
}

.v-marker-baslayacak {
    background: var(--v-warning);
}

.v-marker-bitmis {
    background: var(--v-success);
}

/* Leaflet Custom Popup */
.leaflet-popup-content-wrapper {
    background: var(--v-surface);
    color: var(--v-text);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0;
}

.leaflet-popup {
    will-change: transform;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 220px;
}

.leaflet-popup-tip {
    background: var(--v-surface);
}

.v-popup-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid var(--v-border);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.v-popup-body {
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
}

.v-popup-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--v-dark);
}

.v-popup-loc {
    font-size: 0.75rem;
    color: var(--v-text-muted);
    margin-bottom: 8px;
}

.v-popup-meta {
    font-size: 0.75rem;
    color: var(--v-text-muted);
    margin-bottom: 10px;
}

.v-popup-btn {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    background: var(--v-primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.v-popup-btn:hover {
    opacity: 0.9;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 991px) {
    .v-header-contact .v-contact-desktop {
        display: none;
    }

    .v-brand-text {
        display: none;
    }

    .v-sidebar {
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75%;
        border-left: none;
        border-top: 2px solid var(--v-border);
        border-radius: 20px 20px 0 0;
        transform: translateY(calc(100% - 170px));
        will-change: transform;
    }

    .v-sidebar.expanded {
        transform: translateY(0);
    }

    .v-sidebar.detail-open {
        transform: translateY(100%) !important;
        pointer-events: none;
    }

    .v-sidebar-header {
        border-radius: 20px 20px 0 0;
        padding: 0.75rem 1.25rem 0;
        position: relative;
    }

    .v-map-wrap {
        height: 100%;
    }

    .v-detail-panel {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1100;
        border-left: none;
        border-radius: 0;
        will-change: transform;
    }

    .v-detail-back {
        width: 40px;
        height: 40px;
        border: 2px solid var(--v-border);
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .v-legend {
        bottom: auto;
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.72rem;
    }

    .v-legend-title {
        display: none;
    }

    .v-legend-item {
        margin-bottom: 0;
    }

    .v-legend-dot {
        width: 10px;
        height: 10px;
    }

    .v-project-card {
        padding: 12px 16px;
    }

    /* Stack footer vertically on tablet/mobile */
    .v-apt-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .v-apt-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .v-apt-item {
        padding: 14px;
    }

    .v-apt-item-header {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 575px) {
    .v-header {
        padding: 0 1rem;
        height: 56px;
    }

    .v-brand img {
        height: 28px;
    }

    .v-brand-text {
        font-size: 0.95rem;
    }

    /* ═══ MOBILE DETAIL PANEL FIXES ═══ */
    .v-main {
        height: calc(100vh - 56px);
        height: calc(100dvh - 56px);
    }

    .v-detail-content {
        padding: 14px;
    }

    .v-info-grid {
        gap: 8px;
        margin-bottom: 14px;
    }

    .v-info-card {
        padding: 10px;
        border-radius: 10px;
    }

    .v-info-label {
        font-size: 0.62rem;
    }

    .v-info-value {
        font-size: 0.82rem;
    }

    /* POI single column on small screens */
    .v-poi-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .v-poi-item {
        padding: 6px 10px;
    }

    /* Apartment items compact */
    .v-apt-item {
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .v-apt-item-title {
        flex-wrap: wrap;
        gap: 4px;
    }

    .v-apt-name {
        font-size: 0.82rem;
    }

    .v-apt-tags {
        gap: 4px;
        margin-bottom: 8px;
    }

    .v-apt-tag {
        padding: 3px 8px;
        font-size: 0.68rem;
    }

    .v-apt-features {
        gap: 4px;
        margin-bottom: 8px;
    }

    .v-apt-feature {
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .v-apt-price {
        font-size: 0.9rem;
    }

    /* Sale badge compact */
    .v-sale-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        white-space: nowrap;
    }

    /* Detail image smaller */
    .v-detail-image {
        max-height: 200px;
    }

    /* Gallery mobile optimizations */
    .v-gallery-slide, .v-gallery-slide img {
        max-height: 220px;
    }
    .v-gallery-nav {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    .v-gallery-thumbs {
        padding: 4px 8px;
        gap: 3px;
    }
    .v-gallery-thumb {
        width: 44px;
        height: 34px;
    }
    .v-lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .v-detail-title {
        font-size: 0.95rem;
    }

    /* Detail body: ensure last items are fully visible */
    .v-detail-body {
        -webkit-overflow-scrolling: touch;
    }

    .v-detail-content {
        padding-bottom: 120px;
    }

    /* Map popup adjustments */
    .leaflet-popup-content {
        min-width: 180px;
    }

    .v-popup-img {
        height: 90px;
    }
}

/* ===== PREMIUM IMAGE PLACEHOLDER ===== */
.v-detail-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--v-primary) 0%, var(--v-primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--v-border);
}
.v-detail-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}
.v-detail-image-placeholder i {
    z-index: 2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .v-detail-image-placeholder {
    background: linear-gradient(135deg, var(--v-surface) 0%, var(--v-bg) 100%);
    color: var(--v-primary);
}

/* ===== SKELETON LOADER ===== */
.v-skeleton-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.v-skeleton {
    background: linear-gradient(90deg, var(--v-bg) 25%, var(--v-border) 37%, var(--v-bg) 63%);
    background-size: 400% 100%;
    animation: v-skeleton-loading 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes v-skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.v-skeleton-image {
    width: 100%;
    height: 240px;
    border-radius: 0 0 12px 12px;
}
.v-skeleton-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.v-skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 12px;
}
.v-skeleton-title {
    width: 60%;
    height: 28px;
}
.v-skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.v-skeleton-card {
    height: 64px;
    border-radius: 12px;
}
.v-skeleton-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
}
.v-skeleton-text {
    width: 100%;
    height: 16px;
}

/* ===== MAP CONTROLS ===== */
.v-map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 500;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}
.v-map-btn {
    background: var(--v-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--v-border);
    border-radius: 10px;
    color: var(--v-text);
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--v-shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}
.v-map-btn:hover {
    background: var(--v-primary);
    color: white;
    border-color: var(--v-primary);
    transform: translateY(-2px);
}
.v-map-btn.active {
    background: var(--v-primary);
    color: #fff;
    border-color: var(--v-primary);
}
.v-map-btn.active:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}
.v-cluster-btn {
    white-space: nowrap;
}
.v-layer-selector {
    position: relative;
}
.v-layer-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--v-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--v-border);
    border-radius: 12px;
    box-shadow: var(--v-shadow);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
    z-index: 501;
}
.v-layer-dropdown.show {
    display: flex;
    animation: vFadeUp 0.25s ease forwards;
}
.v-layer-option-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--v-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.v-layer-option-btn:hover {
    background: var(--v-hover);
    color: var(--v-primary);
}
.v-layer-option-btn.active {
    background: var(--v-primary);
    color: white !important;
}

/* ===== PULSE EFFECTS ===== */
@keyframes marker-pulse-aktif {
    0% { box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(var(--v-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0); }
}
@keyframes marker-pulse-baslayacak {
    0% { box-shadow: 0 0 0 0 rgba(var(--v-warning-rgb), 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(var(--v-warning-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--v-warning-rgb), 0); }
}
@keyframes marker-pulse-bitmis {
    0% { box-shadow: 0 0 0 0 rgba(var(--v-success-rgb), 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(var(--v-success-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--v-success-rgb), 0); }
}
.v-marker {
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
.v-marker-aktif { animation-name: marker-pulse-aktif; }
.v-marker-baslayacak { animation-name: marker-pulse-baslayacak; }
.v-marker-bitmis { animation-name: marker-pulse-bitmis; }

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(var(--v-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--v-primary-rgb), 0); }
}
.v-apt-cta-btn {
    animation: btn-pulse 2s infinite;
}

/* ===== SMOOTH TRANSITIONS & GLOW ===== */
.v-project-card, .v-sale-card, .v-apt-item {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.v-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: rgba(var(--v-primary-rgb), 0.25);
}
[data-theme="dark"] .v-project-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(var(--v-primary-rgb), 0.3);
}

/* Responsive UI Overlap Prevention */
@media (max-width: 991px) {
    .v-map-controls {
        top: 52px;
        left: 12px;
        flex-direction: row;
        gap: 6px;
    }
    .v-layer-dropdown {
        top: calc(100% + 8px);
        bottom: auto;
    }
    .v-skeleton-image {
        height: 180px;
    }
}

/* Dar ekranda kümeleme butonu ikon-only (kontroller taşmasın) */
@media (max-width: 767px) {
    .v-cluster-btn span {
        display: none;
    }
    .v-cluster-btn {
        padding: 8px 10px;
    }
}

/* ═══════ PROJECT CARD THUMBNAILS (1.1) ═══════ */
.v-project-thumb-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--v-bg);
    border: 1px solid var(--v-border);
}
.v-project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.v-project-card:hover .v-project-thumb {
    transform: scale(1.1);
}
.v-project-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v-text-muted);
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--v-bg), var(--v-border));
}
.v-project-thumb-wrap .v-project-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--v-surface);
    z-index: 2;
}

/* ═══════ FOOTER (1.2) ═══════ */
/* Kenar çubuğunun en altı. margin-top:auto liste kısayken bile footer'ı dibe
   yapıştırır, flex-shrink:0 sıkışıp yazıyı kırpmasını önler — bu iki satır
   eskiden dosyanın sonunda ayrı bir blokta duruyordu, buraya alındı.
   Ölçü bilinçli olarak dar: her piksel haritadan / listeden çalınıyor. */
.v-footer {
    width: 100%;
    padding: 5px 12px;
    border-top: 1px solid var(--v-border);
    background: var(--v-surface);
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}
.v-footer-copy {
    font-size: 0.64rem;
    line-height: 1.2;
    color: var(--v-text-muted);
    opacity: 0.7;
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .v-footer {
        padding: 4px 10px;
    }
}

/* ═══════ DETAIL PANEL TABS (1.4) ═══════ */
.v-detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--v-border);
    background: var(--v-surface);
    padding: 0 16px;
    gap: 0;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.v-detail-tabs::-webkit-scrollbar { display: none; }
.v-detail-tab {
    flex: 1;
    padding: 11px 8px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--v-text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.v-detail-tab:hover {
    color: var(--v-text);
}
.v-detail-tab.active {
    color: var(--v-primary);
    border-bottom-color: var(--v-primary);
}
.v-dtab-content {
    display: none;
}
.v-dtab-content.active {
    display: block;
}

/* Gallery Grid (Tab) */
.v-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.v-gallery-grid-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    position: relative;
    background: var(--v-bg);
    border: 1px solid var(--v-border);
}
.v-gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.v-gallery-grid-item:hover img {
    transform: scale(1.05);
}
.v-gallery-grid-item .v-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ═══════ COUNT-UP ANIMATION (1.5) ═══════ */
.v-countup {
    display: inline-block;
    min-width: 1.5ch;
}

/* ═══════ PRINT STYLES (3.4) ═══════ */
@media print {
    /* Kağıt tanımı: bu sayfanın hiç @page bildirimi yoktu, kağıt boyutu ve
       kenarlık tamamen yazıcı sürücüsüne kalıyordu (Letter riski).

       BİLEREK KOPYA — sistemdeki tek istisna. Vitrin halka açık ve kendi
       tasarım dilinde; ortak public/css/print.css buraya bağlansaydı onun
       kabuk kuralları (nav / footer / .btn gizlemesi) sayfadaki 17 düğmeyi
       de etkilerdi. Ölçüler print.css ile AYNI olmak zorunda:
       orayı değiştiren burayı da değiştirmeli (bkz. CLAUDE.md). */
    @page {
        size: A4 portrait;
        margin: 12mm 10mm 14mm;
    }

    /* Vitrin kendi tema anahtarını taşıyor (vitrin.js). Jetonlar
       sıfırlanmazsa koyu temadaki ziyaretçi siyah zeminli, okunmaz çıktı
       alıyordu. Sıfırlama jeton düzeyinde: bileşen kurallarına dokunmadan
       tüm sayfa açık palete döner. */
    :root,
    [data-theme="dark"] {
        --v-bg: #ffffff;
        --v-surface: #ffffff;
        --v-surface-glass: #ffffff;
        --v-text: #000000;
        --v-text-muted: #555555;
        --v-border: #999999;
    }

    body {
        /* Ekranda dikey flex kolon; kâğıtta blok akışı. */
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        background: #fff !important;
        color: #000 !important;
    }
    .v-header, .v-map-wrap, .v-sidebar, .v-legend, .v-map-controls,
    .v-detail-back, .v-apt-cta-btn, .v-permit-btn, .v-detail-tabs,
    .v-lightbox-overlay, #vLightbox,
    /* .v-modal beş modalin hepsini kapsıyor; tek tek id saymaya gerek yok
       (yeni eklenen KVKK modali listede unutulmuştu). */
    .v-modal, .v-consent,
    .v-gallery-nav, .v-gallery-dots, .v-gallery-thumbs, .v-gallery-counter,
    #themeToggle, #langToggle, .v-print-btn, .v-view-switch {
        display: none !important;
    }
    .v-main {
        display: block !important;
        height: auto !important;
    }
    .v-detail-panel {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
        background: #fff !important;
    }
    .v-detail-body {
        overflow: visible !important;
    }
    .v-detail-content {
        padding: 0 !important;
    }
    .v-dtab-content {
        display: block !important;
        page-break-inside: avoid;
    }
    .v-detail-header {
        border-bottom: 2px solid #000 !important;
        padding: 10px 0 !important;
        background: #fff !important;
    }
    .v-detail-title {
        font-size: 1.5rem !important;
        color: #000 !important;
    }
    .v-gallery-wrap {
        max-height: 300px !important;
        page-break-inside: avoid;
    }
    .v-info-card {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
    }
    .v-apt-item {
        border: 1px solid #ccc !important;
        background: #fff !important;
        page-break-inside: avoid;
    }
    .v-fade-up {
        opacity: 1 !important;
        animation: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   FAZ 4 — KURUMSAL KİMLİK
   Palet ve tipografi logodan türetildi (lacivert #010292, kırmızı #DE000D).
   Token tanımları index.php'deki kritik CSS bloğunda.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Başlık yüzü: rakamlar ve isimler Archivo, gövde Inter ─── */
.v-stat-num,
.v-detail-title,
.v-project-name,
.v-popup-title,
.v-apt-price,
.v-info-value,
.v-apt-name,
.v-features-title,
.v-sale-card-apt,
.v-project-count {
    font-family: var(--v-font-display);
    letter-spacing: -0.02em;
}

.v-popup-body {
    font-family: var(--v-font-body);
}


/* ═══════ HARİTA İŞARETÇİLERİ ═══════
   Eskiden üç durumun üçü de sonsuz nabız atıyordu; nabız hiçbir bilgi
   taşımıyordu. Artık yalnızca "devam eden" projeler atıyor — nabız
   = şantiye çalışıyor. Her durum ayrıca kendi ikonunu taşıyor. */

/* Boyut TEK jetondan gelir: --v-pin. Değerini iğnenin kendi style'ına
   vitrin.js yazar (buildPinIcon). Leaflet'in iconSize / iconAnchor'ı da aynı
   sayıdan türetildiği için ikisi hiçbir koşulda ayrışamaz — ekran kademesi
   değişip iğne yeniden kurulsa bile ucu koordinattan kaymaz. Buradaki değer
   yalnızca yedek (CSS, JS'ten önce yüklenirse). */
.v-marker {
    --v-pin: 28px;
    width: var(--v-pin);
    height: var(--v-pin);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(var(--v-primary-rgb), 0.32), 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
}

[data-theme="dark"] .v-marker {
    border-color: var(--v-surface);
}

.v-marker i {
    transform: rotate(45deg);
    color: #fff;
    font-size: calc(var(--v-pin) * 0.46);
    line-height: 1;
}

[data-theme="dark"] .v-marker i {
    color: var(--v-on-primary);
}

.leaflet-marker-icon:hover .v-marker {
    transform: rotate(-45deg) scale(1.14);
    z-index: 500;
}

/* Seçili proje: beyaz halka + büyütme */
.v-marker.is-current {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 0 0 4px rgba(var(--v-primary-rgb), 0.28), 0 6px 18px rgba(0, 0, 0, 0.3);
    z-index: 600;
}

/* Nabız SADECE devam eden projelerde — yukarıdaki genel .v-marker
   animation-name kuralını burada sıfırlıyoruz. */
.v-marker-baslayacak,
.v-marker-bitmis {
    animation-name: none;
}

@media (prefers-reduced-motion: reduce) {
    .v-marker { animation: none !important; }
}


/* ═══════ HARİTA BALONU (POPUP KARTI) ═══════ */

.leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(var(--v-primary-rgb), 0.22), 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--v-border);
}

.leaflet-popup-content {
    min-width: 244px;
}

.v-popup-media {
    position: relative;
    width: 100%;
    height: 132px;
    overflow: hidden;
    background: var(--v-bg);
}

.v-popup-img {
    height: 132px;
    display: block;
}

/* Durum rozeti fotoğrafın üstünde */
.v-popup-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.v-popup-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.v-popup-badge.is-aktif { color: #fff; }
.v-popup-badge.is-aktif::before { background: #7d8bff; }
.v-popup-badge.is-baslayacak::before { background: #ffb454; }
.v-popup-badge.is-bitmis::before { background: #4fd6a0; }

/* Tamamlanma yüzdesi — fotoğrafın altına oturan ince şerit */
.v-popup-pct {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.28);
}

.v-popup-pct span {
    display: block;
    height: 100%;
    background: var(--v-primary-light);
}

.v-popup-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--v-text);
}

.v-popup-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 10px;
}

.v-popup-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--v-primary-soft);
    color: var(--v-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.v-popup-btn {
    background: var(--v-primary);
    color: var(--v-on-primary);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.v-popup-btn:hover {
    background: var(--v-primary-light);
    transform: translateY(-1px);
    opacity: 1;
}


/* ═══════ GÖRÜNÜM ANAHTARI: HARİTA · LİSTE ═══════ */

.v-view-switch {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    background: var(--v-bg);
    border: 1px solid var(--v-border);
    border-radius: 10px;
    flex-shrink: 0;
}

.v-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: none;
    background: transparent;
    color: var(--v-text-muted);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.v-view-btn:hover { color: var(--v-text); }

.v-view-btn.active {
    background: var(--v-surface);
    color: var(--v-primary);
    box-shadow: 0 1px 4px rgba(var(--v-primary-rgb), 0.18);
}

.v-view-btn i { font-size: 0.92rem; }

.v-view-btn:focus-visible,
.v-map-btn:focus-visible,
.v-tab:focus-visible,
.v-filter-btn:focus-visible {
    outline: 2px solid var(--v-primary);
    outline-offset: 2px;
}

/* Liste görünümünde harita gizlenir, kenar çubuğu tüm genişliği alır */
.v-main.v-view-list .v-map-wrap {
    display: none;
}

.v-main.v-view-list .v-sidebar {
    width: 100%;
    border-left: none;
    background: var(--v-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Geniş ekranda içerik ortalanır, satırlar okunaklı genişlikte kalır */
.v-main.v-view-list .v-sidebar-header,
.v-main.v-view-list .v-tab-content > div:first-child,
.v-main.v-view-list .v-footer,
.v-main.v-view-list #projectList,
.v-main.v-view-list #saleList {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.v-main.v-view-list #projectList,
.v-main.v-view-list #saleList {
    padding: 4px 20px 28px;
}

.v-main.v-view-list #projectList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v-main.v-view-list .v-project-card {
    border: 1px solid var(--v-border);
    border-radius: 12px;
    background: var(--v-surface);
    padding: 12px 16px;
}

.v-main.v-view-list .v-project-thumb-wrap {
    width: 108px;
    height: 76px;
}

/* Mobilde liste seçilirse kenar çubuğu alt panel olmaktan çıkar */
@media (max-width: 991px) {
    .v-main.v-view-list .v-sidebar {
        position: static;
        height: 100%;
        transform: none !important;
        border-top: none;
        border-radius: 0;
    }

    .v-main.v-view-list .v-drag-handle {
        display: none;
    }

    .v-main.v-view-list #projectList,
    .v-main.v-view-list #saleList {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ═══════ GENİŞ OKUMA MODU (detay paneli) ═══════ */

.v-detail-wide-btn { display: none; }

@media (min-width: 1280px) {
    .v-detail-wide-btn {
        display: flex;
    }

    .v-detail-panel.v-wide {
        width: min(1040px, 72vw);
    }

    /* Geniş modda içerik iki sütuna yayılır */
    .v-detail-panel.v-wide .v-detail-content {
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }

    .v-detail-panel.v-wide .v-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .v-detail-panel.v-wide .v-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ═══════ GÖRSEL YÜKLEME: BULANIK YER TUTUCU (LQIP) ═══════
   Yükleme hattı her fotoğraftan 24 piksellik bir kopya üretiyor; bu kopya
   HTML'e data URI olarak gömülü geliyor (ek istek yok) ve görselin kendi
   arka planı oluyor. Gerçek fotoğraf indiğinde üstüne çiziliyor.
   Sarmalayıcı div kullanılmıyor — .v-detail-image ve .v-gallery-slide img
   kuralları olduğu gibi geçerli kalsın diye. */

.v-lqip {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--v-bg);
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL SİSTEMİ — Bootstrap yerine
   Vitrin, Bootstrap'in tamamını (CSS + JS bundle) yalnızca dört modal
   ve birkaç yardımcı sınıf için indiriyordu. Aşağısı o yükün karşılığı.
   ═══════════════════════════════════════════════════════════════════ */

.v-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.v-modal.v-open {
    display: flex;
}

.v-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 32, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: v-modal-fade 0.2s ease;
}

.v-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    animation: v-modal-rise 0.24s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.v-modal-dialog.v-modal-sm { max-width: 360px; }
.v-modal-dialog.v-modal-xl { max-width: min(1140px, 96vw); }

@keyframes v-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes v-modal-rise {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .v-modal-backdrop,
    .v-modal-dialog { animation: none; }
}

.v-modal-content {
    background: var(--v-surface);
    color: var(--v-text);
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(6, 8, 30, 0.34);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Görsel/plan modalleri: çerçevesiz */
.v-modal-content.v-modal-bare {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.v-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--v-primary), var(--v-primary-dark));
    color: #fff;
    flex-shrink: 0;
}

.v-modal-header.v-modal-header-plain {
    background: var(--v-surface);
    color: var(--v-text);
    border-bottom: 1px solid var(--v-border);
}

.v-modal-title {
    font-family: var(--v-font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.v-modal-body {
    padding: 18px;
    overflow-y: auto;
    min-height: 0;
}

.v-modal-body.v-modal-body-flush {
    padding: 0;
}

.v-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: var(--v-bg);
    border-top: 1px solid var(--v-border);
    flex-shrink: 0;
}

.v-modal-close {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s;
}

.v-modal-close:hover { background: rgba(255, 255, 255, 0.3); }

.v-modal-close.v-modal-close-plain {
    background: var(--v-bg);
    color: var(--v-text-muted);
}

.v-modal-close.v-modal-close-plain:hover {
    background: var(--v-hover);
    color: var(--v-text);
}

/* Çerçevesiz modallerin köşedeki kapatma düğmesi */
.v-modal-close-float {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}

.v-modal-close-float:hover { background: rgba(0, 0, 0, 0.82); }

.v-modal-close:focus-visible,
.v-modal-close-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* ═══════ FORM BİLEŞENLERİ (Bootstrap form-control yerine) ═══════ */

.v-field { margin-bottom: 10px; }
.v-field:last-of-type { margin-bottom: 16px; }

.v-input {
    display: block;
    width: 100%;
    padding: 10px 13px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--v-text);
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: 10px;
    transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.v-input::placeholder { color: var(--v-text-muted); opacity: 0.8; }

.v-input:focus {
    outline: none;
    border-color: var(--v-primary);
    box-shadow: 0 0 0 3px rgba(var(--v-primary-rgb), 0.16);
}

textarea.v-input {
    resize: vertical;
    min-height: 62px;
}

.v-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    font-family: var(--v-font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    background: linear-gradient(135deg, var(--v-primary), var(--v-primary-dark));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.2s, opacity 0.2s;
}

.v-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--v-primary-rgb), 0.32);
}

.v-btn-primary:disabled { opacity: 0.65; cursor: default; }

.v-btn-primary:focus-visible {
    outline: 2px solid var(--v-primary);
    outline-offset: 2px;
}

.v-btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: v-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.v-alert {
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.v-alert-danger {
    background: rgba(var(--v-danger-rgb), 0.10);
    border-color: rgba(var(--v-danger-rgb), 0.28);
    color: var(--v-danger);
}


/* ═══════ ODA LİSTESİ (Bootstrap list-group yerine) ═══════ */

.v-rooms-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
}

.v-rooms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--v-border);
    color: var(--v-text);
}

.v-rooms-item:last-child { border-bottom: none; }
.v-rooms-item span:first-child { font-weight: 500; }
.v-rooms-item span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

.v-rooms-empty {
    padding: 20px;
    text-align: center;
    color: var(--v-text-muted);
    font-size: 0.86rem;
}


/* ═══════════════════════════════════════════════════════════════════
   KVKK AYDINLATMA BANNER'I
   Vitrin ad, telefon, e-posta ve IP topluyor; ayrıca Analytics yüklü.
   Ziyaretçiye bunu söyleyen bir bildirim yoktu.
   ═══════════════════════════════════════════════════════════════════ */

.v-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9500;
    display: none;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 18px;
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(6, 8, 30, 0.26);
    /* Sol kenarda logonun kırmızısı — dikkat çeker, marka içinde kalır */
    border-left: 4px solid var(--v-brand-red, #de000d);
    animation: v-consent-in 0.34s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.v-consent.v-open { display: block; }

@keyframes v-consent-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .v-consent { animation: none; }
}

.v-consent-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.v-consent-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v-primary-soft);
    color: var(--v-primary);
    font-size: 1.15rem;
}

.v-consent-text {
    flex: 1;
    min-width: 0;
}

.v-consent-title {
    font-family: var(--v-font-display);
    font-weight: 700;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
    color: var(--v-text);
    margin-bottom: 4px;
}

.v-consent-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--v-text-muted);
    margin: 0;
}

.v-consent-desc a {
    color: var(--v-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.v-consent-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.v-consent-btn {
    padding: 9px 18px;
    border-radius: 9px;
    border: 1px solid var(--v-border);
    background: var(--v-surface);
    color: var(--v-text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.v-consent-btn:hover {
    background: var(--v-hover);
    color: var(--v-text);
}

.v-consent-btn.v-consent-accept {
    background: var(--v-primary);
    border-color: var(--v-primary);
    color: #fff;
}

.v-consent-btn.v-consent-accept:hover {
    background: var(--v-primary-light);
    border-color: var(--v-primary-light);
    color: #fff;
}

.v-consent-btn:focus-visible {
    outline: 2px solid var(--v-primary);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .v-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px;
    }

    .v-consent-inner {
        flex-direction: column;
        gap: 12px;
    }

    .v-consent-icon { display: none; }

    .v-consent-actions {
        width: 100%;
    }

    .v-consent-btn { flex: 1; text-align: center; }
}

/* Form içindeki KVKK onay satırı */
.v-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--v-text-muted);
}

.v-consent-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--v-primary);
    cursor: pointer;
}

.v-consent-check label { cursor: pointer; }

.v-consent-check a {
    color: var(--v-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ═══════ KVKK METNİ MODALİ ═══════ */

.v-legal-body {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--v-text-muted);
}

.v-legal-body h6 {
    font-family: var(--v-font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--v-text);
    margin: 16px 0 5px;
}

.v-legal-body h6:first-child { margin-top: 0; }

.v-legal-body p { margin: 0 0 9px; }

.v-legal-body ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.v-legal-body li { margin-bottom: 4px; }


/* Bootstrap'in d-none/d-md-inline yardımcı sınıflarının yerine */
.v-md-up { display: none; }

@media (min-width: 768px) {
    .v-md-up { display: inline; }
}


/* Arama kutusu + görünüm anahtarı aynı satırda */
.v-header-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.v-header-row .v-search-wrap {
    flex: 1;
    min-width: 0;
}

.v-header-row .v-view-switch {
    margin-bottom: 10px;
}


/* Kapak görseli ışık kutusunu açar */
.v-detail-image { cursor: pointer; }


/* ═══════════════════════════════════════════════════════════════════
   MOBİL DÜZELTMELERİ
   Bu blok dosyanın SONUNDA duruyor: yukarıdaki .v-detail-panel ve
   .v-sidebar tanımlarını kasten eziyor.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1. Liste boşluğa kayıyordu ───────────────────────────────────
   Esnek kutu düzeninde overflow:auto taşıyan bir öğe, min-height:auto
   varsayılanı yüzünden içeriği kadar UZUYOR — kendi içinde kaydırmıyor.
   Sonuç: proje listesi alt panelin dışına taşıyor, altbilgi ekran dışına
   itiliyor ve sayfa koca bir boşluğa kaydırılabiliyordu.
   Zincirin her halkasına min-height:0 gerekiyor. */

.v-sidebar,
.v-tab-content,
.v-detail-body,
.v-detail-content,
#projectList,
#saleList {
    min-height: 0;
}

/* Taşan bir şey kalsa bile alt panelin dışına çıkmasın */
.v-sidebar {
    overflow: hidden;
}

/* Not: .v-footer'ın flex-shrink / margin-top kuralları buradaydı;
   FOOTER (1.2) bölümündeki tanımıyla birleştirildi. */


/* ─── 2. Kapalı detay paneli sağda erişilebilir kalıyordu ──────────
   Panel kapanınca translateX(100%) ile ekran dışına çıkıyor ama hâlâ
   düzende yer tutuyordu; mobilde sağa kaydırınca görünüyordu.
   .v-main'e overflow:hidden (kritik CSS'te) + burada görünürlük kilidi.

   visibility geçişi 0.4sn GECİKMELİ: kapanış animasyonu boyunca panel
   görünür kalıyor, animasyon bitince gizleniyor. Açılışta gecikme yok. */

.v-detail-panel {
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s ease,
                visibility 0s linear 0.4s;
}

.v-detail-panel.open {
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s ease,
                visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
    .v-detail-panel,
    .v-detail-panel.open {
        transition: none;
    }
}


/* ─── 3. Liste görünümünde kart içeriği taşıyordu ──────────────────
   Kart yatay esnek kutu: küçük görsel + bilgi + daire/dükkan rozetleri
   + ok. Dar telefonda sabit genişlikler toplamı kart genişliğini aşıyor,
   bilgi sütunu eziliyor ve üstbilgi satırı taşıyordu. */

/* Meta satırı (m², blok, kat) tek satıra sığmazsa alta insin */
.v-project-meta {
    flex-wrap: wrap;
    row-gap: 2px;
}

/* Konum satırı da uzun adreslerde taşmasın */
.v-project-loc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .v-main.v-view-list .v-project-card {
        gap: 10px;
        padding: 10px 12px;
        align-items: center;
    }

    /* 108x76 dar ekranda bilgi sütununa yer bırakmıyordu */
    .v-main.v-view-list .v-project-thumb-wrap {
        width: 72px;
        height: 56px;
        border-radius: 10px;
    }

    /* Tüm kart zaten tıklanabilir; ok yalnızca yer kaplıyor */
    .v-main.v-view-list .v-project-arrow {
        display: none;
    }

    .v-main.v-view-list .v-project-count {
        padding: 4px 7px;
        font-size: 0.68rem;
    }

    .v-main.v-view-list .v-project-count small {
        font-size: 0.55rem;
    }

    .v-main.v-view-list .v-project-name {
        font-size: 0.9rem;
    }

    .v-main.v-view-list .v-project-meta {
        gap: 8px;
    }
}

/* Çok dar telefonlarda (≤380px) rozetler alt satıra insin */
@media (max-width: 380px) {
    .v-main.v-view-list .v-project-card {
        flex-wrap: wrap;
    }

    .v-main.v-view-list .v-project-info {
        min-width: 140px;
    }

    .v-main.v-view-list .v-project-count {
        margin-left: 82px;
    }

    .v-main.v-view-list .v-project-count ~ .v-project-count {
        margin-left: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   DAİRE SAYFASI — /vitrin/daire/{slug}
   ═══════════════════════════════════════════════════════════════════
   Satılık bir mülkün kendi sayfası (app/Views/vitrin/daire.php).

   Harita sayfasının tam ekran kabuğunu KULLANMAZ: burası kaydırılan bir
   belge. Kart, rozet, künye ızgarası, POI ve marka bileşenleri yukarıdaki
   bölümlerden aynen devralınıyor; buraya yalnızca bu sayfaya özgü olanlar
   yazıldı — en önemlisi blok şeması ve yapışkan çağrı şeridi.
   ─────────────────────────────────────────────────────────────────── */

.v-unit-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 96px;
}

.v-unit-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--v-text-muted);
    margin-bottom: 16px;
}

.v-unit-breadcrumb a {
    color: var(--v-primary);
    text-decoration: none;
    font-weight: 600;
}

.v-unit-breadcrumb a:hover { text-decoration: underline; }
.v-unit-breadcrumb i { font-size: 0.65rem; opacity: 0.5; }

/* İki sütun: içerik + yapışkan iletişim kartı.
   Tek sütuna düşme noktası 991px — vitrinin geri kalanıyla aynı eşik. */
.v-unit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.v-unit-main { min-width: 0; }

.v-unit-card {
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius);
    box-shadow: var(--v-shadow);
    padding: 20px;
    margin-bottom: 16px;
}

/* Galeri kartı kenardan kenara: görselin etrafında beyaz çerçeve olmasın. */
.v-unit-card-flush {
    padding: 0;
    overflow: hidden;
}

.v-unit-gallery-note {
    padding: 8px 16px;
    font-size: 0.72rem;
    color: var(--v-text-muted);
    background: var(--v-hover);
    border-top: 1px solid var(--v-border);
}

.v-unit-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.v-unit-project {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--v-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.v-unit-project a { color: inherit; text-decoration: none; }
.v-unit-project a:hover { text-decoration: underline; }

.v-unit-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--v-text);
    line-height: 1.2;
}

.v-unit-loc {
    font-size: 0.82rem;
    color: var(--v-text-muted);
    margin-top: 4px;
    line-height: 1.45;
}

/* Açık adres — haritayı açan bağlantı. Satırın geri kalanıyla aynı sessiz
   tonda durur, tıklanabilirliğini yalnızca üzerine gelince belli eder:
   başlığın hemen altındaki bu satır bir çağrı değil, künye bilgisidir. */
.v-unit-adres {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--v-border);
}

.v-unit-adres:hover {
    color: var(--v-primary);
    border-bottom-color: var(--v-primary);
}

.v-unit-scarcity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: var(--v-warning-soft);
    color: var(--v-warning);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.v-unit-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.v-unit-section-title i { color: var(--v-primary); }

.v-unit-section-sub {
    font-family: var(--v-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--v-text-muted);
    margin-left: auto;
}

/* ─── Oda kırılımı ─── */
.v-unit-rooms {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.v-unit-rooms td {
    padding: 8px 4px;
    border-bottom: 1px solid var(--v-border);
}

.v-unit-rooms td:last-child {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.v-unit-rooms tfoot td {
    border-bottom: none;
    border-top: 2px solid var(--v-border);
    font-weight: 800;
    color: var(--v-primary);
}

.v-unit-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 16px;
    background: var(--v-primary-soft);
    color: var(--v-primary);
    border: 1px solid rgba(var(--v-primary-rgb), 0.2);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.v-unit-plan-btn:hover {
    background: var(--v-primary);
    color: var(--v-on-primary);
}

/* ─── PROJE RUHSATI ───
   Proje künyesindeki (ve daire sayfasındaki) düğme ile modal içeriği.
   Belge görsel de olabilir PDF de; ikisi de #permitModal içinde gösteriliyor,
   hangisinin görüneceğini vitrin.js -> openPermit() seçer. */
.v-permit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--v-primary-soft);
    color: var(--v-primary);
    border: 1px solid rgba(var(--v-primary-rgb), 0.2);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.v-permit-btn:hover {
    background: var(--v-primary);
    color: var(--v-on-primary);
}

.v-permit-media {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

img.v-permit-media {
    max-height: 85vh;
    object-fit: contain;
}

/* PDF kendi kaydırmasını taşıyor; iframe'e sabit yükseklik verilmezse
   içerik yüksekliğine göre büzülüp birkaç piksellik şeride dönüşüyor. */
.v-permit-frame {
    width: min(90vw, 900px);
    height: 85vh;
    border: 0;
    background: #fff;
}

/* [hidden] tek başına yetmiyor: modal içeriğine display veren kurallar onu
   ezebiliyor. Görünürlüğü openPermit() bu bayrakla değiştirdiği için kural
   !important taşıyor. */
.v-permit-media[hidden] {
    display: none !important;
}

/* Mobil tarayıcıların PDF gömme davranışı değişken — belge açılmazsa
   ziyaretçinin elinde kalan tek yol bu bağlantı. */
.v-permit-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.v-permit-open:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ─── BLOK ŞEMASI ───
   Dairenin binadaki yeri. Veri tamamen mevcut: kardeş dairelerin
   floor_no (satır) ve door_no (hücre) değerleri, renk sale_status'tan.
   Ek veri girişi istemeden en çok iş gören bölüm bu. */
.v-blok-semasi {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v-blok-kat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v-blok-kat-no {
    flex: 0 0 34px;
    text-align: right;
    font-family: var(--v-font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--v-text-muted);
}

.v-blok-hucreler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.v-blok-hucre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}

a.v-blok-hucre:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Satılmış ve kat maliki hücreler tıklanamaz — imleç de bunu söylemeli. */
span.v-blok-hucre { cursor: default; }

.v-blok-satilik {
    background: rgba(var(--v-primary-rgb), 0.12);
    color: var(--v-primary);
    border-color: rgba(var(--v-primary-rgb), 0.25);
}

.v-blok-rezerve {
    background: rgba(var(--v-warning-rgb), 0.12);
    color: var(--v-warning);
    border-color: rgba(var(--v-warning-rgb), 0.25);
}

.v-blok-satildi {
    background: rgba(var(--v-danger-rgb), 0.10);
    color: var(--v-danger);
    border-color: rgba(var(--v-danger-rgb), 0.20);
}

.v-blok-katmaligi {
    background: rgba(var(--v-muted-rgb), 0.10);
    color: var(--v-text-muted);
    border-color: rgba(var(--v-muted-rgb), 0.18);
}

/* Bulunulan daire: renk değil ÇERÇEVE ile ayrılıyor — durum rengi
   korunmalı, "bu daire" bilgisi onun üstüne binmemeli. */
.v-blok-bu {
    outline: 2px solid var(--v-primary);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px rgba(var(--v-primary-rgb), 0.14);
}

.v-blok-lejant {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--v-border);
    font-size: 0.72rem;
    color: var(--v-text-muted);
}

.v-blok-lejant span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v-blok-nokta {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.v-unit-odeme {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--v-text);
    margin-bottom: 8px;
}

.v-unit-proje-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--v-primary);
    text-decoration: none;
}

.v-unit-proje-link:hover { text-decoration: underline; }

/* ─── Benzer daireler ─── */
.v-unit-benzer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.v-unit-benzer-kart {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    background: var(--v-bg);
    border: 1px solid var(--v-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.v-unit-benzer-kart:hover {
    border-color: var(--v-primary);
    transform: translateY(-2px);
}

.v-unit-benzer-ad {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--v-text);
}

.v-unit-benzer-meta {
    font-size: 0.72rem;
    color: var(--v-text-muted);
}

/* ─── SAĞ SÜTUN: İLETİŞİM KARTI ───
   Fiyatlar bu kurulumda çoğunlukla gizli; kartın işi fiyat göstermek
   değil, tek tıkla iletişim kurdurmak. */
.v-unit-side { position: sticky; top: 84px; }

.v-unit-cta-card {
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius);
    box-shadow: var(--v-shadow);
    padding: 20px;
}

.v-unit-fiyat {
    font-family: var(--v-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--v-success);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.v-unit-fiyat-yok {
    font-family: var(--v-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--v-text);
    margin-bottom: 4px;
}

.v-unit-cta-alt {
    font-size: 0.76rem;
    color: var(--v-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.v-unit-cta-primary,
.v-unit-cta-wa,
.v-unit-cta-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.v-unit-cta-primary {
    background: linear-gradient(135deg, var(--v-primary), var(--v-primary-dark));
    color: #fff;
}

.v-unit-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--v-primary-rgb), 0.35);
}

.v-unit-cta-wa {
    background: #25d366;
    color: #fff;
}

.v-unit-cta-wa:hover { background: #1fb356; }

.v-unit-cta-tel {
    background: var(--v-bg);
    color: var(--v-text);
    border-color: var(--v-border);
}

.v-unit-cta-tel:hover { border-color: var(--v-primary); color: var(--v-primary); }

.v-unit-share {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--v-border);
}

.v-unit-share button,
.v-unit-share a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background: var(--v-bg);
    border: 1px solid var(--v-border);
    border-radius: 9px;
    color: var(--v-text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.v-unit-share button:hover,
.v-unit-share a:hover { border-color: var(--v-primary); }

.v-unit-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--v-text-muted);
    padding: 24px 0 8px;
}

/* ─── YAPIŞKAN ÇAĞRI ŞERİDİ ───
   Yalnız mobilde. Masaüstünde sağdaki kart zaten yapışkan; şerit orada
   ikinci bir kopya olurdu. */
.v-cta-serit { display: none; }

@media (max-width: 991px) {
    .v-unit-grid { grid-template-columns: minmax(0, 1fr); }

    /* Kart yapışkanlıktan çıkar ve içeriğin ÜSTÜNE alınır: telefonda
       fiyat/iletişim kartını görmek için sayfanın dibine inmek gerekmesin. */
    .v-unit-side { position: static; order: -1; }
    .v-unit-title { font-size: 1.25rem; }

    .v-cta-serit {
        display: flex;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: var(--v-surface);
        border-top: 1px solid var(--v-border);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    }

    .v-cta-serit-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 46px;
        border: none;
        border-radius: 12px;
        font-size: 0.88rem;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }

    .v-cta-serit-primary {
        flex: 1;
        background: linear-gradient(135deg, var(--v-primary), var(--v-primary-dark));
        color: #fff;
    }

    .v-cta-serit-wa { width: 52px; background: #25d366; color: #fff; }
    .v-cta-serit-tel { width: 52px; background: var(--v-bg); color: var(--v-text); border: 1px solid var(--v-border); }

    /* KVKK banner'ı yapışkan şeridin altında kalmasın */
    .v-unit-page ~ .v-consent { bottom: 72px; }
}

/* ─── DAİRE SAYFASI BASKI ───
   Müşteri sayfayı yazdırıp yanında getiriyor. Ekran kabuğu kâğıda
   basılmaz; kalan içerik tek kolona iner.

   @page bildirimi YOK — yazdırma sözleşmesi gereği tek kaynak
   public/css/print.css. Vitrin kendi @page'ini yukarıdaki 3.4 bölümünde
   zaten taşıyor; burada yalnız bu sayfanın gizlenecekleri var. */
@media print {
    /* Kâğıtta tıklanamayan her şey ölü mürekkep. Telefon numarası ve fiyat
       kalır — müşterinin çıktıda arayacağı tek şey onlar. */
    .v-cta-serit,
    .v-unit-share,
    .v-unit-breadcrumb,
    .v-unit-cta-primary,
    .v-unit-cta-wa,
    .v-unit-plan-btn,
    .v-unit-gallery-note { display: none !important; }

    .v-unit-page { max-width: none; padding: 0; }
    .v-unit-grid { grid-template-columns: 1fr; }
    .v-unit-side { position: static; }

    .v-unit-card,
    .v-unit-cta-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
