:root {
    --primary-green: #5a7d2a;
    --accent-gold: #d9a566;
    --deep-red: #8f4e4e;
    --text-dark: #2c3e50;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Quattrocento Sans', sans-serif;
    line-height: 1.6;
}

/* Main Search Section (replaces hero-section) */
.main-search-section {
    background: #f5f1e8;
    color: #374151;
    padding: 4rem 0;
    margin-top: 76px; /* Account for fixed navbar */
    position: relative;
    overflow: hidden;
}

.main-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.main-search-section .display-4 {
    font-family: 'Amarante', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #374151;
    animation: slideUp 1s ease-out;
}

.main-search-section .lead {
    font-size: 1.25rem;
    color: #374151;
    animation: slideUp 1s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Container */
.search-container {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    margin-top: 2rem;
    border: 1px solid #dee2e6;
    position: relative;
    z-index: 2;
    animation: slideUp 1s ease-out 0.4s both;
}

/* Tab Styling */
.search-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
    background: none;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-green);
    border: none;
}

/* Search Input */
.search-input {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #8b9456;
    box-shadow: none;
}

/* Search Button */
.search-btn {
    background: #8b9456;
    border: none;
    border-radius: 4px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #7a8349;
}

/* Filter Buttons - Modern Design */
.btn-group.flex-wrap {
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
}

.btn-group.flex-wrap .btn {
    margin: 0 !important;
    border-radius: 25px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500;
    border: 2px solid #e9ecef;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-group.flex-wrap .btn:hover {
    border-color: var(--primary-green);
    background: rgba(139, 148, 86, 0.05);
    transform: translateY(-2px);
}

.btn-group.flex-wrap .btn-check:checked + .btn {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 148, 86, 0.3);
}

/* Producer List Layout */
.producers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.producer-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.producer-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-gold));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.producer-list-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.producer-list-item:hover::before {
    transform: scaleY(1);
}

.producer-list-content {
    flex: 1;
    min-width: 0;
}

