/* ========================================


   STARTKEY HUB - PRESTIGE DESIGN


   ======================================== */





@import url('https://fonts.googleapis.com/css2family=Outfit:wght@300;400;500;600;700&display=swap');





:root {


    --primary: #c62828;


    /* Derin Startkey Kırmızısı */


    --primary-soft: #ffebee;


    --dark: #1e1e2d;


    /* Premium Dark */


    --gray-text: #5e6278;


    --light-bg: #f5f8fa;


    --white: #ffffff;


    --border: #e4e6ef;


    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);


    --radius: 12px;


}





body {


    font-family: 'Outfit', sans-serif;


    background: var(--light-bg);


    color: var(--dark);


    margin: 0;


    padding: 0;


    line-height: 1.6;


    height: 100vh;


    display: flex;


    flex-direction: column;


}





* {


    box-sizing: border-box;


}





/* UTILITY CLASSES */


.hidden {


    display: none !important;


}





/* LAYOUT STRUCTURE */


#app-container {


    height: 100vh;


    display: flex;


    flex-direction: column;


}





/* NAVBAR */


.navbar {


    background: var(--white);


    height: 70px;


    padding: 0 40px;


    display: flex;


    justify-content: space-between;


    align-items: center;


    border-bottom: 1px solid var(--border);


    flex-shrink: 0;


}





.brand {


    font-size: 1.4rem;


    font-weight: 700;


    color: var(--primary);


    letter-spacing: -0.5px;


    display: flex;


    align-items: center;


    gap: 10px;


}





.nav-right {


    display: flex;


    align-items: center;


    gap: 20px;


}





.btn-desk {


    background: var(--white);


    border: 1px solid var(--border);


    padding: 8px 16px;


    border-radius: 30px;


    font-size: 0.85rem;


    font-weight: 600;


    color: var(--gray-text);


    display: flex;


    align-items: center;


    gap: 8px;


    cursor: pointer;


    transition: 0.2s;


}





.btn-desk:hover {


    background: var(--light-bg);


    color: var(--primary);


    border-color: var(--primary);


}





.btn-desk.active {


    background: #fff8e1;


    color: #ff8f00;


    border-color: #ff8f00;


}





/* Header Response */


@media (max-width: 768px) {


    .navbar {


        padding: 0 15px;


        height: auto;


        flex-wrap: wrap;


        gap: 10px;


        padding-bottom: 10px;


    }





    .brand {


        font-size: 1.1rem;


    }





    .nav-right {


        gap: 10px;


    }





    .btn-desk {


        padding: 6px 12px;


        font-size: 0.75rem;


    }





    .desk-label {


        display: none;


    }





    /* Hide labels on mobile */


    .nav-center {


        display: none;


    }





    /* Hide filters on very small screens or move them */


    .user-profile #user-initials {


        width: 32px !important;


        height: 32px !important;


        font-size: 0.8rem !important;


    }


}





/* NEWS TICKER */


.news-ticker-container {


    background: var(--dark);


    color: white;


    height: 45px;


    /* Yükseklik arttırıldı */


    display: flex;


    align-items: center;


    font-size: 0.95rem;


    /* Font büyütüldü */


    flex-shrink: 0;


    overflow: hidden;


    /* Taşmayı gizle */


}





.ticker-label {


    background: var(--primary);


    padding: 0 25px;


    height: 100%;


    display: flex;


    align-items: center;


    font-weight: 800;


    font-size: 1rem;


    z-index: 2;


    /* Yazının üstünde kalsın */


    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);


}





.ticker-wrapper {


    flex: 1;


    overflow: hidden;


    position: relative;


    height: 100%;


}





.ticker-content {


    position: absolute;


    top: 0;


    height: 100%;


    display: flex;


    align-items: center;


    white-space: nowrap;


    /* Tek satır zorunlu */


    padding-left: 100%;


    /* Sağdan girmesi için başlangıç */


    animation: scroll-left 30s linear infinite;


    /* Animasyon */


    font-family: 'Outfit', sans-serif;


    font-weight: 500;


    letter-spacing: 0.5px;


}





/* Pause on Hover */


.ticker-wrapper:hover .ticker-content {


    animation-play-state: paused;


    cursor: default;


}





/* Keyframes for Scrolling */


@keyframes scroll-left {


    0% {


        transform: translateX(0);


    }





    100% {


        transform: translateX(-100%);


    }


}





/* MAP & CONTENT AREA - CRITICAL FIX */


.content-area {


    flex: 1;


    /* Fill remaining height */


    position: relative;


    overflow: hidden;


    z-index: 0;


}





.view-section {


    width: 100%;


    height: 100%;


    position: absolute;


    top: 0;


    left: 0;


}





.view-section.hidden {


    display: none !important;


    z-index: -1;


    pointer-events: none;


    opacity: 0;


}





.view-section.active {


    display: block !important;


    z-index: 5;


    opacity: 1;


}











#map-container {


    width: 100%;


    height: 100%;


    z-index: 1;


}





/* LIST VIEW */


