/* =========================================================
   BULGARIA–SERBIA — 04 / ELIGIBLE TERRITORY
   Dedicated page styles. Does not modify local-hub.css.
   ========================================================= */

.site-header .bgrs-header-programme-logo {
  width: 68px;
  height: 44px;
  flex: 0 0 68px;
  border: 0;
  border-radius: 0;
  background: transparent url("../images/programmes/logos/bulgaria-serbia-logo.png") center / 148% auto no-repeat;
  box-shadow: none;
}

.site-footer .bgrs-footer-master-logo {
  width: 50px;
  height: 44px;
  flex: 0 0 50px;
  border: 0;
  border-radius: 0;
  background: transparent url("../images/master-logo-mark-transparent.png") center / contain no-repeat;
  box-shadow: none;
}

.site-header .bgrs-header-programme-logo::before,
.site-footer .bgrs-footer-master-logo::before {
  content: none !important;
  display: none !important;
}

.bgrs-territory-page {
  --bgrs-navy: #073b75;
  --bgrs-green: #477b4e;
  --bgrs-teal: #2a8794;
  --bgrs-cream: #fbf7ec;
  --bgrs-paper: rgba(255, 253, 247, .95);
  --bgrs-line: rgba(103, 125, 105, .18);
  background: #f7f4eb;
}

.bgrs-territory {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 46px;
  background:
    linear-gradient(90deg, rgba(251,247,236,.98) 0%, rgba(251,247,236,.92) 45%, rgba(251,247,236,.60) 68%, rgba(251,247,236,.18) 100%) 0 0 / 100% 315px no-repeat,
    url("../images/bulgaria-serbia/hero/bgrs-hero-landscape.webp") right top / auto 315px no-repeat,
    linear-gradient(180deg, #fbf7ec 0%, #f5f3e9 48%, #eef5ef 100%);
}

.bgrs-territory-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
}

.bgrs-territory-breadcrumbs { margin-bottom: 20px; }

.bgrs-territory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .68fr);
  gap: 32px;
  align-items: end;
  min-height: 176px;
  margin-bottom: 34px;
}

.bgrs-territory-copy { max-width: 720px; }

.bgrs-territory-kicker,
.bgrs-territory-section-heading > span {
  display: block;
  margin-bottom: 6px;
  color: #64825a;
  font-size:11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.bgrs-territory-copy h1,
.bgrs-territory-section-heading h2 {
  color: var(--bgrs-navy);
  
}

.bgrs-territory-copy h1 {
  margin: 0 0 12px;
  
  line-height: 1.05;
  letter-spacing: -1px;
}

.bgrs-territory-copy p {
  max-width: 700px;
  margin: 0;
  color: #294d63;
  font-size:16px;
  line-height: 1.58;
}

.bgrs-territory-message {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid rgba(112, 133, 105, .20);
  border-radius: 22px;
  background: rgba(255, 253, 247, .90);
  box-shadow: 0 14px 30px rgba(32, 61, 72, .11);
  backdrop-filter: blur(8px);
}

.bgrs-territory-message img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.bgrs-territory-message strong,
.bgrs-territory-message span { display: block; }

.bgrs-territory-message strong {
  margin-bottom: 4px;
  color: #123f69;
  font-size:16px;
  line-height: 1.25;
}

.bgrs-territory-message span {
  color: #486577;
  font-size:14px;
  line-height: 1.42;
}

/* MAP */
.bgrs-territory-map-section { margin-bottom: 30px; }

.bgrs-territory-section-heading {
  max-width: 800px;
  margin-bottom: 18px;
}

.bgrs-territory-section-heading h2 {
  margin: 0;
  
  line-height: 1.08;
}

.bgrs-territory-section-heading p {
  margin: 8px 0 0;
  color: #496475;
  font-size:14px;
  line-height: 1.5;
}

.bgrs-territory-atlas {
  display: grid;
  grid-template-columns: minmax(175px, .62fr) minmax(520px, 1.9fr) minmax(175px, .62fr);
  gap: 20px;
  align-items: center;
  padding: 18px 20px 16px;
  border: 1px solid rgba(106, 127, 103, .18);
  border-radius: 26px;
  background: rgba(255, 253, 247, .90);
  box-shadow: 0 18px 42px rgba(39, 64, 72, .09);
}

.bgrs-territory-country {
  min-width: 0;
  padding: 8px 4px;
}

.bgrs-country-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(100, 125, 112, .16);
}

.bgrs-country-heading-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.bgrs-country-heading > div {
  min-width: 0;
}

.bgrs-country-heading span {
  display: block;
  margin-bottom: 3px;
  color: #66805d;
  font-size:14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.25px;
}

