/* ==========================================================================
   Local Inter Variable Font (Full Czech latin-ext, no unicode slicing)
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'InterVariable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

@font-face {
  font-family: 'InterVariable';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable-Italic.woff2') format('woff2');
}

/* ==========================================================================
   HOPB + STAN České Budějovice 2026 - Modern Design System & Styles
   ========================================================================== */

:root {
  --color-bg-cream: #fbf7ec;
  --color-bg-white: #ffffff;
  --color-navy: #1a2332;
  --color-navy-dark: #121924;
  --color-navy-light: #243044;
  --color-red: #e3242b;
  --color-red-hover: #c91b21;
  --color-yellow: #ffe600;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-text-light: #9ca3af;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  
  --font-main: 'InterVariable', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Podpora pro české typografické znaky, ligatury a zarovnání diakritiky */
  font-feature-settings: 'locl' 1, 'calt' 1, 'kern' 1, 'case' 1;
  -webkit-font-feature-settings: 'locl' 1, 'calt' 1, 'kern' 1, 'case' 1;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-cream);
  color: var(--color-text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: common-ligatures contextual;
}

button, input, select, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Seznamy a odrážky v editovatelném a formátovaném obsahu */
[data-editable] ul,
.page-block-text ul,
.article-content ul {
  list-style-type: disc;
  margin-left: 1.65rem;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

[data-editable] ol,
.page-block-text ol,
.article-content ol {
  list-style-type: decimal;
  margin-left: 1.65rem;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

[data-editable] li,
.page-block-text li,
.article-content li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Internal Banner (Visual Prototype watermark) */
.prototype-top-banner {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* Typography Helpers */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.75rem;
}

.eyebrow-dark {
  color: #ef4444;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-title-dark {
  color: #ffffff;
}

.section-perex {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  width: 100%;
  max-width: 100%;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.section-perex-dark {
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-red);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-navy);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(251, 247, 236, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: padding 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  padding: 0.75rem 0;
  background-color: rgba(251, 247, 236, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.brand-icon {
  background-color: var(--color-red);
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--color-red);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* Sections Common */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-navy);
  color: #ffffff;
}

/* Optické horizontální oddělení mezi po sobě jdoucími sekcemi se stejným pozadím */
.section:not(.section-dark) + .section:not(.section-dark) {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section.section-dark + .section.section-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Placeholder Box (as seen in visual prototype) */
.media-placeholder {
  position: relative;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 180px;
}

.media-placeholder:has(.actual-media),
.media-placeholder.has-image {
  padding: 0;
  border-color: transparent;
  background-color: transparent;
}

.media-placeholder::before,
.media-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.media-placeholder:has(.actual-media)::before,
.media-placeholder:has(.actual-media)::after,
.media-placeholder:has(.candidate-avatar-placeholder)::before,
.media-placeholder:has(.candidate-avatar-placeholder)::after,
.media-placeholder.has-image::before,
.media-placeholder.has-image::after,
.team-photo-slot::before,
.team-photo-slot::after,
.candidate-photo-box::before,
.candidate-photo-box::after {
  display: none !important;
}

.media-placeholder::before {
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), #e5e7eb calc(50% - 0.5px), #e5e7eb calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.media-placeholder::after {
  background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), #e5e7eb calc(50% - 0.5px), #e5e7eb calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.placeholder-label {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

.media-placeholder.dark-mode {
  background-color: #243044;
  border-color: #334155;
  color: #94a3b8;
}

.media-placeholder.dark-mode::before {
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), #334155 calc(50% - 0.5px), #334155 calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.media-placeholder.dark-mode::after {
  background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), #334155 calc(50% - 0.5px), #334155 calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.media-placeholder.dark-mode .placeholder-label {
  background: rgba(26, 35, 50, 0.9);
  border-color: #334155;
}

.actual-media {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Obrázky a rámečky fotografií bez zaoblených rohů */
img.actual-media,
.media-placeholder,
.hero-image-box,
.districts-map-box,
.leader-photo-box,
.team-photo-slot,
.achievement-img-slot,
.news-photo-slot,
.candidate-photo-box,
.page-featured-media,
.article-main-image-wrap,
.achievement-card,
.team-card,
.news-card {
  border-radius: 0 !important;
}

/* Zachování kulatých avatarů u podporovatelů */
.supporter-avatar,
.supporter-avatar img,
.supporter-photo-container,
.supporter-photo-container img {
  border-radius: 50% !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.highlight-yellow {
  background-color: var(--color-yellow);
  padding: 0 0.2em;
  display: inline-block;
}

.hero-perex {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: auto;
  max-height: none;
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

.hero-leader-meta {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: none;
  text-align: right;
}

.hero-leader-name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-navy);
  line-height: 1.2;
}

.hero-leader-role {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.photo-caption-note {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Program Section (4 Priority)
   ========================================================================== */
.program-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.program-card {
  background-color: var(--color-bg-white);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 36, 43, 0.3);
}

.program-card-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-red);
  margin-bottom: 1rem;
}