#list-view {


    overflow-y: auto;


    padding: 30px;


    background: var(--light-bg);


    width: 100%;


    height: 100%;


    position: absolute;


    /* Ensure it overlays map */


    top: 0;


    left: 0;


    z-index: 10;


    /* Higher than map's default */


}





#list-view.hidden {


    display: none !important;


}





#list-view.active {


    display: block !important;


}





/* TABLE LIST VIEW */


.projects-table-wrap {


    background: #ffffff;


    border: 1px solid #e2e8f0;


    border-radius: 12px;


    overflow: auto;


    max-height: calc(100vh - 220px);


}





.projects-table {


    width: 100%;


    border-collapse: collapse;


    min-width: 980px;


    font-size: 0.92rem;


}





.projects-table thead th {


    position: sticky;


    top: 0;


    background: #f8fafc;


    color: #475569;


    text-align: left;


    font-weight: 700;


    padding: 12px 14px;


    border-bottom: 1px solid #e2e8f0;


    z-index: 5;


    white-space: nowrap;


    cursor: pointer;


    user-select: none;


}





.projects-table thead th.sort-asc::after,


.projects-table thead th.sort-desc::after {


    content: '';


    display: inline-block;


    margin-left: 6px;


    border-left: 5px solid transparent;


    border-right: 5px solid transparent;


}





.projects-table thead th.sort-asc::after {


    border-bottom: 7px solid #334155;


}





.projects-table thead th.sort-desc::after {


    border-top: 7px solid #334155;


}





/* Header filter menu */


.table-filter-menu {


    position: absolute;


    min-width: 280px;


    max-width: 360px;


    background: #ffffff;


    border: 1px solid #e2e8f0;


    border-radius: 10px;


    box-shadow: 0 12px 30px rgba(0,0,0,0.12);


    padding: 12px;


    z-index: 9999;


    display: flex;


    flex-direction: column;


    gap: 10px;


}





.table-filter-menu .menu-header {


    font-weight: 800;


    color: #0f172a;


    font-size: 0.9rem;


}





.table-filter-menu .menu-row {


    display: flex;


    flex-wrap: wrap;


    gap: 8px;


}





.table-filter-menu .menu-btn {


    background: #f1f5f9;


    border: 1px solid #e2e8f0;


    padding: 6px 10px;


    border-radius: 8px;


    font-weight: 600;


    cursor: pointer;


    font-size: 0.82rem;


    color: #0f172a;


}





.table-filter-menu .menu-btn.secondary {


    background: #ffffff;


}





.table-filter-menu .menu-field {


    display: flex;


    flex-direction: column;


    gap: 6px;


    flex: 1 1 45%;


}





.table-filter-menu .menu-field label {


    font-size: 0.75rem;


    color: #64748b;


    font-weight: 700;


}





.table-filter-menu input[type="number"],


.table-filter-menu .menu-search {


    height: 34px;


    border: 1px solid #e2e8f0;


    border-radius: 8px;


    padding: 0 8px;


}





.table-filter-menu .menu-list {


    max-height: 220px;


    overflow: auto;


    border: 1px solid #f1f5f9;


    border-radius: 8px;


    padding: 6px;


}





.table-filter-menu .menu-check {


    display: flex;


    gap: 8px;


    align-items: center;


    padding: 6px 4px;


    font-size: 0.85rem;


    color: #0f172a;


}





.table-filter-menu .menu-actions {


    display: flex;


    gap: 8px;


    justify-content: flex-end;


}


.projects-table tbody td {


    padding: 12px 14px;


    border-bottom: 1px solid #f1f5f9;


    color: #0f172a;


    vertical-align: middle;


}





.projects-table tbody tr:hover {


    background: #f8fafc;


}





.project-row {


    cursor: pointer;


}





.title-stack .title-main {


    font-weight: 700;


    color: #0f172a;


}





.title-stack .title-sub {


    font-size: 0.8rem;


    color: #64748b;


    margin-top: 2px;


}





.cell-price {


    font-weight: 800;


    color: #111827;


    white-space: nowrap;


}





.tag-pill {


    display: inline-block;


    color: #ffffff;


    padding: 4px 8px;


    border-radius: 999px;


    font-size: 0.75rem;


    font-weight: 700;


    white-space: nowrap;


}





.cell-fav {


    text-align: center;


}





.fav-btn {


    background: #ffffff;


    border: 1px solid #e2e8f0;


    border-radius: 50%;


    width: 30px;


    height: 30px;


    display: inline-flex;


    align-items: center;


    justify-content: center;


    cursor: pointer;


    color: #ef4444;


    box-shadow: 0 2px 4px rgba(0,0,0,0.05);


}





.fav-btn:hover {


    transform: scale(1.05);


}





.room-pill {


    display: inline-flex;


    align-items: center;


    padding: 2px 8px;


    margin-right: 6px;


    margin-bottom: 4px;


    border-radius: 999px;


    background: #eef2ff;


    color: #3730a3;


    font-size: 0.75rem;


    font-weight: 700;


    white-space: nowrap;


}





.project-card {


    background: var(--white);


    border-radius: var(--radius);


    box-shadow: var(--shadow);


    cursor: pointer;


    transition: transform 0.2s;


    overflow: hidden;


    display: flex;


    flex-direction: column;


}





