/*
 * Projects/Workbench/MNG/css/responsive.css
 * Media queries — single column on mobile/tablet
 */


/* ================================================================
   RESPONSIVE — single column on mobile/tablet
   ================================================================ */

@media (max-width: 850px) {

    #search-container {
        width: 100%;
    }

    #map-container {
        height: 320px;
    }

    .species-list {
        grid-template-columns: 1fr;
    }

    .wb-chart {
        gap: 1px;
    }

    .wb-val {
        display: none;
    }

    .fg-card .card-value {
        font-size: 1.2rem;
    }

    .identity-place-name {
        font-size: 1.6rem;
    }

    #hero img {
        height: auto;
    }

    #app {
        padding: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--text-primary);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 3px solid var(--panel-living-accent);
    }

    #site-nav .nav-user {
        margin-left: 0;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-projects {
        grid-template-columns: 1fr 1fr;
    }

    .footer-container {
        padding: 1.5rem 1rem;
    }

    .contact-form {
        max-width: 100%;
    }

    .about-hero-image {
        max-width: 100%;
    }

    /* Lightbox adjustments */
    .lightbox-overlay {
        padding: 1rem;
    }

    .lightbox-modal {
        max-width: 100%;
    }

    .lightbox-image {
        max-height: 280px;
    }

    .lightbox-links {
        flex-direction: column;
    }

    .lightbox-link {
        text-align: center;
    }
}

/* Touch devices — suppress hover tooltips */
@media (hover: none) {
    .icon-btn:hover .icon-tooltip {
        opacity: 0;
    }
}

@media (max-width: 500px) {
    #coord-input {
        flex-direction: column;
        align-items: stretch;
    }

    .coord-group {
        flex-wrap: wrap;
    }

    .coord-group input[type="text"] {
        flex: 1;
        min-width: 80px;
    }

    .icon-btn-group {
        justify-content: center;
    }

    .footer-projects {
        grid-template-columns: 1fr;
    }
}