/**
 * CSS styles for the Reseller Map using Google Maps.
 */

.reseller-map-container {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling for the info window content */
.store-info-window {
    padding: 5px;
    min-width: 240px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.store-info-window h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.store-info-window p {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.store-info-window .store-address,
.store-info-window .store-city {
    margin-bottom: 4px;
}

.store-info-window .store-phone,
.store-info-window .store-website {
    margin-bottom: 4px;
}

.store-info-window .store-website a,
.store-info-window .store-phone a {
    color: #0066cc;
    text-decoration: none;
}

.store-info-window .store-website a:hover,
.store-info-window .store-phone a:hover {
    text-decoration: underline;
}

.store-info-window .store-social a {
    text-decoration: none;
    margin-right: 5px;
}

/* Custom styling for the store list */
.store-list-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.store-item {
    flex: 1 0 300px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.store-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.store-social img {
    margin-right: 0.2em;
}

/* Fix for Google Maps info window */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    min-width: 240px !important;
    box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    min-width: 240px !important;
}

/* Reduce space around close button */
.gm-style .gm-style-iw-t button {
    top: 0 !important;
    right: 0 !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 0.7 !important;
    padding: 0 !important;
    margin: -16px 8px !important;
    background-color: transparent !important;
}

/* Make the X smaller */
.gm-style .gm-style-iw button img {
    width: 14px !important;
    height: 14px !important;
    margin: 5px !important;
}

/* Style the close button on hover */
.gm-style .gm-style-iw-t button:hover {
    opacity: 1 !important;
}

/* Ensure Google Maps controls are visible */
.gm-control-active img {
    max-width: none !important;
}

/* Fix for Google Maps info window arrow */
.gm-style .gm-style-iw-tc {
    display: none !important;
}