.project-card:hover {


    transform: translateY(-5px);


}





.card-img-wrap {


    height: 200px;


    background-size: cover;


    background-position: center;


    position: relative;


}





.card-body {


    padding: 20px;


    flex: 1;


    display: flex;


    flex-direction: column;


}





.card-price {


    font-size: 1.3rem;


    font-weight: 700;


    color: var(--primary);


    margin-top: auto;


    padding-top: 15px;


}





/* INTEGRATED SEARCH BAR (INSIDE NAVBAR) */


.dashboard-controls {


    position: static;


    /* No longer floating */


    transform: none;


    margin: 0 30px;


    flex: 1;


    /* Fill center space */


    max-width: 800px;





    background: #f8f9fa;


    padding: 5px 10px;


    border-radius: 8px;


    /* Slightly less rounded */


    box-shadow: none;


    /* Flat look inside navbar */


    display: flex;


    align-items: center;


    gap: 10px;


    border: 1px solid #eee;


    height: 50px;


}





/* MODERN FLOATING SEARCH BAR */


/* .dashboard-controls {


    position: absolute;


    top: 30px;


    /* Ticker'a çarpmaması için aşağı ittik */


/* left: 50%;


    transform: translateX(-50%);


    z-index: 1000;


    width: auto;


    min-width: 600px;


    max-width: 90%;





    background: white;


    padding: 8px;


    border-radius: 50px;


    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);


    display: flex;


    align-items: center;


    gap: 10px;


    border: 1px solid rgba(0, 0, 0, 0.08);


} */





.navbar {


    background: var(--white);


    height: 80px;


    /* Fixed height */


    padding: 0 20px;


    display: flex;


    justify-content: space-between;


    align-items: center;


    border-bottom: 1px solid var(--border);


    flex-shrink: 0;


    z-index: 1001;


    /* Above ticker */


}





.filters-bar {


    display: flex;


    align-items: center;


    flex: 1;


    gap: 0;


    /* Removing gap for divider look */


}





/* SEARCH INPUT */


.search-box {


    position: relative;


    flex: 2;


    border-right: 1px solid #eee;


    padding-right: 10px;


}





.search-box input {


    width: 100%;


    padding: 12px 15px 12px 45px;


    border: none;


    background: transparent;


    font-size: 0.95rem;


    color: var(--dark);


    font-weight: 500;


    outline: none;


}





.search-box i {


    position: absolute;


    left: 20px;


    top: 50%;


    transform: translateY(-50%);


    color: var(--primary);


    font-size: 1.1rem;


}





/* DROPDOWNS */


.filter-item {


    position: relative;


    padding: 0 15px;


    border-right: 1px solid #eee;


}





.filter-item:last-child {


    border-right: none;


}





.filter-item select {


    border: none;


    background: transparent;


    font-size: 0.9rem;


    font-weight: 600;


    color: var(--dark);


    cursor: pointer;


    padding: 8px 25px 8px 10px;


    /* Space for arrow */


    appearance: none;


    outline: none;


    min-width: 120px;


}





/* Custom Arrow */


.filter-item::after {


    content: '\f078';


    /* FontAwesome Chevron Down */


    font-family: 'Font Awesome 6 Free';


    font-weight: 900;


    position: absolute;


    right: 15px;


    top: 50%;


    transform: translateY(-50%);


    font-size: 0.7rem;


    color: #999;


    pointer-events: none;


}





/* RESET BUTTON */


#reset-filters {


    background: #f5f5f5;


    border: none;


    width: 36px;


    height: 36px;


    border-radius: 50%;


    cursor: pointer;


    color: #666;


    display: flex;


    align-items: center;


    justify-content: center;


    transition: 0.2s;


    margin-left: 5px;


}





#reset-filters:hover {


    background: #e0e0e0;


    color: #333;


    transform: rotate(90deg);


}





/* VIEW TOGGLES (PILL SHAPE) */


.view-toggles {


    background: transparent;


    padding: 0;


    border-radius: 0;


    display: flex;


    gap: 8px;


    margin-left: 10px;


}





.view-btn {


    padding: 8px 16px;


    border-radius: 6px;


    border: none;


    background: transparent;


    font-size: 0.85rem;


    font-weight: 600;


    color: #666;


    cursor: pointer;


    transition: 0.2s;


    display: flex;


    align-items: center;


    gap: 6px;


}





.view-btn:hover {


    background: rgba(0, 0, 0, 0.06);


    color: #333;


}





.view-btn.active {


    background: rgba(15, 23, 42, 0.12);


    color: #0f172a;


    box-shadow: none;


    font-weight: 600;


}





/* MODERN FLOATING SEARCH BAR */


/* Mobile First Responsive Header */


