@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Warm, tactile Serbian heritage & contemporary travel magazine palette */
  --bg-primary: #F4EFE6;
  --bg-secondary: #EAE2D3;
  --bg-surface: #FFFDF9;
  --bg-surface-elevated: #FFFFFF;
  --bg-forest-deep: #163324;
  --bg-forest-soft: #1E4430;
  --bg-warm-tint: #F9F5ED;

  --text-primary: #1C1A17;
  --text-secondary: #4A453E;
  --text-muted: #6E675C;

  --accent-forest: #1B432E;
  --accent-forest-hover: #122E1F;
  --accent-terracotta: #B84326;
  --accent-terracotta-soft: #FDF1ED;
  --accent-gold: #C88A2E;
  --accent-gold-soft: #FBF5E6;
  --border-subtle: #DED5C5;
  --border-strong: #C5B8A3;

  --badge-verified-bg: #E6F0EA;
  --badge-verified-text: #163E29;
  --badge-Seasonal-bg: #F9EEDF;
  --badge-Seasonal-text: #7A4B12;

  /* Expressive contemporary typography */
  --font-serif: 'Fraunces', 'Lora', Georgia, serif;
  --font-editorial: 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Depth */
  --shadow-sm: 0 2px 8px -2px rgba(28, 26, 23, 0.06), 0 1px 3px rgba(28, 26, 23, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(28, 26, 23, 0.09), 0 4px 10px -3px rgba(28, 26, 23, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(22, 51, 36, 0.14), 0 8px 18px -6px rgba(28, 26, 23, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Subtle geometric kilim diamond pattern in SVG data URI */
  --pattern-kilim: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 4L44 24L24 44L4 24Z' fill='none' stroke='%238c7a60' stroke-width='0.6' stroke-opacity='0.11'/%3E%3Cpath d='M24 12L36 24L24 36L12 24Z' fill='none' stroke='%23b84326' stroke-width='0.5' stroke-opacity='0.07'/%3E%3Ccircle cx='24' cy='24' r='1.5' fill='%231b432e' fill-opacity='0.09'/%3E%3C/svg%3E");
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(27, 67, 46, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(184, 67, 38, 0.06) 0%, transparent 38%),
    radial-gradient(circle at 50% 55%, rgba(200, 138, 46, 0.05) 0%, transparent 50%),
    var(--pattern-kilim);
}

/* Decorative folk border ribbon at the very top of the page */
body::before {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-forest) 0px,
    var(--accent-forest) 36px,
    var(--accent-terracotta) 36px,
    var(--accent-terracotta) 54px,
    var(--accent-gold) 54px,
    var(--accent-gold) 72px
  );
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-forest);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.95rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #151412;
}

h2 {
  font-size: clamp(1.38rem, 2.4vw, 2.05rem);
  line-height: 1.24;
  margin-top: 2.35rem;
  margin-bottom: 0.95rem;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  margin-top: 1.6rem;
  margin-bottom: 0.65rem;
}

p, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-forest);
  text-decoration: underline;
  text-decoration-color: rgba(27, 67, 46, 0.35);
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--accent-terracotta);
  text-decoration:color: var(--accent-terracotta);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
}

.prose-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1.15rem;
  }
  h1 {
    font-size: clamp(1.48rem, 5.8vw, 1.88rem);
    line-height: 1.2;
  }
  h2 {
    font-size: clamp(1.26rem, 4.8vw, 1.52rem);
    margin-top: 1.85rem;
  }
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 184, 163, 0.72);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px -10px rgba(28, 26, 23, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
  padding-inline: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
  flex: 1 1 auto;
}

