.map-page .tabs{ display: flex; gap: 4px; border-bottom: 1px solid var(--grey-222); margin-bottom: 25px; }
.map-page .tab{ position: relative; bottom: -1px; padding: 12px 24px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--grey-888); font-family: var(--inter); font-size: 16px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.map-page .tab:hover{ color: var(--white); }
.map-page .tab.active{ color: var(--yellow); border-bottom-color: var(--yellow); }
.map-page .tab:focus-visible{ outline: 2px solid var(--yellow); outline-offset: -2px; border-radius: 4px; }

.map-page .tab-panel[hidden]{ display: none; }

.map-page .map-totals{ padding: 0; margin-bottom: 20px; display: grid; grid-template-columns: repeat(3,1fr); }
.map-page .map-totals li{ display: flex; align-items: center; padding: 10px 25px; }
.map-page .map-totals li .value{ font-size: 46px; font-weight: 600; margin-right: 20px; font-family: var(--kanit); }
.map-page .map-totals li .label{ font-weight: normal; font-size: 14px; line-height: 1.3; margin-bottom: 0; position: relative; color: var(--grey-999); }
.map-page .map-totals li .label span{ display: block; }

.map-page .map-section{ background: rgba(0, 0, 0, .5); box-shadow: 0 4px 30px rgba(0, 0, 0, .1); backdrop-filter: blur(10px); border-radius: 10px; padding: 0; margin-bottom: 50px; }

.map-page .map-canvas{ position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 8px; }
.map-page .map-loading{ display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: var(--grey-777); font-size: 15px; }

