/*
 * Country packs: one country, one edited route.
 * Loaded only on /country-packs/ pages, after index.css and senior.css.
 */

.pack-hero .page-hero-copy h1 {
  max-width: 15ch;
}
.pack-hero .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #ffd479;
}
.pack-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.pack-hero-meta {
  margin: 22px 0 0;
  font-family: var(--font-ui);
  font-size: 0.92rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9dcff !important;
}
.porthole .country-map {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
}

/* Hero summary under the opening answer */
.pack-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 34px;
}
.pack-stat {
  padding: 16px 16px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.pack-stat strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pack-stat span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
.pack-note {
  margin: 0 0 24px;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: var(--muted);
}

/* Pull quote that breaks up the long guide */
.pack-quote {
  position: relative;
  margin: 34px 0;
  padding: 28px 30px 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(1, 199, 245, 0.3), transparent 64%),
    linear-gradient(145deg, var(--navy), var(--navy-900));
  color: #fff;
}
.pack-quote::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--amber), var(--coral));
}
.pack-quote p {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem) !important;
  font-weight: 600;
  line-height: 1.28 !important;
  color: #fff !important;
  max-width: 30ch;
}
.pack-quote cite {
  position: relative;
  display: block;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.5;
  color: #b8d0ef;
}

/* The eight essential stops */
.pack-stops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 34px;
}
.pack-stops-with-widgets {
  grid-auto-flow: row dense;
}
/* Tiqets injects its own #search-widget wrapper. The global rules in
   site-core.css are sized for the /experiences/ search widget and reserved
   1030px on tablets; this four-card embed needs 756px in its 770px column
   and 880/790px once the cards stack on narrower screens. */
.pack-stops .widget-shell #search-widget iframe {
  height: 756px;
}
@media (max-width: 620px) {
  .pack-stops .widget-shell #search-widget iframe {
    height: 880px;
  }
}
@media (max-width: 460px) {
  .pack-stops .widget-shell #search-widget iframe {
    height: 790px;
  }
}
.pack-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pack-stop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--royal), var(--sky));
}
.pack-stop:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}
.pack-stop:nth-child(3n + 3)::before {
  background: linear-gradient(90deg, #0f8a83, var(--sky));
}
.stop-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.stop-no {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.stop-time {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
}
.pack-stop h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.2;
}
.pack-stop p {
  margin: 0;
  font-size: 1.02rem !important;
  line-height: 1.62 !important;
}
.stop-link {
  margin: 6px 0 0;
}
/* Long stop names need two lines inside a 400px card at desktop; the global
   .btn rule is nowrap above 860px. */
.pack-stop .stop-link .btn {
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}
.pack-stop .stop-tip {
  margin-top: auto;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--shell);
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  color: var(--text);
}
.pack-stop .stop-tip strong {
  color: var(--ink);
}
@media (min-width: 861px) {
  .pack-stop:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Three route lengths */
.pack-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 32px;
}
.pack-route {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
}
.pack-route .route-days {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal);
}
.pack-route h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.25;
}
.pack-route p {
  margin: 0;
  font-size: 0.97rem !important;
  line-height: 1.6 !important;
  color: var(--muted);
}
.pack-route ul {
  margin: 4px 0 0;
  padding-left: 1.1em;
}
.pack-route li {
  margin-bottom: 5px;
  font-size: 0.96rem !important;
  line-height: 1.5 !important;
}
.pack-route .route-verdict {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.86rem !important;
  font-weight: 700;
  line-height: 1.5 !important;
  color: var(--ink);
}

/* Klook widget, deliberately the only affiliate embed on the page */
.klook-block {
  position: relative;
  margin: 28px 0 34px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-sm);
}
.klook-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--wordmark);
}
.klook-block .panel-label {
  margin-bottom: 14px;
}
.klook-block .klk-aff-widget {
  display: block;
  width: 100%;
  min-height: 160px;
}
.klook-block iframe {
  max-width: 100% !important;
  border: 0;
}
.klook-block .aff-note {
  margin: 16px 0 0;
  font-size: 0.84rem !important;
  line-height: 1.55 !important;
  color: var(--muted);
}

/* Poland card on the hub */
.country-feature {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin: 26px 0 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 48% 80% at 100% 0%, rgba(253, 158, 46, 0.16), transparent 66%),
    linear-gradient(160deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-sm);
}
.country-feature-map {
  display: flex;
  align-items: stretch;
  min-height: 290px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--navy-900);
}
.country-feature-map .country-map {
  display: block;
  width: 100%;
  height: 100%;
}
.country-feature h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}
.country-feature p {
  font-size: 1.04rem !important;
  line-height: 1.65 !important;
}
.pack-inline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  margin: 14px 0 18px;
  padding-left: 1.1em;
}
.pack-inline-list li {
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}
.country-feature .pack-facts {
  margin: 0 0 18px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--coral-deep);
}

