/* Asset Map Widget Styles */
.asset-map-widget {
    display: flex;
    gap: 24px;
    background: #FBF7F5;
    padding-top: 60px;
}

@media only screen and (min-width:1024px) {
    .asset-map-widget {
             height: calc(100vh - 90px) !important;
        max-height: calc(100vh - 90px) !important;
        min-height: calc(100vh - 90px) !important;
    }
}

/* Left Panel - Asset List */
.asset-sidebar {
    width: 400px;
    background: #FBF7F5;
    display: flex;
    flex-direction: column;
}

.asset-header h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1b1917;
}

.asset-label {
    font-size: 20px;
    margin: 25px 0px 16px;
    color: #1b1917;
    font-weight: 500;
    font-family: 'PP Neue Montreal';
}

/* Filters */
.asset-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    display: block;
    font-size: 20px;
    color: #1b1917;
    margin-bottom: 12px;
    font-weight: 500;
    font-family: 'PP Neue Montreal';
}

.filter-select,
.state-filter {
  width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #1b1917;
    border-radius: 0px;
    background: #FBF7F5;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2713%27%20height%3D%2714%27%20viewBox%3D%270%200%2013%2014%27%20fill%3D%27none%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath%20d%3D%27M0.837694%208.66997L1.99769%207.44997L5.61769%2010.85L5.61769%200.0899655L7.3377%200.0899656L7.33769%2010.85L10.9777%207.44997L12.1377%208.66997L6.47769%2013.91L0.837694%208.66997Z%27%20fill%3D%27%231B1917%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-family: 'PP Neue Montreal' !important;
    color: #1b1917 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.clear-filters {
    align-self: flex-end;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1b1917;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.clear-filters:hover, .clear-filters:active, .clear-filters:focus {
    color: #1b1917;
        background: none !important;
}

.map-container_title {
    margin-bottom: 30px;
        margin-top: -10px;
}

.map-container_title p {
    font-family: "Besley", Sans-serif;
    font-size: 60px;
    font-weight: 400;
    line-height: 114.99%;
    letter-spacing: -2%;
    color: var(--e-global-color-primary);
    margin-bottom: 0px;
}

@media only screen and (max-width: 768px) {
    .map-container_title p {
        font-size: 40px !important;
    }
}


/* Asset Counter */ 
.asset-counter {
       padding: 25px 0px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1b1917;
    display: none;
}

/* Asset List */
.asset-list {
    flex: 1;
    overflow-y: auto;

    margin-top: 24px;
}

.asset-list::-webkit-scrollbar {
     display: none;
}

.asset-list::-webkit-scrollbar-track {
    display: none;
}

.asset-list::-webkit-scrollbar-thumb {
     display: none;
}

.asset-list::-webkit-scrollbar-thumb:hover {
     display: none;
}

/* Asset Section Labels */
.asset-section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #776F67;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E5E5;
}

.asset-section-label:first-child {
    margin-top: 0;
}

/* Asset Items */
.asset-item {
   display: flex;
       gap: 10px;
    padding: 0px;
    margin-bottom: 10px;
    background: #FBF7F5;
    border: 1px solid #1b1917;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0px;
    overflow: hidden;
}

.asset-item.highlighted {
    border-color: #2b2b2b;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.asset-image {
        width: 108px;
    flex-shrink: 0;
}

.asset-image img {
    width: 100%;
    height: 100%;
        object-fit: cover;
}

.asset-details {
   flex: 1;
    display: flex;
    flex-direction: column;
    
    justify-content: center;    
    padding: 8px 20px 8px 0px;
}

.asset-details * {
    font-family: 'PP Neue Montreal';
}

.asset-details h3 {
    margin: 0px;
    font-size: 18px;
    font-weight: 500;
    color: #1b1917;
}

.asset-address {
margin: 5px 0 5px 0;
       font-size: 13px;
    color: #776F67;
    font-weight: 500;
    line-height: 110%;
}

.asset-units {
   font-size: 13px;
    color: #776F67;
    font-weight: 500;
    line-height: 110%;
    margin: 5px 0 0;
}

/* No Assets Message */
.no-assets-message {
    text-align: center;
    padding: 40px 20px;
    color: #1b1917;
}

.no-assets-message p {
    margin-bottom: 20px;
    font-size: 14px;
}

.reset-map-btn {
    padding: 10px 20px;
    background: #1b1917;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.reset-map-btn:hover {
    background: #1a1a1a;
}

