.species-empty-state {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 16px;
}

.species-empty-state__title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    color: #283618;
}

.species-empty-state__link {
    color: #0077b6;
    text-decoration: none;
    font-size: 16px;
}

.species-empty-state__link:hover {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .species-empty-state {
        padding: 40px 24px;
    }
}

@media (min-width: 1024px) {
    .species-empty-state {
        padding: 40px 32px;
    }
}

.species-gallery-section {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.species-gallery-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.species-gallery-section__title {
    margin: 0;
    color: #283618;
    font-size: 20px;
    font-weight: 700;
}

.species-gallery-section__meta {
    font-size: 14px;
    color: #6b7280;
}

.species-gallery-section__empty {
    border-radius: 10px;
    background: #f8f8f6;
    color: #6b7280;
    padding: 20px;
    text-align: center;
}

.species-gallery-section__preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.species-gallery-section__preview-item {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #ececec;
    aspect-ratio: 4 / 3;
}

.species-gallery-section__preview-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.species-gallery-section__preview-item:hover .species-gallery-section__preview-image {
    transform: scale(1.03);
}

.species-gallery-section__open-modal-btn {
    margin-top: 14px;
    border: 1px solid #283618;
    color: #283618;
    border-radius: 8px;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.species-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.species-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.species-gallery-modal__content {
    position: relative;
    margin: 0;
    width: min(1200px, 94vw);
    max-height: 94vh;
    overflow: auto;
    border-radius: 14px;
    background: #ffffff;
    padding: 18px;
}

.species-gallery-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.species-gallery-modal__title {
    margin: 0;
    color: #283618;
    font-size: 20px;
    font-weight: 700;
}

.species-gallery-modal__close-btn {
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #f7f7f7;
    color: #333;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.species-gallery-modal__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
}

.species-gallery-modal__card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}

.species-gallery-modal__image-button {
    border: 0;
    padding: 0;
    width: 100%;
    background: transparent;
    cursor: zoom-in;
}

.species-gallery-modal__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.species-gallery-lightbox {
    margin: 0;
    width: min(1100px, 96vw);
    max-height: 94vh;
    border-radius: 16px;
    background: #0c0f0b;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.species-gallery-lightbox__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.species-gallery-lightbox__title {
    margin: 0;
    color: #f4f4f2;
    font-size: 16px;
    font-weight: 600;
}

.species-gallery-lightbox__close-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f9fafb;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.species-gallery-lightbox__image {
    width: 100%;
    max-height: calc(94vh - 80px);
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 12px;
    background: #0c0f0b;
}

.species-gallery-modal__info {
    padding: 12px;
    font-size: 13px;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.species-gallery-modal__info p {
    margin: 0;
}

@media (max-width: 640px) {
    .species-gallery-section__head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 768px) {
    .species-gallery-section__preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .species-gallery-modal__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .species-gallery-modal__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.species-hero {
    background: linear-gradient(90deg, #283618 0%, #606c38 100%);
    padding: 32px 0;
}

.species-hero__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.species-hero__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 16px;
    transition: background 0.2s ease;
}

.species-hero__back-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.species-hero__content {
    margin-top: 20px;
}

.species-hero__family-pill {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
}

.species-hero__title {
    margin: 12px 0 0;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    font-style: italic;
    line-height: 1.08;
}

.species-hero__author {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.species-hero__records {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

.species-hero__gbif-link {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 16px;
    transition: background 0.2s ease;
}

.species-hero__gbif-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .species-hero__container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .species-hero__container {
        padding: 0 32px;
    }

    .species-hero__title {
        font-size: 54px;
    }
}

.species-insights-placeholder {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.species-insights-placeholder__card {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.species-insights-placeholder__title {
    margin: 0;
    color: #283618;
    font-size: 17px;
    font-weight: 700;
}

.species-insights-placeholder__text {
    margin: 10px 0 0;
    font-size: 14px;
    color: #6b7280;
}

@media (min-width: 1024px) {
    .species-insights-placeholder {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .species-insights-placeholder__card--wide {
        grid-column: span 2;
    }
}

.species-records-section {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.species-records-section__title {
    margin: 0 0 16px;
    color: #283618;
    font-size: 20px;
    font-weight: 700;
}

.species-map-section {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.species-map-section__title {
    margin: 0 0 16px;
    color: #283618;
    font-size: 20px;
    font-weight: 700;
}

.species-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.species-stats-grid__card {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.species-stats-grid__value {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #283618;
}

.species-stats-grid__label {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

@media (min-width: 768px) {
    .species-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.species-page {
    min-height: 100vh;
    background: #fefae0;
}

.species-page__content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 640px) {
    .species-page__content {
        padding: 32px 24px;
    }
}

@media (min-width: 1024px) {
    .species-page__content {
        padding: 32px;
    }
}

.mapa_mainStyle__JRMF1 {
    max-width: 100%;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mapa_mapFallback__59PKV {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f3f3f3;
    color: #555;
}

.mapa_leafMarker__8fWsJ {
    background: transparent;
    border: 0;
}

.mapa_leafMarkerInner__30P2H {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #bc6c25;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

