/* Park photo cards: the "more parks" rail on a park page and the parks grid
   on the category page (Task 4.6) share these classes. */

.pk-park-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.pk-park-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: #111214;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
}
.pk-park-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 18, 20, .22);
}
.pk-park-card:focus-visible { outline: 2px solid #FF6A00; outline-offset: 3px; }
.pk-park-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.pk-park-card:hover .pk-park-card__img { transform: scale(1.05); }
.pk-park-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,18,20,.90) 0%, rgba(17,18,20,.45) 50%, rgba(17,18,20,.05) 100%);
}
.pk-park-card__name {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #EDE3D5;
}
.pk-park-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 2px;
    background: #FF6A00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pk-neighbours__country {
    margin: 28px 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .pk-park-card, .pk-park-card__img { transition: none; }
    .pk-park-card:hover { transform: none; }
    .pk-park-card:hover .pk-park-card__img { transform: none; }
}
@media (max-width: 900px) {
    .pk-park-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pk-park-grid { grid-template-columns: 1fr; }
}
