/* =====================================================================
   SONDAX TRAVEL - Service listing and detail pieces shared by Day Tours,
   Workshops and Private Transfers (Developer.Service.ServiceListing).
   Breadcrumb, category links, count, long text, trust block, links to the
   other services, and the detail-page key facts.
   ===================================================================== */

.st-listing { padding-top: 16px; padding-bottom: 64px; }

/* Intro under the H1 holds admin rich text, so it is a div of paragraphs. */
.st-listing-intro p { margin: 0 0 8px; color: inherit; }
.st-listing-intro p:last-child { margin-bottom: 0; }
.st-listing-intro a { color: #fff; text-decoration: underline; }

/* Breadcrumb */
.st-crumb { font-size: 0.8125rem; color: var(--color-muted); margin: 0 0 16px; }
.st-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.st-crumb li { display: inline-flex; align-items: center; }
.st-crumb li + li::before { content: '\203A'; margin: 0 6px 0 2px; color: var(--color-muted); }
.st-crumb a { color: var(--color-muted); text-decoration: none; }
.st-crumb a:hover { color: var(--color-link); text-decoration: underline; }
.st-crumb [aria-current] { color: var(--color-text); font-weight: 600; }

/* Category links and search on one row; they stack on a phone. */
.st-listing-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; }
.st-listing-tools .st-search-box { flex: 0 1 300px; margin: 0; }
.st-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.st-cat-chip { padding: 8px 18px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; border: 1.5px solid var(--color-border); background: #fff; color: var(--color-muted); text-decoration: none; transition: all var(--transition); line-height: 1.3; }
.st-cat-chip:hover, .st-cat-chip.active { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); text-decoration: none; }

.st-listing-count { font-size: 0.8125rem; color: var(--color-muted); margin: 0 0 14px; }
.st-listing-empty { padding: 32px 0; text-align: center; color: var(--color-muted); }

/* Long text under the list. Narrow column, left aligned: it is meant to be read. */
.st-listing-seo { max-width: 780px; margin: 48px auto 0; }
.st-listing-seo h2 { font-size: 1.5rem; margin: 0 0 12px; }
.st-listing-seo h3 { font-size: 1.15rem; margin: 20px 0 8px; }
.st-listing .st-as-section { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Trust block */
.st-trust { margin: 48px 0 0; padding: 28px 24px; background: var(--color-muted-bg); border-radius: var(--radius-lg, 8px); }
.st-trust-title { font-size: 1.25rem; margin: 0 0 18px; text-align: center; }
.st-trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; }
.st-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.st-trust-icon { flex: 0 0 auto; color: var(--color-success); line-height: 0; margin-top: 2px; }
.st-trust-item strong { display: block; font-size: 0.9375rem; color: var(--color-text); margin-bottom: 4px; }
.st-trust-item p { margin: 0; font-size: 0.8125rem; color: var(--color-muted); line-height: 1.5; }

/* The other services: open rows under a hairline, not a set of boxed cards (October 2026,
   the lighter product pages). Always four links (five services less this one): four across on
   a wide page, two by two in a narrower column, one under the other on a phone. */
.st-xlinks { margin: 48px 0 0; padding-top: 36px; border-top: 1px solid var(--color-border); }
.st-xlinks-title { font-size: 1.5rem; margin: 0 0 14px; text-align: left; }
.st-xlinks-title::before { content: ''; display: block; width: 34px; height: 3px; margin-bottom: 12px; background: var(--color-accent); }
.st-xlinks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.st-xlink { display: block; padding: 14px 0 16px; border-top: 1px solid var(--color-border); text-decoration: none; }
.st-xlink:hover { text-decoration: none; }
.st-xlink strong { display: block; color: var(--color-text); font-size: 1rem; margin-bottom: 4px; transition: color var(--transition); }
.st-xlink:hover strong { color: var(--color-secondary); }
.st-xlink strong::after { content: ' \2192'; color: var(--color-link); }
.st-xlink span { display: block; color: var(--color-muted); font-size: 0.875rem; line-height: 1.55; }
@media (max-width: 1023px) { .st-xlinks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .st-xlinks { margin-top: 36px; padding-top: 28px; }
    .st-xlinks-title { font-size: 1.25rem; }
    .st-xlinks-grid { grid-template-columns: 1fr; }
    .st-xlink { padding: 12px 0 14px; }
}

