/* Country picker — compact grid, search, region filters */
.country-picker {
  --cp-border: #e8edf5;
  --cp-muted: #64748b;
  --cp-text: #0f172a;
  --cp-accent: #0061f2;
  --cp-soft: #eef4ff;
}

.country-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.country-picker-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cp-text);
}

.country-picker-head p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.98rem;
}

.country-picker-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.country-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}

.country-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--cp-border);
  border-radius: 10px;
  padding: 0 0.9rem 0 2.4rem;
  background: #fff;
  color: var(--cp-text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.country-search input:focus {
  border-color: #9dbcf8;
  box-shadow: 0 0 0 3px rgba(0, 97, 242, .12);
}

.country-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.country-region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.country-region-filters button {
  border: 1px solid var(--cp-border);
  background: #fff;
  color: var(--cp-muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.country-region-filters button:hover {
  border-color: #c7d7f5;
  color: var(--cp-accent);
}

.country-region-filters button.is-active {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #fff;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 991.98px) {
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .country-grid { grid-template-columns: 1fr; }
}

.country-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--cp-border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  min-height: 76px;
}

.country-card:hover {
  border-color: #b7cdf8;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.country-card.is-popular {
  border-color: #cfe0ff;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 70%);
}

.country-card-flag {
  width: 52px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, .08);
  flex-shrink: 0;
  background: #f8fafc;
}

.country-card-body {
  min-width: 0;
  flex: 1;
}

.country-card-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.country-card-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fff4db;
  color: #a16207;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.country-card-badge.soon {
  background: #eef2f7;
  color: #64748b;
}

.country-card.is-soon {
  opacity: .72;
  cursor: default;
  background: #f8fafc;
}

.country-card.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--cp-border);
}

.country-card-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--cp-muted);
}

.country-card-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}

.country-card:hover .country-card-arrow {
  color: var(--cp-accent);
  transform: translateX(2px);
}

.country-empty {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--cp-muted);
  border: 1px dashed var(--cp-border);
  border-radius: 12px;
  background: #f8fafc;
}

.country-empty.is-visible { display: block; }

/* Compact hero stats on country pages */
.country-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 1.35rem;
}

.country-hero-stat {
  display: inline-flex;
  flex-direction: column;
  min-width: 96px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}

.country-hero-stat strong {
  font-size: 1.15rem;
  line-height: 1.1;
  color: #fff;
}

.country-hero-stat span {
  font-size: 0.72rem;
  color: rgba(255,255,255,.78);
  margin-top: 0.15rem;
}
