/* Romania–Bulgaria — practical navigator page */

.robg-start-page {
  background: #f9f7f2;
}

.robg-start {
  position: relative;
  isolation: isolate;
  min-height: 880px;
  overflow: hidden;
  padding: 34px 28px 72px;
  background:
    linear-gradient(
      90deg,
      rgba(249, 247, 242, 0.995) 0%,
      rgba(249, 247, 242, 0.98) 39%,
      rgba(249, 247, 242, 0.76) 57%,
      rgba(249, 247, 242, 0.34) 76%,
      rgba(249, 247, 242, 0.18) 100%
    ),
    url("../images/romania-bulgaria/start/start-landscape.png") right top / 58% auto no-repeat,
    #f9f7f2;
}

.robg-start::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 74%, rgba(224, 244, 247, 0.42) 100%);
}

.robg-start-inner {
  position: relative;
  z-index: 3;
  width: min(1380px, calc(100% - 24px));
  margin: 0 auto;
}

.robg-start-breadcrumbs {
  margin-bottom: 25px;
}

.robg-start-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  max-width: 940px;
  margin-bottom: 34px;
}

.robg-start-number {
  display: block;
  max-width: 940px;
  margin-bottom: 34px;
}

.robg-start-number img {
  width: 63px;
  height: 41px;
  object-fit: contain;
}

.robg-start-heading h1 {
  margin: 0 0 12px;
  color: #0e457e;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -1.8px;
}

.robg-start-heading p {
  max-width: 720px;
  margin: 0;
  color: #194b78;
  font-size: 19px;
  line-height: 1.5;
}

