/**
 * Copyright © Stockpile. All rights reserved.
 * Supplier Location Module - Product Page Styles
 */

.supplier-location-preview {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.supplier-map-preview {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.map-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.show-map-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.show-map-btn:hover {
    background: #F5D10D;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.map-pin-icon {
    display: flex;
    align-items: center;
}

.map-pin-icon svg {
    width: 20px;
    height: 20px;
}

.show-map-text {
    font-weight: 600;
    font-size: 14px;
}

.supplier-info {
    padding: 15px;
}

.supplier-details-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.supplier-details-links {
	    display: flex;
	        align-items: center;
		    gap: 10px;
	    }


.supplier-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.supplier-link:hover {
    color: #FFC107;
}

.supplier-avatar svg {
    width: 32px;
    height: 32px;
}

.supplier-name {
    font-weight: 600;
    font-size: 16px;
}

/* Modal Styles */
.supplier-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: 15px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0;
}

.interactive-map {
    width: 100%;
    height: 400px;
}

.supplier-modal-info {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

.supplier-modal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.supplier-modal-link:hover {
    color: #F5D10D;
}

.supplier-modal-avatar svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .supplier-map-preview {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .interactive-map {
        height: 300px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .supplier-modal-info {
        padding: 15px;
    }
}

