/* City page: "Venues in {City}", links to the city's venue guides (2026-11-16 redesign) —
   front/partials/_city_venue_guides.blade.php + front/js/city_venue_guides.js.
   Normal-size cards: photo, then name / address / upcoming shows / next show, one line each.
   Up to 4 side by side (centred when fewer); 5+ scroll sideways. Uses --city-dark / --city-lime. */
.cvg {
    padding: 60px 0 64px;
    background: radial-gradient(560px 320px at 100% 0%, rgba(207, 255, 127, 0.5), transparent 70%), #f7fee7;
}
.cvg .container { padding: 0 30px; }
@media (min-width: 768px) { .cvg .container { padding: 0 45px; } }

.cvg-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.cvg-eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: var(--city-dark, #0c2e16); color: var(--city-lime, #cfff7f); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cvg-head h2 { margin: 0 0 10px; font-size: 30px; font-weight: 700; line-height: 1.2; color: #111827; }
.cvg-intro { margin: 0; font-size: 16px; line-height: 1.6; color: #374151; }

/* the row: up to 4 cards in view; centred when they fit, scrolls sideways when they don't */
.cvg-row { position: relative; max-width: 1200px; margin: 0 auto; }
.cvg-list {
    --gap: 18px;
    list-style: none;
    margin: -8px -4px -14px;
    padding: 8px 4px 14px;
    display: flex;
    justify-content: flex-start;
    justify-content: safe center;
    gap: var(--gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding: 0 4px;
    scrollbar-width: none;
}
.cvg-list::-webkit-scrollbar { display: none; }
.cvg-list > li { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); min-width: 250px; scroll-snap-align: start; }
@media (max-width: 1023px) { .cvg-list > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 767px) { .cvg-list { --gap: 12px; margin-right: -30px; padding-right: 30px; } .cvg-list > li { flex-basis: 80%; min-width: 0; } }

.cvg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e3f5c4;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(12, 46, 22, 0.05), 0 10px 24px rgba(12, 46, 22, 0.06);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s;
}
.cvg-card:hover, .cvg-card:focus-visible { transform: translateY(-4px); border-color: var(--city-dark, #0c2e16); box-shadow: 0 18px 36px rgba(12, 46, 22, 0.15); color: inherit; text-decoration: none; }
.cvg-card:focus-visible { outline: 3px solid var(--city-dark, #0c2e16); outline-offset: 3px; }

.cvg-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e5ecd9; }
.cvg-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cvg-card:hover .cvg-card__img img { transform: scale(1.05); }

/* the four lines, in order of importance */
.cvg-card__body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; }
.cvg-card__body > span { min-width: 0; }
.cvg-card__name { font-size: 18px; font-weight: 700; line-height: 1.3; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvg-card__addr, .cvg-card__count { display: flex; align-items: center; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.cvg-card__addr { color: #6b7280; }
.cvg-card__addr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvg-card__count { font-weight: 600; color: var(--city-dark, #0c2e16); }
.cvg-card__addr svg, .cvg-card__count svg { flex: none; width: 15px; height: 15px; }
.cvg-card__next { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 7px 10px; border-radius: 10px; background: #f7fee7; font-size: 13px; color: #374151; }
.cvg-card__next em { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--city-dark, #0c2e16); color: var(--city-lime, #cfff7f); font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cvg-card__next.is-now em { background: var(--city-lime, #cfff7f); color: var(--city-dark, #0c2e16); }
.cvg-card__next > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ‹ › for a row that doesn't fit */
.cvg-btn { position: absolute; top: 34%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--city-dark, #0c2e16); background: #fff; color: var(--city-dark, #0c2e16); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(12, 46, 22, 0.2); transition: background 0.2s, color 0.2s, opacity 0.2s; }
.cvg-btn[hidden] { display: none; }
.cvg-btn svg { width: 20px; height: 20px; }
.cvg-btn--prev { left: -16px; }
.cvg-btn--next { right: -16px; }
.cvg-btn:hover:not(:disabled) { background: var(--city-dark, #0c2e16); color: var(--city-lime, #cfff7f); }
.cvg-btn:disabled { opacity: 0; pointer-events: none; }
.cvg-btn:focus-visible { outline: 3px solid var(--city-dark, #0c2e16); outline-offset: 2px; }
@media (max-width: 767px) { .cvg-btn { display: none !important; } }   /* phones swipe */

@media (max-width: 767px) {
    .cvg { padding: 46px 0 50px; }
    .cvg-head h2 { font-size: 26px; }
}

/* optional "Upcoming shows in {City}" list under the guides */
.cvg-upcoming { margin: 30px auto 0; max-width: 1200px; padding: 24px 26px; border-radius: 20px; background: var(--city-dark, #0c2e16); color: #fff; }
.cvg-upcoming h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--city-lime, #cfff7f); }
.cvg-upcoming ul { list-style: none; margin: 0; padding: 0; }
.cvg-upcoming li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.cvg-upcoming li:first-child { border-top: 0; }
@media (min-width: 768px) { .cvg-upcoming li { grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; } }
.cvg-upcoming__date, .cvg-upcoming__venue { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.cvg-upcoming a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(207, 255, 127, 0.5); text-underline-offset: 3px; }
.cvg-upcoming a:hover { color: var(--city-lime, #cfff7f); }

@media (prefers-reduced-motion: reduce) {
    .cvg-card, .cvg-card__img img { transition: none; }
    .cvg-card:hover { transform: none; }
    .cvg-card:hover .cvg-card__img img { transform: none; }
}
