/* ==========================================================================
   UK HOMESS ATLAS — Lahomes Real Estate Admin Theme (Daylight & Charcoal)
   Pure CSS (Zero dependency on Vite Tailwind purge)
   ========================================================================== */

:root {
    --lahomes-primary: #604ae3;
    --lahomes-primary-hover: #4e39c9;
    --lahomes-primary-soft: rgba(96, 74, 227, 0.12);
    --lahomes-sidebar-bg: #1c252e;
    --lahomes-sidebar-border: #2f3944;
    --lahomes-sidebar-text: #a8b2b5;
    --lahomes-sidebar-hover: rgba(255, 255, 255, 0.06);
    --lahomes-body-bg: #f8f9fa;
    --lahomes-card-bg: #ffffff;
    --lahomes-card-border: #eef2f7;
    --lahomes-heading: #323a46;
    --lahomes-muted: #687d92;
}

/* 1. Ferah Aydınlık İçerik Zemini */
body,
.fi-body,
.fi-layout,
.fi-main-ctn {
    background-color: var(--lahomes-body-bg) !important;
    color: var(--lahomes-heading);
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* 2. Üst Çubuk (Topbar) — Temiz Beyaz */
.fi-topbar > nav,
.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--lahomes-card-border) !important;
    box-shadow: 0 1px 4px rgba(50, 58, 70, 0.03) !important;
}

/* 3. Lahomes Sol Menü (Sidebar #1C252E) */
.fi-sidebar {
    background-color: var(--lahomes-sidebar-bg) !important;
    border-right: 1px solid var(--lahomes-sidebar-border) !important;
}

.fi-sidebar-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--lahomes-card-border) !important;
}

.fi-sidebar-group-label,
.fi-sidebar-group-btn span {
    color: #7c8998 !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

.fi-sidebar-group-btn svg {
    color: #7c8998 !important;
}

.fi-sidebar-item-btn,
.fi-sidebar-item > a {
    color: var(--lahomes-sidebar-text) !important;
    border-radius: 8px !important;
    transition: all 0.18s ease !important;
}

.fi-sidebar-item-label {
    color: var(--lahomes-sidebar-text) !important;
    font-weight: 500 !important;
}

.fi-sidebar-item-icon {
    color: #8492a6 !important;
}

.fi-sidebar-item-btn:hover,
.fi-sidebar-item > a:hover {
    background-color: var(--lahomes-sidebar-hover) !important;
    border-left: 3px solid var(--lahomes-primary) !important;
}

.fi-sidebar-item > a:hover .fi-sidebar-item-label,
.fi-sidebar-item > a:hover .fi-sidebar-item-icon,
.fi-sidebar-item-btn:hover .fi-sidebar-item-label {
    color: #ffffff !important;
}

.fi-sidebar-item-active > a,
.fi-sidebar-item.fi-active > a {
    background-color: rgba(96, 74, 227, 0.18) !important;
    border-left: 3px solid var(--lahomes-primary) !important;
}

.fi-sidebar-item-active > a .fi-sidebar-item-label,
.fi-sidebar-item.fi-active > a .fi-sidebar-item-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.fi-sidebar-item-active > a .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active > a .fi-sidebar-item-icon {
    color: #a092ee !important;
}

.fi-sidebar .fi-tenant-menu-trigger {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--lahomes-sidebar-border) !important;
    color: #ffffff !important;
}

.fi-sidebar .fi-tenant-menu-trigger span {
    color: #eef2f7 !important;
}

/* 4. Kartlar, Bölümler, Tablolar & İstatistik Kutuları */
.fi-section,
.fi-wi-stats-overview-stat,
.fi-ta-ctn,
.fi-fo-tabs {
    background-color: var(--lahomes-card-bg) !important;
    border: 1px solid var(--lahomes-card-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(50, 58, 70, 0.035) !important;
}

.fi-wi-stats-overview-stat {
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 74, 227, 0.08) !important;
}

.fi-header-heading {
    color: var(--lahomes-heading) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.fi-section-header-heading {
    color: var(--lahomes-heading) !important;
    font-weight: 600 !important;
}

.fi-section-header-description {
    color: var(--lahomes-muted) !important;
}

.fi-tabs-item-active {
    color: var(--lahomes-primary) !important;
    border-color: var(--lahomes-primary) !important;
}

/* ==========================================================================
   5. Özel Dashboard & Lahomes Portföy Kart (Grid) CSS Sınıfları
   ========================================================================== */

/* Gerçek 3 Sütunlu Lahomes Portföy Grid */
.ukh-props-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
}

@media (min-width: 768px) {
    .ukh-props-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ukh-props-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ukh-prop-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 10px rgba(50, 58, 70, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ukh-prop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 74, 227, 0.38);
    box-shadow: 0 12px 24px rgba(96, 74, 227, 0.09);
}

.ukh-prop-card:hover .ukh-card-media img {
    transform: scale(1.04);
}

.ukh-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background-color: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #168540 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.ukh-btn-wa:hover {
    background-color: rgba(37, 211, 102, 0.24);
}

/* Filament contentGrid 3 sütun garantisi */
.fi-ta-ctn .fi-ta-content-grid,
div.fi-ta-content-grid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    padding: 1.25rem !important;
    background-color: #f8f9fa !important;
}

@media (min-width: 768px) {
    .fi-ta-ctn .fi-ta-content-grid,
    div.fi-ta-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1200px) {
    .fi-ta-ctn .fi-ta-content-grid,
    div.fi-ta-content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.fi-ta-ctn .fi-ta-content-grid > .fi-ta-record {
    width: 100% !important;
    min-width: 0 !important;
}

.fi-ta-content-grid .fi-ta-record {
    background: #ffffff !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(50, 58, 70, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.fi-ta-content-grid .fi-ta-record:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 74, 227, 0.35) !important;
    box-shadow: 0 12px 24px rgba(96, 74, 227, 0.09) !important;
}

/* Grid içindeki gereksiz checkbox/tablo paddinglerini temizle */
.fi-ta-content-grid .fi-ta-record > div {
    padding: 0 !important;
    width: 100% !important;
}

.ukh-card-media {
    position: relative;
    display: block;
    width: 100%;
    height: 196px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c252e 0%, #2d3b4e 100%);
}

.ukh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.fi-ta-content-grid .fi-ta-record:hover .ukh-card-media img {
    transform: scale(1.04);
}

.ukh-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 24, 34, 0.65) 0%, rgba(16, 24, 34, 0.05) 55%, rgba(16, 24, 34, 0.28) 100%);
    pointer-events: none;
}

.ukh-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ukh-card-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: #f8f9fa;
    font-size: 11px;
    color: #687d92;
}

.ukh-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.ukh-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: #604ae3;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.ukh-btn-primary:hover {
    background-color: #4e39c9;
}

.ukh-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #eef2f7;
    color: #323a46 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.ukh-btn-ghost:hover {
    background-color: #eef2f7;
}

/* Dashboard 2-Kolonlu Dağılım & Progress Barlar */
.ukh-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ukh-two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ukh-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background-color: #eef2f7;
    overflow: hidden;
}

.ukh-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.35s ease;
}

.ukh-map-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ukh-map-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ukh-map-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #eef2f7;
    background-color: #f8f9fa;
    color: #323a46;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ukh-map-btn:hover {
    background-color: #eef2f7;
}

.ukh-map-btn.is-active {
    background-color: #604ae3;
    border-color: #604ae3;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(96, 74, 227, 0.25);
}
