/* Store Button */
.store-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.store-btn:hover {
    background-color: #0052a3;
}

/* Modal Overlay */
#storeModal.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#storeModal.modal-overlay.active {
    display: flex;
}

/* Modal Container */
#storeModal .modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
#storeModal .modal-header {
    background-color: #f8f9fa;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

#storeModal .modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#storeModal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

#storeModal .modal-close:hover {
    color: #333;
}

/* Modal Content */
#storeModal .modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 450px;
}

/* Map Section */
#storeModal .map-section {
    background-color: #e8e8e8;
    border-right: 1px solid #e0e0e0;
    overflow: hidden;
}

#storeModal .map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Info Section */
#storeModal .info-section {
    padding-inline: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

#storeModal .info-block {
    margin-bottom: 1.5rem;
}

#storeModal .info-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
    font-weight: 600;
}

#storeModal .info-title {
    margin: 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

#storeModal .info-subtitle {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #666;
}

#storeModal .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

#storeModal .info-item strong {
    color: #333;
    min-width: 80px;
}

#storeModal .info-item a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

#storeModal .info-item a:hover {
    color: #0052a3;
}

#storeModal .icon {
    font-size: 16px;
    color: #999;
    width: 16px;
    height: 16px;
}

/* Modal Footer */
#storeModal .modal-footer {
    display: flex;
    gap: 10px;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
}

#storeModal .modal-footer a,
#storeModal .modal-footer button {
    flex: 1;
    padding: 10px 16px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#storeModal .modal-footer a:hover,
#storeModal .modal-footer button:hover {
    background-color: #e8e8e8;
}

#storeModal .modal-footer .btn-primary {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

#storeModal .modal-footer .btn-primary:hover {
    background-color: #0052a3;
}

/* Responsive */
@media (max-width: 768px) {
    #storeModal.modal-overlay {
        padding: 10px;
    }

    #storeModal .modal-container {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    #storeModal .modal-header {
        padding: .85rem;
        flex-shrink: 0;
    }

    #storeModal .modal-content {
        grid-template-columns: 1fr;
        height: auto;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    #storeModal .map-section {
        height: 250px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        flex-shrink: 0;
    }

    #storeModal .info-section {
        min-height: auto;
        padding: 1rem;
        flex-shrink: 0;
    }

    #storeModal .info-block {
        margin-bottom: .5rem;
    }

    #storeModal .modal-footer {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-block: 1rem;
        padding-inline: 0;
        margin-top: 0;
        border-top: 1px solid #e0e0e0;
        flex-shrink: 0;
        align-items: stretch;
    }

    #storeModal .modal-footer a,
    #storeModal .modal-footer button {
        flex: 1;
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .store-btn { font-size: 14px; }
   
    #storeModal .modal-header h2 {
        font-size: 16px;
    }

    #storeModal .map-section {
        height: 200px;
    }

    #storeModal .info-section {
        padding: 1rem;
    }

    #storeModal .info-label {
        font-size: 11px;
    }

    #storeModal .info-title {
        font-size: 14px;
    }

    #storeModal .info-item {
        font-size: 13px;
    }

    #storeModal .modal-footer a,
    #storeModal .modal-footer button {
        padding: 10px 12px;
        font-size: 13px;
    }
}