.site-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #FFFDF9 0%, #F4ECE0 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(28, 25, 21, 0.1), inset 0 1px 0 #FFFFFF;
  border: 1px solid rgba(184, 67, 38, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.site-brand:hover .site-brand-mark {
  transform: scale(1.04);
  box-shadow: 0 5px 14px rgba(184, 67, 38, 0.18);
}

.brand-kilim-svg {
  width: 36px;
  height: 36px;
  display: block;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.08rem;
}

.site-brand-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-brand-Tagline {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.91rem;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link:focus-visible {
  background-color: rgba(27, 67, 46, 0.08);
  color: var(--accent-forest);
}

.nav-link[aria-current="page"] {
  background-color: var(--accent-forest);
  color: #FFFDF9;
  box-shadow: 0 2px 8px rgba(27, 67, 46, 0.22);
}

.nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-primary);
  cursor: pointer;
  min-height: 40px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--accent-forest);
  border-color: var(--accent-forest);
  color: #FFFDF9;
}

.nav-toggle-icon {
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
  }
  .main-nav {
    display: none;
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-subtle);
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 1.15rem;
    padding-block: 0.55rem;
    min-height: 64px;
    gap: 0.6rem;
  }
  .site-brand {
    gap: 0.65rem;
  }
  .site-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .brand-kilim-svg {
    width: 32px;
    height: 32px;
  }
  .site-brand-title {
    font-size: 1.2rem;
  }
  .site-brand-Tagline {
    font-size: 0.7rem;
  }
  .nav-toggle {
    padding: 0.4rem 0.8rem;
    min-height: 38px;
    font-size: 0.83rem;
  }
}

@media (max-width: 390px) {
  .nav-list {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumbs */
.breadcrumbs-bar {
  padding: 0.7rem 0 0.15rem;
  font-size: 0.81rem;
  color: var(--text-muted);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  list-style: none;
  align-items: center;
  background: rgba(255, 253, 249, 0.72);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(222, 213, 197, 0.75);
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.breadcrumbs-list::-webkit-scrollbar {
  display: none;
}

.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.breadcrumbs-list li:last-child {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs-list li:last-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs-list li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--accent-terracotta);
  font-weight: 700;
}

.breadcrumbs-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumbs-list a:hover {
  color: var(--accent-terracotta);
}

/* Main Content Area */
main {
  flex: 1;
  padding: 1.25rem 0 4rem;
  min-width: 0;
  max-width: 100%;
}

/* Hero Section (Homepage) */
.hero-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(200, 138, 46, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(27, 67, 46, 0.09) 0%, transparent 48%),
    linear-gradient(135deg, #FFFDF9 0%, #F7F0E2 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3.8vw, 3rem);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-terracotta), var(--accent-gold));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-soft);
  border: 1px solid rgba(184, 67, 38, 0.22);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  max-width: 100%;
}

.hero-lead {
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  max-width: 58ch;
  line-height: 1.65;
}

/* Search Box */
.search-box {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.search-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.search-input-group {
  display: flex;
  gap: 0.65rem;
}

@media (max-width: 540px) {
  .search-input-group {
    flex-direction: column;
  }
  .search-input-group .btn {
    width: 100%;
  }
}

.search-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: var(--font-sans);
  background: var(--bg-warm-tint);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--accent-forest);
  box-shadow: 0 0 0 3px rgba(27, 67, 46, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-forest) 0%, #24583c 100%);
  color: #FFFDF9;
  box-shadow: 0 4px 12px rgba(27, 67, 46, 0.22);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-forest-hover) 0%, var(--accent-forest) 100%);
  color: #FFFDF9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 67, 46, 0.3);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--accent-forest);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--accent-forest);
  border-color: var(--accent-forest);
  color: #FFFDF9;
  text-decoration: none;
}

/* Quick Category Pills */
.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
  list-style: none;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-pill:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
  background: #FFFFFF;
  transform: translateY(-1px);
}

/* Editorial Figures & Images */
.editorial-figure {
  margin: 1.5rem 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.hero-grid .editorial-figure {
  margin: 0;
  border-radius: var(--radius-md);
  box-shadow: 8px 8px 0 rgba(27, 67, 46, 0.1), var(--shadow-lg);
  border: 2px solid #FFFDF9;
}

.editorial-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.editorial-figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--bg-warm-tint);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
}