/* Map Container */
.asset-map-container {
    flex: 1;
    position: relative;
    background: #e4e1e0;
    border: solid 1px #1b1917;
    border-radius: 0px;
    overflow: hidden;
}

#asset-map {
    width: 100%;
    height: 100%;
}

/* Search Container - Positioned over the map */
#search-container {
     position: absolute;
    top: 20px;
    right: 20px;
    min-width: 337px;
}

/* Custom Search Widget Styles */
.esri-search {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.esri-search__input {
    font-size: 14px !important;
    padding: 12px 40px 12px 40px !important;
    border: none !important;
}

.esri-search__submit-button {
    padding: 0 12px !important;
}

.esri-search__clear-button {
    right: 8px !important;
}

/* Search suggestions dropdown */
.esri-search__suggestions-menu {
    margin-top: 5px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.esri-search__suggestion {
    padding: 12px !important;
    font-size: 14px !important;
}

.esri-search__suggestion:hover {
    background-color: #f5f5f5 !important;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.zoom-in,
.zoom-out {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.2s;
}

.zoom-in:hover,
.zoom-out:hover {
    background: #f0f0f0;
    color: #1b1917;
}

.zoom-in {
    border-radius: 0px 0px 0 0;
}

.zoom-out {
    border-radius: 0 0 0px 0px;
    border-top: none;
}

/* Unit Switcher */
.unit-switcher {
    position: absolute;
    bottom: 30px;
    right: 70px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0px;
    display: flex;
    overflow: hidden;
    z-index: 10;
}

.unit-btn {
    padding: 8px 16px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #1b1917;
    transition: all 0.2s;
}

.unit-btn:first-child {
    border-right: 1px solid #ddd;
}

.unit-btn.active {
    background: #1b1917;
    color: white;
}

.unit-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .asset-map-widget {
        flex-direction: column;
        height: auto !important;
    }
    
    .asset-sidebar {
        width: 100%;
        max-height: 472px;        
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .asset-map-container {
        height: 350px;
        min-height: 350px;
    }

    .asset-list {
        min-height: 200px;
    }
    
    #search-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 640px) {
    .filter-group {
        width: 100%;
    }
    
    #search-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }
    
    .asset-image {
        width: 60px;
    }
}

.asset-item.active {
    border-color: #1b1917;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-width: 2px;
}

input#search-container-input {
    padding: 0px !important;
}

.esri-search__submit-button {
    border: none !important;
}

#search-container {
        padding: 3px 16px;
    border-radius: 0px !important;
    border: solid 1px #1b1917;
    font-family: 'PP Neue Montreal' !important;
    color: #1b1917 !important;
    font-size: 16px;
    font-weight: 500;
}

#search-container input {
       font-family: 'PP Neue Montreal' !important;
        font-size: 15px !important;
    font-weight: 500;
    outline: none !important;
}

#search-container input::placeholder {
    color: #1B1917;
    opacity: 1;
}

.asset-details.no-image {
    margin-left: 0;
    width: 100%;
}

/* Hide image container if src fails to load */
.asset-image img[src=""],
.asset-image img:not([src]) {
    display: none;
}

.asset-image:has(img[src=""]),
.asset-image:has(img:not([src])) {
    display: none;
}

.esri-view .esri-view-surface:after {
    display: none !important;
}

.tag {
    font-size: 11px;
    margin: 0px;
    text-transform: capitalize;
    background: #545351;
    display: inline-block !important;
    justify-content: flex-start;
    color: #FBF7F5;
    border-radius: 0px;
    text-align: center;
    font-weight: 500;
    padding: 2px 10px;
    margin-bottom: 7px;
    max-width: fit-content;
}



calcite-action-bar[slot="action-bar"] {
    display: none !important;
}

calcite-action[slot="header-actions-end"] {
    display: none !important;
}

.esri-features__footer {
    display: none !important;
}

.esri-features__container, .header-container--border-end, :host([scale="m"]) .button, .header-container {
    background: #FBF7F5;
    padding: 0px !important;
}

.esri-features__container .asset-item {
    border: none !important;
    margin-bottom: 0px !important;
        border-radius: 0px !important;
}

calcite-panel header {
    display: none !important;
}

.esri-popup__header {
    display: none !important;
}
.esri-popup__content {
    padding: 0 !important;
}