@media (max-width: 1024px) {


    .navbar {


        height: auto;


        flex-wrap: wrap;


        padding: 10px 15px;


        gap: 15px;


    }





    .navbar-brand {


        order: 1;


        flex: 1;


    }





    .nav-right {


        order: 2;


        gap: 10px;


    }





    .dashboard-controls {


        order: 3;


        width: 100%;


        max-width: 100%;


        margin: 0;


        position: static;


        background: #f8fafc;


        border: 1px solid #e2e8f0;


        border-radius: 12px;


        padding: 10px;


        height: auto;


        display: block;


        /* Prepare for grid inside */


    }





    .filters-bar {


        display: grid;


        grid-template-columns: 1fr 1fr;


        /* 2 Column Grid */


        gap: 8px;


        width: 100%;


    }





    /* Search Box - Full Width */


    .search-box {


        grid-column: 1 / -1;


        /* Span all columns */


        width: 100%;


        border-right: none;


        border-bottom: 1px solid #e2e8f0;


        margin-bottom: 5px;


    }





    .filter-item {


        padding: 0;


        border: 1px solid #e2e8f0;


        border-radius: 8px;


        background: white;


        height: 40px;


        display: flex;


        align-items: center;


    }





    .filter-item select {


        width: 100%;


        padding: 0 10px;


        font-size: 0.8rem;


    }





    /* View Toggles - Full Width or Auto */


    .view-toggles {


        grid-column: 1 / -1;


        justify-content: center;


        margin-left: 0;


        margin-top: 5px;


        background: #fff;


        padding: 5px;


        border-radius: 8px;


        border: 1px solid #e2e8f0;


    }





    /* Adjust specific buttons on mobile */


    .btn-desk {


        padding: 8px 12px;


        font-size: 0.8rem;


    }





    .btn-desk span {


        display: none;


    }





    /* Hide text labels on button */


    .btn-desk i {


        margin: 0;


    }





    /* Toggle Switch Compact */


    .mode-label {


        display: none;


    }





    .switch {


        transform: scale(0.8);


    }





    .user-profile #user-initials {


        width: 36px;


        height: 36px;


        font-size: 0.9rem;


    }


}








/* PRESTIGE MODAL DESIGN */


.modal-overlay {


    position: fixed;


    top: 0;


    left: 0;


    width: 100%;


    height: 100%;


    background: rgba(0, 0, 0, 0.4);


    backdrop-filter: blur(8px);


    z-index: 2000;


    display: flex;


    justify-content: center;


    align-items: center;


}





.modal-content {


    background: var(--white);


    width: 1000px;


    max-width: 95%;


    height: 85vh;


    border-radius: 20px;


    overflow: hidden;


    display: flex;


    flex-direction: column;


    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);


    animation: slideUp 0.3s ease-out;


}





@keyframes slideUp {


    from {


        transform: translateY(50px);


        opacity: 0;


    }





    to {


        transform: translateY(0);


        opacity: 1;


    }


}





.modal-header-hero {


    height: 200px;


    background-size: cover;


    background-position: center;


    position: relative;


    flex-shrink: 0;


}





.modal-header-overlay {


    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);


    width: 100%;


    height: 100%;


    display: flex;


    align-items: flex-end;


    padding: 30px;


}





.close-modal {


    position: absolute;


    top: 20px;


    right: 20px;


    background: rgba(255, 255, 255, 0.2);


    backdrop-filter: blur(5px);


    border: none;


    color: white;


    width: 40px;


    height: 40px;


    border-radius: 50%;


    cursor: pointer;


    display: flex;


    justify-content: center;


    align-items: center;


    font-size: 1.2rem;


    transition: 0.2s;


}





.close-modal:hover {


    background: rgba(255, 255, 255, 0.4);


}





.modal-body-scroll {


    overflow-y: auto;


    flex: 1;


    padding: 30px;


    display: grid;


    grid-template-columns: 2fr 1fr;


    gap: 40px;


}

/* Announcements modal: always allow vertical scrolling */
#announcements-modal {
    align-items: center;
}

#announcements-modal .modal-content {
    height: min(88vh, 920px);
    max-height: 88vh;
    overflow: hidden;
}

#announcements-modal .modal-body-scroll {
    display: block;
    overflow-y: auto;
    max-height: calc(88vh - 150px);
    padding-right: 10px;
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
    cursor: pointer;
    font-weight: 600;
}

.ticker-item:hover {
    text-decoration: underline;
}

.ann-editor-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ann-editor-toolbar button {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.ann-editor {
    min-height: 140px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    color: #0f172a;
    line-height: 1.6;
}

.ann-editor:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.announcement-rich-preview {
    color: #475569;
    margin-top: 6px;
    line-height: 1.6;
}

.announcement-rich-preview p {
    margin: 0 0 6px 0;
}

.announcement-rich-content {
    color: #334155;
    line-height: 1.7;
}

.announcement-rich-content h3,
.announcement-rich-content h4 {
    margin: 10px 0 8px 0;
    color: #0f172a;
}

.announcement-rich-content p,
.announcement-rich-content ul,
.announcement-rich-content ol,
.announcement-rich-content blockquote {
    margin: 8px 0;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: #334155;
    text-decoration: none;
    background: #fff;
}





/* Modal Sections */


.modal-title {


    font-size: 2rem;


    font-weight: 700;


    color: white;


    margin: 0;


    line-height: 1.2;


}





.modal-subtitle {


    color: rgba(255, 255, 255, 0.8);


    margin-top: 5px;


    font-size: 1rem;


}





.section-label {


    font-size: 0.75rem;


    text-transform: uppercase;


    letter-spacing: 1px;


    color: var(--gray-text);


    font-weight: 700;


    margin-bottom: 15px;


    display: block;


}





/* Modern Specs Grid */


.specs-grid {


    display: grid;


    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));


    gap: 15px;


    margin-bottom: 30px;


}