.producer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.producer-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.producer-name {
    font-family: 'Amarante', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.producer-types {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.type-badge.type-wine { background: linear-gradient(135deg, #8B0000, #A52A2A); }
.type-badge.type-beer { background: linear-gradient(135deg, #DAA520, #FFD700); color: #2c3e50; }
.type-badge.type-spirits { background: linear-gradient(135deg, #4B0082, #663399); }
.type-badge.type-cider { background: linear-gradient(135deg, #228B22, #32CD32); }
.type-badge.type-mead { background: linear-gradient(135deg, #FF8C00, #FFA500); }
.type-badge.type-other { background: linear-gradient(135deg, #696969, #808080); }

.producer-location {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.producer-location i {
    color: var(--primary-green);
    margin-right: 0.25rem;
}

.producer-year {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding-left: 1rem;
    border-left: 1px solid #dee2e6;
}

.producer-description {
    margin: 0.75rem 0 0 0;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.producer-list-actions {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.btn-view-producer {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), #9ba663);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(139, 148, 86, 0.2);
}

.btn-view-producer:hover {
    background: linear-gradient(135deg, #7a8349, var(--primary-green));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 148, 86, 0.3);
}

.btn-view-producer i {
    transition: transform 0.3s ease;
}

.btn-view-producer:hover i {
    transform: translateX(4px);
}

/* Map Container */
.map-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.producer-map {
    height: 400px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

/* Map Markers */
.custom-producer-marker {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.marker-wine { background-color: #8B0000; }
.marker-beer { background-color: #DAA520; }
.marker-spirits { background-color: #4B0082; }
.marker-cider { background-color: #228B22; }
.marker-mead { background-color: #FF8C00; }
.marker-other { background-color: #696969; }

/* Statistics Section */
.stat-highlight {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-red) 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.stat-number {
    font-family: 'Amarante', serif;
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* About Section Info Cards */
.about-content {
    padding: 1rem 0;
}

/* About Section Headers */
.about-main-title {
    font-family: 'Amarante', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.about-section-header {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.about-section-header i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.about-section-header h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.info-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card p {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Highlighted Info Card for Producer Features */
.info-card-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 20px rgba(139, 148, 86, 0.15);
}

.info-card-highlight:hover {
    box-shadow: 0 6px 25px rgba(139, 148, 86, 0.25);
}

/* Feature List Styling */
.feature-list {
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-left-color: var(--primary-green);
    background: rgba(139, 148, 86, 0.05);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.feature-item strong {
    color: var(--text-dark);
    margin-right: 0.25rem;
}

/* Action Buttons */
.about-content .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-content .btn-primary {
    background: linear-gradient(135deg, var(--primary-green), #9ba663);
    border: none;
    box-shadow: 0 4px 12px rgba(139, 148, 86, 0.3);
}

.about-content .btn-primary:hover {
    background: linear-gradient(135deg, #7a8349, var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 148, 86, 0.4);
}

.about-content .btn-outline-warning {
    border: 2px solid #ffc107;
    color: #856404;
    background: white;
}

.about-content .btn-outline-warning:hover {
    background: #ffc107;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--light-bg) 100%);
}

.section-title {
    font-family: 'Amarante', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* Accordion Styling */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 10px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(45deg, rgba(90, 125, 42, 0.1), rgba(217, 165, 102, 0.1));
    color: var(--primary-green);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(90, 125, 42, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* Legacy sections preserved for compatibility */
.discover-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-red) 100%);
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.search-section {
    padding: 100px 0;
    background: white;
}

.features-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-green);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.producer-cta {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.transparency-section {
    padding: 80px 0;
    background: linear-gradient(45deg, #e3f2fd, #f8f9fa);
}

.transparency-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.info-highlight {
    background: linear-gradient(45deg, #e8f5e8, #f0f8f0);
    border-left: 5px solid var(--primary-green);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Button styles from original */
.btn-hero {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
}

.btn-hero-primary {
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 8px 25px rgba(217, 165, 102, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(217, 165, 102, 0.4);
    color: var(--text-dark);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-3px);
}

/* Legacy map styles for backward compatibility */
.map-container.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Ensure all buttons in the empty-state have consistent sizing */
.empty-state .btn {
    /* Force consistent height and alignment for all button types */
    min-height: 44px;
    padding: 0.75rem 1.5rem !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-width: 1px !important;
    box-sizing: border-box !important;
}

/* Ensure consistent spacing for icons within buttons */
.empty-state .btn i {
    margin-right: 0.5rem !important;
}

/* Alternative approach - make the container use baseline alignment */
.empty-state .d-flex {
    align-items: baseline !important;
}

/* Fix alignment for the about section buttons too */
.about-content .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-width: 1px !important;
    box-sizing: border-box !important;
    vertical-align: top !important; /* Extra safety for inline-flex elements */
}
/* Modern filter button layout - handled in main styles above */

/* Responsive Design */
@media (max-width: 768px) {
    .main-search-section .display-4 {
        font-size: 2.5rem;
    }

    .main-search-section .lead {
        font-size: 1.1rem;
    }

    .search-container {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .producer-map {
        height: 300px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-highlight {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .btn-hero {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* About Section Responsive */
    .about-main-title {
        font-size: 2rem;
    }

    .about-section-header h4 {
        font-size: 1.25rem;
    }

    .about-section-header i {
        font-size: 1.25rem;
    }

    .feature-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-item i {
        margin-bottom: 0.5rem;
    }

    .about-content .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* List item responsive */
    .producer-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .producer-header {
        flex-direction: column;
        gap: 1rem;
    }

    .producer-name {
        font-size: 1.25rem;
    }

    .producer-location {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .producer-year {
        padding-left: 0;
        border-left: none;
    }

    .producer-list-actions {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .btn-view-producer {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .btn-group.flex-wrap .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem !important;
        border-radius: 20px !important;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .search-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .search-btn {
        padding: 0.875rem 1.5rem;
    }

    .producer-list-item {
        padding: 1rem;
        border-radius: 10px;
    }

    .producer-name {
        font-size: 1.15rem;
    }

    .type-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .producer-description {
        font-size: 0.9rem;
    }

    .btn-view-producer {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}