/* ========================================
   LOCATION MAP - THEME-INTEGRATED VERSION
   Inherits fonts, styles, weights, and sizes from WordPress theme
   ======================================== */

/* Wrapper - Theme Integration */
.lmb-wrapper {
    all: initial;
    display: block;
    width: 100%;
    background: transparent;
    padding: 40px 0;
    /* INHERIT ALL FONT PROPERTIES FROM THEME */
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lmb-wrapper *,
.lmb-wrapper *::before,
.lmb-wrapper *::after {
    box-sizing: border-box;
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
}

/* Container */
.lmb-wrapper .lmb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Map Container */
.lmb-wrapper .lmb-map-container {
    position: relative;
    width: 100%;
    height: 850px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SIZE OPTIONS - Responsive Map Sizing
   ======================================== */

/* Compact Size - Perfect for cards and small spaces */
.lmb-wrapper.size-compact .lmb-container {
    max-width: 100%;
    padding: 0;
}

.lmb-wrapper.size-compact {
    padding: 0;
}

.lmb-wrapper.size-compact .lmb-map-container {
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lmb-wrapper.size-compact .lmb-controls-box {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-width: 280px;
    padding: 12px;
    min-width: auto;
}

/* Compact sidebar - narrower for cards */
.lmb-wrapper.size-compact .lmb-sidebar {
    width: 300px;
    max-width: 300px;
}

.lmb-wrapper.size-compact .lmb-sidebar-header {
    padding: 16px 18px;
}

.lmb-wrapper.size-compact .lmb-sidebar-title {
    font-size: 1.125rem;
    margin-bottom: 6px;
}

.lmb-wrapper.size-compact .lmb-sidebar-count {
    font-size: 0.8rem;
}

.lmb-wrapper.size-compact .lmb-sidebar-close {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    top: 16px;
    right: 16px;
}

.lmb-wrapper.size-compact .lmb-sidebar-content {
    padding: 12px;
}

.lmb-wrapper.size-compact .lmb-location-card {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.lmb-wrapper.size-compact .lmb-location-title {
    font-size: 0.95rem;
}

.lmb-wrapper.size-compact .lmb-location-address {
    font-size: 0.8rem;
}

.lmb-wrapper.size-compact .lmb-location-phone {
    font-size: 0.8rem;
}

.lmb-wrapper.size-compact .lmb-location-distance {
    font-size: 0.8rem;
}

.lmb-wrapper.size-compact .lmb-location-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.lmb-wrapper.size-compact .lmb-location-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.lmb-wrapper.size-compact .lmb-region-title {
    font-size: 0.9rem;
    padding: 8px 0;
}

/* Compact mode on narrow containers (like 370px card) */
@media (max-width: 500px) {
    .lmb-wrapper.size-compact .lmb-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .lmb-wrapper.size-compact .lmb-controls-box {
        width: calc(100% - 16px);
        max-width: none;
        left: 8px;
    }
}

@media (max-width: 768px) {
    .lmb-wrapper.size-compact .lmb-map-container {
        height: 350px;
    }
    
    .lmb-wrapper.size-compact .lmb-sidebar {
        width: 280px;
        max-width: 280px;
    }
}

/* Fit Size - Adapts to container, good for embedding */
.lmb-wrapper.size-fit .lmb-container {
    max-width: 100%;
    padding: 0;
}

.lmb-wrapper.size-fit {
    padding: 0;
}

.lmb-wrapper.size-fit .lmb-map-container {
    height: 600px;
    min-height: 400px;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .lmb-wrapper.size-fit .lmb-map-container {
        height: 500px;
        min-height: 350px;
    }
}

/* Medium Size - Balanced height */
.lmb-wrapper.size-medium .lmb-map-container {
    height: 650px;
}

@media (max-width: 768px) {
    .lmb-wrapper.size-medium .lmb-map-container {
        height: 550px;
    }
}

/* Large Size - Standard (default behavior) */
.lmb-wrapper.size-large .lmb-map-container,
.lmb-wrapper.size-standard .lmb-map-container {
    height: 850px;
}

@media (max-width: 768px) {
    .lmb-wrapper.size-large .lmb-map-container,
    .lmb-wrapper.size-standard .lmb-map-container {
        height: 700px;
    }
}

/* Full Height - Takes 100% of parent container */
.lmb-wrapper.size-full-height {
    height: 100%;
    min-height: 400px;
    padding: 0;
}

.lmb-wrapper.size-full-height .lmb-container {
    height: 100%;
    max-width: 100%;
    padding: 0;
}

.lmb-wrapper.size-full-height .lmb-map-container {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

/* Tiny Size - For very small spaces like sidebar widgets */
.lmb-wrapper.size-tiny .lmb-container {
    max-width: 100%;
    padding: 0;
}

.lmb-wrapper.size-tiny {
    padding: 0;
}

.lmb-wrapper.size-tiny .lmb-map-container {
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lmb-wrapper.size-tiny .lmb-controls-box {
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    max-width: 260px;
    padding: 10px;
    min-width: auto;
}

/* Tiny sidebar - even narrower for widgets */
.lmb-wrapper.size-tiny .lmb-sidebar {
    width: 280px;
    max-width: 280px;
}

.lmb-wrapper.size-tiny .lmb-sidebar-header {
    padding: 14px 16px;
}

.lmb-wrapper.size-tiny .lmb-sidebar-title {
    font-size: 1rem;
    margin-bottom: 4px;
}

.lmb-wrapper.size-tiny .lmb-sidebar-count {
    font-size: 0.75rem;
}

.lmb-wrapper.size-tiny .lmb-sidebar-close {
    width: 28px;
    height: 28px;
    font-size: 1.125rem;
    top: 14px;
    right: 14px;
}

.lmb-wrapper.size-tiny .lmb-sidebar-content {
    padding: 10px;
}

.lmb-wrapper.size-tiny .lmb-location-card {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.lmb-wrapper.size-tiny .lmb-location-title {
    font-size: 0.875rem;
}

.lmb-wrapper.size-tiny .lmb-location-address {
    font-size: 0.75rem;
}

.lmb-wrapper.size-tiny .lmb-location-phone {
    font-size: 0.75rem;
}

.lmb-wrapper.size-tiny .lmb-location-distance {
    font-size: 0.75rem;
}

.lmb-wrapper.size-tiny .lmb-location-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
}

.lmb-wrapper.size-tiny .lmb-location-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
}

.lmb-wrapper.size-tiny .lmb-region-title {
    font-size: 0.875rem;
    padding: 6px 0;
}

.lmb-wrapper.size-tiny .lmb-btn-find-nearest {
    padding: 10px 16px;
    font-size: 14px;
}

/* Tiny mode on narrow containers */
@media (max-width: 500px) {
    .lmb-wrapper.size-tiny .lmb-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .lmb-wrapper.size-tiny .lmb-controls-box {
        width: calc(100% - 12px);
        max-width: none;
        left: 6px;
    }
}

@media (max-width: 768px) {
    .lmb-wrapper.size-tiny .lmb-map-container {
        height: 250px;
    }
    
    .lmb-wrapper.size-tiny .lmb-sidebar {
        width: 260px;
        max-width: 260px;
    }
}

.lmb-wrapper #lmbMap {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Leaflet Reset */
.lmb-wrapper .leaflet-container {
    font-family: inherit;
}

.lmb-wrapper .leaflet-container a {
    color: #0078A8;
    text-decoration: none;
}

.lmb-wrapper .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

/* ===========================================
   FONT AWESOME ICON COLORS - CRITICAL!
   =========================================== */

/* Nearest Location Icons (Crosshairs) */
.lmb-wrapper .lmb-nearest-badge .lmb-icon {
    fill: var(--lmb-icon-nearest-color, #E31937) !important;
    vertical-align: middle;
}

/* Distance/Location Icons (Map Pin) */
.lmb-wrapper .lmb-location-distance .lmb-icon,
.lmb-wrapper .lmb-search-result-distance .lmb-icon {
    fill: var(--lmb-icon-distance-color, #64748b) !important;
    vertical-align: middle;
}

/* Find Nearest Button Icon */
.lmb-wrapper .lmb-btn-find-nearest .lmb-icon {
    fill: var(--lmb-find-nearest-text, #ffffff) !important;
    vertical-align: middle;
}

/* Featured/Highlighted Badge Star Icon */
.lmb-wrapper .lmb-highlighted-badge .lmb-icon {
    fill: var(--lmb-nearest-badge-text, #ffffff) !important;
    vertical-align: middle;
}

/* Permission Modal Icon */
.lmb-wrapper .lmb-permission-icon .lmb-icon,
.lmb-wrapper .lmb-permission-location-icon .lmb-icon {
    fill: currentColor !important;
    vertical-align: middle;
}

/* Tooltip/Popup Icons */
.lmb-wrapper .leaflet-popup-content .lmb-icon {
    fill: currentColor !important;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===========================================
   PERMISSION MODAL - THEME-INTEGRATED
   =========================================== */
.lmb-wrapper .lmb-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lmb-wrapper .lmb-permission-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.lmb-wrapper .lmb-permission-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: lmb-modal-enter 0.3s ease-out;
    overflow: hidden;
}

@keyframes lmb-modal-enter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lmb-wrapper .lmb-permission-header {
    background: #E4EAE4;
    padding: 30px 24px 20px;
    text-align: center;
}

.lmb-wrapper .lmb-permission-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: lmb-pulse 2s ease-in-out infinite;
}

@keyframes lmb-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lmb-wrapper .lmb-permission-title {
    color: #1e293b;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    font-family: inherit;
}

.lmb-wrapper .lmb-permission-body {
    padding: 24px;
    background: #f3f4f6;
}

.lmb-wrapper .lmb-permission-message {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    font-family: inherit;
}

.lmb-wrapper .lmb-permission-location-icon {
    font-size: 1.5rem;
}

.lmb-wrapper .lmb-permission-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-family: inherit;
}

.lmb-wrapper .lmb-permission-actions {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f3f4f6;
}

.lmb-wrapper .lmb-permission-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 42px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    width: 100%;
}

.lmb-wrapper .lmb-permission-allow {
    background: #475569;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.lmb-wrapper .lmb-permission-allow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 85, 105, 0.4);
    background: #334155;
}

.lmb-wrapper .lmb-permission-never {
    background: #E4EAE4;
    color: #475569;
}

.lmb-wrapper .lmb-permission-never:hover {
    background: #d4dbd4;
    color: #334155;
}

/* Controls Box */
.lmb-wrapper .lmb-controls-box {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 350px;
}

.lmb-wrapper .lmb-control-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.lmb-wrapper .lmb-control-row:last-child {
    margin-bottom: 0;
}

.lmb-wrapper #lmbSearchInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #E4EAE4;
    border-radius: 42px;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: inherit;
    transition: all 0.3s;
    background: #f3f4f6;
    outline: none;
    color: #1e293b;
}

.lmb-wrapper #lmbSearchInput:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
    background: #ffffff;
}

.lmb-wrapper .lmb-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 42px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.lmb-wrapper .lmb-btn-find-nearest {
    background: #64748b;
    color: #ffffff;
    flex: 1;
}

.lmb-wrapper .lmb-btn-find-nearest:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
    background: #475569;
}

.lmb-wrapper .lmb-btn-find-nearest:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Search Results */
.lmb-wrapper .lmb-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
}

.lmb-wrapper .lmb-search-results.active {
    display: block;
}

.lmb-wrapper .lmb-search-result {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #E4EAE4;
    transition: background 0.2s;
}

.lmb-wrapper .lmb-search-result:hover {
    background: #f3f4f6;
}

.lmb-wrapper .lmb-search-result:last-child {
    border-bottom: none;
}

.lmb-wrapper .lmb-search-result-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 0.875rem;
    font-family: inherit;
}

.lmb-wrapper .lmb-search-result-address {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
    font-family: inherit;
}

.lmb-wrapper .lmb-search-result-distance {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    font-family: inherit;
}

/* Sidebar - THEME-INTEGRATED */
.lmb-wrapper .lmb-sidebar {
    position: absolute;
    top: 0;
    right: -450px;
    width: 430px;
    height: 100%;
    background: #f3f4f6;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.lmb-wrapper .lmb-sidebar.open {
    right: 0;
}

.lmb-wrapper .lmb-sidebar-header {
    padding: 25px;
    background: #E4EAE4;
    color: #1e293b;
    position: relative;
    border-bottom: 2px solid #d4dbd4;
}

.lmb-wrapper .lmb-sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(30, 41, 59, 0.1);
    border: none;
    color: #1e293b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s;
    font-family: inherit;
}