.spec-item {


    background: var(--light-bg);


    padding: 15px;


    border-radius: 12px;


    text-align: center;


    border: 1px solid var(--border);


}





.spec-value {


    font-weight: 700;


    display: block;


    color: var(--dark);


}





.spec-key {


    font-size: 0.8rem;


    color: var(--gray-text);


}





/* AGENT SECRET CARD */


.agent-card-secret {


    background: #fff8f8;


    border: 1px dashed #ef9a9a;


    border-radius: 16px;


    padding: 25px;


    margin-top: 20px;


}





.agent-header {


    display: flex;


    justify-content: space-between;


    align-items: center;


    margin-bottom: 20px;


}





.secret-badge {


    background: #ffebee;


    color: #c62828;


    padding: 5px 12px;


    border-radius: 20px;


    font-size: 0.75rem;


    font-weight: 700;


}





.listing-agent-row {


    display: flex;


    gap: 15px;


    align-items: center;


    background: white;


    padding: 15px;


    border-radius: 12px;


    border: 1px solid #efefef;


}





.agent-avatar {


    width: 48px;


    height: 48px;


    border-radius: 50%;


    object-fit: cover;


}





/* SIDEBAR ACTIONS */


.action-card {


    background: var(--white);


    border: 1px solid var(--border);


    border-radius: 16px;


    padding: 20px;


    position: sticky;


    top: 0;


}





.action-btn {


    width: 100%;


    border: none;


    padding: 14px;


    border-radius: 10px;


    font-weight: 600;


    cursor: pointer;


    margin-bottom: 10px;


    display: flex;


    justify-content: center;


    align-items: center;


    gap: 10px;


    font-size: 0.95rem;


    transition: 0.2s;


}





.btn-price {


    background: var(--light-bg);


    font-size: 1.5rem;


    font-weight: 800;


    color: var(--dark);


    cursor: default;


}





.btn-wa {


    background: #25D366;


    color: white;


}





.btn-crm {


    background: var(--dark);


    color: white;


}





.btn-wa:hover {


    background: #1ebc57;


}





.btn-crm:hover {


    opacity: 0.9;


}





/* CRM MODAL - FORCE HIDE DEFAULT */


#crm-modal {


    display: none;


    /* Varsayılan kapalı */


    z-index: 9999 !important;


}





#crm-modal.active {


    display: flex !important;


    /* JS ile active klası eklenince açılacak */


}





#crm-modal .modal-content {


    max-width: 500px;


    height: auto;


    max-height: 80vh;


    padding: 30px;


    display: block;


    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);


}





.crm-header {


    display: flex;


    justify-content: space-between;


    align-items: center;


    margin-bottom: 25px;


    border-bottom: 1px solid var(--border);


    padding-bottom: 15px;


}





.crm-header h3 {


    margin: 0;


    display: flex;


    align-items: center;


    gap: 10px;


    font-size: 1.2rem;


}





.crm-form {


    display: flex;


    flex-direction: column;


    gap: 15px;


}





.crm-form input,


.crm-form textarea {


    width: 100%;


    padding: 12px 15px;


    border: 1px solid #ddd;


    border-radius: 8px;


    font-size: 0.95rem;


    font-family: inherit;


    transition: 0.2s;


    background: #f9f9f9;


}





.crm-form input:focus,


.crm-form textarea:focus {


    outline: none;


    border-color: var(--primary);


    background: white;


    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);


}





.crm-form textarea {


    min-height: 120px;


    resize: vertical;


}





.crm-actions {


    margin-top: 10px;


    display: flex;


    justify-content: flex-end;


    gap: 10px;


}





.btn-cancel {


    background: #eee;


    color: #333;


    border: none;


    padding: 10px 20px;


    border-radius: 8px;


    cursor: pointer;


    font-weight: 600;


}





.btn-save {


    background: var(--dark);


    color: white;


    border: none;


    padding: 10px 25px;


    border-radius: 8px;


    cursor: pointer;


    font-weight: 600;


}





.btn-save:hover {


    background: #333;


}





/* CLOSE BUTTON FIX FOR ALL MODALS */


.close-sub-modal {


    background: transparent;


    border: none;


    color: #999;


    font-size: 1.5rem;


    cursor: pointer;


    transition: 0.2s;


    width: 32px;


    height: 32px;


    display: flex;


    align-items: center;


    justify-content: center;


    border-radius: 50%;


}





.close-sub-modal:hover {


    background: #eee;


    color: #333;


}





/* Mobile */


@media (max-width: 900px) {


    .modal-body-scroll {


        grid-template-columns: 1fr;


    }





    .dashboard-controls {


        width: 95%;


        flex-direction: column;


    }


}





/* CLEAN MODAL HEADER (Reconstructed) */


