/* ==========================================================================
   Oplevelse: roligere overskrifter, brødkrumme, galleri med fuldskærm,
   klikbar kalender, fast bookingbjælke på mobil, anledninger og link-piller
   ========================================================================== */

/* Overskrifter: mindre voldsomme på både desktop og mobil */
h1 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.12; }
.hero h1 { font-size: clamp(28px, 3vw, 40px); }
@media (max-width: 640px) {
	h1, .hero h1 { font-size: 26px; line-height: 1.16; letter-spacing: -0.02em; }
}

/* Brødkrumme på lys baggrund */
.crumbs-light { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--bt-color-text-muted); margin: 0 0 10px; }
.crumbs-light a { color: var(--bt-color-text-muted); text-decoration: underline; text-underline-offset: 2px; }
.crumbs-light a:hover { color: var(--bt-color-accent-dark); }
.crumbs-light [aria-current] { color: var(--bt-color-text); font-weight: 600; }

/* Galleri */
.vehicle-hero-img a.vg-open { display: block; position: relative; cursor: zoom-in; }
.vg-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 999px; background: rgba(11, 27, 43, .72); color: #fff; display: flex; align-items: center; justify-content: center; }
.vg-zoom .bt-icon { width: 20px; height: 20px; }
.vehicle-gallery { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.vehicle-gallery .vg-thumb { display: block; border-radius: var(--bt-radius-md); overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.vehicle-gallery .vg-thumb img { height: 84px; }
.vehicle-gallery .vg-thumb.is-active { outline-color: var(--bt-color-accent); }
@media (hover: hover) { .vehicle-gallery .vg-thumb:hover { outline-color: var(--bt-color-accent-tint-2, #b9def4); } }
html.vg-lock, html.vg-lock body { overflow: hidden; }
.vg-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(6, 14, 23, .94); display: none; align-items: center; justify-content: center; padding: 56px 12px calc(56px + env(safe-area-inset-bottom)); }
.vg-lightbox.is-open { display: flex; }
.vg-lb-img { max-width: min(1200px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.vg-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 999px; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vg-lightbox button:focus-visible { outline: 3px solid #79cbf2; outline-offset: 2px; }
.vg-lb-close { top: calc(10px + env(safe-area-inset-top)); right: 12px; }
.vg-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.vg-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.vg-lb-count { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; color: #cfe3f1; font-size: 14px; }
@media (max-width: 640px) { .vg-lb-prev, .vg-lb-next { top: auto; bottom: calc(6px + env(safe-area-inset-bottom)); transform: none; } }

/* Klikbar kalender */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; }
.cal-nav-hint { font-size: 14px; color: var(--bt-color-text-muted); text-align: center; }
.cal-nav-btn { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--bt-color-border); background: #fff; color: var(--bt-color-text); font-size: 26px; line-height: 1; cursor: pointer; }
.cal-nav-btn:disabled { opacity: .35; cursor: default; }
button.cal-day { border: 0; font: inherit; cursor: pointer; padding: 0; }
button.cal-day-free:hover, button.cal-day-pending:hover { box-shadow: inset 0 0 0 2px var(--bt-color-accent); }
button.cal-day:focus-visible { outline: 3px solid var(--bt-color-accent); outline-offset: 1px; }
.cal-day-closed { opacity: .55; }
.cal-day.is-range { background: #d6ecfa; color: var(--bt-color-accent-dark); border-radius: 0; opacity: 1; }
.cal-day.is-start, .cal-day.is-end { background: var(--bt-color-accent); color: #fff; opacity: 1; }
.cal-swatch-selected { background: var(--bt-color-accent); }
.cal-swatch-closed { background: var(--bt-color-accent-tint); opacity: .55; }
.cal-legend { row-gap: 8px; }
.cal-selection { min-height: 0; margin-top: 12px; font-size: 15px; line-height: 1.5; border-radius: var(--bt-radius-md); }
.cal-selection:empty { display: none; }
.cal-selection.is-step, .cal-selection.is-ok { background: var(--bt-color-accent-tint); color: var(--bt-color-text); padding: 12px 14px; }
.cal-selection.is-warn { background: #fff3e0; color: #6b4300; padding: 12px 14px; border: 1px solid #f0c987; }
.cal-go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bt-color-accent-dark); }
@media (max-width: 640px) { .cal-nav-hint { font-size: 13px; } }

/* Fast bookingbjælke på mobil (kun køretøjssiden) */
.vehicle-bar { display: none; }
@media (max-width: 900px) {
	.vehicle-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--bt-color-border); box-shadow: 0 -6px 24px rgba(11, 27, 43, .12); transform: translateY(110%); transition: transform .22s ease; }
	.vehicle-bar.is-visible { transform: none; }
	.vb-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
	.vb-price { font-weight: 800; font-size: 18px; color: var(--bt-color-text); }
	.vb-unit { font-size: 13px; color: var(--bt-color-text-muted); }
	.vb-dates { flex-basis: 100%; font-size: 13px; color: var(--bt-color-accent-dark); font-weight: 600; }
	.vb-dates:empty { display: none; }
	.vehicle-bar .button { flex: none; min-height: 48px; padding: 0 22px; }
	html.has-vehicle-bar .bc-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
	html.has-vehicle-bar body { padding-bottom: 76px; }
	html.has-vehicle-bar { scroll-padding-bottom: 90px; }
	#bt-availability-calendar { scroll-margin-bottom: 90px; }
}

/* Anledninger på forsiden */
.occasion-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.occasion-grid a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 72px; padding: 14px 16px; background: #fff; border: 1px solid var(--bt-color-border); border-radius: var(--bt-radius-md); color: var(--bt-color-text); text-decoration: none; height: 100%; }
.occasion-grid .occ-title { font-weight: 800; font-size: 16px; }
.occasion-grid .occ-title, .occasion-grid .occ-text { min-width: 0; overflow-wrap: anywhere; hyphens: manual; }
.occasion-grid .occ-text { grid-row: 2; font-size: 13px; color: var(--bt-color-text-muted); }
.occasion-grid .bt-icon { grid-row: 1 / span 2; grid-column: 2; color: var(--bt-color-accent); width: 18px; height: 18px; }
@media (hover: hover) { .occasion-grid a:hover { border-color: var(--bt-color-accent); box-shadow: 0 6px 18px rgba(11, 27, 43, .08); } }
@media (max-width: 900px) { .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .occasion-grid a { padding: 12px; } .occasion-grid .occ-title { font-size: 15px; } }

/* Link-piller på landingssider (andre ture, anledninger) */
.lp-pills { list-style: none; margin: 8px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-pills li { margin: 0; }
.lp-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bt-color-accent-tint); color: var(--bt-color-accent-dark); font-weight: 600; font-size: 15px; text-decoration: none; }
@media (hover: hover) { .lp-pills a:hover { background: var(--bt-color-accent); color: #fff; } }