.lmb-wrapper .lmb-sidebar-close:hover {
    background: rgba(30, 41, 59, 0.2);
    transform: rotate(90deg);
}

.lmb-wrapper .lmb-sidebar-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    font-family: inherit;
}

.lmb-wrapper .lmb-sidebar-count {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
    color: #475569;
    font-family: inherit;
}

.lmb-wrapper .lmb-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f3f4f6;
}

/* Location Cards - THEME-INTEGRATED */
.lmb-wrapper .lmb-location-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #E4EAE4;
}

.lmb-wrapper .lmb-location-card:hover {
    background: #f8faf8;
    transform: translateX(-4px);
    border-color: #d4dbd4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lmb-wrapper .lmb-location-card.active {
    background: #E4EAE4;
    color: #1e293b;
    border-color: #94a3b8;
    transform: translateX(-8px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}

.lmb-wrapper .lmb-location-card.nearest {
    border: 3px solid #E31937;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.15);
    position: relative;
    z-index: 1;
}

.lmb-wrapper .lmb-location-card.highlighted {
    border: 3px solid #E31937;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.15);
    position: relative;
    z-index: 1;
}

.lmb-wrapper .lmb-location-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.lmb-wrapper .lmb-location-number {
    background: #64748b;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: inherit;
}

.lmb-wrapper .lmb-location-card.active .lmb-location-number {
    background: #475569;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.lmb-wrapper .lmb-location-card.nearest .lmb-location-number {
    background: #E31937;
}

.lmb-wrapper .lmb-location-card.highlighted .lmb-location-number {
    background: #E31937;
}

.lmb-wrapper .lmb-location-info {
    flex: 1;
}

.lmb-wrapper .lmb-location-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e293b;
    line-height: 1.3;
    font-family: inherit;
}