.program-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.program-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.program-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.program-card-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Budějovice Konkrétně (Districts - Dark section)
   ========================================================================== */
.districts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.districts-map-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: auto;
  max-height: none;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.districts-map-box .actual-media,
.districts-map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.districts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.district-item {
  position: relative;
  padding-left: 1.5rem;
}

.district-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  background-color: var(--color-red);
  border-radius: 50%;
}

.district-name {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.district-desc {
  font-size: 0.9rem;
  color: #94a3b8;
}

.districts-action {
  margin-top: 2rem;
}

.link-red-light {
  color: #f87171;
  font-weight: 700;
  font-size: 0.9rem;
}

.link-red-light:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Hlavní závazky (Commitments)
   ========================================================================== */
.commitments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.commitment-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  background-color: var(--color-bg-white);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-red);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.commitment-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}

.commitment-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.commitment-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.commitment-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Co jsme dokázali (Achievements)
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.achievement-card {
  background-color: var(--color-bg-white);
  border-radius: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.achievement-img-slot {
  height: 200px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e5e7eb;
}

.achievement-body {
  padding: 1.75rem;
}

.achievement-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.achievement-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Leader Section (Dark)
   ========================================================================== */
.leader-block-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.leader-photo-box {
  min-height: 380px;
  border-radius: 0;
}

.leader-content-wrap {
  display: flex;
  flex-direction: column;
}

.leader-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.leader-bio {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.team-card {
  background-color: var(--color-bg-white);
  border-radius: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 36, 43, 0.4);
}

.team-photo-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background-color: #f8fafc;
}

.team-photo-slot {
  height: 270px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e5e7eb;
}

.team-photo-slot::before,
.team-photo-slot::after {
  display: none !important;
  content: none !important;
}

.team-photo-slot .actual-media {
  object-position: center top;
  transition: transform 0.35s ease;
}

.team-card:hover .team-photo-slot .actual-media {
  transform: scale(1.03);
}

.team-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
  transition: color 0.15s ease;
}

.team-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.team-card:hover .team-name a,
.team-name a:hover {
  color: var(--color-red);
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.team-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.team-card-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-red);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.team-card:hover .team-card-more-link {
  transform: translateX(3px);
}

.team-card-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.card-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.15s ease;
}

.card-social-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.card-social-link:hover {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
  transform: translateY(-1px);
}

/* ==========================================================================
   Candidate Avatar Placeholder & Table View
   ========================================================================== */
.candidate-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 38%, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.avatar-monogram-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.team-card:hover .avatar-monogram-circle {
  transform: scale(1.06);
  border-color: rgba(227, 36, 43, 0.7);
}

.avatar-monogram-text {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1;
}

.avatar-badge-tag {
  margin-top: 0.85rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* On large candidate detail photo box */
.candidate-photo-box .candidate-avatar-placeholder {
  min-height: 360px;
}

.candidate-photo-box .avatar-monogram-circle {
  width: 110px;
  height: 110px;
}

.candidate-photo-box .avatar-monogram-text {
  font-size: 2.6rem;
}

/* View switcher */
.view-switcher-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-switch-btn:hover {
  color: #0f172a;
}

.view-switch-btn.active {
  background: #ffffff;
  color: var(--color-navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Candidates List Table View */
.candidates-table-wrap {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.candidates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.candidates-table th {
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid var(--color-border);
}

.candidates-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.92rem;
}

.candidates-table tr:last-child td {
  border-bottom: none;
}

.candidates-table tr:hover td {
  background: #f8fafc;
}

.cand-table-num {
  font-weight: 800;
  color: var(--color-red);
  font-size: 0.95rem;
  white-space: nowrap;
  width: 50px;
}

.cand-table-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cand-table-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
}

.cand-table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cand-table-name {
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
}

.cand-table-name:hover {
  color: var(--color-red);
}

.cand-table-role {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.cand-table-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  white-space: nowrap;
}

.cand-table-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cand-table-btn:hover {
  background: var(--color-red);
  color: #ffffff;
}

@media (max-width: 820px) {
  .candidates-table th:nth-child(4),
  .candidates-table td:nth-child(4),
  .candidates-table th:nth-child(5),
  .candidates-table td:nth-child(5) {
    display: none;
  }
}


/* ==========================================================================
   News / Aktuálně Section
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.news-card {
  background-color: var(--color-bg-white);
  border-radius: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.news-photo-slot {
  height: 180px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e5e7eb;
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: auto;
}

/* ==========================================================================
   Call to Action / Contacts Banner (Red Section)
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(135deg, #c91820 0%, #a81319 100%);
  color: #ffffff;
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
  box-shadow: var(--shadow-md);
}

.cta-banner-header {
  margin-bottom: 2rem;
  max-width: 100%;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.cta-perex {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cta-party-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cta-party-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-party-tag {
  background: #ffffff !important;
  color: var(--color-red) !important;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.cta-party-title-text {
  display: flex;
  flex-direction: column;
}

.cta-leader-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.cta-leader-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 2px;
}

.cta-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cta-contact-item:hover {
  opacity: 0.85;
  transform: translateX(2px);
  text-decoration: underline;
}

.cta-contact-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

.cta-socials-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--color-navy);
  text-decoration: none;
  transition: all 0.15s ease;
}

.cta-social-btn:hover {
  background: var(--color-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.cta-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .cta-contacts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .cta-banner-section {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer-admin-link {
  color: #94a3b8;
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-admin-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Supporters / Podporovatelé Section & Carousel
   ========================================================================== */
.supporters-section {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.supporters-carousel-wrap {
  position: relative;
  margin-top: 1.5rem;
}

.supporters-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.75rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}

.supporters-carousel-track::-webkit-scrollbar {
  height: 10px;
}

.supporters-carousel-track::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 5px;
}

.supporters-carousel-track::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 5px;
}

