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

#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: 90vw;
    margin: 50px auto;
    display: flex;
    gap: 20px;
	position: relative;
}

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

#location-list .location {
    margin-bottom: 20px;
    border-bottom: 1px solid #000;
    padding-bottom: 20px;
}
#location-list .location:first-child{
    border-top: 1px solid #000;
    padding-top: 20px;
}

#location-list .location:last-child {
    border-bottom: none;
}
#location-list .location h3{
    padding: 0;
    margin: 0;
    margin-block-start: 0;
    line-height: 0;
}
.location h3 {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    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: 10px;
}

/* Location type badge */
.location-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #EA4335;
    color: white;
}

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

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

#location-list .location p a{
    color: #000;
font-family: Montserrat;
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 24.8px;
}
#location-list .location p {
    margin: 5px 0;
    color: #000;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 24.8px;
}

#map {
    flex: 2;
    height: 500px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}


#loading-container {
    display: none;
	width: 100%;
	height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7); 
    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: #000 transparent #000 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 */
#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 #4285F4;
    outline-offset: 2px;
    background-color: #f5f5f5;
}

#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: #666;
    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;
    }
    
    #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;
    }
}