/* Producer Page Styles - Streamlined Version */

:root {
    --primary-green: #8b9456;
    --accent-gold: #d4a574;
    --text-dark: #2c3e50;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Producer Header */
.producer-header {
    background: #f5f1e8;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    margin-top: 76px; /* Account for fixed navbar */
}

.producer-header h1 {
    font-family: 'Amarante', serif;
    margin-bottom: 1rem;
}



.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Social Media Share Section */
.share-section {
    background: #f5f1e8;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.share-prompt h6 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.share-prompt p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-share {
    background: #8b9456;
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
    min-width: 160px;
    white-space: nowrap;
}

.btn-share:hover {
    background: #7a8349;
    color: white;
}

/* Map Container */
.producer-map {
    height: 400px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Map Popup Styling */
.leaflet-popup-content-wrapper {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.leaflet-popup-content {
    margin: 16px 18px;
    line-height: 1.4;
}

.producer-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.producer-popup .popup-header h6 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.producer-popup .popup-badges .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.producer-popup .popup-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #495057;
}

.producer-popup .popup-item i {
    width: 16px;
    color: #6c757d;
}

.producer-popup .popup-actions {
    margin-top: 1rem;
}

/* Popup directions button - fixed styling */
.popup-directions-btn {
    background: var(--primary-green) !important;
    border: 1px solid var(--primary-green) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.popup-directions-btn:hover {
    background: #7a8349 !important;
    border-color: #7a8349 !important;
    color: white !important;
}

.popup-directions-btn:focus {
    color: white !important;
}

/* Custom popup class for better styling */
.custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.custom-popup .leaflet-popup-tip {
    background: white;
    border: 1px solid #e9ecef;
}

/* Card styling for content sections */
.card {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Report Modal Styling */
.report-type-card {
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
}

.report-type-card:hover {
    border-color: #8b9456;
}

.report-type-card.border-primary {
    border-color: #8b9456 !important;
    background-color: rgba(139, 148, 86, 0.1) !important;
}

.report-type-card .card-body {
    padding: 1rem;
}

.report-type-card h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-type-card.border-primary h6 {
    color: #8b9456;
}

.report-type-card .text-muted {
    font-size: 0.875rem;
}

/* Modal Improvements */
.modal-content {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    color: var(--text-dark);
    font-weight: 600;
}

/* Share Modal Buttons */
.share-buttons .btn {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    margin-bottom: 0.5rem;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #166fe5;
    color: white;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #1a91da;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20c05a;
    color: white;
}

.btn-linkedin {
    background: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background: #006699;
    color: white;
}

/* Copy Link Section */
.copy-link-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.copy-link-section .form-control {
    background: white;
    border: 1px solid #dee2e6;
}

.copy-link-section .btn {
    border-color: #dee2e6;
}

.copy-link-section .btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* Copy success animation */
.copy-success {
    background: #8b9456 !important;
    border-color: #8b9456 !important;
    color: white !important;
}

/* Form styling */
.form-control:focus {
    border-color: var(--primary-green);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Helper classes */
.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .producer-header {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .share-section {
        text-align: center;
        padding: 1rem;
    }
    
    .share-section .row {
        text-align: center;
    }
    
    .share-section .col-md-6:last-child {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    .btn-share {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
    
    .share-prompt {
        text-align: center;
    }
    
    .producer-map {
        height: 300px;
    }
    
    .modal-dialog {
        margin: 1rem 0.5rem;
        max-width: none;
    }
    
    .report-type-card {
        margin-bottom: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .share-buttons .col-6 {
        margin-bottom: 0.5rem;
    }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 992px) {
    .share-section .col-md-6:last-child {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    .btn-share {
        min-width: 180px;
    }
}