.lmb-wrapper .lmb-location-card.active .lmb-location-title {
    color: #0f172a;
}

.lmb-wrapper .lmb-location-card.nearest .lmb-location-title {
    color: #991b1b;
}

.lmb-wrapper .lmb-location-card.highlighted .lmb-location-title {
    color: #991b1b;
}

.lmb-wrapper .lmb-location-distance {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.lmb-wrapper .lmb-location-card.active .lmb-location-distance {
    color: #475569;
}

.lmb-wrapper .lmb-location-card.nearest .lmb-location-distance {
    color: #E31937;
    font-size: 0.875rem;
}

.lmb-wrapper .lmb-location-card.highlighted .lmb-location-distance {
    color: #E31937;
    font-size: 0.875rem;
}

.lmb-wrapper .lmb-location-address {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 4px 0;
    line-height: 1.5;
    font-family: inherit;
}

.lmb-wrapper .lmb-location-card.active .lmb-location-address {
    color: #475569;
}

.lmb-wrapper .lmb-location-card.nearest .lmb-location-address {
    color: #7f1d1d;
}

.lmb-wrapper .lmb-location-card.highlighted .lmb-location-address {
    color: #7f1d1d;
}

.lmb-wrapper .lmb-location-phone {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    margin: 0;
    font-family: inherit;
}

.lmb-wrapper .lmb-location-card.active .lmb-location-phone {
    color: #475569;
}

.lmb-wrapper .lmb-location-card.nearest .lmb-location-phone {
    color: #E31937;
}

.lmb-wrapper .lmb-location-card.highlighted .lmb-location-phone {
    color: #E31937;
}

.lmb-wrapper .lmb-location-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.lmb-wrapper .lmb-location-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 42px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
    color: #1e293b;
    line-height: 1.2;
    font-family: inherit;
    background: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* Action Buttons - THEME-INTEGRATED */
.lmb-wrapper .lmb-btn-street-view {
    background: #E4EAE4;
    color: #1e293b;
    border: 1px solid #d4dbd4;
}

.lmb-wrapper .lmb-btn-street-view:hover {
    background: #d4dbd4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lmb-wrapper .lmb-location-card.active .lmb-btn-street-view {
    background: #ffffff;
    color: #1e293b;
}

.lmb-wrapper .lmb-location-card.active .lmb-btn-street-view:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lmb-wrapper .lmb-btn-directions {
    background: #f3f4f6;
    color: #1e293b;
    border: 1px solid #E4EAE4;
}

.lmb-wrapper .lmb-btn-directions:hover {
    background: #E4EAE4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lmb-wrapper .lmb-location-card.active .lmb-btn-directions {
    background: #ffffff;
    color: #1e293b;
}

.lmb-wrapper .lmb-location-card.active .lmb-btn-directions:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom Link Buttons */
.lmb-wrapper .lmb-btn-custom-link {
    background: #64748b;
    color: #ffffff;
}

.lmb-wrapper .lmb-btn-custom-link:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.lmb-wrapper .lmb-location-card.active .lmb-btn-custom-link {
    background: #475569;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.lmb-wrapper .lmb-location-card.active .lmb-btn-custom-link:hover {
    background: #334155;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.5);
}

/* Badges */
.lmb-wrapper .lmb-nearest-badge {
    display: inline-block;
    background: #E31937;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 42px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.lmb-wrapper .lmb-highlighted-badge {
    display: inline-block;
    background: #E31937;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 42px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

/* Loading */
.lmb-wrapper .lmb-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2000;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.lmb-wrapper .lmb-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E4EAE4;
    border-top-color: #64748b;
    border-radius: 50%;
    animation: lmb-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes lmb-spin {
    to { transform: rotate(360deg); }
}

.lmb-wrapper .lmb-loading-text {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    font-family: inherit;
}

/* Region Groups */
.lmb-wrapper .lmb-region-group {
    margin-bottom: 25px;
}

.lmb-wrapper .lmb-region-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    padding-left: 4px;
    font-family: inherit;
}

/* ===========================================
   HIDE STREET VIEW & DIRECTIONS BUTTONS
   =========================================== */
.lmb-wrapper.hide-street-direction-btn .lmb-btn-street-view,
.lmb-wrapper.hide-street-direction-btn .lmb-btn-directions {
    display: none !important;
}

.lmb-wrapper.hide-street-direction-btn .lmb-location-actions {
    grid-template-columns: 1fr;
}

.lmb-wrapper.hide-street-direction-btn .lmb-location-actions:empty {
    display: none;
}

/* ===========================================
   SINGLE LOCATION VIEW
   =========================================== */
.lmb-wrapper.single-location-view .lmb-controls-box {
    display: none;
}

.lmb-wrapper.single-location-view .lmb-sidebar {
    display: flex;
}

.lmb-wrapper.single-location-view .lmb-map-container {
    height: 500px;
}

@media (max-width: 768px) {
    .lmb-wrapper.single-location-view .lmb-map-container {
        height: 400px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .lmb-wrapper .lmb-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .lmb-wrapper .lmb-controls-box {
        min-width: auto;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
    
    .lmb-wrapper .lmb-control-row {
        flex-direction: column;
    }
    
    .lmb-wrapper .lmb-map-container {
        height: 600px;
    }
    
    .lmb-wrapper .lmb-permission-dialog {
        max-width: 90%;
    }
}

/* ===== PHONE LINK STYLING ===== */
.lmb-wrapper .lmb-phone-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    font-weight: 600;
}

.lmb-wrapper .lmb-phone-link:hover {
    opacity: 0.8;
}

.lmb-wrapper .lmb-phone-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.lmb-wrapper .lmb-location-phone {
    display: flex;
    align-items: center;
}

/* ===========================================
   LEAFLET MARKER CLUSTER - TRANSPARENT CIRCLES
   =========================================== */

/* Remove default Leaflet cluster styles */
.lmb-wrapper .marker-cluster-small,
.lmb-wrapper .marker-cluster-medium,
.lmb-wrapper .marker-cluster-large {
    background-clip: padding-box;
}

/* Small clusters (2-9 locations) - Transparent outer circle */
.lmb-wrapper .marker-cluster-small {
    background-color: transparent !important;
}

.lmb-wrapper .marker-cluster-small div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmb-wrapper .marker-cluster-small::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.3;
    z-index: -1;
}

/* Medium clusters (10-99 locations) - Transparent outer circle */
.lmb-wrapper .marker-cluster-medium {
    background-color: transparent !important;
}

.lmb-wrapper .marker-cluster-medium div {
    width: 36px;
    height: 36px;
    margin-left: 7px;
    margin-top: 7px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmb-wrapper .marker-cluster-medium::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.3;
    z-index: -1;
}

/* Large clusters (100+ locations) - Transparent outer circle */
.lmb-wrapper .marker-cluster-large {
    background-color: transparent !important;
}

.lmb-wrapper .marker-cluster-large div {
    width: 44px;
    height: 44px;
    margin-left: 8px;
    margin-top: 8px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmb-wrapper .marker-cluster-large::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.3;
    z-index: -1;
}