/* App-only chrome (language switcher). Main design lives in /css/style.css */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
  margin-inline-end: 4px;
}
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(170, 185, 230, 0.2);
  background: rgba(34, 42, 61, 0.96);
  color: var(--t1, #f3f5fa);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color .2s, background-color .2s;
}
.lang-switcher-btn:hover,
.lang-switcher.is-open .lang-switcher-btn {
  background: rgba(42, 51, 73, 0.98);
  border-color: rgba(201, 165, 78, 0.38);
}
.lang-switcher-btn:focus-visible {
  outline: 2px solid rgba(201, 165, 78, 0.35);
  outline-offset: 2px;
}
.lang-switcher-flag {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.lang-switcher-code {
  font-family: 'Outfit', 'Manrope', var(--ff, system-ui), sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}
.lang-switcher-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(243, 245, 250, 0.72);
  margin-inline-start: 1px;
  transition: transform .18s ease;
}
.lang-switcher.is-open .lang-switcher-caret {
  transform: rotate(180deg);
}
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(168, 184, 220, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(22, 28, 42, 0.98), rgba(12, 16, 26, 0.99));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lang-switcher-menu[hidden] {
  display: none;
}
.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--t2, #a3aabd);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.lang-switcher-option:hover,
.lang-switcher-option:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}
.lang-switcher-option.is-active {
  color: #fff;
  background: rgba(201, 165, 78, 0.12);
}
.lang-switcher-name {
  font-family: 'Outfit', 'Manrope', var(--ff, system-ui), sans-serif;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
}
html[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
}

@media (max-width: 920px) {
  .lang-switcher-btn {
    min-height: 34px;
    padding: 0 8px 0 7px;
    gap: 6px;
    border-radius: 9px;
  }
  .lang-switcher-btn .lang-switcher-code { font-size: .68rem; }
}
@media (max-width: 480px) {
  .lang-switcher-btn {
    min-height: 34px;
    min-width: 44px;
    justify-content: center;
    padding: 0 8px;
    gap: 0;
  }
  .lang-switcher-btn .lang-switcher-code,
  .lang-switcher-btn .lang-switcher-caret { display: none; }
  .lang-switcher-btn .lang-switcher-flag {
    width: 22px;
    height: 16px;
  }
  .lang-switcher-menu { min-width: 156px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hub page — geo directory polish */
.hub-hero-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 14px 0 0;
  font-size: .82rem;
  color: var(--t3, #7d879c);
}
.hub-hero-jump a {
  color: var(--gold-light, #e8d5a3);
  text-decoration: none;
  font-weight: 600;
}
.hub-hero-jump a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-popular-section {
  padding-top: 12px !important;
  padding-bottom: 8px !important;
}
.hub-popular-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.hub-popular-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(170, 185, 230, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(34, 42, 61, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.hub-popular-card:hover {
  border-color: rgba(201, 165, 78, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(42, 51, 73, 0.78);
  transform: translateY(-1px);
  color: inherit;
}
.hub-popular-card:focus-visible {
  outline: 2px solid rgba(201, 165, 78, 0.55);
  outline-offset: 2px;
}
.hub-popular-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hub-popular-card-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--t1, #f3f5fa);
  line-height: 1.25;
}
.hub-popular-card-meta {
  font-size: .75rem;
  color: var(--t2, #a3aabd);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-country-table .hub-best {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--t1, #f3f5fa);
  white-space: nowrap;
}
.hub-detect-tz {
  color: var(--t3, #7d879c);
  font-size: .78em;
  font-weight: 500;
}

@media (max-width: 768px) {
  /* Keep Best window on mobile; hide Region + Action (cols 4–5) */
  .hub-country-table thead th:nth-child(3),
  .hub-country-table tbody td:nth-child(3) {
    display: table-cell;
  }
  .hub-country-table thead th:nth-child(4),
  .hub-country-table tbody td:nth-child(4),
  .hub-country-table thead th:nth-child(5),
  .hub-country-table tbody td:nth-child(5) {
    display: none;
  }
  .hub-popular-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .hub-popular-grid {
    grid-template-columns: 1fr;
  }
}

html[dir="rtl"] .hub-popular-card,
html[dir="rtl"] .hub-section-desc,
html[dir="rtl"] .hub-table-head h2 {
  text-align: right;
}

.countries-hub-cta {
  margin: 18px 0 0;
  text-align: center;
  font-size: .9rem;
}
.countries-hub-cta a {
  color: var(--gold-light, #e8d5a3);
  font-weight: 600;
  text-decoration: none;
}
.countries-hub-cta a:hover { text-decoration: underline; }

/* Crawlable / GEO SSR session snapshot (visible, compact) */
.ssr-session-summary {
  margin: 0 0 10px;
  max-width: 52rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--t2, #b8c0d0);
}
.ssr-session-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .84rem;
  line-height: 1.4;
  color: var(--t3, #7d879c);
}
.ssr-session-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 12px;
  border: 1px solid rgba(170, 185, 230, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.ssr-session-list li[data-open="true"] {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.06);
}
.ssr-session-name {
  color: var(--t1, #e8edf7);
  font-weight: 650;
}
.ssr-session-state {
  font-weight: 650;
  text-transform: lowercase;
  font-size: .8rem;
}
.ssr-session-list li[data-open="true"] .ssr-session-state { color: #34d399; }
.ssr-session-list li[data-open="false"] .ssr-session-state { color: var(--t3, #7d879c); }
.ssr-session-hours {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .74rem;
  color: var(--t3, #7d879c);
}
.country-live-card .ssr-session-summary {
  margin-top: 10px;
  font-size: .86rem;
}
.country-live-card .ssr-session-list {
  display: block;
  padding-inline-start: 1.15rem;
  list-style: disc;
}
.country-live-card .ssr-session-list li {
  display: list-item;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  background: transparent;
}
@media (max-width: 800px) {
  .ssr-session-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .ssr-session-list { grid-template-columns: 1fr; }
}