/* Future countries: present, but not pretend links */
.pack-coming {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 26px;
}
.pack-coming span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px dashed #b9c8e4;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}
.pack-coming span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.pack-coming span.is-live::before {
  background: #0f8a83;
}
.pack-coming span.is-live {
  border-style: solid;
  border-color: #bfe3df;
  background: #f0fbfa;
}

.pack-routes--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .pack-routes {
    grid-template-columns: minmax(0, 1fr);
  }
  .country-feature {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 860px) {
  .pack-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pack-stops {
    grid-template-columns: minmax(0, 1fr);
  }
  .country-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .country-feature-map {
    min-height: 240px;
    max-height: 300px;
  }
  .country-feature-map .country-map {
    object-fit: cover;
  }
}

@media (max-width: 560px) {
  .pack-hero-actions .btn {
    width: 100%;
  }
  .pack-stat-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .pack-stat {
    padding: 13px 12px;
  }
  .pack-stat strong {
    font-size: 1.18rem;
  }
  .pack-quote {
    padding: 24px 20px;
  }
  .pack-stop {
    padding: 22px 18px 20px;
  }
  .pack-inline-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .klook-block {
    padding: 22px 16px 18px;
  }
  .country-feature {
    padding: 18px;
    border-radius: var(--radius-lg);
  }
}

/* Country flags replace the generated route maps. */
.pack-hero .porthole {
  width: min(100%, 300px);
  aspect-ratio: 3 / 2;
  align-self: center;
  padding: 10px;
  border-radius: 22px;
}
.pack-hero .porthole .country-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.pack-hero .porthole::after {
  inset: 10px;
  border-radius: 14px;
}
/* Multi-flag collage for the hub hero: eight European packs, not one country. */
.pack-flags {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 300px);
  aspect-ratio: 3 / 2;
  justify-self: end;
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background: radial-gradient(120% 120% at 20% 0%, rgba(1, 199, 245, 0.22), rgba(3, 25, 94, 0.9));
  border: 1px solid rgba(85, 216, 255, 0.32);
  box-shadow: var(--shadow);
}

.pack-flags img {
  width: 62px;
  height: 42px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 860px) {
  .pack-hero .pack-flags {
    justify-self: center;
    margin: 22px auto 0;
  }
}

.country-feature-map {
  min-height: 0;
  aspect-ratio: 3 / 2;
  align-self: center;
}
.country-feature-map .country-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .country-feature-map {
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
  }
  .pack-hero .porthole {
    display: block;
    width: min(100%, 320px);
    margin: 22px auto 0;
  }
}

/* "What is inside every pack": give the three summary cards a clearer hierarchy. */
#inside + .grid-3 {
  counter-reset: inside-card;
  gap: 20px;
  margin: 26px 0 38px;
}
#inside + .grid-3 > .feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  overflow: hidden;
  counter-increment: inside-card;
  padding: 28px 26px 26px;
  border: 1px solid #d7e4f3;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(1, 199, 245, 0.08), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  box-shadow: 0 22px 42px -34px rgba(3, 25, 94, 0.45);
}
#inside + .grid-3 > .feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
}
#inside + .grid-3 > .feature:nth-child(2)::before {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}
#inside + .grid-3 > .feature:nth-child(3)::before {
  background: linear-gradient(90deg, #0f8a83, var(--sky));
}
#inside + .grid-3 > .feature::after {
  content: "0" counter(inside-card);
  position: absolute;
  top: 17px;
  right: 22px;
  color: rgba(3, 25, 94, 0.13);
  font-family: var(--font-head);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}
#inside + .grid-3 > .feature .icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 20px -14px rgba(3, 25, 94, 0.6);
}
#inside + .grid-3 > .feature h3 {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 0 0 8px;
  padding-right: 38px;
  font-size: 1.32rem;
  line-height: 1.16;
}
#inside + .grid-3 > .feature p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  #inside + .grid-3 {
    gap: 14px;
  }
  #inside + .grid-3 > .feature {
    min-height: 0;
    padding: 24px 20px 22px;
    border-radius: 20px;
  }
  #inside + .grid-3 > .feature::after {
    top: 15px;
    right: 18px;
    font-size: 1.9rem;
  }
  #inside + .grid-3 > .feature .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
}

/* Keep the flag column fixed: the SVG's intrinsic width must not size the grid. */
.pack-hero .page-hero-inner {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.pack-hero .porthole {
  justify-self: end;
}

@media (max-width: 860px) {
  .pack-hero .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .pack-hero .porthole {
    justify-self: center;
  }
}

/* Attribution and sources under the pack */
.pack-about {
  padding: 44px 0 38px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.pack-about .article-body {
  max-width: 860px;
}
.pack-about h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}
.pack-about h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.pack-about .article-list {
  margin-bottom: 14px;
}