/* Location Visual Banner (for places without a photo file) */
.location-visual-card {
  margin: 1.5rem 0 1.85rem;
  background:
    radial-gradient(circle at 90% 15%, rgba(200, 138, 46, 0.18), transparent 45%),
    linear-gradient(135deg, #173826 0%, #234F37 100%);
  color: #FFFDF9;
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 138, 46, 0.35);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.location-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-kilim);
  opacity: 0.25;
  pointer-events: none;
}

.location-visual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.location-visual-item {
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  min-width: 0;
}

.location-visual-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #E2C389;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.location-visual-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #FFFDF9;
  font-weight: 600;
}

/* Section Headers */
.section-block {
  margin-bottom: 3.5rem;
  position: relative;
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.15rem;
  margin-bottom: 1.65rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-strong);
  flex-wrap: wrap;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 84px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-gold));
  border-radius: 2px;
}

.section-header h2 {
  margin: 0;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
  max-width: 68ch;
}

/* Krajevi Srbije — Modern Responsive Region Grid */
.krajevi-showcase {
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 138, 46, 0.14), transparent 40%),
    linear-gradient(145deg, #163324 0%, #1E4430 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.35rem);
  color: #FFFDF9;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  border: 1px solid rgba(200, 138, 46, 0.35);
  max-width: 100%;
}

.krajevi-showcase-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 253, 249, 0.14);
}

.krajevi-showcase-intro h3 {
  color: #FFFDF9;
  margin: 0;
  font-size: 1.3rem;
}

.krajevi-showcase-intro p {
  color: rgba(255, 253, 249, 0.82);
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.krajevi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1.1rem;
}

.kraj-card {
  background: rgba(255, 253, 249, 0.97);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(200, 138, 46, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  min-width: 0;
}

.kraj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.kraj-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.kraj-num {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-soft);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 67, 38, 0.2);
  flex-shrink: 0;
}

.kraj-scope {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kraj-card h4 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  margin: 0 0 0.45rem;
  color: var(--text-primary);
}

.kraj-card h4 a {
  color: inherit;
  text-decoration: none;
}
.kraj-card h4 a:hover {
  color: var(--accent-terracotta);
}

.kraj-card p {
  font-size: 0.89rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  line-height: 1.52;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kraj-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-forest);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}
.kraj-card-link:hover {
  color: var(--accent-terracotta);
}

/* Uniform Card Grids & Harmonized Card Heights */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 1.35rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-gold));
  opacity: 0.65;
  transition: opacity 0.22s ease, height 0.22s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-gold));
}

.card-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.79rem;
  color: var(--text-muted);
  min-width: 0;
}

.card-meta > span:not(.badge) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-category {
  background: var(--badge-verified-bg);
  color: var(--badge-verified-text);
  border: 1px solid rgba(22, 62, 41, 0.14);
}

.badge-season {
  background: var(--badge-Seasonal-bg);
  color: var(--badge-Seasonal-text);
  border: 1px solid rgba(200, 138, 46, 0.25);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.56em;
}

.card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent-terracotta);
}

.card-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.56;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.68em;
}

.card-footer {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(222, 213, 197, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-top: auto;
}

.card-footer > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.card-footer a {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-forest);
  white-space: nowrap;
  flex-shrink: 0;
}
.card-footer a:hover {
  color: var(--accent-terracotta);
}

/* Article Layout (Strict min-width: 0 to prevent any mobile grid blowout) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.75rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.article-layout > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

.article-header {
  background:
    radial-gradient(circle at 92% 15%, rgba(200, 138, 46, 0.11) 0%, transparent 45%),
    linear-gradient(135deg, #FFFDF9 0%, #F7F1E5 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3.2vw, 2.35rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-terracotta), var(--accent-gold));
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  max-width: 100%;
}

.article-lead {
  font-family: var(--font-editorial);
  font-size: clamp(1.01rem, 1.25vw, 1.13rem);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--accent-terracotta);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.05rem;
  margin-bottom: 0;
  line-height: 1.68;
}

@media (max-width: 640px) {
  .article-header {
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }
  .article-meta-bar {
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
  }
  .article-lead {
    background: transparent;
    border-left: none;
    border-top: 1px solid rgba(197, 184, 163, 0.68);
    border-radius: 0;
    padding: 0.9rem 0 0;
    margin-top: 0.85rem;
    font-size: 1rem;
    line-height: 1.64;
  }
}

/* Responsive SVG Diagrams (Desktop + Mobile Viewports) */
.svg-diagram-figure {
  background: #FAF5EB;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.svg-diagram-container {
  padding: clamp(0.5rem, 1.5vw, 1rem);
  background: #FAF5EB;
}