.map-page .map-svg{ display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.map-page .map-canvas.arrastrando .map-svg{ cursor: grabbing; }
.map-page .map-svg path{ stroke: var(--grey-333); stroke-width: .5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-page .map-svg path.jugado{ transition: opacity .15s; }
.map-page .map-svg path.jugado:hover,
.map-page .map-svg path.jugado:focus,
.map-page .map-svg path.jugado.resaltado{ stroke: var(--white); stroke-width: 1.2; outline: none; }

.map-page .map-svg path.jugado:hover,
.map-page .map-svg path.jugado.resaltado{ paint-order: stroke fill; }

.map-page .map-zoom{ position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.map-page .map-zoom button{ width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(17,17,17,.85); border: 1px solid var(--grey-444); border-radius: 8px; color: var(--white); font-size: 20px; cursor: pointer; transition: var(--transition); backdrop-filter: blur(4px); }
.map-page .map-zoom button:hover:not(:disabled){ background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.map-page .map-zoom button:disabled{ opacity: .35; cursor: default; }

.map-page .map-bottom{ padding: 20px; border-top: 1px solid var(--grey-222); padding-top: 20px; }

.map-page .map-legend{ display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.map-page .legend-title{ color: var(--grey-888); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.map-page .legend-scale{ display: flex; flex-wrap: wrap; gap: 8px 16px; }
.map-page .legend-scale li{ display: flex; align-items: center; gap: 7px; color: var(--white-ccc); font-size: 13px; }
.map-page .legend-scale .swatch{ width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--grey-333); }

.map-page .map-hint{ margin-top: 12px; color: var(--grey-666); font-size: 12px; line-height: 1.5; }
.map-page .map-hint .solo-touch{ display: none; }

.map-page .section-title{ display: flex; align-items: center; }
.map-page .section-title span{ width: 35px; min-width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; background: var(--grey-222); color: var(--white); border-radius: 100%; margin-right: 15px; font-size: 16px; margin-left: 10px; }

@media (hover: none), (pointer: coarse) {
    .map-page .map-hint .solo-mouse{ display: none; }
    .map-page .map-hint .solo-touch{ display: inline; }
}

.map-page .map-tooltip{ position: absolute; z-index: 5; pointer-events: none; background: var(--grey-111); border: 1px solid var(--grey-444); border-radius: 10px; padding: 10px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.6); min-width: 130px; max-width: 240px; }
.map-page .map-tooltip .tooltip-country{ color: var(--yellow); font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.map-page .map-tooltip .tooltip-matches{ color: var(--white); font-size: 14px; }
.map-page .map-tooltip .tooltip-record{ color: var(--white-aaa); font-size: 13px; margin-top: 2px; }
.map-page .map-tooltip .tooltip-years{ color: var(--grey-777); font-size: 12px; margin-top: 4px; }

.map-page .map-country-list{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(15, auto); gap: 8px 20px; }
.map-page .map-country-list a{ display: flex; align-items: center; gap: 10px; padding: 10px 14px; transition: var(--transition); background: rgba(0, 0, 0, .5); box-shadow: 0 4px 30px rgba(0, 0, 0, .1); backdrop-filter: blur(10px); border-radius: 10px; }
.map-page .map-country-list a:hover{ background: rgba(0, 0, 0, .8); }
.map-page .map-country-list .country-name{ flex: 1; color: var(--white); font-size: 15px; }
.map-page .map-country-list .country-record{ color: var(--grey-777); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.map-page .map-country-list .country-matches{ color: var(--yellow); font-family: var(--kanit); font-weight: 600; font-size: 16px; min-width: 45px; text-align: right; }
.map-page .map-country-list .dot{ width: 3px; height: 3px; background: var(--grey-333); display: inline-block; border-radius: 100%; position: relative; top: 1px; }

.map-page .map-intro{ color: var(--white-bbb); font-size: 15px; line-height: 1.6; margin-bottom: 25px; }

.map-page .club-list{ columns: 3; column-gap: 20px; margin-bottom: 40px; }
.map-page .club-country{ background: rgba(255,255,255,.03); border: 1px solid var(--grey-222); border-radius: 10px; padding: 16px 18px; transition: var(--transition); break-inside: avoid; margin-bottom: 20px; }
.map-page .club-country:hover{ border-color: var(--grey-444); }
.map-page .club-country-title{ display: flex; align-items: baseline; gap: 8px; color: var(--yellow); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.map-page .club-country-title span{ color: var(--grey-777); font-family: var(--kanit); font-size: 14px; }
.map-page .club-country-note{ color: var(--grey-888); font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.map-page .club-items li{ padding: 7px 0; border-top: 1px solid var(--grey-222); }
.map-page .club-items li:first-child{ border-top: none; }
.map-page .club-name{ display: block; color: var(--white); font-size: 14px; }
.map-page .club-city{ display: block; color: var(--white-aaa); font-size: 12px; margin-top: 1px; }
.map-page .club-year{ display: inline-block; color: var(--grey-777); font-family: var(--kanit); font-size: 12px; margin-top: 2px; }
.map-page .club-note{ display: block; color: var(--grey-666); font-size: 11px; font-style: italic; margin-top: 2px; }

.map-page .club-extra{ background: rgba(255,255,255,.03); border: 1px solid var(--grey-222); border-radius: 10px; padding: 16px 18px; margin-bottom: 30px; }
.map-page .club-extra h3{ color: var(--white); font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.map-page .club-extra li{ color: var(--white-aaa); font-size: 13px; line-height: 1.7; }
.map-page .club-extra strong{ color: var(--white); font-weight: 600; }

.map-page .club-sources{ border-top: 1px solid var(--grey-222); padding-top: 20px; margin-bottom: 40px; }
.map-page .club-sources h3{ color: var(--grey-888); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.map-page .club-sources p{ color: var(--grey-888); font-size: 13px; line-height: 1.6; max-width: 780px; }
.map-page .club-pending{ margin: 12px 0; padding-left: 18px; list-style: disc; }
.map-page .club-pending li{ color: var(--grey-777); font-size: 12px; line-height: 1.6; max-width: 780px; }
.map-page .club-sources-links{ margin-top: 12px; }
.map-page .club-sources-links a{ color: var(--yellow); text-decoration: underline; }

@media screen and (max-width: 1279px) {

    .map-page .map-country-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-page .club-list{ columns: 2; }

}

@media screen and (max-width: 1023px) {

    .map-page .map-totals li{ padding: 14px 16px; }
    .map-page .map-totals .value{ font-size: 26px; }
    .map-page .map-canvas{ aspect-ratio: 16 / 9; }
    .map-page .map-country-list{ grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }

}

@media screen and (max-width: 767px) {

    .map-page .map-totals{ grid-template-columns: 1fr; }
    .map-page .map-totals li{ }
    .map-page .map-totals .value{ font-size: 22px; letter-spacing: -.5px; }
    .map-page .map-totals .label{ font-size: 10px; letter-spacing: 0; }

    .map-page .map-section{ }
    .map-page .map-zoom button{ width: 44px; height: 44px; font-size: 22px; }

    .map-page .map-legend{ gap: 8px 12px; }
    .map-page .legend-title{ margin-bottom: 10px; }
    .map-page .legend-scale{ gap: 6px 12px; }
    .map-page .legend-scale li{ font-size: 12px; }
    .map-page .legend-scale .swatch{ width: 14px; height: 14px; }

    .map-page .map-intro{ font-size: 14px; }
    .map-page .club-list{ columns: 1; }
    .map-page .tabs{ margin-bottom: 20px; }
    .map-page .tab{ flex: 1; padding: 12px 8px; font-size: 15px; }

}
