    .loading {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        font-size: 1.2rem;
        color: rgb(0, 145, 5);
        gap: 15px;
        backdrop-filter: blur(5px);
    }
    .loading i {
        font-size: 3rem;
        margin-bottom: 10px;
    }
    .loading small {
        color: #5f6368;
        font-size: 0.9rem;
    }
    * {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        box-sizing: border-box;
    }
    #map {
        height: 100vh;
        width: calc(100vw - 320px);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
    }
    #sidebar {
        width: 320px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: #f8f9fa;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 15px;
        overflow-y: auto;
    }
    .sidebar-header h2 {
        color: rgb(0, 145, 5);
        margin: 0;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e9ecef;
    }
    .location-types {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }
    .location-type {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #5f6368;
        padding: 10px;
        border-radius: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
        background: #fff;
        border: 1px solid #e9ecef;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        width: 100%;
        outline: none;
        position: relative;
        overflow: hidden;
        justify-content: center;
    }
    .location-type:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(0,145,5,0.2);
    }
    .location-type::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }
    .location-type.active::after {
        transform: scaleX(1);
    }
    .location-type.active {
        transform: translateY(-1px);
        font-weight: 600;
    }
    .location-type:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .location-type i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    .location-type.all {
        grid-column: span 2;
        justify-content: center;
        background: #f8f9fa;
        color: #202124;
    }
    .location-type.all.active {
        background: #e6f4ea;
        color: rgb(0, 145, 5);
        border-color: rgb(0, 145, 5);
    }
    .location-type.client {
        color: rgb(0, 145, 5);
    }
    .location-type.client.active {
        background: #e6f4ea;
        border-color: rgb(0, 145, 5);
        box-shadow: 0 2px 4px rgba(0,145,5,0.2);
    }
    .location-type.warehouse {
        color: #ea4335;
    }
    .location-type.warehouse.active {
        background: #fce8e6;
        border-color: #ea4335;
        box-shadow: 0 2px 4px rgba(234,67,53,0.2);
    }
    .location-type.vendor {
        color: #fbbc04;
    }
    .location-type.vendor.active {
        background: #fff7e6;
        border-color: #fbbc04;
        box-shadow: 0 2px 4px rgba(251,188,4,0.2);
    }
    .location-type.prospect {
        color: #1a73e8;
    }
    .location-type.prospect.active {
        background: #e8f0fe;
        border-color: #1a73e8;
        box-shadow: 0 2px 4px rgba(26,115,232,0.2);
    }
    .filter-section {
        background: linear-gradient(145deg, #ffffff, #f8f9fa);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }
    .filter-section.collapsed {
        padding: 15px;
    }
    .filter-section h3 {
        color: rgb(0, 145, 5);
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
    }
    .filter-section h3 .title {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .filter-section h3 .toggle-icon {
        font-size: 1rem;
        transition: transform 0.3s ease;
    }
    .filter-section.collapsed h3 .toggle-icon {
        transform: rotate(-180deg);
    }
    .filter-content {
        margin-top: 15px;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    .filter-section.collapsed .filter-content {
        margin-top: 0;
        height: 0;
        opacity: 0;
    }
    .filter-section h3 i {
        font-size: 1rem;
    }
    .filter-group {
        margin-bottom: 15px;
    }
    .filter-group:last-child {
        margin-bottom: 0;
    }
    .filter-group label {
        display: block;
        color: #495057;
        font-size: 0.9rem;
        margin-bottom: 5px;
        font-weight: 500;
    }
    .search-box {
        width: 88%;
        padding: 10px 15px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s;
        background: white;
    }
    .search-box:focus {
        border-color: rgb(0, 145, 5);
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,145,5,0.1);
    }
    .search-results {
        max-height: calc(100% - 220px);
        overflow-y: auto;
        padding-right: 5px;
    }
    .search-results::-webkit-scrollbar {
        width: 6px;
    }
    .search-results::-webkit-scrollbar-track {
        background: #f1f3f4;
        border-radius: 3px;
    }
    .search-results::-webkit-scrollbar-thumb {
        background: #dadce0;
        border-radius: 3px;
    }
    .company-item {
        padding: 15px;
        border: 1px solid #e9ecef;
        cursor: pointer;
        background: white;
        margin-bottom: 10px;
        border-radius: 8px;
        transition: all 0.2s;
    }
    .company-item:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        border-color: #dadce0;
    }
    .company-item.client strong {
        color: rgb(0, 145, 5);
        display: block;
        margin-bottom: 5px;
        font-size: 1.1em;
    }
    .company-item.prospect strong {
        color: #1a73e8;
        display: block;
        margin-bottom: 5px;
        font-size: 1.1em;
    }
    .company-item.vendor strong {
        color: #fbbc04;
        display: block;
        margin-bottom: 5px;
        font-size: 1.1em;
    }
    .company-item small {
        color: #5f6368;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .company-item small i {
        font-size: 0.8em;
    }
    .stats-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 10px;
    }
    .stat-item {
        padding: 8px;
        border-radius: 6px;
        text-align: center;
        font-size: 0.85em;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .stat-item.orders {
        background: #e8f0fe;
        color: #1a73e8;
    }
    .stat-item.products {
        background: #e6f4ea;
        color: #137333;
    }
    .stat-item.revenue {
        background: #fce8e6;
        color: #c5221f;
    }
    .stat-item strong {
        font-size: 1.2em;
        color: inherit;
        margin: 0;
    }
    .select2-container {
        width: 100% !important;
    }
    .select2-container--default .select2-selection--single {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        height: 42px;
        padding: 6px 8px;
        background: white;
        transition: all 0.2s;
    }
    .select2-container--default .select2-selection--single:hover {
        border-color: #dadce0;
    }
    .select2-container--default.select2-container--focus .select2-selection--single {
        border-color: rgb(0, 145, 5);
        box-shadow: 0 0 0 3px rgba(0,145,5,0.1);
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 40px;
    }
    .select2-dropdown {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background-color: rgb(0, 145, 5);
    }
    .select2-search--dropdown .select2-search__field {
        border: 1px solid #e9ecef;
        border-radius: 4px;
        padding: 6px;
    }
    .select2-search--dropdown .select2-search__field:focus {
        border-color: rgb(0, 145, 5);
        outline: none;
    }
    .ol-popup {
        position: absolute;
        background-color: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        padding: 0;
        border-radius: 12px;
        border: none;
        bottom: 12px;
        left: -150px;
        min-width: 300px;
        max-width: 350px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    .ol-popup:after, .ol-popup:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }
    .ol-popup:after {
        border-top-color: white;
        border-width: 10px;
        left: 150px;
        margin-left: -10px;
    }
    .ol-popup:before {
        border-top-color: rgba(0,0,0,0.1);
        border-width: 11px;
        left: 150px;
        margin-left: -11px;
    }
    .popup-header {
        background: #f8f9fa;
        padding: 15px 20px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    .popup-header h3 {
        color: #1a73e8;
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }
    .popup-content {
        padding: 20px;
    }
    .popup-section {
        margin-bottom: 20px;
    }
    .popup-section:last-child {
        margin-bottom: 0;
    }
    .popup-section-title {
        color: #5f6368;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .popup-section-title i {
        font-size: 14px;
    }
    .popup-address {
        background: #f8f9fa;
        padding: 12px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1.4;
    }
    .popup-address div:not(:last-child) {
        margin-bottom: 4px;
    }
    .popup-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .popup-stat {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
    }
    .popup-stat.orders {
        background: #e8f0fe;
        color: #1a73e8;
    }
    .popup-stat.products {
        background: #e6f4ea;
        color: #137333;
    }
    .popup-stat.items {
        background: #fce8e6;
        color: #c5221f;
    }
    .popup-stat strong {
        display: block;
        font-size: 18px;
        margin-bottom: 2px;
    }
    .popup-stat span {
        font-size: 12px;
        opacity: 0.8;
    }
    .layer-switcher {
        position: absolute;
        top: 10px;
        right: 20px;
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        margin-right: 10px;
    }
    .layer-switcher label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 8px 0;
        cursor: pointer;
        color: #5f6368;
        font-size: 14px;
    }
    .layer-switcher label:first-child {
        margin-top: 0;
    }
    .layer-switcher label:last-child {
        margin-bottom: 0;
    }
    .layer-switcher input[type="radio"] {
        margin: 0;
    }
    .results-section-header {
        margin-top: 10px;
        margin-bottom: 5px;
    }
    .company-item.warehouse strong {
        color: #ea4335;
    }