/* Detail page: key facts row under the title (duration, cancellation, language ...) */
.st-keyfacts { list-style: none; margin: 16px 0 20px; padding: 14px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: 10px 24px; }
.st-keyfact { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--color-text); }
.st-keyfact svg { flex: 0 0 auto; color: var(--color-secondary); }
.st-keyfact small { display: block; font-size: 0.75rem; color: var(--color-muted); }

/* Detail page: practical information (meeting point, what to bring, good to know) */
.st-practical { display: grid; gap: 16px; }
.st-practical-item h3 { font-size: 1rem; margin: 0 0 6px; }
/* The site resets every ul to list-style:none (20.sondax-common.css), which left What to bring
   and Important information as indented lines with no bullets. Same bullets and line spacing
   as the lists inside .st-html-content on the rest of the page. */
.st-practical-item ul { list-style: disc; }
.st-practical-item li { margin-bottom: 0.35em; line-height: 1.7; }
/* The Google Maps link under the meeting point: a button, so it reads as something to tap
   rather than as one more line of text. */
.st-map-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--color-secondary); border-radius: 999px; background: #fff; color: var(--color-secondary); font-size: 0.875rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: all var(--transition); }
.st-map-link:hover, .st-map-link:focus { background: var(--color-secondary); color: #fff; text-decoration: none; }
.st-map-link svg { flex: 0 0 auto; }

/* Detail page: more from the same category */
.st-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.st-related-card { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-lg, 8px); overflow: hidden; background: #fff; text-decoration: none; transition: all var(--transition); }
.st-related-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.st-related-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--color-muted-bg); }
.st-related-card div { padding: 12px 14px; }
.st-related-card strong { display: block; color: var(--color-text); font-size: 0.875rem; line-height: 1.4; }
.st-related-card span { display: block; color: var(--color-muted); font-size: 0.8125rem; margin-top: 6px; }

@media (max-width: 767px) {
    /* The related products swipe sideways, as the card rows on the homepage do: one card and
       the edge of the next, so it is plain there is more. */
    .st-related-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
    .st-related-grid::-webkit-scrollbar { display: none; }
    .st-related-grid > * { flex: 0 0 80%; scroll-snap-align: start; min-width: 0; }
    .st-listing-tools { flex-direction: column; align-items: stretch; }
    .st-listing-tools .st-search-box { flex-basis: auto; }
    .st-cat-chip { padding: 6px 14px; font-size: 0.75rem; }
    .st-trust { padding: 20px 16px; }
    .st-listing-seo { margin-top: 36px; }
}

/* Vietnam Tours: category links under the centred heading */
.st-vt-cat-links { justify-content: center; margin: 18px 0 0; }

/* Category filter on the hubs (Js/20.sondax-listing.js). A class, not inline style, so the
   search box (which sets style.display) cannot show a card the category filter has hidden. */
.st-cat-hidden { display: none !important; }

/* Detail page gallery on a phone (day tour, workshop, transfer; the grid carries
   st-gallery-swipe). The shared rule in 20.sondax-common.css shows the main photo and three
   80px strips under it and hides the rest, so most of a tour's photos could not be seen
   without opening the lightbox. Here every photo is a full-width 4:3 slide in a row that
   swipes, the next one showing at the edge. Desktop keeps the 1 + 4 grid; the photos past the
   fifth (st-gallery-extra) stay out of it and are reached through "+N". */
.st-gallery-grid .st-gallery-extra { display: none; }
@media (max-width: 768px) {
    .st-gallery-grid.st-gallery-swipe.st-gallery-has-subs { display: flex; gap: 6px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .st-gallery-grid.st-gallery-swipe.st-gallery-has-subs::-webkit-scrollbar { display: none; }
    .st-gallery-grid.st-gallery-swipe.st-gallery-has-subs > a { display: block; flex: 0 0 88%; height: auto; aspect-ratio: 4 / 3; scroll-snap-align: start; }
    .st-gallery-grid.st-gallery-swipe .st-gallery-sub:nth-child(n+5) { display: block; }
    .st-gallery-grid.st-gallery-swipe .st-gallery-more { display: none; }
    .st-gallery-grid.st-gallery-swipe.st-gallery-single .st-gallery-main { aspect-ratio: 4 / 3; }
}
