/* Modern NatureScope Styles */

/* ============= RESET & GLOBALS ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 85px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8fafb;
    position: relative;
    z-index: 0;
}

/* ============= HEADER & NAVIGATION ============= */
header {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 40%, #43a047 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
}

header.hide-header {
    transform: translateY(-100%);
    box-shadow: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.15rem 0 0;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.25s ease;
}

nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* ============= HERO SECTION ============= */
.hero-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px solid #2d5016;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: #1b3a12;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section>div>p {
    font-size: 1.1rem;
    color: #2d5016;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(45, 80, 22, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-text strong {
    display: block;
    color: #2d5016;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #666;
    font-size: 0.9rem;
}

/* ============= MAP CONTAINER ============= */
.map-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

#map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    z-index: 1;
}

/* Map legend (sighting groups) */
.map-legend {
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    color: #2c3e50;
    line-height: 1.6;
}

.map-legend strong {
    display: block;
    margin-bottom: 6px;
    color: #1b5e20;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
}

.legend-dot.fauna { background: #2e7d32; }
.legend-dot.flora { background: #7cb342; }
.legend-dot.fungi { background: #ef6c00; }
.legend-dot.other { background: #5c6bc0; }

/* ============= COUNTY INFO PANEL ============= */
.county-info {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.county-header {
    background: linear-gradient(135deg, #2d5016 0%, #3d7c2f 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.county-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.county-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-reset {
    background-color: #2196F3;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-reset:hover {
    background-color: #1976D2;
    transform: scale(1.05);
}

.btn-clear {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-clear:hover {
    background-color: #d43f31;
    transform: scale(1.05);
}

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

/* ============= SIGHTINGS CONTROLS (FILTERS) ============= */
.sightings-controls {
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2d5016 0%, #3d7c2f 100%);
    color: white;
    cursor: pointer;
}

.filter-title {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: transform 0.3s ease;
}

.filter-toggle-btn:hover {
    transform: scale(1.2);
}

.filters-collapsed .sightingsFilterGroup {
    display: none;
}

.sightingsFilterGroup {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filterRow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filterItem {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filterItem label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yearRangeLabel {
    color: #2d5016;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#yearFilter,
#typeFilter {
    padding: 0.65rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    background-color: white;
    transition: all 0.3s;
    color: #2c3e50;
}

#yearFilter:hover,
#typeFilter:hover {
    border-color: #2d5016;
    box-shadow: 0 2px 6px rgba(45, 80, 22, 0.1);
}

#yearFilter:focus,
#typeFilter:focus {
    outline: none;
    border-color: #3d7c2f;
    box-shadow: 0 0 0 3px rgba(61, 124, 47, 0.1);
}

.clearFilterBtn,
.showAllBtn {
    padding: 0.6rem 1.2rem;
    background-color: #2d5016;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clearFilterBtn:hover,
.showAllBtn:hover {
    background-color: #3d7c2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 80, 22, 0.2);
}

.sightingCount {
    color: #2d5016;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background-color: #e8f5e9;
    border-radius: 4px;
    display: inline-block;
}

/* ============= SIGHTINGS LIST ============= */
.sightings-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.sightings-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.sightingItem {
    padding: 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.sightingItem:hover {
    background-color: #f5f9f5;
}

.sightingItem-clickable {
    cursor: pointer;
}

.sightingItem-clickable:hover {
    background: linear-gradient(90deg, #e8f5e9 0%, #c8e6c9 100%);
}

.sightingItem-highlighted {
    background-color: #c8e6c9 !important;
    background: linear-gradient(90deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    border-left: 4px solid #2d5016;
    animation: highlightPulse 1s ease-in-out;
    transition: all 0.3s ease;
}

@keyframes highlightPulse {

    0%,
    100% {
        background: linear-gradient(90deg, #e8f5e9 0%, #c8e6c9 100%);
    }

    50% {
        background: linear-gradient(90deg, #a5d6a7 0%, #81c784 100%);
    }
}

.sightingContent {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    overflow: hidden;
    min-width: 0;
    text-align: center;
}

.sightingText {
    flex: 1;
    word-wrap: break-word;
    text-align: center;
    width: 100%;
}

.sightingText p {
    font-size: 0.9rem;
    color: #2c3e50;
    margin: 0.25rem 0;
}

.sightingText strong {
    color: #2d5016;
    display: block;
    font-size: 0.95rem;
}

.species-name-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.species-links {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.species-link {
    font-size: 1rem;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.species-link:hover {
    opacity: 1;
    transform: scale(1.15);
}

.species-link:focus {
    outline: 2px solid #2d5016;
    outline-offset: 2px;
    border-radius: 3px;
}

.results-header .species-name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.results-header .species-links {
    gap: 0.75rem;
    font-size: 1.2rem;
}

.sightingImage {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
    padding: 4px;
    color: #999;
    border: 1px solid #e0e0e0;
}

.imageLoading,
.imageNotFound,
.imageError {
    font-size: 0.65rem;
    color: #bbb;
    text-align: center;
    line-height: 1.4;
}

.sightingThumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.sightingThumbnail:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.noSightings {
    color: #999;
    font-style: italic;
    padding: 2rem 1rem;
    text-align: center;
}

/* ============= PAGINATION ============= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background-color: #fafafa;
    flex-wrap: nowrap;
}

.pagination button {
    padding: 0.6rem 1.2rem;
    background-color: #2d5016;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination button:hover:not(:disabled) {
    background-color: #3d7c2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 80, 22, 0.2);
}

.pagination button:disabled {
    background-color: #d0d0d0;
    cursor: not-allowed;
    transform: none;
}

.pageInfo {
    color: #2c3e50;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-shrink: 0;
}

.pageNumberInput {
    width: 50px;
    padding: 0.3rem 0.5rem;
    border: 2px solid #2d5016;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    background-color: white;
    transition: all 0.2s;
}

.pageNumberInput:focus {
    outline: none;
    border-color: #3d7c2f;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.pageNumberInput:hover {
    border-color: #3d7c2f;
}

/* ============= IMAGE MODAL/LIGHTBOX ============= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.modal-close:hover {
    background-color: rgba(231, 76, 60, 0.8);
    transform: scale(1.1);
}

#modalImage {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-caption {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    text-align: center;
    max-width: 90vw;
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============= IDENTIFY SECTION ============= */
#identify-section {
    background: white;
    padding: 4rem 2rem;
    margin: 3rem auto;
    width: 100%;
}

.identify-container {
    max-width: 980px;
    margin: 0 auto;
}

.identify-content {
    text-align: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.identify-content h2 {
    font-size: 2rem;
    color: #1b3a12;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.identify-content>p {
    font-size: 1rem;
    color: #2d5016;
    margin-bottom: 2.5rem;
}

.identify-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
    width: 100%;
}

/* Upload Area */
.upload-area {
    background: linear-gradient(135deg, #f0f9ee 0%, #e8f5e9 100%);
    border: 2px dashed #2d5016;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #3d7c2f;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.15);
}

.upload-area.dragover {
    border-color: #3d7c2f;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.2);
}

.upload-input-wrapper {
    width: 100%;
    text-align: center;
    position: relative;
}

.file-input {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    display: block;
}

.upload-text {
    text-align: center;
}

.upload-text strong {
    display: block;
    color: #2d5016;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Results Area */
.results-area {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identify-results {
    width: 100%;
    text-align: center;
}

.results-placeholder {
    color: #999;
    font-style: italic;
    margin: 0;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.results-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-info {
    text-align: left;
    width: 100%;
}

.results-info h3 {
    color: #2d5016;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #2c3e50;
}

.result-value {
    color: #2d5016;
    font-weight: 500;
}

.results-header {
    text-align: center;
    width: 100%;
}

.results-header h3 {
    color: #2d5016;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.confidence-score {
    display: inline-block;
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.method-badge {
    display: inline-block;
    background: #e0f7e0;
    color: #2d5016;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #c8e6c9;
}

.details-section {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.details-section h4 {
    color: #2d5016;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 0.5rem;
}

.alternatives-list,
.objects-list,
.colors-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alternative-item,
.object-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #81c784;
}

.alternative-item span:first-child,
.object-item span:first-child {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

.confidence-badge {
    background: #e8f5e9;
    color: #2d5016;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 6px;
}

.color-box {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-info span {
    font-size: 0.9rem;
}

.color-info span:first-child {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.color-percentage {
    color: #666;
    font-size: 0.8rem;
}

.detected-text {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    font-style: italic;
    color: #2c3e50;
    border-left: 3px solid #81c784;
    margin: 0;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e8f5e9;
    border-top: 4px solid #2d5016;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #2d5016;
    font-weight: 600;
    font-size: 1.1rem;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.success-message {
    background-color: #e8f5e9;
    color: #2d5016;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ============= FOOTER ============= */
footer {
    background: linear-gradient(135deg, #2d5016 0%, #1b3a12 100%);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #c8e6c9;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.footer-section a {
    color: #c8e6c9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1024px) {
    html {
        scroll-padding-top: 80px;
    }

    .map-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    #map {
        height: 500px;
    }

    .county-info {
        height: 500px;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .identify-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
    }

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

    nav {
        justify-content: center;
    }

    nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .logo-text h1,
    .logo-section h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .hero-section {
        padding: 2.5rem 1rem;
    }

    .hero-section h2 {
        font-size: 1.6rem;
    }

    .hero-section>div>p {
        font-size: 1rem;
    }

    .map-container {
        padding: 0 1rem;
    }

    #map,
    .county-info {
        height: 400px;
    }

    .pagination {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .pagination button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .pageInfo {
        min-width: 140px;
        font-size: 0.75rem;
    }

    .pageNumberInput {
        width: 40px;
        padding: 0.2rem 0.3rem;
        font-size: 0.8rem;
    }

    .sightingImage {
        width: 60px;
        height: 60px;
    }

    #modalImage {
        max-width: 95vw;
        max-height: 80vh;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 70px;
    }

    header {
        padding: 0.875rem 1rem;
    }

    .logo-text h1,
    .logo-section h1 {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .tagline {
        font-size: 0.7rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.85rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-section h2 {
        font-size: 1.3rem;
    }

    .hero-section>div>p {
        font-size: 0.95rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .map-container {
        padding: 0;
        gap: 1rem;
        margin: 1rem auto;
    }

    #map,
    .county-info {
        height: 300px;
    }

    .county-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .county-name {
        font-size: 1rem;
        flex: 1;
        min-width: 150px;
    }

    .btn-clear {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .btn-reset {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .county-controls {
        flex-wrap: wrap;
    }

    .sightingsFilterGroup {
        gap: 0.75rem;
    }

    .filterItem {
        gap: 0.3rem;
    }

    .filterItem label {
        font-size: 0.75rem;
    }

    #yearFilter,
    #typeFilter {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .clearFilterBtn,
    .showAllBtn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .sightingImage {
        width: 50px;
        height: 50px;
    }

    .sightingItem {
        padding: 1rem 1rem;
        gap: 0.75rem;
    }

    .sightingText {
        font-size: 0.85rem;
    }

    .species-link {
        font-size: 0.9rem;
    }

    .species-links {
        gap: 0.3rem;
    }

    .pagination {
        margin: 0;
        padding: 0.75rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .pageInfo {
        font-size: 0.7rem;
        min-width: 110px;
    }

    .pageNumberInput {
        width: 35px;
        font-size: 0.7rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal-caption {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        margin-top: 0.75rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 36px;
        height: 36px;
    }

    #modalImage {
        max-width: 98vw;
        max-height: 70vh;
    }
}

/* ============= SCROLLBAR STYLING ============= */
.sightings-list::-webkit-scrollbar {
    width: 6px;
}

.sightings-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.sightings-list::-webkit-scrollbar-thumb {
    background: #2d5016;
    border-radius: 3px;
}

.sightings-list::-webkit-scrollbar-thumb:hover {
    background: #3d7c2f;
}