.sellers-container {
    width: 100%;
    margin: 0;
}

.seller-finder-container {
    margin-bottom: 15px;
    padding: 40px;
    background: #f5f5f5;
    text-align: center;
}

.seller-finder-header {
    margin-bottom: 20px;
}

.finder-icon {
    margin-bottom: 10px;
}

.seller-finder-header h2 {
    margin: 0 0 10px 0;
}

.seller-finder-header p {
    margin-top: 0;
}

.btn-search-nearby {
    color: var(--color-black);
    background-color: white;
    border: 3px solid var(--color-black);
    padding: 15px 24px 13px;
    font-size: 17px;
    line-height: 1;
    transition: background-color .3s, color .3s, border .3s;
    font-family: var(--condensed-font);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 3rem;
    font-weight: 700;
}

.btn-search-nearby:hover {
    border: 3px solid var(--color-black);
    background: var(--color-black);
    color: white;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--color-black);
    font-weight: 600;
    text-align: left;
}

.search-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #000;
}

.sellers-map {
    min-height: 600px;
    height: 600px !important;
    width: 100%;
    border: 1px solid #ddd;
    overflow: hidden;
    position: relative;
    background-color: #e5e3df;
}

/* Ensure Google Maps loads properly */
.sellers-map > div {
    min-height: 600px !important;
    height: 600px !important;
}

/* Fix for Google Maps tiles loading issues */
.sellers-map .gm-style > div:first-child {
    background-color: #e5e3df !important;
}

/* Fix for Google Maps controls */
.sellers-map .gm-style .gmnoprint {
    display: block !important;
}

/* Ensure map tiles load properly */
.sellers-map .gm-style div {
    font-family: inherit !important;
}

.seller-popup {
    padding: 0 23px 10px;
    max-width: 320px;
    line-height: 1.5;
}

.seller-popup h4 {
    margin: 0 0 12px 0;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.seller-popup p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.seller-popup strong {
    color: #333;
    font-weight: 600;
}

.seller-popup a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.seller-popup a:hover {
    text-decoration: underline;
}

.seller-popup a i {
    margin-right: 7px;
}

/* Google Maps Info Window Styling */
.gm-style-iw-ch {
    padding: 0 !important;
}

.gm-style-iw-chr button {
    height: 40px !important;
}

.gm-style-iw-c,
.gm-style-iw-d {
    padding: 0 !important;
    overflow: hidden !important;
}

/* Sellers List Styling */
.sellers-list {
    margin-top: 15px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sellers-list-header {
    background: #000;
    color: white;
    padding: 20px;
    text-align: center;
}

.sellers-list-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.sellers-list-header .count {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.sellers-list-content {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.seller-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.seller-item:last-child {
    border-bottom: none;
}

.seller-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seller-item.active {
    background-color: #e3f2fd;
    border-left: 4px solid #000;
}

/* Seller item styling */
.seller-info {
    flex-grow: 1;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.seller-main-info {
    flex: 1;
    min-width: 0;
}

.seller-info .editor-content {
    flex: 1;
    min-width: 0;
}

.seller-info .editor-content a {
    color: #000;
}

.seller-info h4 {
    margin: 0 0 8px 0;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.seller-info .country {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.seller-info .address {
    color: #888;
    font-size: 13px;
    line-height: 1.4;
}

.seller-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.action-button {
    padding: 6px 12px;
    background: #000;
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.action-button:hover {
    background: #0092bb;
    color: white;
    text-decoration: none;
}

.action-button.view-on-map {
    background: #000;
    color: white;
}

.action-button.view-on-map:hover {
    background: #333;
    color: white;
}

/* Scrollbar styling */
.sellers-list-content::-webkit-scrollbar {
    width: 8px;
}

.sellers-list-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sellers-list-content::-webkit-scrollbar-thumb {
    background: #000;
}

.sellers-list-content::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }
    
    .search-field {
        width: 100%;
    }

    .sellers-map {
        min-height: 500px;
        height: 500px !important;
    }
    
    .seller-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .seller-info {
        flex-direction: column;
        gap: 10px;
    }

    .seller-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .sellers-list-content {
        max-height: 500px;
    }
    .seller-finder-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .seller-popup {
        padding: 0 18px 7px;
    }
}