/* ============================================================
   VOYAGE — page-level styles of the catalog pages (Phase 7 P5)
   Record card, list (keyset "more"), detail blocks, price, search.
   Same tokens as voyage.css (--v-*); loaded after it by the layout.
   ============================================================ */

/* ---------- Record card (vertical / row) ---------- */
.v-rcard {
    background: var(--v-surface, #fff); border: 1px solid var(--v-border); border-radius: var(--v-radius-lg);
    overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.v-rcard:hover { transform: translateY(-3px); box-shadow: var(--v-shadow-lg); border-color: transparent; }
.v-rcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--v-canvas); }
.v-rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.v-rcard:hover .v-rcard__media img { transform: scale(1.05); }
.v-rcard__placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(140deg, var(--v-canvas), color-mix(in srgb, var(--v-primary) 8%, var(--v-canvas)));
    color: color-mix(in srgb, var(--v-primary) 35%, transparent);
}
.v-rcard__placeholder .v-icon { width: 40px; height: 40px; }
.v-rcard__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.v-rcard__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.v-rcard__title a { color: inherit; text-decoration: none; }
.v-rcard__title a:hover, .v-rcard__title a:focus-visible { color: var(--v-primary); }
.v-rcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v-rcard__meta li {
    font-size: 12.5px; line-height: 1.2; color: var(--v-muted); padding: 4px 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--v-primary) 6%, var(--v-canvas)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.v-rcard__foot {
    margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding-top: 10px; border-top: 1px dashed var(--v-border);
}
.v-rcard__go {
    display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--v-font-body); color: var(--v-primary);
    text-decoration: none; padding: 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--v-primary) 8%, transparent);
    transition: background .15s ease, color .15s ease; white-space: nowrap;
}
.v-rcard__go .v-icon { width: 14px; height: 14px; }
.v-rcard:hover .v-rcard__go, .v-rcard__go:focus-visible { background: var(--v-primary); color: #fff; }

/* Row variant: list pages */
.v-rcard--row { display: grid; grid-template-columns: 260px 1fr; flex-direction: initial; }
.v-rcard--row .v-rcard__media { aspect-ratio: auto; min-height: 190px; }
.v-rcard--row .v-rcard__body { padding: 20px 22px; }
.v-rcard--row .v-rcard__title { font-size: 19px; }
.v-rcard--row:hover { transform: none; }

/* ---------- Price ---------- */
.v-price { display: inline-flex; flex-direction: column; gap: 1px; }
.v-price__amount { font: 800 20px/1.1 var(--v-font-display); color: var(--v-cta-dark); }
.v-price__note, .v-price__tax { font-size: 11.5px; color: var(--v-muted); }
.v-price--lg .v-price__amount { font-size: 30px; }

/* ---------- List page ---------- */
.v-listing__layout--full { grid-template-columns: 1fr; }
.v-filter-sidebar fieldset.v-filter-group { margin: 0; border: 0; border-top: 1px solid var(--v-border); padding: 14px 0; min-width: 0; }
.v-filter-sidebar legend.v-filter-group__title { padding: 0; float: left; width: 100%; }
.v-filter-sidebar legend + * { clear: both; }
.v-filter-check__count {
    margin-left: auto; font-size: 11.5px; color: var(--v-muted); background: var(--v-canvas);
    border-radius: 999px; padding: 2px 8px; min-width: 24px; text-align: center;
}
.v-filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; clear: both; }
.v-filter-range__field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--v-muted); }
.v-filter-range__field .v-filter-input { padding: 8px 10px; font-size: 13.5px; }
.v-filter-check input:focus-visible, .v-filter-input:focus-visible, .v-listing__sort select:focus-visible { outline: 2px solid var(--v-primary); outline-offset: 2px; }
.v-empty-state--card { background: var(--v-surface, #fff); border: 1px dashed var(--v-border); border-radius: var(--v-radius-lg); }
.v-more { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.v-more .v-icon { width: 15px; height: 15px; }
.v-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 8px;
    margin-left: 8px; vertical-align: middle; border-radius: 999px; font: 700 12px/1 var(--v-font-body);
    background: color-mix(in srgb, var(--v-primary) 10%, transparent); color: var(--v-primary);
}
.v-grid--compact { gap: 18px; }

/* ---------- Detail page ---------- */
.v-detail { padding-top: 12px; }
.v-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.v-detail__main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.v-detail__head { display: flex; flex-direction: column; gap: 6px; }
.v-detail__eyebrow { font: 700 11.5px/1 var(--v-font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--v-primary); }
.v-detail__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.v-detail__aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.v-detail__card {
    display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--v-surface, #fff);
    border: 1px solid var(--v-border); border-radius: var(--v-radius-lg); box-shadow: var(--v-shadow-md);
}
.v-detail__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--v-ink); text-decoration: none; padding-top: 4px; }
.v-detail__phone:hover, .v-detail__phone:focus-visible { color: var(--v-primary); }

.v-dblock { display: flex; flex-direction: column; gap: 14px; }
.v-dblock__title { font-size: 21px; font-weight: 800; margin: 0; }
.v-dblock__label { font: 700 11.5px/1 var(--v-font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--v-muted); }
.v-dblock .v-collage { margin: 0; }
.v-daction { padding: 22px; border: 1px solid var(--v-border); border-radius: var(--v-radius-lg); background: var(--v-canvas); scroll-margin-top: 120px; }