.supporters-carousel-track::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.supporter-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.supporters-carousel-track .supporter-card {
  flex: 0 0 360px;
  max-width: 85vw;
  scroll-snap-align: start;
  height: auto;
}

a.supporter-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.supporter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 36, 43, 0.3);
}

.supporter-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-red);
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease;
}

.supporter-card:hover .supporter-more-link {
  transform: translateX(4px);
}

.supporter-quote {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #334155;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  flex: 1 1 auto;
}

.supporter-quote::before {
  content: '“';
  font-size: 2.5rem;
  color: var(--color-red);
  opacity: 0.25;
  position: absolute;
  top: -1.2rem;
  left: -0.6rem;
  font-family: serif;
}

.supporter-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
  margin-top: auto;
}

.supporter-avatar {
  width: 90px;
  height: 90px;
  border-radius: 0 !important;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.supporter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 !important;
  display: block;
}

.supporter-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-navy);
  line-height: 1.25;
}

.supporter-role {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.3rem;
  line-height: 1.35;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.carousel-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-arrow-btn:hover {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

.carousel-arrow-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1140px) and (min-width: 769px) {
  .main-nav {
    gap: 0.55rem;
  }
  
  .nav-link {
    font-size: 0.78rem;
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .districts-grid,
  .leader-block-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .team-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 32px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg-cream);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    gap: 0.5rem;
  }
  
  .main-nav .nav-link {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
  
  .main-nav .nav-link:last-child {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }
  
  .main-nav.is-active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .program-cards-grid,
  .achievements-grid,
  .team-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .commitment-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Budějovice Konkrétně - Podstránka s interaktivní mapou
   ========================================================================== */
.districts-page-article {
  max-width: 1040px;
  margin: 0 auto;
}

.districts-page-article .page-perex {
  max-width: 100%;
  width: 100%;
}

.districts-flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1.5rem 0 2rem 0;
}

.districts-flow-steps .flow-step {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: 0.04em;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.85rem;
}

.districts-flow-steps .flow-arrow {
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.9rem;
}

.districts-quote-box {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.districts-quote-box p {
  margin: 0;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
}

/* Interaktivní mapa */
.interactive-map-card {
  background-color: #1a2332;
  border: 1px solid #2d3748;
  padding: 2.25rem 2.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-card-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.map-card-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map-canvas-container {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #111827;
  overflow: hidden;
}

.map-canvas-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Leaflet mapa - styly */
.leaflet-map-canvas {
  width: 100%;
  height: 560px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

/* Tmavý režim mapových dlaždic (OpenStreetMap bez API klíče a vodoznaku) */
.leaflet-map-canvas.is-dark-theme .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(90%);
}

.leaflet-custom-hotspot {
  background: transparent !important;
  border: none !important;
}

.leaflet-custom-hotspot .hotspot-pin-inner {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.leaflet-custom-hotspot:hover .hotspot-num-badge,
.leaflet-custom-hotspot.is-active .hotspot-num-badge {
  transform: scale(1.25);
  background: #e3242b !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(227, 36, 43, 0.9), 0 4px 10px rgba(0, 0, 0, 0.6);
}

.leaflet-custom-hotspot.is-active .hotspot-radar {
  border-color: #e3242b;
  opacity: 1;
}

/* Custom Leaflet Dark Popup */
.leaflet-popup-content-wrapper {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
  padding: 0.5rem 0.75rem !important;
}

.leaflet-popup-content {
  margin: 0.6rem 0.5rem !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: #0f172a !important;
}

.leaflet-popup-close-button {
  color: #94a3b8 !important;
  padding: 6px 8px 0 0 !important;
}

.leaflet-popup-card .popup-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.leaflet-popup-card .popup-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  text-transform: uppercase;
  line-height: 1.25;
}

.leaflet-popup-card .popup-perex {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0.35rem 0 0.75rem 0;
}

.leaflet-popup-card .popup-btn {
  display: inline-block;
  background: var(--color-red);
  color: #ffffff !important;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.15s ease;
}

.leaflet-popup-card .popup-btn:hover {
  background: #b91c1c;
}

/* Ovládací lišta mapy */
.map-view-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-map-control {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-map-control:hover,
.btn-map-control.is-active {
  background: var(--color-navy);
  color: #ffffff;
  border-color: #ffffff;
}

/* Hotspot piny na mapě */
.map-hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
}

.hotspot-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #facc15;
  color: #0f172a;
  font-weight: 900;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 2px solid #ffffff;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotspot-radar {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #facc15;
  opacity: 0.6;
  animation: pinRadar 2.2s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

@keyframes pinRadar {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.map-hotspot-pin:hover .hotspot-num-badge,
.map-hotspot-pin.is-active .hotspot-num-badge {
  transform: scale(1.28);
  background: #e3242b;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(227, 36, 43, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.map-hotspot-pin.is-active .hotspot-radar {
  border-color: #e3242b;
  opacity: 1;
}

/* Tooltip pro hotspot */
.hotspot-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 25;
}

.map-hotspot-pin:hover .hotspot-tooltip,
.map-hotspot-pin:focus .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Legenda mapy */
.map-legend-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.map-legend-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  line-height: 1.2;
}

.badge-zavazek {
  background: #e3242b;
  color: #ffffff;
}

.badge-priprava {
  background: #facc15;
  color: #0f172a;
}

.badge-provereni {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #cbd5e1;
}

.map-legend-text {
  font-size: 0.85rem;
  color: #94a3b8;
  max-width: 100%;
  line-height: 1.5;
}

/* Rychlá navigace místy (Pills) */
.districts-quick-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  margin-bottom: 2.5rem;
  scrollbar-width: thin;
}

.quick-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.quick-nav-pill:hover,
.quick-nav-pill.is-active {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

.quick-nav-pill .pill-num {
  color: var(--color-red);
  font-weight: 900;
}
.quick-nav-pill:hover .pill-num,
.quick-nav-pill.is-active .pill-num {
  color: #facc15;
}

/* Skupiny a karty míst */
.district-group-section {
  margin-top: 3.5rem;
}

.district-group-header {
  margin-bottom: 1.75rem;
}

.district-group-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-red);
  margin-bottom: 0.25rem;
}