.robg-start-search {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  width: min(1050px, 86%);
  min-height: 66px;
  margin: 0 0 28px 124px;
  overflow: hidden;
  border: 1px solid rgba(20, 75, 113, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(29, 79, 104, 0.12);
}

.robg-start-search input {
  flex: 1;
  min-width: 0;
  height: 66px;
  padding: 0 18px 0 25px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #123f6d;
  font: inherit;
  font-size: 18px;
}

.robg-start-search input::placeholder {
  color: #6f7b86;
  opacity: 0.9;
}

.robg-start-search button {
  display: grid;
  place-items: center;
  flex: 0 0 70px;
  height: 66px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.robg-start-search button img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.robg-topic-chips {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px 17px;
  max-width: 1210px;
  margin: 0 auto 38px;
}

.robg-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 18px 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(231, 240, 245, 0.88);
  color: #104b7a;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.robg-topic-chip:nth-child(2),
.robg-topic-chip:nth-child(4) {
  background: rgba(223, 241, 239, 0.9);
  color: #176d70;
}

.robg-topic-chip:nth-child(3),
.robg-topic-chip:nth-child(7) {
  background: rgba(232, 241, 219, 0.9);
  color: #367242;
}

.robg-topic-chip:nth-child(5) {
  background: rgba(251, 237, 204, 0.92);
  color: #9d6910;
}

.robg-topic-chip:hover,
.robg-topic-chip.is-active {
  transform: translateY(-2px);
  border-color: rgba(17, 87, 123, 0.2);
  box-shadow: 0 8px 18px rgba(29, 79, 104, 0.1);
}

.robg-topic-chip img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.robg-start-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.robg-start-card {
  --card-accent: #153f86;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  min-height: 176px;
  padding: 23px 26px 22px 21px;
  border: 1px solid rgba(17, 67, 102, 0.13);
  border-top: 4px solid var(--card-accent);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 12px 28px rgba(35, 77, 99, 0.12);
  color: #123f6d;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.robg-start-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(35, 77, 99, 0.17);
}

.robg-start-card[hidden] {
  display: none;
}

.robg-start-card > img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.robg-start-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.robg-start-card-copy strong {
  margin-bottom: 8px;
  color: var(--card-accent);
  font-size: 20px;
  line-height: 1.23;
}

.robg-start-card-copy small {
  min-height: 46px;
  margin-bottom: 12px;
  color: #284c6f;
  font-size: 15.5px;
  line-height: 1.42;
}

.robg-start-card-copy b {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--card-accent);
  font-size: 16px;
}

.card-teal {
  --card-accent: #08777b;
}

.card-gold {
  --card-accent: #c7830b;
}

.card-green {
  --card-accent: #3f7f45;
}

.card-slate {
  --card-accent: #23588d;
}

.card-sky {
  --card-accent: #1e83c3;
}

.robg-start-card-wide {
  grid-column: 1 / -1;
  width: 72%;
  min-height: 138px;
  margin: 0 auto;
  grid-template-columns: 96px minmax(0, 1fr);
}

.robg-start-card-wide > img {
  width: 82px;
  height: 82px;
}

.robg-start-card-wide .robg-start-card-copy small {
  min-height: 0;
}

.robg-no-results {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #174c74;
  text-align: center;
  box-shadow: 0 10px 24px rgba(35, 77, 99, 0.1);
}

.robg-start-back {
  position: relative;
  z-index: 4;
  margin-top: 34px;
  text-align: center;
}

.robg-start-back a {
  color: #0f5e91;
  font-weight: 800;
  text-decoration: none;
}

.robg-start-birds,
.robg-start-route,
.robg-start-contours,
.robg-start-riverbank {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.robg-start-birds {
  top: 30px;
  right: 4%;
  width: min(430px, 28vw);
  opacity: 0.72;
}

.robg-start-route {
  top: 90px;
  right: -10px;
  width: min(610px, 37vw);
  max-height: 720px;
  object-fit: contain;
  opacity: 0.72;
}

.robg-start-contours {
  left: -60px;
  bottom: 90px;
  width: min(470px, 31vw);
  opacity: 0.55;
}

.robg-start-riverbank {
  left: -25px;
  bottom: -32px;
  width: min(470px, 32vw);
  opacity: 0.95;
}

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

@media (max-width: 1180px) {
  .robg-start {
    background-size: 68% auto;
  }

  .robg-start-search {
    width: min(980px, 92%);
    margin-left: auto;
    margin-right: auto;
  }

  .robg-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .robg-start-card-wide {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .robg-start {
    min-height: auto;
    padding: 24px 16px 55px;
    background:
      linear-gradient(rgba(249, 247, 242, 0.92), rgba(249, 247, 242, 0.97)),
      url("../images/romania-bulgaria/start/start-landscape.png") center top / auto 410px no-repeat,
      #f9f7f2;
  }

  .robg-start-inner {
    width: 100%;
  }

  .robg-start-heading {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 24px;
  }

  .robg-start-number {
    font-size: 23px;
  }

  .robg-start-number img {
    width: 52px;
    height: 34px;
  }

  .robg-start-heading h1 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -1px;
  }

  .robg-start-heading p {
    font-size: 17px;
  }

  .robg-start-search {
    width: 100%;
    min-height: 58px;
    margin: 0 0 22px;
  }

  .robg-start-search input,
  .robg-start-search button {
    height: 58px;
  }

  .robg-start-search input {
    padding-left: 18px;
    font-size: 15px;
  }

  .robg-topic-chips {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 26px;
  }

  .robg-topic-chip {
    min-height: 43px;
    padding: 6px 13px 6px 8px;
    font-size: 14px;
  }

  .robg-topic-chip img {
    width: 29px;
    height: 29px;
  }

  .robg-start-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .robg-start-card,
  .robg-start-card-wide {
    width: 100%;
    min-height: 145px;
    grid-column: auto;
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 19px 18px;
  }

  .robg-start-card > img,
  .robg-start-card-wide > img {
    width: 62px;
    height: 62px;
  }

  .robg-start-card-copy strong {
    font-size: 18px;
  }

  .robg-start-card-copy small {
    min-height: 0;
    font-size: 14.5px;
  }

  .robg-start-birds {
    top: 100px;
    right: -30px;
    width: 230px;
  }

  .robg-start-route {
    display: none;
  }

  .robg-start-contours {
    width: 300px;
    opacity: 0.33;
  }

  .robg-start-riverbank {
    width: 300px;
    opacity: 0.55;
  }
}