.v-dfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--v-border); border-radius: var(--v-radius); overflow: hidden; }
.v-dfields__row { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--v-border); min-width: 0; }
.v-dfields__row:nth-child(odd):not(.v-dfields__row--wide) { border-right: 1px solid var(--v-border); }
.v-dfields__row--wide { grid-column: 1 / -1; }
.v-dfields__row:last-child { border-bottom: 0; }
.v-dfields dt { font: 700 11.5px/1.2 var(--v-font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--v-muted); }
.v-dfields dd { margin: 0; font-size: 15px; color: var(--v-ink); overflow-wrap: anywhere; }

.v-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: none; }
.v-steps__item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 0 0 18px; position: relative; }
.v-steps__item:not(:last-child)::before {
    content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--v-border);
}
.v-steps__num {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font: 800 14px/1 var(--v-font-display); color: #fff; background: var(--v-primary);
}
.v-steps__body { padding-top: 6px; }
.v-steps__body strong { display: block; font-size: 15.5px; }
.v-steps__body p { margin: 4px 0 0; color: var(--v-muted); font-size: 14.5px; }

.v-dcontact { list-style: none; margin: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--v-border); border-radius: var(--v-radius-lg); }
.v-dcontact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; overflow-wrap: anywhere; }
.v-dcontact .v-icon { width: 16px; height: 16px; color: var(--v-primary); flex: 0 0 auto; margin-top: 2px; }
.v-dcontact a { color: inherit; }
.v-contact--solo { grid-template-columns: 1fr; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .v-detail__layout { grid-template-columns: 1fr; }
    .v-detail__aside { position: static; }
    .v-rcard--row { grid-template-columns: 200px 1fr; }
}

@media (max-width: 720px) {
    /* the results column may shrink below the bar's content width; the bar wraps instead of scrolling the page */
    .v-listing__layout > * { min-width: 0; }
    .v-listing__bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
    .v-rcard--row { grid-template-columns: 1fr; }
    .v-rcard--row .v-rcard__media { min-height: 0; aspect-ratio: 4 / 3; }
    .v-dfields { grid-template-columns: 1fr; }
    .v-dfields__row:nth-child(odd):not(.v-dfields__row--wide) { border-right: 0; }
    .v-price--lg .v-price__amount { font-size: 26px; }
    .v-daction { padding: 16px; }
}

.v-rcard__price { display: flex; align-items: flex-end; min-height: 1px; }
.v-contact__info, .v-contact__form { min-width: 0; }

/* ---------- Upcoming dates and price table (Phase 9 P8) ---------- */
.v-occ { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--v-border); border-radius: var(--v-radius-lg); overflow: hidden; }
.v-occ__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px; background: var(--v-surface, #fff); }
.v-occ__row + .v-occ__row { border-top: 1px solid var(--v-border); }
.v-occ__row.is-full { background: var(--v-canvas); }
.v-occ__row.is-full .v-occ__title, .v-occ__row.is-full .v-occ__date { opacity: .55; }
.v-occ__date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 58px; border-radius: var(--v-radius);
    background: color-mix(in srgb, var(--v-primary) 9%, var(--v-canvas)); color: var(--v-primary); line-height: 1;
}
.v-occ__date strong { font: 800 22px/1 var(--v-font-display); }
.v-occ__date span { font: 700 11px/1 var(--v-font-body); text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }
.v-occ__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.v-occ__title { font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.v-occ__title a { color: inherit; text-decoration: none; }
.v-occ__title a:hover, .v-occ__title a:focus-visible { color: var(--v-primary); text-decoration: underline; }
.v-occ__when { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--v-muted); }
.v-occ__when .v-icon { width: 14px; height: 14px; flex: 0 0 auto; }
.v-occ__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.v-occ__seats {
    display: inline-block; font: 700 11.5px/1 var(--v-font-body); padding: 5px 9px; border-radius: 999px; white-space: nowrap;
    color: color-mix(in srgb, #ea580c 72%, var(--v-ink)); background: color-mix(in srgb, #f97316 14%, var(--v-surface, #fff));
}
.v-occ__seats--full { color: var(--v-muted); background: color-mix(in srgb, var(--v-muted) 14%, var(--v-surface, #fff)); }

.v-ptable { overflow-x: auto; border: 1px solid var(--v-border); border-radius: var(--v-radius-lg); -webkit-overflow-scrolling: touch; }
.v-ptable:focus-visible { outline: 2px solid var(--v-primary); outline-offset: 2px; }
.v-ptable__table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
.v-ptable__table th, .v-ptable__table td { padding: 12px 16px; border-bottom: 1px solid var(--v-border); text-align: left; vertical-align: middle; }
.v-ptable__table tbody tr:last-child > * { border-bottom: 0; }
.v-ptable__table thead th { font: 700 11.5px/1.2 var(--v-font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--v-muted); background: var(--v-canvas); white-space: nowrap; }
.v-ptable__table tbody th { font-weight: 600; }
.v-ptable__table .v-ptable__num { text-align: right; white-space: nowrap; }
.v-ptable__table tr.is-full { color: var(--v-muted); }
.v-ptable__label { display: block; overflow-wrap: anywhere; }
.v-ptable__when { display: block; color: var(--v-muted); font-size: 12.5px; font-weight: 400; margin-top: 3px; }
.v-ptable__table .v-occ__seats { margin-top: 5px; }
.v-ptable__none { color: var(--v-muted); }
.v-ptable__tax { color: var(--v-muted); font-size: 12.5px; }

/* Visitor date filter (Phase 9 P8) */
.v-filter-range--dates .v-filter-input { min-width: 0; }

@media (max-width: 720px) {
    .v-occ__row { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
    .v-occ__side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
    .v-ptable__table th, .v-ptable__table td { padding: 10px 12px; }
}

/* Phase 9 P7: caption of the main gallery image (file caption) */
.v-collage__caption { margin: 8px 0 0; font-size: .86rem; font-style: italic; color: var(--v-muted, #5b6b7c); }
