/**
 * Bedrijvengids: overzicht en bedrijfspagina.
 * Gebruikt alleen variabelen uit assets/css/tokens.css.
 */

/* ---------- Overzicht ---------- */

.bh-directory {
	display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 32px;
}

.bh-filters {
	flex: 1 1 240px; max-width: 100%;
	background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); padding: 22px;
}
.bh-filters__title { font-size: 17px; margin-bottom: 10px; }
.bh-filters__list { list-style: none; margin: 0 0 20px; padding: 0; }
.bh-filters__list a {
	display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; margin: 0 -10px;
	border-radius: var(--bh-radius-btn); font-size: 15px;
}
.bh-filters__list a:hover { background: var(--bh-bg); }
.bh-filters__list a.is-active { background: var(--bh-sky); font-weight: 800; }
.bh-filters__dot { width: 14px; height: 14px; flex: 0 0 auto; border-radius: 6px 2px 6px 2px; }
.bh-filters__count { margin-left: auto; font-size: 13px; color: var(--bh-muted); }

.bh-promo-box {
	background: var(--bh-accent); border-radius: var(--bh-radius-block); padding: 20px;
}
.bh-promo-box strong { display: block; font-size: 15px; font-weight: 800; }
.bh-promo-box p { margin: 4px 0 12px; font-size: 14px; }

.bh-results { flex: 999 1 520px; min-width: 0; }
.bh-results__count { margin: 0 0 16px; font-size: 15px; color: var(--bh-muted); }
.bh-results__count a { color: var(--bh-ink); text-decoration: underline; }
.bh-results__list { display: flex; flex-direction: column; gap: 16px; }

/* Bedrijfskaart */
.bh-listing {
	display: flex; flex-wrap: wrap; background: var(--bh-white);
	border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); overflow: hidden;
}
.bh-listing.is-featured { box-shadow: 0 0 0 2px var(--bh-accent), 0 8px 24px rgba(14, 34, 51, 0.08); }
.bh-listing__media {
	position: relative; flex: 0 1 220px; min-height: 180px; margin: 8px; overflow: hidden;
	border-radius: var(--bh-radius-img); background: var(--bh-tint-2);
}
.bh-listing__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-listing__media .bh-badge { position: absolute; left: 12px; top: 12px; }
.bh-listing__body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 20px 14px; }
.bh-listing__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bh-listing__cat { font-size: 13px; font-weight: 600; color: var(--bh-muted); }
.bh-listing__title { margin: 0; font-size: 21px; }
.bh-listing__text { margin: 0; font-size: 15px; color: var(--bh-muted); line-height: 1.55; }
.bh-listing__meta { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--bh-muted); }
.bh-listing__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bh-listing__more { margin-left: auto; }
@media (max-width: 640px) {
	.bh-listing__media { flex-basis: 100%; min-height: 200px; }
	.bh-listing__body { padding: 8px 18px 20px; }
	.bh-listing__more { margin-left: 0; }
}

/* ---------- Bedrijfspagina ---------- */

.bh-page-head--company { padding-bottom: 56px; }

.bh-company-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-top: 16px; }
.bh-company-hero__intro { flex: 1 1 440px; min-width: 0; }
.bh-company-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bh-company-hero__logo img {
	width: 56px; height: 56px; object-fit: contain; background: var(--bh-white);
	border-radius: var(--bh-radius-date); padding: 6px;
}
.bh-company-hero__title { min-width: 0; font-size: clamp(30px, 8.5vw, 52px); margin: 14px 0 12px; }
.bh-company-hero__intro-text { margin: 0 0 16px; font-size: 19px; color: #3E5368; max-width: 560px; }
.bh-company-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; }
.bh-company-hero__meta li { display: flex; align-items: center; gap: 6px; }
.bh-company-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.bh-company-hero__photo { flex: 1 1 380px; min-width: 0; margin: 0; }
.bh-company-hero__photo img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--bh-radius-hero);
}

