/* CSS para Regulamentação de Pesca */
.regulation-section {
    width: 100%;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    /* Aligns with slides */
}

.state-selector-container {
    background: #f8fafc;
    padding: 1.5rem;
    margin: 0 1.5rem 1.5rem 1.5rem;
    /* Margin adjusts */
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.state-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.state-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

/* Horizontal Scroll Container */
/* Horizontal Scroll Container */
#regulation-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    /* Reduced bottom padding */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Default: Hide scrollbar (Mobile) */
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    /* Tighter bottom for dots */
}

/* Dots Navigation (Mobile Default) */
.regulation-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    /* Closer to cards */
    margin-bottom: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: #3182ce;
    transform: scale(1.2);
}

/* Tablet/Desktop Adjustments */
@media (min-width: 1024px) {
    #regulation-container {
        scrollbar-width: thin;
        /* Show thin scrollbar */
        padding-bottom: 1.5rem;
        /* Space for scrollbar */
    }

    #regulation-container::-webkit-scrollbar {
        display: block;
        /* Show scrollbar in Webkit */
        height: 8px;
    }

    /* Hide dots on desktop */
    .regulation-dots {
        display: none !important;
    }
}


/* Regulation Slides/Subsections */
.regulation-subsection {
    min-width: 85vw;
    /* Mobile default */
    max-width: 85vw;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;

    /* Internal scrolling for long content (like measures) */
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .regulation-subsection {
        min-width: 450px;
        max-width: 450px;
        scroll-snap-align: start;
    }
}

.regulation-subsection h3 {
    color: #2c5282;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

/* Piracema Cards */
.piracema-card {
    background: #fff5f5;
    border-left: 5px solid #e53e3e;
    padding: 1.5rem;
    border-radius: 8px;
}

.period-badge {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Measure Grid - Adjusted for slide constrained width */
.regulation-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.measure-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.measure-card:hover {
    transform: translateX(4px);
    border-left: 4px solid #3182ce;
}

.measure-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.measure-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Zones */
.zone-card {
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.zone-allowed {
    background: #f0fff4;
    border-left: 5px solid #48bb78;
}

.zone-forbidden {
    background: #fff5f5;
    border-left: 5px solid #f56565;
}

.regulation-note {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Empty State / Loading */
.loading-state,
.empty-state {
    width: 100%;
    /* Ensure these take full width inside formatting context if needed, 
       but typically they replace the content. 
       If inside the flex container, they should probably span nicely. */
    min-width: 300px;
    margin: 0 auto;
}