/* Destinations hub: places by region of Europe as postcards, then what we do and the legal guides. */
.page-destinations .dest-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.page-destinations .dest-jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 6px; }
.page-destinations .dest-jump .tag { min-height: 36px; padding: 6px 14px; }

.page-destinations .dest-region { padding-block: clamp(28px, 4vw, 52px); scroll-margin-top: 90px; }
.page-destinations .dest-region + .dest-region { border-top: 1px solid var(--line); }
.page-destinations .dest-region__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(20px, 2.6vw, 30px); }
.page-destinations .dest-region__head h2 { font-size: clamp(28px, 3vw, 40px); }
.page-destinations .dest-region__head .label { max-width: 60ch; }

.page-destinations .dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 26px); }
@media (min-width: 1100px) { .page-destinations .dest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.page-destinations .dest-card { display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 14px; background: var(--white); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.page-destinations .dest-card__main { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.page-destinations .dest-card__main:hover .dest-card__name { color: var(--blue); }
.page-destinations .dest-card__main:hover .media img { transform: scale(1.03); }
.page-destinations .dest-card .media img { object-position: 50% 30%; }
.page-destinations .dest-card__body { display: grid; gap: 8px; padding-inline: 4px; }
.page-destinations .dest-card__name { font: 400 clamp(22px, 2vw, 26px)/1.15 var(--f-display); color: var(--blue-deep); }
.page-destinations .dest-card__legal { justify-self: start; }
.page-destinations .dest-card__text { font-size: 15px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.page-destinations .dest-card__more { display: grid; gap: 6px; margin: 0 4px; padding-top: 10px; border-top: 1px dashed #C5CEDC; }
.page-destinations .dest-card__more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.page-destinations .dest-card__more a { font-size: 15px; }

.page-destinations .dest-services__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.page-destinations .dest-services .card--panel { height: 100%; gap: 12px; }
.page-destinations .dest-services .card--panel .link-arrow { margin-top: auto; }

.page-destinations .dest-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.page-destinations .dest-links li { border-bottom: 1px solid var(--line); }
.page-destinations .dest-links a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: inherit; }
.page-destinations .dest-links__title { font: 400 21px/1.25 var(--f-display); color: var(--blue-deep); }
.page-destinations .dest-links a:hover .dest-links__title { color: var(--blue); }
.page-destinations .dest-links__meta { font: 700 12px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.page-destinations .dest-legal__all { margin-top: 26px; }
@media (max-width: 760px) { .page-destinations .dest-links { grid-template-columns: minmax(0, 1fr); } }
.page-destinations .page-hero h1 { font-size: clamp(34px, 4.2vw, 56px); }

/* 1.5.0: hero shortcuts, country links per region, wide cards for countries with many places, country index */
.page-destinations .dest-choose { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 14px; }
.page-destinations .dest-choose ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; }
.page-destinations .dest-choose a { display: inline-flex; align-items: center; min-height: 36px; }
.page-destinations .dest-region__countries { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; }
.page-destinations .dest-region__countries a { display: inline-flex; align-items: center; min-height: 36px; font: 700 13px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.page-destinations .dest-grid { grid-auto-flow: row dense; }
.page-destinations .dest-card__more a { display: inline-flex; align-items: center; min-height: 32px; }
@media (min-width: 700px) {
  .page-destinations .dest-card--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .page-destinations .dest-card--wide .dest-card__more { align-self: stretch; align-content: start; margin: 0; padding: 4px 0 0 16px; border-top: 0; border-left: 1px dashed #C5CEDC; }
  .page-destinations .dest-card--wide .dest-card__more ul { display: grid; gap: 0; }
}
.page-destinations .dest-legal__sub { margin: clamp(32px, 4vw, 48px) 0 14px; font-size: clamp(22px, 2.2vw, 28px); }

/* ---- 1.5.1 layout fixes ---- */
/* fewer lonely last cards: regions whose cards do not fill rows of four use rows of three */
@media (min-width: 1100px) {
  .page-destinations .dest-grid:not(:has(.dest-card--wide)):is(:has(> :nth-child(3):last-child), :has(> :nth-child(5):last-child), :has(> :nth-child(6):last-child)),
  .page-destinations .dest-grid:has(.dest-card--wide):is(:has(> :nth-child(2):last-child), :has(> :nth-child(5):last-child)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* wide country cards: a long list of places runs in two columns, so the card is not taller than its photo needs */
@media (min-width: 700px) {
  .page-destinations .dest-card--wide .dest-card__more ul:has(> li:nth-child(6)) { display: block; columns: 2; column-gap: 16px; }
  .page-destinations .dest-card--wide .dest-card__more ul:has(> li:nth-child(6)) li { break-inside: avoid; }
}