.bh-company {
	display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr;
	grid-template-areas: "main key" "main side"; gap: 24px 28px; align-items: start; padding-top: 40px;
}
.bh-company__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bh-company__key { grid-area: key; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bh-company__side { grid-area: side; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* Mobiel en tablet: eerst openingstijden en contact, dan de inhoud, dan de rest. */
@media (max-width: 960px) {
	.bh-company { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "key" "main" "side"; padding-top: 24px; }
	.bh-company-hero__photo img { aspect-ratio: 16 / 9; }
}

/* Fotoslider */
.bh-slider { position: relative; }
.bh-slider__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	border-radius: var(--bh-radius-img); scrollbar-width: none;
}
.bh-slider__track::-webkit-scrollbar { display: none; }
.bh-slider__track:focus-visible { outline: 3px solid var(--bh-ink); outline-offset: 3px; }
.bh-slider__slide { flex: 0 0 100%; scroll-snap-align: start; cursor: zoom-in; }
.bh-slider__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bh-slider__btn {
	position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; cursor: pointer;
	border-radius: var(--bh-radius-btn); background: rgba(255, 255, 255, .92); color: var(--bh-ink);
	font-size: 26px; line-height: 1; box-shadow: 0 4px 14px rgba(14, 34, 51, .18);
}
.bh-slider__btn:hover, .bh-slider__btn:focus-visible { background: var(--bh-accent); }
.bh-slider__btn[disabled] { opacity: 0; pointer-events: none; }
.bh-slider__btn--prev { left: 12px; }
.bh-slider__btn--next { right: 12px; }
.bh-slider__count {
	position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 4px 10px; pointer-events: none;
	border-radius: var(--bh-radius-badge); background: rgba(14, 34, 51, .78); color: var(--bh-white);
	font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) { .bh-slider__btn { display: none; } }

.bh-mini-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bh-mini-events a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--bh-radius-btn); background: var(--bh-bg); }
.bh-mini-events a:hover { background: var(--bh-sky); }
.bh-mini-events__date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bh-muted); }

/* Onder een nieuwsbericht: de gekoppelde bedrijven */
.bh-company-link { display: flex; flex-direction: column; gap: 14px; }
.bh-company-link__title { margin: 0; font-size: 22px; }

.bh-hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bh-hours th, .bh-hours td { padding: 7px 0; text-align: left; border-bottom: 1px solid var(--bh-line); }
.bh-hours th { font-weight: 600; }
.bh-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.bh-hours tr:last-child th, .bh-hours tr:last-child td { border-bottom: 0; }
.bh-hours tr.is-today th, .bh-hours tr.is-today td { font-weight: 800; }
.bh-hours tr.is-today th::before {
	content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
	border-radius: 50%; background: var(--bh-accent); vertical-align: middle;
}
.bh-hours__note { margin: 12px 0 0; font-size: 14px; color: var(--bh-muted); }

.bh-contact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.bh-contact li { display: flex; gap: 10px; align-items: flex-start; }
.bh-contact li .bh-icon { margin-top: 3px; color: var(--bh-muted); }
.bh-contact a { text-decoration: underline; }
.bh-contact__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.bh-contact__social .bh-chip { text-decoration: none; }

.bh-map__frame { display: block; width: 100%; height: 260px; border: 0; border-radius: var(--bh-radius-img); }
.bh-map__consent {
	height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 20px; text-align: center; border-radius: var(--bh-radius-img); color: var(--bh-ink);
	background:
		repeating-linear-gradient(35deg, transparent 0 34px, rgba(255, 255, 255, .7) 34px 40px),
		repeating-linear-gradient(-55deg, transparent 0 58px, rgba(255, 255, 255, .5) 58px 62px),
		#E3EFE2;
}
.bh-map__consent p { margin: 0; max-width: 260px; font-size: 13px; line-height: 1.45; background: rgba(255, 255, 255, .85); padding: 6px 10px; border-radius: var(--bh-radius-badge); }
.bh-map__credit { margin: 8px 0 0; font-size: 12px; color: var(--bh-muted); }
.bh-map__credit a { text-decoration: underline; }
.bh-map__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; }