.svg-diagram {
  width: 100%;
  height: auto;
  display: block;
}

.svg-diagram-desktop {
  display: block;
}

.svg-diagram-mobile {
  display: none;
}

@media (max-width: 760px) {
  .svg-diagram-desktop {
    display: none;
  }
  .svg-diagram-mobile {
    display: block;
  }
  .svg-diagram-container {
    padding: 0.4rem;
  }
}

/* Rich Article Content Prose */
.prose-container h2 {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #162E20;
}

.prose-container p {
  font-size: 1.03rem;
  line-height: 1.76;
  color: #2B2823;
}

/* End-of-article check date */
.article-verified-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Tables (Desktop Table + Responsive Mobile Stacked Cards) */
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.55;
}

.data-table caption {
  text-align: left;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.06rem;
  background: linear-gradient(90deg, #EFE8DA 0%, #F7F2E8 100%);
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: #EFE9DC;
  font-weight: 700;
  color: var(--accent-forest);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border-strong);
}

.data-table tbody th[scope="row"] {
  background: var(--bg-warm-tint);
  font-weight: 700;
  color: var(--text-primary);
  width: 28%;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: rgba(244, 239, 230, 0.55);
}

/* Mobile Stacked Table Layout — prevents squished 1-word-per-line columns */
@media (max-width: 720px) {
  .table-wrapper {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow-x: visible;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100% !important;
  }

  .data-table caption {
    display: block;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-sm);
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .data-table tbody th[scope="row"] {
    width: 100%;
    background: linear-gradient(90deg, #EFE8DA 0%, #F8F4EC 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--accent-forest);
  }

  .data-table tbody td {
    width: 100%;
    padding: 0.7rem 1rem;
    border-bottom: 1px dashed var(--border-subtle);
    font-size: 0.92rem;
  }

  .data-table tbody td:last-child {
    border-bottom: none;
  }

  .data-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
  }
}

/* Callout & Highlights Boxes */
.callout-box {
  background: linear-gradient(135deg, #FFFDF9 0%, #F7F1E3 100%);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent-forest);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2.5vw, 1.45rem) clamp(1.15rem, 2.8vw, 1.6rem);
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.callout-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 0.75rem;
  color: var(--accent-forest);
}

.checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.2rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.checklist li::before {
  content: "✦";
  position: absolute;
  left: 0.15rem;
  top: 0;
  color: var(--accent-terracotta);
  font-weight: 700;
}

/* Sidebar Cards */
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.sidebar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-terracotta));
}

.sidebar-card h3 {
  font-size: 1.12rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.related-list {
  list-style: none;
}

.related-list li {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.92rem;
}

.related-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-list a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: block;
  color: var(--accent-forest);
}
.related-list a:hover {
  color: var(--accent-terracotta);
}

/* FAQ Accordion / Details */
.faq-section {
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-terracotta);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 85% 15%, rgba(200, 138, 46, 0.12), transparent 40%),
    linear-gradient(160deg, #142D20 0%, #1C3E2C 100%);
  border-top: 4px solid var(--accent-gold);
  padding: 3.5rem 0 2.25rem;
  margin-top: 3.5rem;
  color: rgba(255, 253, 249, 0.86);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 253, 249, 0.15);
}

@media (max-width: 820px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.site-footer h3,
.site-footer h4 {
  color: #FFFDF9;
}

.site-footer p {
  color: rgba(255, 253, 249, 0.78);
}

.footer-external-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 253, 249, 0.15);
}

.footer-external-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #E8C98E;
}

.footer-external-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .footer-external-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .footer-external-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3,
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #FFFDF9;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.48rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: rgba(255, 253, 249, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #F3D194;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 253, 249, 0.65);
}
