/* /v2/ — site overrides on top of Bootstrap 5 */

:root {
  --vn-accent: #ffc107;
  --vn-dark:   #1d1f23;
}

html, body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .3px;
}

/* Hero on home */
.vn-hero {
  background: linear-gradient(135deg, #1d1f23 0%, #2c3138 60%, #3a3f48 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem 2rem;
}

/* Channel tiles */
.vn-tile {
  display: block;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.vn-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); color: inherit; }
.vn-tile .vn-tile-icon { font-size: 2rem; color: var(--vn-accent); }

/* Ad units — make them obvious but not aggressive */
.v2-ad {
  margin: 1.5rem auto;
  max-width: 100%;
  overflow: hidden;
}
.v2-ad::before {
  content: "Advertisement";
  display: block;
  font-size: .7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9aa0a6;
  text-align: center;
  margin-bottom: .25rem;
}

/* Wrapped legacy content: contain & tidy old inline styles */
.legacy-content { line-height: 1.55; }
/* Unwrap the legacy two-column layout shells — legacy CSS not loaded so no floats apply,
   but display:contents makes them fully transparent to layout just in case. */
.legacy-content .column { display: contents; }
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content table { max-width: 100%; }
.legacy-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.legacy-content h2 { font-size: 1.5rem; margin-top: 1.5rem; }
.legacy-content a  { color: #0d6efd; }
.legacy-content .stars2 {
  display: inline-block; width: 80px; height: 16px;
  background: linear-gradient(to right, var(--vn-accent) 40%, #e6e6e6 40%);
  border-radius: 2px;
}
/* Hide legacy chrome that occasionally leaks through */
.legacy-content #navbg,
.legacy-content #subnavbg,
.legacy-content #header,
.legacy-content .crumb,
.legacy-content script,
.legacy-content iframe[src*="aax2"],
.legacy-content iframe[src*="intellitxt"] { display: none !important; }

/* Star ratings */
.vn-stars { color: var(--vn-accent); font-size: .85rem; letter-spacing: 1px; white-space: nowrap; }
.vn-stars .bi-star, .vn-stars .bi-star-half, .vn-stars .bi-star-fill { line-height: 1; }

/* Reviews — modern card layout */
.vn-reviews-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.vn-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f0f1f3;
  flex-wrap: wrap;
}
.vn-reviews-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.vn-reviews-score {
  font-family: 'Oswald', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--vn-dark);
  line-height: 1;
}
.vn-reviews-summary .vn-stars { font-size: 1rem; }

.vn-reviews-list { display: flex; flex-direction: column; gap: 1rem; }

.vn-review {
  display: flex;
  gap: .9rem;
  padding: 1rem;
  background: #fafbfc;
  border-radius: .5rem;
  border: 1px solid #f0f1f3;
}
.vn-review-avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vn-dark) 0%, #2c3138 100%);
  color: var(--vn-accent);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.vn-review-main { flex: 1; min-width: 0; }
.vn-review-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.vn-review-name { font-size: .95rem; color: var(--vn-dark); }
.vn-review-stars .vn-stars { font-size: .8rem; }
.vn-review-body {
  font-size: .92rem;
  line-height: 1.55;
  color: #41464b;
  white-space: pre-line;
}

