/* ============================================================
   time_zone_converter.css — /time-zone-converter/ page
   Loaded only on this page. Uses variables from styles.css.
   ============================================================ */
#main-content {
  overflow: unset;
}
/* ── PAGE WRAPPER ────────────────────────────────────────────────────────── */
.tzc-page {
  display: flex;
  flex-direction: column;
  padding: 0 0 56px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* ── BREADCRUMB ──────────────────────────────────────────────────────────── */
.tzc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  font-size: 12px;
  color: var(--text3);
}

.tzc-breadcrumb a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.13s;
}

.tzc-breadcrumb a:hover { color: var(--accent); }
.tzc-breadcrumb-sep { color: var(--border2); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.tzc-hero {
  padding: 0 28px 24px;
}

.tzc-hero-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tzc-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.tzc-hero-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
}

.tzc-hero-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}

/* ── SELECTION BANNER ────────────────────────────────────────────────────── */
.tzc-selection-banner {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.tzc-selection-banner.has-selection {
  border-color: var(--accent);
  background: var(--accent-light);
}

.tzc-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.tzc-banner-icon { color: var(--accent); flex-shrink: 0; }

.tzc-banner-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

.tzc-banner-text strong {
  color: var(--text);
  font-weight: 600;
}

.tzc-selected-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tzc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 11px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
}

.tzc-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background 0.13s;
  flex-shrink: 0;
}

.tzc-chip-remove:hover { background: rgba(0, 0, 0, 0.08); }

.tzc-chip-sep {
  color: var(--accent);
  font-size: 15px;
  font-weight: 300;
  flex-shrink: 0;
}

.tzc-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  background: var(--bg2);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── SEARCH ──────────────────────────────────────────────────────────────── */
.tzc-search-wrap {
  position: sticky;
  margin: 0 0 20px;
  top: 60px;
}

.tzc-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}

.tzc-search {
  width: 100%;
  padding: 12px 13px 12px 40px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.13s, box-shadow 0.13s;
}

.tzc-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.tzc-search::placeholder { color: var(--text3); }

/* ── CITY LIST SECTION ───────────────────────────────────────────────────── */
.tzc-section {
  padding: 0 28px 8px;
}

.tzc-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text3);
  margin-bottom: 10px;
}

/* ── CITY LIST ───────────────────────────────────────────────────────────── */
.tzc-city-list {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.tzc-city-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  width: 100%;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
  text-align: left;
}

.tzc-city-item:last-child { border-bottom: none; }

.tzc-city-item:hover { background: var(--bg2); }

.tzc-city-item.selected { background: var(--accent-light); }

.tzc-city-item.selected:hover { background: var(--accent-light); }

/* radio circle */
.tzc-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.13s, background 0.13s;
  background: var(--surface);
}

.tzc-city-item.selected .tzc-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.tzc-radio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.13s;
}

.tzc-city-item.selected .tzc-radio-dot { opacity: 1; }

/* flag */
.tzc-flag { font-size: 20px; line-height: 1; flex-shrink: 0; }

/* city info */
.tzc-city-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tzc-city-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.tzc-city-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
}

.tzc-city-abbr { font-weight: 600; color: var(--text2); }
.tzc-city-dot  { color: var(--border2); }

/* time display (right side) */
.tzc-city-time-wrap {
  text-align: right;
  flex-shrink: 0;
}

.tzc-city-time {
  font-family: 'Google Sans', monospace, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.tzc-city-date {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

/* day/night icon */
.tzc-city-daynight {
  font-size: 15px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* ── LOAD MORE ───────────────────────────────────────────────────────────── */
.tzc-load-more-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

.tzc-load-more {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid var(--border2);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}

.tzc-load-more:hover {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--text2);
}

/* ── BOTTOM ACTION BAR ───────────────────────────────────────────────────── */
.tzc-action-bar {
  /*
  position: sticky;
  bottom: 0;
  */
  /* пока попробуем без нижней кнопки реализовать. */
  margin: 0 28px;
  padding: 16px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  /*display: flex;*/
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}

.tzc-action-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tzc-action-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tzc-action-sub {
  font-size: 12px;
  color: var(--text3);
}

.tzc-compare-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--text3);
  color: var(--bg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.2s, opacity 0.15s;
  white-space: nowrap;
  opacity: 0.5;
}

.tzc-compare-btn.active {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  opacity: 1;
}

.tzc-compare-btn.active:hover { opacity: 0.88; }

/* ── FEATURE STRIP ───────────────────────────────────────────────────────── */
.tzc-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 32px 28px 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tzc-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
}

.tzc-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.tzc-feature-body { display: flex; flex-direction: column; gap: 3px; }

.tzc-feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tzc-feature-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text2);
}

/* ── NO RESULTS ──────────────────────────────────────────────────────────── */
.tzc-no-results {
  padding: 32px 20px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tzc-hero         { padding: 0 15px 20px; }
  .tzc-breadcrumb   { padding: 12px 15px; }
  .tzc-search-wrap  { margin: 0 0 16px; }
  .tzc-section      { padding: 0 15px 8px; }
  .tzc-selection-banner { margin: 0 0 16px; }
  .tzc-action-bar   { margin: 0 15px; }
  .tzc-features     { margin: 24px 15px 0; grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .tzc-city-time    { font-size: 15px; }
  .tzc-hero-title   { font-size: 22px; }
  .tzc-selection-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tzc-action-bar   { flex-direction: column; align-items: stretch; }
  .tzc-compare-btn  { justify-content: center; }
}

/* ── BANNER STICKY ───────────────────────────────────────────────────────── */
/* Banner stays at the top while the city list is in view,
   then scrolls away naturally once the section ends.           */
.tzc-selection-banner {
  position: sticky;
  top: 0;
  z-index: 8;
}

/* When the section sentinel leaves viewport, unstick */
.tzc-banner-unstuck {
  position: static;
}

/* ── INLINE COMPARE BUTTON (inside banner chips row) ────────────────────── */
.tzc-chip-compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.13s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tzc-chip-compare:hover { opacity: 0.85; }