/* Alpine passes hub: one card per country; its id is the anchor (#schweiz ...). */

.ap-ct { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.ap-ct__col { padding: 22px; background: #fff; border: 1px solid var(--ap-line); border-radius: 6px; scroll-margin-top: 100px; }
.ap-ct__h3 { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.ap-ct__n { margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--ap-muted); }
.ap-ct__list { list-style: none; margin: 0; padding: 0; }
.ap-ct__list li {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 9px 0; border-top: 1px solid rgba(17, 18, 20, .07); font-size: 14px; font-weight: 500;
}
.ap-ct__list a:hover { text-decoration: underline; text-decoration-color: var(--ap-or); text-underline-offset: 3px; }
.ap-ct__list span { color: var(--ap-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (min-width: 600px) {
    .ap-ct { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1200px) {
    .ap-ct { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Cover photo per country: its most searched pass, the name on the photo. */
.ap-ct__col { display: flex; flex-direction: column; padding: 0 22px 22px; overflow: hidden; }
/* The cards of one row are as tall as the longest list; the cover photo takes up the difference,
   so a country with two passes has a bigger photo, not a hole under its list. */
.ap-ct__media { position: relative; display: block; flex: 1 0 auto; aspect-ratio: 16 / 10; margin: 0 -22px 18px; overflow: hidden; background: var(--ap-closed); }
.ap-ct__media picture { position: absolute; inset: 0; display: block; }
.ap-ct__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ap-ct__col:hover .ap-ct__img { transform: scale(1.04); }
.ap-ct__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 18, 20, .6) 0%, rgba(17, 18, 20, 0) 55%); }
.ap-ct__media-name {
    position: absolute; left: 14px; bottom: 10px; z-index: 1;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(237, 227, 213, .9);
}

@media (prefers-reduced-motion: reduce) {
    .ap-ct__img, .ap-ct__col:hover .ap-ct__img { transition: none; transform: none; }
}