.vn-no-reviews {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.25rem 1.5rem;
  background: #fafbfc;
  border: 1px dashed #d1d5da;
  border-radius: .5rem;
  color: #6c757d;
}
.vn-no-reviews i { font-size: 1.75rem; color: #adb5bd; }

/* Sidebar sticky ad */
.vn-sidebar-sticky { position: sticky; top: 90px; }

@media (max-width: 991.98px) {
  .vn-sidebar-sticky { position: static; }
}

/* Venue info card (enriched data sidebar) */
.vn-venue-info-card { border: 1px solid rgba(0,0,0,.1); }

.vn-venue-logo-wrap {
  background: #f8f9fa;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vn-venue-logo {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vn-info-row {
  display: flex;
  align-items: flex-start;
  gap: .1rem;
}
.vn-info-row i { margin-top: .15rem; flex-shrink: 0; }

/* ── Channel venue list (horizontal rows) ────────────────────────────── */
.vn-venue-list {
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
}

.vn-venue-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid #f0f1f3;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}
.vn-venue-row:last-child { border-bottom: none !important; }
.vn-venue-row:hover { background: #fafbfc; color: inherit; }

/* Avatar — coloured initials or real logo */
.vn-vr-avatar {
  width: 44px;
  height: 44px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.vn-vr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f9fa;
  padding: 2px;
}

/* Text body */
.vn-vr-body { min-width: 0; }
.vn-vr-name {
  font-weight: 600;
  font-size: .95rem;
  color: #1d1f23;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vn-venue-row:hover .vn-vr-name { color: #c79000; }
.vn-vr-meta {
  font-size: .78rem;
  color: #6c757d;
  margin-top: .1rem;
}
.vn-vr-meta .bi { font-size: .7rem; margin-right: .2rem; }
.vn-vr-addr {
  font-size: .75rem;
  color: #5f6368;            /* WCAG AA: 5.96:1 on white (was #9aa0a6 = 2.74:1, failed AA) */
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rating column */
.vn-vr-rating {
  text-align: right;
  min-width: 80px;
}
.vn-vr-rating .vn-stars { font-size: .75rem; display: block; }
.vn-vr-revcount {
  font-size: .7rem;
  color: #9aa0a6;
  margin-top: .1rem;
  white-space: nowrap;
}
.vn-vr-unrated {
  font-size: .7rem;
  color: #6c757d;            /* WCAG AA: 4.54:1 on white (was #ced4da = 1.61:1, failed AA badly) */
}

/* Chevron */
.vn-vr-chevron {
  color: #6c757d;            /* WCAG AA: 4.54:1 on white (was #ced4da = 1.61:1, failed AA badly) */
  font-size: .8rem;
  transition: color .12s, transform .12s;
}
.vn-venue-row:hover .vn-vr-chevron {
  color: var(--vn-accent);
  transform: translateX(2px);
}

@media (max-width: 575.98px) {
  /* Keep ratings visible on phones — they're a key conversion signal.
     Stack vertically + compact instead of hiding entirely. */
  .vn-vr-rating { min-width: 60px; }
  .vn-vr-rating .vn-stars { font-size: .7rem; display: block; }
  .vn-vr-review-count { font-size: .65rem; }
  .vn-venue-row { padding: .65rem .75rem; }
  .vn-vr-avatar { width: 38px; height: 38px; font-size: .8rem; }
}

/* ── Festival cards ───────────────────────────────────────────────────── */
.vn-festival-card { transition: transform .15s ease, box-shadow .15s ease; }
.vn-festival-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1) !important; }
.vn-fest-icon {
  width: 44px; height: 44px;
  background: var(--vn-dark);
  color: var(--vn-accent);
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Information section (venue detail pages) ─────────────────────────── */
.vn-info-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
}
.vn-info-heading {
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1d1f23;
  border-bottom: 2px solid #ffc107;
  padding-bottom: .5rem;
  margin-bottom: .75rem;
}
.vn-info-dl { margin: 0; }
.vn-info-pair {
  display: flex;
  gap: .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.vn-info-pair:last-child { border-bottom: none; }
.vn-info-pair dt {
  flex: 0 0 110px;
  font-size: .78rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: .1rem;
  margin: 0;
}
.vn-info-pair dd {
  flex: 1;
  font-size: .875rem;
  color: #343a40;
  margin: 0;
  line-height: 1.55;
  white-space: pre-line; /* honour \n from multi-line hours */
}
@media (max-width: 575.98px) {
  .vn-info-pair { flex-direction: column; gap: .15rem; }
  .vn-info-pair dt { flex: none; }
}

/* ── Hotel detail sections (Key Facilities, Travel Guide) ───────────────── */
.vn-hotel-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .6rem;
  padding: 1rem 1.1rem;
}
.vn-hotel-section .vn-info-heading {
  margin-bottom: .6rem;
}
.vn-hotel-section ul li {
  padding: .2rem 0;
  color: #343a40;
}

/* ── Venue rows (shared by channel.php, cuisine.php, area.php) ─────────────
   Replaces dozens of inline style attributes for cleaner HTML + cacheable CSS.
   Dynamic avatar background colour stays inline as a CSS custom property:
       <div class="vn-vr-avatar" style="--vr-avatar-bg: #e67e22">
   The .has-logo modifier overrides the bg to a light surface for logo images. */

.vn-venue-list {
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
}

.vn-vr-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f1f3;
}
.vn-vr-link:last-child { border-bottom: 0; }
.vn-vr-link:hover { background: #fafbfc; color: inherit; }

.vn-vr-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: .5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vr-avatar-bg, #6c757d);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: #fff;
}
.vn-vr-avatar.has-logo { background: #f8f9fa; }
.vn-vr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.vn-vr-body {
  flex: 1;
  min-width: 0;
}

.vn-vr-name {
  font-weight: 600;
  font-size: .95rem;
  color: #1d1f23;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vn-vr-name.is-closed { color: #6c757d; }

.vn-vr-badge-closed {
  font-size: .6rem;
  vertical-align: middle;
  padding: .2em .45em;
}

.vn-vr-meta {
  font-size: .78rem;
  color: #6c757d;
  margin-top: .1rem;
}
.vn-vr-meta i { font-size: .7rem; }

.vn-vr-meta-subtle {
  font-size: .72rem;
  color: #adb5bd;
  margin-top: .1rem;
}

.vn-vr-addr {
  font-size: .75rem;
  color: #9aa0a6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vn-vr-rating {
  text-align: right;
  min-width: 80px;
  flex-shrink: 0;
}
.vn-vr-review-count {
  font-size: .7rem;
  color: #9aa0a6;
  margin-top: .1rem;
}
.vn-vr-no-reviews {
  font-size: .7rem;
  color: #6c757d;            /* WCAG AA: 4.54:1 on white (was #ced4da = 1.61:1, failed AA badly) */
}

.vn-vr-chevron {
  flex-shrink: 0;
  color: #6c757d;            /* WCAG AA: 4.54:1 on white (was #ced4da = 1.61:1, failed AA badly) */
  font-size: .8rem;
}

/* Generic section heading used across listings */
.vn-section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
}

/* ── Hero image (homepage) ─────────────────────────────────────────────────── */
.vn-hero-img {
  max-width: 100%;
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
/* On mobile, cap hero image height so it doesn't dominate the fold above the CTAs */
@media (max-width: 991.98px) {
  .vn-hero-img {
    max-height: 180px;
    width: auto;
    margin-top: 1.25rem;
  }
}

/* ── Screen-reader only headings (semantic structure without visual chrome) ── */
.vn-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Mobile UX fixes (mobile audit June 2026) ──────────────────────────────── */

/* Fix #2: iOS Safari auto-zooms on inputs <16px when focused.
   Force navbar search to 16px so it stays put when tapped. */
.navbar .form-control,
.navbar .form-control-sm,
.navbar .form-select {
  font-size: 16px;
}

/* Fix #3: Touch targets — WCAG 2.5.5 requires ≥44×44px tappable area on mobile.
   These rules ONLY apply on touch-capable / small viewports so desktop dense UI is preserved. */
@media (max-width: 991.98px) {
  .btn-sm,
  .page-link,
  .vn-vr-link {
    min-height: 44px;
  }
  .pagination .page-link {
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Footer link rows — give padding for tap area */
  footer.bg-dark a,
  footer .text-muted a {
    display: inline-block;
    padding: .25rem 0;
  }
  /* Sidebar area/cuisine pills — more breathing room */
  .vn-sidebar-sticky .btn,
  .vn-sidebar-sticky a.btn {
    margin-bottom: .35rem;
  }
}

/* Fix #6: Wide legacy tables overflow on mobile.
   Wrap in horizontal scroll instead of breaking the layout. */
.legacy-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Fix #7: Eliminate 300ms tap delay on older mobile browsers + cleaner tap feedback */
.vn-vr-link,
.vn-tile,
.btn,
.nav-link,
.page-link {
  touch-action: manipulation;
}

/* Search form in collapsed mobile nav — spacing so it doesn't sit flush against last nav link */
@media (max-width: 991.98px) {
  .navbar .navbar-nav + form {
    margin-top: .75rem;
  }
}

/* ── Skip link (visible only on focus) ─────────────────────────────────────── */
.vn-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--vn-accent);
  color: var(--vn-dark);
  padding: .75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 1100;
  border-radius: 0 0 .375rem 0;
}
.vn-skip-link:focus {
  top: 0;
  color: var(--vn-dark);
}

/* ── Focus-visible — high-contrast ring across the site ────────────────────── */
:focus-visible {
  outline: 2px solid var(--vn-dark);
  outline-offset: 2px;
}
.bg-dark :focus-visible,
.navbar-dark :focus-visible {
  outline-color: var(--vn-accent);
}

/* ── Footer contrast (WCAG AA) ────────────────────────────────────────────── */
/* Bootstrap's .text-secondary (#6c757d) on .bg-dark is ~4.4:1 — fails AA for normal text.
   Override to #adb5bd which is ~6.5:1 — passes AA at all sizes. */
footer.bg-dark .text-secondary,
footer.bg-dark .link-secondary {
  color: #adb5bd !important;
}
footer.bg-dark .link-secondary:hover {
  color: #ced4da !important;
}
