/* Versão completa e compatível sem CSS Custom Properties */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(247, 99, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 47, 109, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(247, 99, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

/* Skip to content link */
.visually-hidden-focusable {
    position: absolute;
    top: -40px;
    left: 6px;
    width: auto;
    height: auto;
    padding: 8px 16px;
    background: rgb(247, 99, 0);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.visually-hidden-focusable:focus {
    top: 6px;
}

/* Header Styles - Modern and Compact */
.site-header {
    background: linear-gradient(135deg, rgb(0, 47, 109) 0%, rgb(247, 99, 0) 100%);
    position: relative;
    padding: 2rem 0 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.site-header .container {
    position: relative;
    z-index: 2;
}

.logo-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    animation: logoFloat 6s ease-in-out infinite;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.logo-img {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-subtitle {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: slideInUp 1s ease-out 0.5s forwards;
    margin: 0;
}

@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Animation */
#main-content {
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.8s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Card Styles - Premium Look */
.card {
    background: #ffffff;
    border-radius: 24px;
    border: none;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    transform: scaleX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: rgb(0, 47, 109);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: rgb(247, 99, 0);
    font-size: 1.25em;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Form Controls - Modern Compact Design */
.form-label {
    font-weight: 600;
    color: rgb(0, 47, 109);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: rgb(247, 99, 0);
    font-size: 0.875rem;
}

.form-select, .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-select:focus, .form-control:focus {
    border-color: rgb(247, 99, 0);
    box-shadow: 
        0 0 0 3px rgba(247, 99, 0, 0.1),
        0 2px 8px rgba(247, 99, 0, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Garantir que os IDs dos filtros funcionem corretamente */
#estado, #cidade, #bairro {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#estado:focus, #cidade:focus, #bairro:focus {
    border-color: rgb(247, 99, 0);
    box-shadow: 
        0 0 0 3px rgba(247, 99, 0, 0.1),
        0 2px 8px rgba(247, 99, 0, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Buttons - Eye-catching Design */
.btn {
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(247, 99, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 16px rgba(247, 99, 0, 0.3);
    background: linear-gradient(135deg, #ff8533, rgb(247, 99, 0));
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

#btnMaisProximo {
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(247, 99, 0, 0.3);
    border: none;
}

#btnMaisProximo:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 16px rgba(247, 99, 0, 0.3);
    background: linear-gradient(135deg, #ff8533, rgb(247, 99, 0));
}

/* Compact Button */
.btn-compact {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
}

/* Filter Card Specific */
.filter-card .card-body {
    padding: 1.25rem;
}

.filter-card .mb-3 {
    margin-bottom: 1rem !important;
}

.filter-card .form-select {
    padding: 0.65rem 0.875rem;
    font-size: 0.875rem;
}

/* Map Styles - Premium Container */
#map {
    height: 600px;
    width: 100%;
    border-radius: 24px;
    border: 3px solid rgba(247, 99, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

#map:hover {
    border-color: rgba(247, 99, 0, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Garantir que o Leaflet funcione corretamente */
#map .leaflet-container {
    border-radius: 24px;
    z-index: 1;
}

#map .leaflet-control-container {
    z-index: 1000;
}

/* Loading do mapa */
#map.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 24px;
    z-index: 999;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Container do mapa - esconder no mobile */
.map-container {
    display: block;
}

/* Enhanced Marketplace Cards Styles */
#marketplacesList {
    gap: 1.5rem !important;
}

/* Individual Marketplace Card */
.marketplace-card {
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.marketplace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-card:hover {
    border-color: rgba(247, 99, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(247, 99, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.marketplace-card:hover::before {
    transform: scaleX(1);
}

/* Card Header with Icon */
.marketplace-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marketplace-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(247, 99, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-card:hover .marketplace-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(247, 99, 0, 0.4);
}

/* Card Content */
.marketplace-content {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.marketplace-name {
    font-weight: 700;
    color: rgb(0, 47, 109);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.3;
}

.marketplace-card:hover .marketplace-name {
    color: rgb(247, 99, 0);
}

/* Location Info */
.marketplace-location {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.location-item i {
    color: rgb(247, 99, 0);
    width: 16px;
    font-size: 0.85rem;
}

.location-primary {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
}

/* Visit Button */
.marketplace-btn {
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: auto;
    cursor: pointer;
}

.marketplace-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247, 99, 0, 0.3);
    color: white;
    text-decoration: none;
}

.marketplace-btn:hover::before {
    left: 100%;
}

.marketplace-btn:active {
    transform: translateY(0);
}

.marketplace-btn i {
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-btn:hover i {
    transform: translateX(3px);
}

/* Loading State */
.marketplace-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 280px;
}

/* Empty State */
.marketplace-empty {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.marketplace-empty i {
    font-size: 3rem;
    color: rgb(247, 99, 0);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.marketplace-empty h3 {
    color: rgb(0, 47, 109);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.marketplace-empty p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Header Section Enhanced */
.marketplaces-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(247, 99, 0, 0.1);
}

.marketplaces-title {
    color: rgb(0, 47, 109);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marketplaces-title i {
    color: rgb(247, 99, 0);
    font-size: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.marketplaces-subtitle {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Enhanced Badge */
.marketplaces-count {
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533) !important;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    animation: badgePulse 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(247, 99, 0, 0.3);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Loading Overlay - Smooth Animation */
#loadingOverlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(247, 99, 0, 0.2);
    border-top: 4px solid rgb(247, 99, 0);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer - Enhanced Design */
footer {
    background: linear-gradient(135deg, rgb(0, 47, 109), #1e5a96);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.ceo-section {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.ceo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    border-radius: 2px;
}

.ceo-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ceo-info .h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ceo-info .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
}

/* Interactive Elements */
.interactive-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-hover:hover {
    transform: translateY(-2px);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    #marketplacesList {
        gap: 1.25rem !important;
    }
    
    .marketplace-card {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 0 1rem;
    }
    
    .logo-container {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }
    
    .logo-img {
        max-width: 110px;
    }
    
    /* Layout mobile - filtros em largura total quando mapa escondido */
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .map-container {
        display: none !important;
    }
    
    /* Mapa invisível mas funcional para mobile */
    #map {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        width: 300px !important;
        height: 300px !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .filter-card .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    #marketplacesList {
        gap: 1rem !important;
    }
    
    .marketplace-header {
        padding: 1rem 1rem 0;
        gap: 0.75rem;
    }
    
    .marketplace-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .marketplace-content {
        padding: 0 1rem 1rem;
    }
    
    .marketplace-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .marketplace-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
    
    .marketplaces-title {
        font-size: 1.25rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    
    .marketplaces-title i {
        font-size: 1.125rem;
    }
    
    .marketplaces-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .marketplaces-subtitle {
        font-size: 0.875rem;
    }
    
    /* Compact mobile filters */
    .filter-card .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .filter-card .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .filter-card .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .btn-compact {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    /* Espaçamento entre seções no mobile */
    .row.g-3 > .col-md-3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 1.25rem 0 0.75rem;
    }
    
    .logo-img {
        max-width: 100px;
    }
    
    .logo-container {
        padding: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
    }
    
    #map {
        height: 300px;
        border-radius: 12px;
    }
    
    .marketplace-info {
        padding: 1rem;
    }
    
    .marketplace-card {
        margin-bottom: 0.75rem;
        min-height: auto;
    }
    
    .marketplace-header {
        padding: 0.875rem 0.875rem 0;
    }
    
    .marketplace-content {
        padding: 0 0.875rem 0.875rem;
    }
    
    .marketplace-name {
        font-size: 0.95rem;
    }
    
    .location-item {
        font-size: 0.8rem;
    }
    
    .marketplace-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .marketplaces-title {
        font-size: 1.125rem;
    }
    
    .marketplaces-subtitle {
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .filter-card .card-body {
        padding: 0.875rem;
    }
    
    .filter-card .form-select {
        padding: 0.5rem 0.675rem;
        font-size: 0.75rem;
    }
    
    .filter-card .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .btn-compact {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Main content spacing for mobile */
    #main-content {
        padding: 1rem 0 !important;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Grid Layout Improvements */
@media (min-width: 576px) {
    .marketplace-card {
        min-height: 320px;
    }
}

@media (min-width: 768px) {
    .marketplace-card {
        min-height: 340px;
    }
}

@media (min-width: 992px) {
    .marketplace-card {
        min-height: 360px;
    }
}

/* Animation Enhancements */
.marketplace-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease-out forwards;
}

.marketplace-card:nth-child(1) { animation-delay: 0.1s; }
.marketplace-card:nth-child(2) { animation-delay: 0.2s; }
.marketplace-card:nth-child(3) { animation-delay: 0.3s; }
.marketplace-card:nth-child(4) { animation-delay: 0.4s; }
.marketplace-card:nth-child(5) { animation-delay: 0.5s; }
.marketplace-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Animations */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility Improvements */
.marketplace-card:focus-within {
    outline: 3px solid rgba(247, 99, 0, 0.5);
    outline-offset: 2px;
}

.marketplace-btn:focus {
    outline: 2px solid rgba(247, 99, 0, 0.8);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(247, 99, 0), #ff8533);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(247, 99, 0);
}

/* Print Styles */
@media print {
    .marketplace-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .marketplace-btn {
        background: #333 !important;
    }
}

/* Fallbacks para navegadores antigos */
.no-cssvars .btn-primary {
    background: rgb(247, 99, 0) !important;
}

.no-cssvars .card-title {
    color: rgb(0, 47, 109) !important;
}

.no-cssvars .marketplace-name {
    color: rgb(0, 47, 109) !important;
}

.no-cssvars .form-label {
    color: rgb(0, 47, 109) !important;
}

.no-cssvars .marketplace-icon {
    background: rgb(247, 99, 0) !important;
}

.no-cssvars .marketplace-btn {
    background: rgb(247, 99, 0) !important;
}

.no-cssvars .site-header {
    background: rgb(0, 47, 109) !important;
}

/* Suporte para backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .logo-container {
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .ceo-info {
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .glass-effect {
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    #loadingOverlay {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* Garantir compatibilidade com flexbox */
.flex-1 {
    flex: 1;
}

/* Utilitários adicionais */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.position-fixed {
    position: fixed !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-opacity-75 {
    background-color: rgba(255, 255, 255, 0.75) !important;
}

/* Bootstrap Grid System */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-12, .col-md-3, .col-md-6, .col-md-9, .col-lg-4, .col-sm-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Gap utilities */
.g-3 > * {
    margin-bottom: 1rem;
}

.g-4 > * {
    margin-bottom: 1.5rem;
}

/* Padding utilities */
.p-0 {
    padding: 0 !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.bg-primary {
    background-color: rgb(247, 99, 0) !important;
}

/* Visually hidden */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}