.district-group-title {
  font-size: 1.95rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.district-group-note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 100%;
  width: 100%;
  line-height: 1.55;
  margin: 0;
}

/* Jednotlivá karta místa */
.district-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 2.25rem 2.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.district-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.district-card.is-active-target {
  border-color: var(--color-red) !important;
  box-shadow: 0 0 0 4px rgba(227, 36, 43, 0.2), 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

.district-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.district-card-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.district-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.status-badge-card {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  line-height: 1.2;
}

.status-badge-card.status-zavazek {
  background: #e3242b;
  color: #ffffff;
}

.status-badge-card.status-priprava {
  background: #facc15;
  color: #0f172a;
}

.status-badge-card.status-k-provereni {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
}

.status-subtext {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 3px;
  text-align: right;
}

.district-card-title {
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.district-card-perex {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.district-proposal-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #cbd5e1;
  margin-bottom: 1.5rem;
}

.district-proposal-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 2px;
}

.district-proposal-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

.district-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.district-priority-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
}

.district-actions-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.district-map-jump-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.district-map-jump-link:hover {
  color: var(--color-red);
}

.district-detail-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.district-detail-link:hover {
  text-decoration: underline;
}

/* Spodní informační bloky */
.districts-connector-box {
  background: #111c2e;
  color: #ffffff;
  padding: 2.25rem 2.5rem;
  margin: 3.5rem 0 2rem;
  box-shadow: var(--shadow-md);
}

.districts-connector-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.districts-connector-text {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.districts-cta-box {
  background: #ffffff;
  border: 2px solid var(--color-navy);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.districts-cta-content {
  flex: 1;
  min-width: 280px;
}

.districts-cta-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-red);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.districts-cta-title {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.districts-cta-perex {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .district-proposal-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .district-card {
    padding: 1.5rem;
  }
  .district-card-title {
    font-size: 1.35rem;
  }
  .interactive-map-card {
    padding: 1.5rem 1rem;
  }
  .map-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .districts-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }
}