.modal-clean-header {


    padding: 25px 30px;


    background: #fff;


    border-bottom: 1px solid #f0f0f0;


    position: sticky;


    top: 0;


    z-index: 10;


    display: flex;


    align-items: flex-start;


    justify-content: space-between;


}





.modal-clean-title h2 {


    font-size: 1.8rem;


    font-weight: 700;


    color: #1e293b;


    margin: 0 0 10px 0;


    line-height: 1.2;


}





.modal-clean-badges {


    display: flex;


    gap: 8px;


    flex-wrap: wrap;


}





.modal-clean-badge {


    background: #f1f5f9;


    color: #475569;


    font-size: 0.8rem;


    font-weight: 600;


    padding: 4px 10px;


    border-radius: 6px;


}





.modal-clean-badge.status-project {


    background: #f0fdf4;


    color: #166534;


}





.close-modal-clean {


    width: 36px;


    height: 36px;


    border-radius: 50%;


    background: #f8fafc;


    border: none;


    display: flex;


    align-items: center;


    justify-content: center;


    cursor: pointer;


    transition: all 0.2s;


    color: #64748b;


    font-size: 1.2rem;


}





.close-modal-clean:hover {


    background: #fee2e2;


    color: #ef4444;


    transform: rotate(90deg);


}





/* Ensure scrolling works */


.modal-body-scroll {


    overflow-y: auto;


    flex: 1;


    padding: 30px;


    overscroll-behavior: contain;


}





.sticky-card {


    position: sticky;


    top: 20px;


}





/* TICKER STYLES (Cleaned) */


.ticker-content {


    display: flex;


    width: 100%;


    align-items: center;


    white-space: nowrap;


    overflow: hidden;


    /* Hide scrollbar initially */


}





.ticker-content span {


    padding-right: 50px;


    font-size: 1.1rem;


    flex-shrink: 0;


}





/* MOBILE NAVBAR FIX (Updated Grid Layout) */


@media (max-width: 1024px) {


    .navbar {


        height: auto !important;


        flex-wrap: wrap !important;


        padding: 10px 15px !important;


        gap: 15px !important;


    }





    .navbar-brand {


        order: 1;


        flex: 1;


    }





    .nav-right {


        order: 2;


        gap: 10px;


    }





    .dashboard-controls {


        order: 3 !important;


        width: 100% !important;


        max-width: 100% !important;


        margin: 0 !important;


        position: static !important;


        background: #f8fafc;


        border: 1px solid #e2e8f0;


        border-radius: 12px;


        padding: 10px !important;


        height: auto !important;


        display: block !important;


        top: auto !important;


    }





    .filters-bar {


        display: grid !important;


        grid-template-columns: 1fr 1fr !important;


        gap: 8px !important;


        width: 100% !important;


        flex-direction: row !important;


        /* Override column */


    }





    /* Search Box - Full Width */


    .search-box {


        grid-column: 1 / -1 !important;


        width: 100% !important;


        border-right: none !important;


        border-bottom: 1px solid #e2e8f0 !important;


        margin-bottom: 5px !important;


        display: flex !important;


    }





    .filter-item {


        padding: 0 !important;


        border: 1px solid #e2e8f0 !important;


        border-radius: 8px !important;


        background: white !important;


        height: 40px !important;


        display: flex !important;


        align-items: center !important;


        width: auto !important;


        /* Let grid handle width */


        margin-bottom: 0 !important;


    }





    .filter-item select {


        width: 100% !important;


        padding: 0 10px !important;


        font-size: 0.8rem !important;


        border: none !important;


        height: 100% !important;


    }





    /* View Toggles - Full Width */


    .view-toggles {


        grid-column: 1 / -1;


        justify-content: center;


        margin-left: 0;


        margin-top: 5px;


        background: #fff;


        padding: 5px;


        border-radius: 8px;


        border: 1px solid #e2e8f0;


        width: 100% !important;


        display: flex !important;


    }





    /* Adjust specific buttons on mobile */


    .btn-desk {


        padding: 8px 12px !important;


        font-size: 0.8rem !important;


    }





    .btn-desk span {


        display: none !important;


    }





    .btn-desk i {


        margin: 0 !important;


    }





    /* Toggle Switch Compact */


    .mode-label {


        display: none !important;


    }





    .switch {


        transform: scale(0.8);


    }





    .user-profile #user-initials {


        width: 36px !important;


        height: 36px !important;


        font-size: 0.9rem !important;


    }


}





/* === MOBILE HEADER REDESIGN === */





/* Default State (Desktop) */


.mobile-only {


    display: none !important;


}





.mobile-nav-menu {


    display: none;


}





.mobile-filter-panel {


    display: none;


}





.navbar-top-row {


    display: flex;


    align-items: center;


    width: 100%;


    justify-content: space-between;


}





/* Ensure desktop nav is visible */


@media (min-width: 1025px) {


    .navbar {


        flex-wrap: nowrap;


        height: 80px;


    }





    .dashboard-controls {


        position: absolute;


        left: 50%;


        transform: translateX(-50%);


        width: auto;


    }





    .filters-bar {


        display: flex;


        gap: 10px;


        align-items: center;


    }


}





/* MOBILE VIEW (Max Width 1024px) */


