/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary: #0a4a7c;
    --primary-light: #1a6db0;
    --primary-dark: #062d4d;
    --accent: #00c9a7;
    --accent-dark: #00a085;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text: #1a2b3c;
    --text-muted: #5a6d7e;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--surface-alt);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

/* ===========================
   Navigation Bar
   =========================== */
#navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 0;
    text-decoration: none;
    color: white;
    transition: transform var(--transition-fast);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.whale-icon {
    font-size: 28px;
    /* animation: whale-swim 5s ease-in-out infinite; */
}

@keyframes whale-swim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-2deg); }
    75% { transform: translateY(3px) rotate(2deg); }
}

.brand-text {
    color: white;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover:not(.disabled)::before {
    width: 60%;
}

.nav-link:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-link.active::before {
    width: 60%;
}

.nav-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 10px 16px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 8px;
        gap: 6px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ===========================
   Description Section
   =========================== */
#description {
    max-width: 1100px;
    margin: 24px auto;
    padding: clamp(16px, 3vw, 32px) clamp(20px, 4vw, 40px);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.7;
    animation: fade-slide-up 0.6s ease-out;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#description h1 {
    margin: 0 0 16px 0;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

#description h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

#description p {
    margin: 12px 0;
    color: var(--text-muted);
}

#description a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
    font-weight: 500;
}

#description a:hover {
    border-bottom-color: var(--primary-light);
    color: var(--primary);
}

@media (max-width: 768px) {
    #description {
        margin: 16px;
        padding: 20px 24px;
    }
    
    #description h1 {
        font-size: 22px;
    }
}

/* ===========================
   Map Container
   =========================== */
#map {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    margin: 0 auto;
    max-width: 1400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fade-scale-in 0.7s ease-out 0.2s backwards;
}

@keyframes fade-scale-in {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    #map {
        height: 60vh;
        border-radius: 0;
        margin: 16px;
        width: calc(100% - 32px);
    }
}

/* ===========================
   Controls Panel
   =========================== */
#controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    animation: slide-in-left 0.5s ease-out 0.4s backwards;
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.control-header {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.month-display {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0;
    color: var(--primary);
    letter-spacing: -0.01em;
}

#monthSlider {
    width: 100%;
    margin: 12px 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.control-button,
#playPause {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.control-button::after,
#playPause::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.control-button:hover::after,
#playPause:hover::after {
    width: 200px;
    height: 200px;
}

.control-button:hover,
#playPause:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.control-button:active,
#playPause:active {
    transform: translateY(0);
}

.species-toggle {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.species-toggle:hover {
    background: rgba(0,0,0,0.04);
}

.species-toggle input {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    #controls {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 14px;
        font-size: 10px;
    }
}

/* ===========================
   Info Panel (for click interactions)
   =========================== */
#infoPanel {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 360px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
}

.info-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#infoPanelContent {
    padding: 18px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

#infoPanelContent p {
    margin: 10px 0;
}

#speciesInfo {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.info-note {
    margin-top: 14px;
    padding: 12px;
    background: rgba(0, 201, 167, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.close-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #infoPanel {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* ===========================
   Animation Panel (Species page)
   =========================== */
#animPanel {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-radius: var(--radius-md);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    max-width: 240px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    animation: slide-in-right 0.5s ease-out 0.5s backwards;
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#animPanelHeader {
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    transition: background var(--transition-fast);
}

#animPanelHeader:hover {
    background: rgba(0,0,0,0.03);
}

#animPanelArrow {
    transition: transform var(--transition-base);
}

#animPanelBody {
    display: none;
    padding: 14px;
}

#animPanelBody label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

#animPanelBody input[type="range"],
#animPanelBody input[type="number"] {
    width: 100%;
    accent-color: var(--primary);
}

#animPanelBody small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

/* ===========================
   Caption Bar (Species page)
   =========================== */
#captionBar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    animation: fade-slide-down 0.5s ease-out 0.3s backwards;
}

@keyframes fade-slide-down {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    #captionBar {
        font-size: 11px;
        padding: 10px 14px;
    }
}

/* ===========================
   Month Display (Bottom)
   =========================== */
#monthBottom {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    letter-spacing: -0.01em;
    animation: fade-slide-up 0.5s ease-out 0.4s backwards;
}

/* ===========================
   Legend
   =========================== */
#legend {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    animation: slide-in-left 0.5s ease-out 0.5s backwards;
}

