/* Kde sme hrali: mapa miest turnajov a zoznam krajín s mestami */

.pl-map {
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--map-sea, #cbf3f6);
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  z-index: 0;
}
.pl-map--small { height: 300px; }
/* sivý podklad Esri do farieb KŠN (filter #pl-sea v _places_assets.html):
   pevnina (sivá 239) -> biela, more (sivá 208) -> tyrkysová ako výplň grafu ratingu,
   názvy krajín (sivá 150–190) -> tmavá sivotyrkysová */
.pl-map .pl-tiles-base { filter: var(--map-tiles-filter, url(#pl-sea)); }
/* názvy krajín a miest tmavšie (biely lem ostáva biely) */
.pl-map .pl-tiles-labels { filter: url(#pl-labels); }

.pl-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.pl-stat {
  padding: .8rem 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.pl-stat b { display: block; font-size: 1.6rem; font-weight: 750; line-height: 1.1; color: var(--ksn-primary-dark, #047c8a); }
.pl-stat span { font-size: .8rem; font-weight: 600; color: #64748b; }
.pl-note { display: flex; gap: 6px; margin: -.25rem 0 1rem; font-size: .8rem; color: #64748b; }
.pl-note .bi { flex: 0 0 auto; margin-top: 1px; }

.pl-countries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.pl-country {
  padding: .85rem 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.pl-country--wide { grid-column: 1 / -1; }
.pl-country__hd { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .6rem; }
.pl-country__flag { width: 1.6em; line-height: 1.2em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.pl-country__name { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.pl-country__meta { margin-left: auto; font-size: .8rem; font-weight: 600; color: #64748b; white-space: nowrap; }
.pl-country__none { margin: 0; font-size: .85rem; color: #94a3b8; }

.pl-cities { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.pl-city {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .3rem .2rem .65rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: .85rem;
  color: #334155;
}
.pl-city__n {
  min-width: 1.5rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  color: var(--ksn-primary-dark, #047c8a);
}

.pl-popup b { display: block; font-size: .95rem; }
.pl-popup span { font-size: .8rem; color: #64748b; }

@media (max-width: 1199.98px) {
  .pl-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .pl-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .pl-map { height: 340px; }
  .pl-map--small { height: 260px; }
  .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-countries { grid-template-columns: 1fr; }
}

/* Na profile hráča je zoznam vo vnútri karty – bez tieňov */
.rchart-card .pl-countries { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 1rem; }
.rchart-card .pl-country { background: #f8fafc; box-shadow: none; border: 1px solid #e2e8f0; }
.rchart-card .pl-city { background: #fff; border: 1px solid #e2e8f0; }
.rchart-card .pl-map { box-shadow: none; border: 1px solid #e2e8f0; }

/* Úvodná stránka: vektorová mapa krajín a zoznam najčastejších krajín */
.hp-places {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.25rem;
  align-items: center;
}
.hp-places__map {
  height: 380px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .6);
}
.hp-places__list { display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.hp-places__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .75rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .06);
  font-size: .92rem;
}
.hp-places__flag { width: 1.5em; line-height: 1.1em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.hp-places__name { flex: 1 1 auto; font-weight: 600; color: #0f172a; }
.hp-places__n { font-size: .8rem; font-weight: 700; color: var(--ksn-primary-dark, #047c8a); }
.hp-places__item--more { justify-content: center; background: transparent; box-shadow: none; }
.hp-places__item--more a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.hp-places .jvm-zoom-btn { background: var(--ksn-primary-dark, #047c8a); }

@media (max-width: 991.98px) {
  .hp-places { grid-template-columns: 1fr; }
  .hp-places__map { height: 300px; }
  .hp-places__list { flex-direction: row; flex-wrap: wrap; }
  .hp-places__item { flex: 1 1 calc(50% - .4rem); }
}
