body, input, button {
    font-family: inherit;
}

/* Integration with theme - ensure proper styling when used in block */
.plant-locations-map-block #laz-store-locator {
    background: transparent;
}

.plant-locations-map-block #map {
    height: 100%;
    min-height: 600px;
    width: 100%;
    border: none;
    border-radius: 0;
}

.plant-locations-map-block #location-list {
    background: transparent;
    padding: 0;
    height: 100%;
    max-height: 600px;
    overflow-y: auto;
}

/* Custom scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Firefox scrollbar styling */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.04) transparent;
}

/* Search functionality removed - styles preserved for reference
#location-search {
    max-width: 600px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 50px;
    box-shadow: none;
	display: flex;
    border: 1px solid #000;
}

#address-input {
    padding: 10px 24px;
    width: 90%;
    border: none;
    border-radius: 0;
    outline: none;
    font-size: 20px;
}

#search-button {
    padding: 10px 8px;
    width: 10%;
    border: none;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #333;
}
*/

#laz-store-locator {
    max-width: 100%;
    margin: 0;
    display: flex;
    gap: 40px;
	position: relative;
}

/* Hide list mode - list is in DOM but hidden visually */
#laz-store-locator.hide-list {
    display: block;
}

#laz-store-locator.hide-list #map {
    width: 100%;
    flex: none;
}

#laz-store-locator.hide-list #location-list {
    display: none;
}

#location-list {
    flex: 1;
    background-color: transparent;
    padding: 20px;
    border-radius: 8px;
    box-shadow: none;
    overflow: auto;
    height: 500px;
    position: relative;
}

#location-list .location {
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(107, 155, 209, 0.3); /* tertiary color with opacity */
    border-radius: 0;
    padding: 30px 0;
}

#location-list .location:first-child {
    padding-top: 0;
    margin-top: 20px;
}

#location-list .location:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
#location-list .location h3{
    padding: 0;
    margin: 0;
    margin-block-start: 0;
    line-height: 1.1em;
}
.location h3 {
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* Location type badge */
.location-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Portable location styling */
.portable-location {
    position: relative;
}

/* Fixed location styling */
.fixed-location {
    position: relative;
}

/* Phone number styling */
.phone-number {
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.phone-number .phone-label {
    font-weight: 700;
}

.phone-number a {
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
}

.phone-number a:hover {
    text-decoration: underline;
}

/* Address styling */
.location-address {
    color: rgba(255, 255, 255, 0.9);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    max-width: 250px;
}

/* Direction link removed */

/* Distance styling */
.distance {
    color: rgba(255, 255, 255, 0.7);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.scroll-indicator.hidden {
    opacity: 0;
    display: none;
}

.scroll-indicator span {
    color: #EA8537; /* Orange color */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Hours styling */
.hours {
    color: rgba(255, 255, 255, 0.9);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

#location-list .location p a{
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 24.8px;
    text-decoration: none;
}

#location-list .location p a:hover {
    text-decoration: underline;
}

#location-list .location p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

#map {
    flex: 2;
    height: 500px;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}


#loading-container {
    display: none;
	width: 100%;
	height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(59, 85, 123, 0.9); 
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    transform: translateX(-50%) translateY(-50%);
    position: absolute;
    top: 50%;
    left: 50%;
}

.spinner:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: spinner 1.2s linear infinite;
}

#single-location-map{
height: 550px;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Map Legend Styles - removed, preserved for reference
#map-legend {
    max-width: 600px;
    margin: 20px auto 30px;
    background: white;
    padding: 15px 20px;
    border-radius: 25px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.legend-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
    font-family: Montserrat, sans-serif;
}

.legend-items {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    font-family: Montserrat, sans-serif;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.legend-marker.fixed-marker {
    background-color: #4285F4;
    border: 2px solid #1967D2;
}

.legend-marker.portable-marker {
    background-color: #EA4335;
    border: 2px solid #C5221F;
}
*/

/* Info window badge */
.map-info-window {
    font-family: Montserrat, sans-serif;
    max-width: 280px;
    min-width: 250px;
}

.info-window-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.info-window-content {
    padding: 15px;
}

.map-info-window h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.place-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.rating-stars {
    color: #FFA500;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

.info-address {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.info-window-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.view-details-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4285F4;
    color: white !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.view-details-btn:hover {
    background-color: #1967D2;
    text-decoration: none !important;
}

.info-window-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-window-badge.portable {
    background-color: #FCE8E6;
    color: #C5221F;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for keyboard navigation */
.location:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.15);
}

#address-input:focus {
    outline: 3px solid #4285F4;
    outline-offset: -3px;
}

#search-button:focus {
    outline: 3px solid #4285F4;
    outline-offset: 2px;
}

/* Search alerts */
.search-alert {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    padding: 12px 20px;
    background-color: #4285F4;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 100;
    animation: slideIn 0.3s ease-out;
}

.search-alert.error {
    background-color: #EA4335;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No stores found notice */
.no-stores-notice {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    #laz-store-locator {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
        margin: 20px auto;
    }
    
    #map {
        height: 300px;
        order: 1;
    }
    
    #location-list {
        height: 400px;
        order: 2;
        padding: 15px;
    }
    
    .scroll-indicator span {
        font-size: 11px;
    }
    
    /* Legend and search styles - removed
    #map-legend {
        margin: 15px auto 20px;
        padding: 12px 15px;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .legend-title {
        font-size: 13px;
    }
    
    #location-search {
        margin: 20px auto;
        padding: 15px;
    }
    
    #address-input {
        font-size: 16px;
        padding: 8px 16px;
    }
    */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .location-type-badge,
    .info-window-badge {
        border: 1px solid currentColor;
    }
    
    /* .legend-marker {
        border-width: 3px;
    } */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .search-alert {
        animation: none;
    }
    
    .spinner:after {
        animation-duration: 3s;
    }
}

/* Print styles */
@media print {
    #loading-container {
        display: none !important;
    }
}