#store-locator {
    display: flex;
    width: 100%;
    height: 700px;
    border: 1px solid #DADCE0;
    border-radius: 8px;
    overflow: hidden;
}

#map-container {
    flex: 2;
    position: relative;
}

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

#sidebar {
    flex: 1;
    background-color: #FFFFFF;
    padding: 20px;
    overflow-y: hidden;
    border-right: 1px solid #DADCE0;
}

#search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #DADCE0;
    border-radius: 4px;
    font-size: 16px;
}

#radius-select {
    padding: 10px;
    border: 1px solid #DADCE0;
    border-radius: 4px;
    font-size: 16px;
    background-color: #FFFFFF;
    color: #3C4043;
    cursor: pointer;
}

#find-nearest-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4285F4;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#find-nearest-btn:hover {
    background-color: #3367D6;
}

#locations-list {
    max-height: calc(100% - 140px);
    overflow-y: auto;
}

.location-item {
    background-color: #FFFFFF;
    border: 1px solid #DADCE0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.location-item:hover {
    background-color: #F8F9FA;
}

.location-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.location-item p {
    margin: 0;
    font-size: 14px;
    color: #3C4043;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-item p i {
    color: #4285F4;
    width: 16px;
    text-align: center;
}

.location-item p strong {
    color: #3C4043;
}

.location-item a {
    color: #4285F4;
    text-decoration: none;
}

.location-item a:hover {
    text-decoration: underline;
}

.location-item .website-link {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    vertical-align: top;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.location-item button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.view-on-map-btn {
    background-color: #4285F4;
    color: white;
}

.view-on-map-btn:hover {
    background-color: #3367D6;
}

.get-directions-btn {
    background-color: #34A853;
    color: white;
}

.get-directions-btn:hover {
    background-color: #2E7D32;
}

.location-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.location-info p {
    margin: 5px 0;
    font-size: 14px;
}

.location-info a {
    color: #4285F4;
    text-decoration: none;
}

.location-info a:hover {
    text-decoration: underline;
}

.open {
    color: #34A853;
    font-weight: bold;
}

.closed {
    color: #EA4335;
    font-weight: bold;
}

/* Highlight open stores in sidebar */
.location-item.open-highlight {
    border-left: 5px solid #34A853;
    background-color: #F8F9FA;
}

.location-item.closed-highlight {
    border-left: 5px solid #EA4335;
    background-color: #FFFFFF;
}

/* Highlight nearest store */
.location-item.nearest-highlight {
    border: 3px solid #4285F4;
    background-color: #F8F9FA;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

/* Google Maps Info Window Close Button */
.gm-style-iw button {
    mask-image: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") !important;
    background-size: 16px 16px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background-color: transparent !important;
}

/* Responsive design */
@media (max-width: 768px) {
    #store-locator {
        flex-direction: column;
        height: auto;
        min-height: 700px;
    }

    #map-container {
        flex: none;
        height: 400px;
    }

    #sidebar {
        border-left: none;
        border-top: 1px solid #DADCE0;
        min-height: 320px;
        max-height: 60vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 10px;
    }

    #search-input {
        margin-bottom: 10px;
    }

    #find-nearest-btn {
        margin-bottom: 10px;
    }

    #locations-list {
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }
}