.bgrs-country-heading h3 {
  margin: 0;
  color: var(--bgrs-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size:24px;
  line-height: 1.1;
}

.bgrs-territory-country ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bgrs-territory-country li {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 2px 7px 17px;
  border-bottom: 1px solid rgba(102, 124, 111, .11);
  color: #173f62;
  font-size:14px;
  font-weight: 800;
}

.bgrs-territory-country li:last-child { border-bottom: 0; }

.bgrs-territory-country li::before {
  content: "";
  position: absolute;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #76a889;
}

.bgrs-bulgaria li::before { background: #5fa8b5; }

.bgrs-territory-map {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.bgrs-territory-map img {
  display: block;
  width: min(100%, 690px);
  height: auto;
  mix-blend-mode: multiply;
  filter: saturate(.94) contrast(.98);
}

.bgrs-territory-map figcaption {
  max-width: 600px;
  margin-top: 4px;
  color: #6a7775;
  font-size:14px;
  line-height: 1.35;
  text-align: center;
}

.bgrs-territory-map-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(103, 125, 105, .16);
  border-radius: 16px;
  background: rgba(255, 253, 247, .88);
  box-shadow: 0 8px 22px rgba(37, 63, 71, .05);
}

.bgrs-territory-map-fact {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border-right: 1px solid rgba(103, 125, 105, .14);
}

.bgrs-territory-map-fact:last-child {
  border-right: 0;
}

.bgrs-territory-map-fact img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.bgrs-territory-map-symbol {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 135, 148, .18);
  border-radius: 50%;
  background: rgba(239, 247, 245, .78);
  color: #4f7b77;
  font-size:20px;
  font-weight: 800;
}

.bgrs-territory-map-fact > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.bgrs-territory-map-fact strong {
  color: var(--bgrs-navy);
  font-size:15px;
  line-height: 1.1;
}

.bgrs-territory-map-fact small {
  margin-top: 3px;
  color: #60747a;
  font-size:14px;
  line-height: 1.2;
}

/* ELIGIBILITY */
.bgrs-territory-eligibility {
  margin-bottom: 24px;
}

.bgrs-eligibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bgrs-eligibility-grid article {
  min-height: 170px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(103, 125, 105, .17);
  border-radius: 20px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 12px 26px rgba(37, 63, 71, .07);
}

.bgrs-eligibility-grid h3 {
  margin: 0 0 9px;
  color: #123f69;
  font-size:15px;
  line-height: 1.3;
}

.bgrs-eligibility-grid p {
  margin: 0;
  color: #486577;
  font-size:14px;
  line-height: 1.48;
}

.bgrs-sofia-note {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 13px;
  align-items: start;
  margin-top: 12px;
  padding: 14px 17px;
  border: 1px solid rgba(91, 130, 91, .22);
  border-radius: 17px;
  background: #edf4e8;
}

.bgrs-sofia-note img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.bgrs-sofia-note strong {
  display: block;
  margin-bottom: 4px;
  color: #123f69;
  font-size:14px;
}

.bgrs-sofia-note p {
  margin: 0;
  color: #456176;
  font-size:14px;
  line-height: 1.45;
}

/* OFFICIAL + NAVIGATION */
.bgrs-territory-official {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 17px;
  border: 1px solid rgba(88, 126, 91, .20);
  border-radius: 19px;
  background: #edf4e8;
}

.bgrs-territory-official > img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.bgrs-territory-official strong,
.bgrs-territory-official span { display: block; }

.bgrs-territory-official strong {
  margin-bottom: 3px;
  color: #123f69;
  font-size:14px;
  line-height: 1.3;
}

.bgrs-territory-official span {
  color: #456176;
  font-size:14px;
  line-height: 1.4;
}

.bgrs-territory-official-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.bgrs-territory-official-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #0b4e86;
  border-radius: 999px;
  background: #0b4e86;
  color: #fff;
  font-size:14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.bgrs-territory-official-actions a:hover,
.bgrs-territory-official-actions a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 78, 134, .16);
}

.bgrs-territory-official-actions .bgrs-territory-official-secondary {
  background: #fffdf7;
  color: #0b4e86;
}

.bgrs-territory-back {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.bgrs-territory-back a {
  color: #0b5b91;
  font-size:14px;
  font-weight: 900;
  text-decoration: none;
}

.bgrs-territory-back a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .bgrs-territory-intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bgrs-territory-message { max-width: 700px; }

  .bgrs-territory-atlas {
    grid-template-columns: 1fr 1fr;
  }

  .bgrs-territory-map {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .bgrs-serbia { grid-column: 1; grid-row: 2; }
  .bgrs-bulgaria { grid-column: 2; grid-row: 2; }
}


@media (max-width: 900px) {
  .bgrs-territory-map-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgrs-territory-map-fact:nth-child(2) {
    border-right: 0;
  }

  .bgrs-territory-map-fact:nth-child(-n+2) {
    border-bottom: 1px solid rgba(103, 125, 105, .14);
  }
}

@media (max-width: 760px) {
  .site-header .bgrs-header-programme-logo {
    width: 56px;
    height: 38px;
    flex-basis: 56px;
  }

  .bgrs-territory {
    padding: 20px 14px 40px;
    background:
      linear-gradient(180deg, rgba(251,247,236,.92), rgba(251,247,236,.98)) 0 0 / 100% 290px no-repeat,
      url("../images/bulgaria-serbia/hero/bgrs-hero-landscape.webp") center top / auto 290px no-repeat,
      linear-gradient(180deg, #fbf7ec 0%, #eef5ef 100%);
  }

  .bgrs-territory-shell { width: 100%; }

  .bgrs-territory-copy h1 {  }

  .bgrs-territory-atlas {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .bgrs-territory-map,
  .bgrs-serbia,
  .bgrs-bulgaria { grid-column: 1; }

  .bgrs-territory-map { grid-row: 1; }
  .bgrs-serbia { grid-row: 2; }
  .bgrs-bulgaria { grid-row: 3; }

  .bgrs-territory-country ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }

  .bgrs-eligibility-grid { grid-template-columns: 1fr; }

  .bgrs-eligibility-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(103, 125, 105, .14);
  }

  .bgrs-eligibility-grid article:last-child { border-bottom: 0; }

  .bgrs-territory-official { grid-template-columns: 44px 1fr; }

  .bgrs-territory-official-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .bgrs-territory-back {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .bgrs-territory-country ul { grid-template-columns: 1fr; }

  .bgrs-territory-map-meta {
    grid-template-columns: 1fr;
  }

  .bgrs-territory-map-fact {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(103, 125, 105, .14);
  }

  .bgrs-territory-map-fact:last-child {
    border-bottom: 0;
  }
}