/* Explain: Styles for navigation, floating actions, accessibility panel, cookie banner, and map popups. */
.nav-more {
    position: relative;
}

.nav-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    transition: color 300ms ease;
}

.nav-more-toggle:hover {
    color: var(--navy-color);
}

.nav-more-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 60;
    display: none;
    min-width: 13rem;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--white-color);
    box-shadow: var(--shadow-card);
}

.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu,
.nav-more.is-open .nav-more-menu {
    display: flex;
}

.nav-more-menu a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: background 200ms ease, color 200ms ease;
}

.nav-more-menu a:hover {
    background: var(--pale-blue);
    color: var(--navy-color);
}

.floating-actions {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: bottom 250ms ease;
}

@media (min-width: 640px) {
    .floating-actions {
        left: 1.5rem;
        bottom: 1.5rem;
    }
}

body.has-cookie-banner .floating-actions {
    bottom: 8.5rem;
}

body.has-cookie-banner #floatingContactButton {
    bottom: 8.5rem;
}

.floating-action {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-size: 1.35rem;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--navy-color) 26%, transparent);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.floating-action:hover {
    transform: translateY(-3px) scale(1.04);
}

.floating-action-wa {
    background: var(--whatsapp-color);
    color: var(--white-color);
}

.floating-action-tel {
    background: var(--navy-color);
    color: var(--yellow-color);
}

.floating-action-fb {
    background: var(--facebook-color);
    color: var(--white-color);
}

.floating-action-a11y {
    background: var(--accessibility-color);
    color: var(--white-color);
}

.a11y-panel {
    position: fixed;
    left: 1rem;
    bottom: 5.5rem;
    z-index: 9992;
    width: min(19rem, calc(100vw - 2rem));
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--white-color);
    box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
    .a11y-panel {
        left: 1.5rem;
        bottom: 6rem;
    }
}

body.has-cookie-banner .a11y-panel {
    bottom: 13rem;
}

.a11y-option {
    display: flex;
    min-height: 2.75rem;
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: var(--pale-blue);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-color);
    text-align: start;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.a11y-option:hover {
    border-color: var(--navy-color);
}

.a11y-option.is-active {
    background: var(--navy-color);
    border-color: var(--navy-color);
    color: var(--white-color);
}

html.a11y-links a {
    text-decoration: underline !important;
    text-underline-offset: 0.2em;
}

html.a11y-grayscale main,
html.a11y-grayscale header,
html.a11y-grayscale footer {
    filter: grayscale(100%);
}

html.a11y-contrast main,
html.a11y-contrast header,
html.a11y-contrast footer {
    filter: contrast(1.5) saturate(1.15);
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9995;
    border-top: 1px solid var(--border-color);
    background: var(--white-color);
    box-shadow: 0 -14px 40px color-mix(in srgb, var(--navy-color) 14%, transparent);
}

.gallery-filter {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--white-color);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--navy-color);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.gallery-filter:hover {
    border-color: var(--navy-color);
}

.gallery-filter.is-active {
    background: var(--navy-color);
    border-color: var(--navy-color);
    color: var(--yellow-color);
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: var(--white-color);
    box-shadow: var(--shadow-card);
    text-align: start;
    cursor: zoom-in;
    transition: transform 300ms ease, border-color 300ms ease;
}

.gallery-item:hover {
    transform: translateY(-0.3rem);
    border-color: color-mix(in srgb, var(--yellow-color) 70%, transparent);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--navy-color) 94%, transparent);
    backdrop-filter: blur(6px);
}

.gallery-lightbox.is-open {
    display: flex;
}

.map-pin-wrap {
    background: transparent;
    border: 0;
}

.map-pin {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid var(--white-color);
    background: var(--navy-color);
    color: var(--yellow-color);
    font-size: 1rem;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--navy-color) 42%, transparent);
}

.map-popup {
    min-width: 12rem;
    text-align: right;
}

.map-popup-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: var(--navy-color);
}

.map-popup-region {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--yellow-color);
}

.map-popup-link {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-weight: 800;
    color: var(--navy-color);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.map-popup-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.map-popup-nav a {
    display: inline-flex;
    min-height: 2.4rem;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.7rem;
    background: var(--pale-blue);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--navy-color);
    transition: background 200ms ease, color 200ms ease;
}

.map-popup-nav a:hover {
    background: var(--navy-color);
    color: var(--yellow-color);
}

.leaflet-popup-content-wrapper {
    border-radius: 1rem;
}