/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.gnxref-wrapper {
    position: relative;
    font-family: 'Switzer Regular', sans-serif;
    line-height: 1.5;
    overflow: visible;
    background: var(--color-black, #0D0F12);
    color: #E8E6E3;
    margin-top:50px;
}
@media screen and (max-width: 768px) {
    .gnxref-wrapper {
        margin-top:-60px;
    }
}
.gnxref-wrapper [hidden] {
    display: none !important;
}

.gnxref-map-container {
    position: relative;
}

/* ── Map ──────────────────────────────────────────────────────────────────── */
.gnxref-map {
    width: 100%; height: 800px;
    background-color: var(--color-black, #0D0F12);
    display: block;
    touch-action: none;
}

@media screen and (max-width: 990px) {
    .gnxref-map { height: 570px; }
}

@media screen and (max-width: 768px) {
    .gnxref-map { height: 450px; }
}

.gnxref-map .leaflet-tile-pane {
    display: none;
}

/* ── Zoom controls (+/−) ─────────────────────────────────────────────────── */
.gnxref-map .leaflet-control-zoom {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gnxref-map .leaflet-control-zoom a {
    background: rgba(30, 30, 30, 0.85);
    color: #E8E6E3;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 18px;
    font-weight: normal;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.gnxref-map .leaflet-control-zoom a:last-child {
    border-bottom: none;
}

.gnxref-map .leaflet-control-zoom a:hover {
    background: rgba(60, 60, 60, 0.9);
    color: #FBBA21;
}

/* ── Pin markers ─────────────────────────────────────────────────────────── */
.gnxref-pin {
    background: none !important;
    border: none !important;
    cursor: pointer;
}

/* Pulsing outer circle animation */
@keyframes gnxref-pulse {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.15); opacity: 0.4; }
    100% { transform: scale(1);   opacity: 1; }
}

.gnxref-pin svg {
    overflow: visible;
}

.gnxref-pin svg .gnxref-pin-outer {
    animation: gnxref-pulse 2s ease-in-out infinite;
    transform-origin: center;
}

/* Hover state — yellow */
.gnxref-pin:hover svg .gnxref-pin-outer,
.gnxref-pin:hover svg .gnxref-pin-inner {
    stroke: #FBBA21;
}

.gnxref-pin:hover svg .gnxref-pin-inner {
    fill: #FBBA21;
}

/* Active pin */
.gnxref-pin--active svg .gnxref-pin-outer,
.gnxref-pin--active svg .gnxref-pin-inner {
    stroke: #FBBA21;
}

.gnxref-pin--active svg .gnxref-pin-inner {
    fill: rgba(251, 186, 33, 0.3);
}

/* Location name label below pin */
.gnxref-pin-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    font-family: 'Switzer Medium', sans-serif; font-weight: normal;
    color: #E8E6E3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gnxref-pin:hover .gnxref-pin-label,
.gnxref-pin--active .gnxref-pin-label {
    opacity: 1;
}

.gnxref-pin--big .gnxref-pin-label {
    font-size: 16px;
}

/* ── Legend panel (right side) ───────────────────────────────────────────── */
.gnxref-legend {
    position: absolute;
    top: 70%;
    right: 7px;
    transform: translateY(-50%);
    z-index: 1000;
    background: #16191E;
    
    border-radius: 8px;
    padding: 20px 24px;
    min-width: 220px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gnxref-legend-item {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.gnxref-legend-item:last-child {
    margin-bottom: 0;
}

.gnxref-legend-label {
    font-size: 12px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.gnxref-legend-value {
    font-size: 18px;
    font-family: 'Switzer Bold', sans-serif; font-weight: normal;
    color: #E8E6E3;
}

/* ── Popup overlay ───────────────────────────────────────────────────────── */
.gnxref-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    background: #0D0F12;
    border: 1px solid #FBBA21;
    border-radius: 12px;
    padding: 24px;
    width:100%;
    max-width: 327px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.gnxref-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /*background: rgba(255, 255, 255, 0.1);*/
    background:none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #FBBA21;
    transition: background 0.2s;
}
.gnxref-popup-close svg {
    width:18px; height: 18px; 
    
}
.gnxref-popup-close:hover {
    background: rgba(251, 186, 33, 0.2);
}

.gnxref-popup-header {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.gnxref-popup-count {
    font-size: 12px;
    font-family: 'Switzer Light', sans-serif; font-weight: normal;
    color: #FFFFFF;
}

.gnxref-popup-header-sep {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.gnxref-popup-location {
    font-size: 12px;
    font-family: 'Switzer Regular', sans-serif; font-weight: normal;
    color: #FFFFFF;
}

.gnxref-popup-year {
    font-size: 12px;
    font-family: 'Switzer Light', sans-serif; font-weight: normal;
    color: #FFFFFF;
}

/* Swiper slide content */
.gnxref-popup-slide {
    padding: 0;
}

.gnxref-popup-slide-title {
    font-size: 17px;
    font-family: 'Switzer Bold', sans-serif;
    font-weight: normal;
    color: #E8E6E3;
    margin-bottom: 18px;
    line-height: 1.4;
}

.gnxref-popup-slide-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    margin-top: 5px;
}

.gnxref-popup-slide-tech {
    font-size: 11px;
    color: #FBBA21;
    background: rgba(251, 186, 33, 0.1);
    border: 1px solid rgba(251, 186, 33, 0.3);
    border-radius: 4px;
    padding: 2px 8px;
}

.gnxref-popup-slide-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gnxref-popup-slide-partner-logo {
    max-height: 14px;
    width: auto;
    display: block;
}

.gnxref-popup-slide-partner-text {
    font-size: 12px;
    color: #E8E6E3;
}

.gnxref-popup-slide-desc {
    font-size: 13px;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0 0 12px;
}

.gnxref-popup-slide-logo {
    max-height: 25px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.gnxref-popup-slide-stats {
    display: flex;
    gap: 24px;
}

.gnxref-popup-slide-stat {
    flex: none;
    /*background: #16191E;*/

    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
    padding:10px 0; text-align: left;
}

.gnxref-popup-slide-stat:only-child {
    text-align: left;
    padding-left: 0;
}

.gnxref-popup-slide-stat-value {
    display: block;
    font-size: 18px;
    font-family: 'Switzer Bold', sans-serif; font-weight: normal;
    color: #FBBA21;
}

.gnxref-popup-slide-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Popup navigation */
.gnxref-popup-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.gnxref-popup-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.gnxref-popup-nav-btn:hover {
    opacity: 1;
}

.gnxref-popup-nav-arrow {
    height: 16px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(76%) sepia(60%) saturate(1000%) hue-rotate(2deg) brightness(103%) contrast(97%);
}

.gnxref-popup-counter {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 40px;
    text-align: center;
}

/* ── Filter bar (below map) ──────────────────────────────────────────────── */
.gnxref-filters {
    padding: 20px 24px;
    display: flex;
    gap: 24px;
    /* position: sticky;
    top: 0;
    z-index: 100; */
    background: rgba(13, 15, 18, 0.9);
    /* transition: top 0.3s ease; */
}

/* .gnxref-filters--with-header {
    top: 85px;
} */
@media screen and (max-width: 990px) {
    .gnxref-filters {
        padding:20px 0;
    }
}
.gnxref-filter-row {
    display: flex;
    flex-direction: column; 
    gap: 12px; width:48%;
}

.gnxref-filter-row:first-child {
    flex-shrink: 0;
}

.gnxref-filter-row:last-child {
    flex: 1;
}

.gnxref-filter-label {
    font-size: 18px;
    font-family: 'Switzer Medium', sans-serif; font-weight: normal;
    color: #E8E6E3;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gnxref-filter-label img {
    width: 24px;
    height: 24px;
}

.gnxref-filter-chevron {
    display: none;
}

@media screen and (max-width: 1250px) {
    .gnxref-filters {
        flex-direction: column;
        position: static;
    }
}

@media screen and (max-width: 575px) {
    .gnxref-filter-label {
        font-size: 16px;
    }
}

.gnxref-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; max-width:330px;
}
.gnxref-filter-row.second .gnxref-filter-buttons {
    max-width:520px;
}
.gnxref-filter-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 151px;
    height: 84px;
    border: none;
    border-radius: 6px;
    background: #16191E;
    color: #E8E6E3;
    font-family: 'Switzer Regular', sans-serif;
    font-size: 18px;
    font-family: 'Switzer Medium', sans-serif; font-weight: normal;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
@media screen and (max-width: 990px) {
    .gnxref-filter-btn {
        width:150px;
        font-size:14px;
    }

    .gnxref-filter-label {
        cursor: pointer;
    }

    .gnxref-filter-chevron {
        display: block;
        width: 16px;
        height: auto;
        margin-left: auto;
        transition: transform 0.3s, filter 0.3s;
    }

    .gnxref-filter-row.gnxref-filter-open .gnxref-filter-chevron {
        transform: rotate(180deg);
        filter: brightness(0) saturate(100%) invert(76%) sepia(60%) saturate(1000%) hue-rotate(2deg) brightness(103%) contrast(97%);
    }

    .gnxref-filter-buttons {
        display: none;
    }

    .gnxref-filter-row.gnxref-filter-open .gnxref-filter-buttons {
        display: flex;
    }
}

.gnxref-filter-btn:hover {
    background: #FBBA21;
    color: #0D0F12;
}
.partnerek ul li::before {
    display: none;
}
.partnerek ul li {
    margin-bottom:15px;
}

.gnxref-filter-btn:hover .gnxref-filter-btn-icon {
    filter: brightness(0);
}

.gnxref-filter-btn--active {
    background: #FBBA21;
    color: #0D0F12;
}

.gnxref-filter-btn-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.gnxref-filter-btn--active .gnxref-filter-btn-icon {
    filter: brightness(0);
}

/* ── Reference list ────────────────────────────────────────────────────── */
.gnxref-reflist {
    padding: 40px 0;
}

.gnxref-ref {
    padding: 40px 0;
    
}

.gnxref-ref:first-child {
    
}

.gnxref-ref--hidden {
    display: none;
}

.gnxref-ref__title {
    font-family: 'Switzer Bold', sans-serif;
    font-size: 24px;
    color: #E8E6E3;
    margin-bottom: 20px;
}

@media screen and (max-width: 990px) {
    .gnxref-ref__title { font-size: 20px; }
}

.gnxref-ref__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 26px;
    margin-top: 20px;
}

.gnxref-ref__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 80px;
    border-radius: 6px;
    background: #16191E;
}

.gnxref-ref__badge-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.gnxref-ref__hero {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.gnxref-ref__hero img,
.gnxref-ref__hero video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.gnxref-ref__gallery {
    margin-bottom: 20px;
    position: relative;
}

.gnxref-gallery-swiper {
    overflow: hidden;
}

.gnxref-gallery-swiper .swiper-slide .gnxref-gallery-item {
    display: block;
}

.gnxref-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #16191E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #E8E6E3;
    transition: color 0.3s ease, background 0.3s ease;
}

.gnxref-gallery-arrow:hover {
    color: #FBBA21;
}

.gnxref-gallery-arrow svg {
    width: 20px;
    height: auto;
}

.gnxref-gallery-prev {
    left: 20px;
}

.gnxref-gallery-next {
    right: 20px;
}

.gnxref-gallery-swiper .swiper-slide .gnxref-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.gnxref-ref__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    
}

@media screen and (max-width: 575px) {
    .gnxref-ref__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.gnxref-ref__meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gnxref-ref__meta-label {
    font-family: 'Switzer Medium', sans-serif;
    font-size: 16px;
    color: #E8E6E3;
}

.gnxref-ref__logo {
    height: 40px;
    width: auto;
}

.gnxref-ref__meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gnxref-ref__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Switzer Regular', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.gnxref-ref__meta-item img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.gnxref-ref__content {
    margin-bottom: 20px;
    font-family: 'Switzer Light', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #E8E6E3;
}

.gnxref-ref__content p {
    margin-bottom: 10px;
}

.gnxref-ref__section {
    margin-bottom: 20px;
}

.gnxref-ref__section h3 {
    font-family: 'Switzer Bold', sans-serif;
    font-size: 20px;
    color: #E8E6E3;
    margin-bottom: 10px;
}

.gnxref-ref__section p {
    font-family: 'Switzer Light', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #E8E6E3;
}
.gnxref-ref__section *:not(h3), .gnxref-ref__content *:not(h3) {
    font-family: 'Switzer Light', sans-serif !important;
    color: #E8E6E3 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    font-weight: 300 !important;
}
.gnxref-ref__section.partnerek li strong {
    font-family: 'Switzer Bold', sans-serif !important;
}

.gnxref-ref__content ul,
.gnxref-ref__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gnxref-ref__content ul li::before,
.gnxref-ref__section ul li::before {
    display: none;
}

.gnxref-ref__stats {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.gnxref-ref__stat {
    padding: 12px 20px;
    background: #16191E;
    border-radius: 4px;
    text-align: center;
}

.gnxref-ref__stat-number {
    font-family: 'Switzer Medium', sans-serif;
    font-size: 32px;
    color: #FBBA21;
    line-height: 1.2;
}

@media screen and (max-width: 990px) {
    .gnxref-ref__stat-number { font-size: 26px; }
}
@media screen and (max-width: 575px) {
    .gnxref-ref__stat-number { font-size: 24px; }
}

.gnxref-ref__stat-label {
    font-family: 'Switzer Light', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.gnxref-reflist__more {
    text-align: left;
    margin-top: 30px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .gnxref-legend {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px 20px;
    }

    .gnxref-legend-item {
        margin-bottom: 0;
        flex: 1;
        min-width: 120px;
    }

    .gnxref-popup {
        min-width: auto;
        width: calc(100% - 32px);
        max-width: none;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 12px;
    }

    .gnxref-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; width:100%;
    }

    .gnxref-filter-label {
        min-width: auto;
    }
}