.bh-company-hero__photo { position: relative; }

/* .bh-photo-note (label op stockfoto's) staat in assets/css/main.css: ook nieuws gebruikt hem. */

/* Tegel met categorieën (zijkolom) */
.bh-cats > p { margin: 0 0 12px; font-size: 14px; color: var(--bh-muted); }
.bh-cats .bh-tags a { display: block; }
.bh-cats .bh-tags li:hover { box-shadow: inset 0 0 0 2px var(--bh-ink); }

/* Melding: nog niet geclaimd */
.bh-info-note {
	display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 18px;
	border-radius: var(--bh-radius-btn); background: var(--bh-white); box-shadow: inset 0 0 0 1px var(--bh-line);
	font-size: 14px; line-height: 1.55; color: var(--bh-muted);
}
.bh-info-note .bh-icon { margin-top: 2px; }
.bh-info-note a { color: var(--bh-ink); font-weight: 700; text-decoration: underline; }

.bh-map__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bh-gallery a { cursor: zoom-in; }

/* Fotoviewer */
.bh-lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 56px 72px;
	border: 0; background: rgba(14, 34, 51, .94); color: var(--bh-white);
}
.bh-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.bh-lightbox::backdrop { background: rgba(14, 34, 51, .6); }
.bh-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.bh-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: var(--bh-radius-img); }
.bh-lightbox__figure figcaption { font-size: 14px; color: var(--bh-on-dark-muted); }
.bh-lightbox__count { position: absolute; top: 18px; left: 24px; margin: 0; font-size: 14px; color: var(--bh-on-dark-muted); }
.bh-lightbox__btn {
	position: absolute; width: 48px; height: 48px; border: 0; cursor: pointer;
	border-radius: var(--bh-radius-btn); background: rgba(255, 255, 255, .12); color: var(--bh-white); font-size: 28px; line-height: 1;
}
.bh-lightbox__btn:hover, .bh-lightbox__btn:focus-visible { background: var(--bh-accent); color: var(--bh-ink); }
.bh-lightbox__close { top: 12px; right: 16px; }
.bh-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.bh-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.bh-lightbox.is-single .bh-lightbox__prev, .bh-lightbox.is-single .bh-lightbox__next { display: none; }
@media (max-width: 640px) {
	.bh-lightbox { padding: 64px 12px 72px; }
	.bh-lightbox__prev, .bh-lightbox__next { top: auto; bottom: 12px; transform: none; }
}