.legend-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.legend-blue { background: #0066ff; }
.legend-red { background: #d7263d; }
.legend-green { background: #00a65a; }

.legend-gradient {
    margin: 10px 0;
}

.gradient-bar {
    height: 22px;
    background: linear-gradient(to right, 
        rgba(100, 149, 237, 0.2),
        rgba(100, 149, 237, 0.5),
        rgba(100, 149, 237, 0.8),
        rgba(100, 149, 237, 1));
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.gradient-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.legend-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    #legend {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 12px 14px;
    }
}

/* ===========================
   Whale Species Gallery
   =========================== */
.species-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fade-slide-up 0.6s ease-out;
}

.gallery-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

.gallery-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.species-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    animation: fade-scale-in 0.6s ease-out backwards;
    text-decoration: none;
    color: inherit;
    display: block;
}

.species-card:nth-child(1) { animation-delay: 0.1s; }
.species-card:nth-child(2) { animation-delay: 0.15s; }
.species-card:nth-child(3) { animation-delay: 0.2s; }
.species-card:nth-child(4) { animation-delay: 0.25s; }
.species-card:nth-child(5) { animation-delay: 0.3s; }
.species-card:nth-child(6) { animation-delay: 0.35s; }
.species-card:nth-child(7) { animation-delay: 0.4s; }
.species-card:nth-child(8) { animation-delay: 0.45s; }
.species-card:nth-child(9) { animation-delay: 0.5s; }
.species-card:nth-child(10) { animation-delay: 0.55s; }

.species-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.species-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.species-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.species-card:hover .species-card-image img {
    transform: scale(1.08);
}

.species-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.species-card:hover .species-card-overlay {
    opacity: 1;
}

.species-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.badge-has-data {
    background: rgba(0, 201, 167, 0.9);
    color: white;
}

.badge-no-data {
    background: rgba(100, 100, 100, 0.7);
    color: white;
}

.species-card-content {
    padding: 20px;
}

.species-card-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.species-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.species-card-scientific {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.species-card-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.species-card-footer {
    padding: 14px 20px;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.species-card-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.species-card:hover .species-card-action {
    color: var(--primary-light);
    gap: 10px;
}

.species-card-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

/* ===========================
   Species Detail Page
   =========================== */
.species-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.species-hero {
    position: relative;
    height: 400px;
    margin: 0 -24px 32px;
    overflow: hidden;
}

.species-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.species-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.species-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
}

.species-hero-category {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 12px;
}

.species-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.03em;
}

.species-hero-scientific {
    font-size: 20px;
    font-style: italic;
    opacity: 0.85;
}

.species-back-link {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.species-back-link:hover {
    background: rgba(0,0,0,0.5);
    transform: translateX(-4px);
}

.species-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 960px) {
    .species-content {
        grid-template-columns: 1fr;
    }
}

.species-main {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.species-section {
    margin-bottom: 32px;
}

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

.species-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.species-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-line;
}

.species-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.species-stats-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.species-stats-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 20px 0;
}

.species-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.species-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.species-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.species-stat-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.species-status {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-endangered {
    background: #fee2e2;
    color: #dc2626;
}

.status-vulnerable {
    background: #fef3c7;
    color: #d97706;
}

.status-least-concern {
    background: #dcfce7;
    color: #16a34a;
}

.status-data-deficient {
    background: #e0e7ff;
    color: #4f46e5;
}

.fun-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fun-facts-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.fun-facts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fun-facts-list li::before {
    content: '🐋';
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 14px;
}

.species-map-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.species-map-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.species-map-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.species-map-container {
    height: 300px;
    position: relative;
}

.species-map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
}

.species-map-placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.species-map-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* ===========================
   Utility Classes
   =========================== */
.mapboxgl-popup-content {
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.mapboxgl-popup-close-button {
    font-size: 20px;
    padding: 0 10px;
}

/* ===========================
   Page Transitions
   =========================== */
.page-enter {
    animation: page-enter 0.4s ease-out;
}

@keyframes page-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 28px;
    }
    
    .gallery-header p {
        font-size: 15px;
    }
    
    .species-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .species-hero {
        height: 300px;
    }
    
    .species-hero-title {
        font-size: 32px;
    }
    
    .species-hero-scientific {
        font-size: 16px;
    }
    
    .species-hero-content {
        padding: 24px;
    }
    
    .species-main {
        padding: 24px;
    }
}
