.lmdai-map-wrapper {
    display: flex;
    height: 700px; 
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.lmdai-map-sidebar {
    width: 400px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
    background: #fff;
    z-index: 2; 
}

.lmdai-map-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lmdai-search-box {
    position: relative;
    margin-bottom: 10px;
}

.lmdai-search-box input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.lmdai-search-box span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.btn-locate {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--primary-color);
    text-align: left;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
}

.lmdai-locations-list {
    flex: 1;
    overflow-y: auto;
}

.lmdai-loc-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.lmdai-loc-item:hover { background: #f9f9f9; }
.lmdai-loc-item.active { background: #f0f6fc; border-left: 4px solid var(--primary-color); }

.lmdai-loc-item h3 { margin: 0 0 5px; font-size: 1.2rem; color: #333; }
.lmdai-loc-item p { margin: 0; font-size: 16px; color: #666; line-height: 1.4; }
.loc-phone { display: block; margin-top: 8px; font-size: 12px; color: var(--primary-color); font-weight: 500; text-decoration: none; }

.lmdai-mapbox-container {
    flex: 1;
    background: #eef;
}

.lmdai-map-marker {
    display: block;
    border: none;
    cursor: pointer;
    background-color: transparent; 
    transform: translate(-50%, -100%); 
}

@media (max-width: 768px) {
    .lmdai-map-wrapper { flex-direction: column; height: auto; }
    .lmdai-map-sidebar { width: 100%; height: 400px; order: 2; }
    .lmdai-mapbox-container { height: 300px; order: 1; }
}

.btn-google-maps {
    display: inline-block;
    font-size: 12px;
    color: #333;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.btn-google-maps:hover {
    background: #e0e0e0;
    border-color: #ccc;
    color: #000;
}
.btn-locate:hover{
    text-decoration: underline;
}
.btn-locate:hover, .btn-locate:focus{
    background: transparent;
    color: var(--primary-color);
}
.mapboxgl-popup-close-button{
    padding-right: 7px;
    padding-top: 1px;
}
.mapboxgl-popup-close-button:hover{
    background: transparent;
    color: #000;
    text-decoration: underline;
}
.mapboxgl-popup-close-button:focus{
    background: transparent;
    color: #000;
    border: 0px;
}
.mapboxgl-popup-close-button:focus-visible{
    border: 0px;
    outline: none;
}