/* Badges en kleine onderdelen */
.bh-badge--verified { gap: 5px; background: var(--bh-green-bg); color: #146C43; }
.bh-listing__title { display: flex; align-items: center; gap: 6px; }
.bh-listing__verified { display: inline-flex; color: #146C43; }
.bh-listing__paid { font-size: 12px; }
.bh-panel__sub { margin: 18px 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--bh-muted); }
.bh-panel > h2 + .bh-panel__sub { margin-top: 0; }

/* Uitnodiging om te claimen (alleen bij basisvermelding) */
.bh-claim-teaser {
	padding: 32px; background: var(--bh-accent); border-radius: var(--bh-radius-block);
	scroll-margin-top: 24px;
}
.bh-claim-teaser__intro { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.bh-claim-teaser__text { flex: 1 1 280px; }
.bh-claim-teaser__free {
	display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: var(--bh-radius-badge);
	background: var(--bh-ink); color: var(--bh-accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.bh-claim-teaser__text h2 { font-size: 28px; margin-bottom: 8px; }
.bh-claim-teaser__text p { margin: 0; font-size: 16px; }

/* Voorbeeld van een geverifieerde pagina */
.bh-claim-preview {
	flex: 0 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	padding: 20px 22px; background: var(--bh-white); border-radius: var(--bh-radius-card);
	box-shadow: 0 14px 30px rgba(14, 34, 51, .14); transform: rotate(-1.5deg);
}
.bh-claim-preview__title { font-size: 20px; font-weight: 800; letter-spacing: var(--bh-tracking-tight); line-height: 1.2; }
.bh-claim-preview__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-claim-preview .bh-chip { gap: 6px; background: var(--bh-sky); }

.bh-claim-teaser__list {
	list-style: none; margin: 24px 0; padding: 18px 0 0; border-top: 1px solid rgba(14, 34, 51, .15);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px 20px; font-size: 15px; font-weight: 700;
}
.bh-claim-teaser__list li { display: flex; align-items: center; gap: 8px; }
.bh-claim-teaser__list .bh-icon { flex: 0 0 auto; padding: 3px; width: 22px; height: 22px; border-radius: 6px 2px 6px 2px; background: var(--bh-ink); color: var(--bh-accent); }
.bh-claim-teaser__more { margin: 0 0 24px; font-size: 15px; line-height: 1.55; }


/* Het gezicht achter het bedrijf */
.bh-face { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--bh-sky); box-shadow: none; }
.bh-face__photo { width: 120px; height: 120px; object-fit: cover; border-radius: var(--bh-radius-card); }
.bh-face > div { flex: 1 1 280px; }
.bh-face__quote { margin: 0; }
.bh-face__quote .bh-icon { color: var(--bh-ink-2); opacity: .35; }
.bh-face__quote p { margin: 4px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.bh-face__name { margin: 0; font-size: 15px; color: #3E5368; }

/* Diensten en merken */
.bh-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bh-tags li { padding: 7px 14px; border-radius: var(--bh-radius-badge); font-size: 15px; font-weight: 600; }
.bh-tags--outline li { background: var(--bh-white); box-shadow: inset 0 0 0 1.5px var(--bh-line); }

/* Faciliteiten */
.bh-facilities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px 20px; font-size: 15px; }
.bh-facilities li { display: flex; align-items: center; gap: 8px; }
.bh-facilities .bh-icon { color: #146C43; background: var(--bh-green-bg); border-radius: 6px 2px 6px 2px; padding: 3px; width: 22px; height: 22px; }

/* Veelgestelde vragen */
.bh-faq details { border-bottom: 1px solid var(--bh-line); }
.bh-faq details:last-of-type { border-bottom: 0; }
.bh-faq summary {
	display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer;
	font-weight: 700; list-style: none;
}
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--bh-muted); }
.bh-faq details[open] summary::after { content: "–"; }
.bh-faq details p { margin: 0 0 16px; color: #3E5368; }

/* Afwijkende openingstijden */
.bh-hours__except { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.bh-hours__except li {
	display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px;
	padding: 8px 12px; margin-bottom: 6px; background: var(--bh-tint-1); border-radius: var(--bh-radius-badge);
}
.bh-hours__except-date { font-weight: 600; }
.bh-hours__except-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bh-hours__except-note { grid-column: 1 / -1; font-size: 13px; color: var(--bh-muted); }

/* Claimen */
.bh-claim { scroll-margin-top: 24px; }
.bh-claim > p { margin: 0 0 14px; font-size: 15px; color: var(--bh-muted); }

/* Voorbeeld met Uitgelicht (Mijn bedrijf): balk bovenaan en lege kaders */
.bh-preview-bar { position: sticky; top: 0; z-index: 50; background: var(--bh-accent); }
.bh-preview-bar .bh-container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
.bh-preview-bar .bh-btn { margin-left: auto; }
.bh-slot {
	display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 20px;
	border: 3px dashed var(--bh-accent); background: #FFFDF4; box-shadow: none;
	color: #5C4300; font-weight: 700; text-align: center;
}
.bh-slot--round { width: 64px; height: 64px; min-height: 0; padding: 4px; border-radius: 50%; font-size: 11px; line-height: 1.2; }
.bh-claim__alt { margin: 12px 0 0; font-size: 14px; color: var(--bh-muted); }
.bh-claim .bh-claim__alt { margin-top: 14px; } .bh-claim__alt a { font-weight: 700; text-decoration: underline; }