/* === UNIFIED SINGLE-ROW HEADER === */





/* 1. Global Navbar Layout */


.navbar {


    height: 70px !important;


    display: flex !important;


    flex-wrap: nowrap !important;


    flex-direction: row !important;


    /* Single Row */


    align-items: center !important;


    justify-content: space-between !important;


    padding: 0 15px !important;


    gap: 15px !important;


    background: #fff;


    border-bottom: 1px solid #e0e0e0;


    position: relative;


    z-index: 1000;


}





/* 2. Logo (Left) */


.navbar-brand {


    flex: 0 0 auto;


    display: flex;


    align-items: center;


    gap: 6px;


    height: 48px;


    /* Sync Height */


    text-decoration: none;


}





.logo-text-bold {


    font-size: 1.4rem;


    font-weight: 800;


    color: #d32f2f;


}





.logo-text-light {


    font-size: 1.4rem;


    font-weight: 400;


    color: #333;


}





/* 3. Search & Filter Area (Center - Flexible) */


.dashboard-controls {


    flex: 1 1 auto;


    /* Grow to fill space */


    max-width: 800px;


    /* Don't get too wide on huge screens */


    margin: 0 auto;


    /* Center it */


    position: static !important;


    transform: none !important;


    background: transparent !important;


    border: none !important;


    padding: 0 !important;


    display: flex;


    justify-content: center;


}





.filters-bar {


    display: flex !important;


    width: 100% !important;


    flex-direction: row !important;


    align-items: center !important;


    gap: 10px !important;


    position: relative;


}





/* Search Box */


.search-box {


    flex-grow: 1;


    /* Fill available space in the middle */


    width: auto !important;


    margin: 0 !important;


    border: 1px solid #e2e8f0 !important;


    border-radius: 8px !important;


    height: 48px;


    /* Sync Height */


    display: flex;


    align-items: center;


    padding: 0 12px;


    background: #f8fafc;


}





.search-box input {


    background: transparent;


    border: none;


    outline: none;


    width: 100%;


    font-size: 0.95rem;


    color: #333;


}





.search-box i {


    color: #94a3b8;


    margin-right: 8px;


}





/* Filter Toggle Button */


#mobile-filter-toggle {


    display: flex !important;


    width: 48px;


    /* Sync Height/Width */


    height: 48px;


    background: #fff;


    border: 1px solid #e2e8f0;


    border-radius: 8px;


    align-items: center;


    justify-content: center;


    color: #64748b;


    font-size: 1.2rem;


    flex-shrink: 0;


    cursor: pointer;


    transition: all 0.2s;


}





#mobile-filter-toggle:hover {


    background: #f1f5f9;


    color: #333;


}





#mobile-filter-toggle.active {


    background: #e0f2fe;


    color: #0284c7;


    border-color: #0284c7;


}





#main-view-toggle {


    display: flex !important;


    width: 48px;


    height: 48px;


    background: #fff;


    border: 1px solid #e2e8f0;


    border-radius: 8px;


    align-items: center;


    justify-content: center;


    color: #64748b;


    font-size: 1.2rem;


    flex-shrink: 0;


    cursor: pointer;


    transition: all 0.2s;


    pointer-events: auto;


    z-index: 1002;


}





#main-view-toggle:hover {


    background: #f1f5f9;


    color: #333;


}








/* 4. Hamburger Menu (Right) */


#mobile-menu-btn {


    flex: 0 0 auto;


    /* Don't shrink */


    display: flex !important;


    background: #fff;


    border: 1px solid #e2e8f0;


    border-radius: 8px;


    font-size: 1.2rem;


    color: #333;


    cursor: pointer;


    width: 48px;


    /* Sync Height/Width */


    height: 48px;


    align-items: center;


    justify-content: center;


    transition: 0.2s;


}





#mobile-menu-btn:hover {


    background: #f1f5f9;


}





#invite-link-btn {


    flex: 0 0 auto;


    display: flex !important;


    background: #fff;


    border: 1px solid #e2e8f0;


    border-radius: 8px;


    font-size: 1.1rem;


    color: #0f172a;


    cursor: pointer;


    width: 48px;


    height: 48px;


    align-items: center;


    justify-content: center;


    transition: 0.2s;


}





#invite-link-btn:hover {


    background: #f1f5f9;


}





/* Hide Old Desktop Elements Globally */


.desktop-only {


    display: none !important;


}





.mobile-hidden {


    display: none !important;


}





/* === DROPDOWN MENUS (Unified) === */





/* 1. Main Nav Menu (Right Side) */


.mobile-nav-menu {


    display: none;


    /* JS toggles 'open' class */


    position: absolute;


    top: 75px;


    right: 15px;


    width: 260px;


    background: white;


    border: 1px solid #e2e8f0;


    border-radius: 12px;


    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);


    z-index: 9999;


    flex-direction: column;


    padding: 8px 0;


    animation: slideDown 0.2s ease-out;


}





.mobile-nav-menu.open {


    display: flex !important;


}





.mobile-menu-item {


    padding: 14px 20px;


    display: flex;


    align-items: center;


    gap: 12px;


    color: #1e293b;


    font-weight: 500;


    border-bottom: 1px solid #f1f5f9;


    cursor: pointer;


    transition: 0.2s;


}





.mobile-menu-item:last-child {


    border-bottom: none;


}





.mobile-menu-item:hover {


    background: #f8fafc;


    color: #c62828;


}

.mobile-chat-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
}





/* 2. Filter Panel (Dropdown below Search) */


#desktop-filters {


    display: none;


}





#desktop-filters.mobile-active {


    display: grid !important;


    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));


    gap: 12px;


    width: 100%;


    background: white;


    padding: 20px;


    border: 1px solid #e2e8f0;


    border-radius: 12px;


    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);


    position: absolute;


    top: calc(100% + 15px);


    /* Push down slightly */


    left: 0;


    z-index: 1000;


    animation: slideDown 0.2s ease-out;


}





#desktop-filters.mobile-active::before {


    /* Little Arrow pointing to toggle button roughly */


    content: "";


    position: absolute;


    top: -6px;


    right: 56px;


    /* Align with toggle button */


    width: 12px;


    height: 12px;


    background: white;


    transform: rotate(45deg);


    border-top: 1px solid #e2e8f0;


    border-left: 1px solid #e2e8f0;


}





/* Specific item styles in the dropdown */


#desktop-filters.mobile-active .filter-item {


    width: 100% !important;


    margin: 0 !important;


    display: flex !important;


}





#desktop-filters.mobile-active .view-toggles {


    grid-column: 1 / -1;


    width: 100%;


    justify-content: center;


    margin-top: 5px;


    display: flex;


    padding: 5px;


    background: #f8fafc;


    border-radius: 8px;


}





@keyframes slideDown {


    from {


        opacity: 0;


        transform: translateY(-10px);


    }





    to {


        opacity: 1;


        transform: translateY(0);


    }


}





/* Mobile Tweaks */


@media (max-width: 600px) {


    .logo-text-bold {


        font-size: 1.2rem;


    }





    .logo-text-light {


        font-size: 1.2rem;


    }





    .navbar {


        padding: 0 10px !important;


    }





    #desktop-filters.mobile-active {


        grid-template-columns: 1fr 1fr;


        /* 2 columns on mobile */


    }


}





/* ==================================


   CLEAN CARD DESIGN (FIX FOR MISSING STYLES)


   ================================== */


.project-card-clean {


    background: #ffffff;


    border: 1px solid #e2e8f0;


    border-radius: 16px;


    padding: 20px;


    display: flex;


    flex-direction: column;


    gap: 15px;


    transition: all 0.2s ease;


    cursor: pointer;


    position: relative;


    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);


    min-height: 180px;


    /* Ensure visible height */


}





.project-card-clean:hover {


    transform: translateY(-4px);


    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);


    border-color: #cbd5e1;


}





.card-clean-top {


    display: flex;


    justify-content: space-between;


    align-items: center;


}





.card-logo-circle {


    width: 48px;


    height: 48px;


    border-radius: 50%;


    color: white;


    display: flex;


    align-items: center;


    justify-content: center;


    font-weight: 800;


    font-size: 1.1rem;


    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);


}





.card-custom-tag {


    color: white;


    padding: 4px 10px;


    border-radius: 20px;


    font-size: 0.75rem;


    font-weight: 600;


    text-transform: uppercase;


    letter-spacing: 0.5px;


}





.card-clean-body {


    display: flex;


    flex-direction: column;


    gap: 10px;


}





.card-title-clean {


    font-size: 1.1rem;


    font-weight: 700;


    color: #1e293b;


    margin: 5px 0 0 0;


    line-height: 1.4;


}





.card-meta-row {


    display: flex;


    justify-content: space-between;


    align-items: center;


    margin-top: 10px;


    padding-top: 10px;


    border-top: 1px solid #f1f5f9;


}





.card-location-clean {


    display: flex;


    align-items: center;


    gap: 6px;


    color: #64748b;


    font-size: 0.9rem;


    font-weight: 500;


}





.card-location-clean i {


    color: #94a3b8;


}





.card-price-clean {


    font-size: 1.25rem;


    font-weight: 800;


    color: #0f172a;


    letter-spacing: -0.5px;


}





/* Ensure developer label is visible */


.card-developer-label {


    font-size: 0.8rem;


    text-transform: uppercase;


    letter-spacing: 0.5px;


}



/* Project media lightbox navigation */
.project-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.88);
    padding: 56px 72px;
}

.project-media-lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
}

.project-media-lightbox .pm-close,
.project-media-lightbox .pm-nav {
    position: absolute;
    z-index: 4;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.project-media-lightbox .pm-close {
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
}

.project-media-lightbox .pm-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 22px;
}

.project-media-lightbox .pm-prev { left: 24px; }
.project-media-lightbox .pm-next { right: 24px; }

.project-media-lightbox .pm-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
}

.gallery-thumb {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .project-media-lightbox {
        padding: 58px 14px;
    }
    .project-media-lightbox .pm-nav {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    .project-media-lightbox .pm-prev { left: 10px; }
    .project-media-lightbox .pm-next { right: 10px; }
}
