/* Business Directory by Tharlizwa Media — public pages. Mobile first; uses the theme's
   colours where Astra provides them (--ast-global-color-*), with neutral fallbacks. */
.tbd {
	--tbd-accent: var(--ast-global-color-0, #c8102e);
	--tbd-text: var(--ast-global-color-3, #1e1e1e);
	--tbd-muted: #5f6368;
	--tbd-line: #e3e5e8;
	--tbd-soft: #f5f6f8;
	--tbd-radius: 10px;
	color: var(--tbd-text);
	font-size: 16px;
	line-height: 1.5;
	max-width: 1120px;
	margin: 0 auto;
	padding: 12px 16px 96px;
	box-sizing: border-box;
}
.tbd *, .tbd *::before, .tbd *::after { box-sizing: inherit; }
.tbd a { color: inherit; }
.tbd-icon { flex: none; vertical-align: -3px; }
.tbd-muted { color: var(--tbd-muted); }
.tbd-small { font-size: 13px; margin: 6px 0 0; }

.tbd-crumbs { font-size: 13px; color: var(--tbd-muted); margin: 0 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tbd-crumbs a { color: var(--tbd-muted); text-decoration: none; }
.tbd-crumbs a:hover { text-decoration: underline; }

.tbd-head { display: flex; gap: 14px; align-items: flex-start; }
.tbd-head__logo { flex: none; width: 72px; height: 72px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tbd-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.tbd-head__main { min-width: 0; flex: 1; }
.tbd-head__title { font-size: 22px; line-height: 1.25; margin: 0 0 6px; overflow-wrap: anywhere; }
.tbd-head__where { margin: 6px 0 0; color: var(--tbd-muted); font-size: 14px; display: flex; gap: 4px; align-items: flex-start; }
.tbd-head__where a { color: var(--tbd-muted); }
.tbd-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tbd-chips::-webkit-scrollbar { display: none; }
.tbd-chips a { display: inline-block; white-space: nowrap; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--tbd-soft); text-decoration: none; }
.tbd-open { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.tbd-open--yes { color: #137333; }
.tbd-open--no { color: #b3261e; }

/* Action bar: sticky at the bottom of the screen on phones. */
.tbd .tbd-actions { margin: 0; }
.tbd-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--tbd-line); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.tbd-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: var(--tbd-radius); border: 1px solid var(--tbd-line); background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--tbd-text); }
.tbd-btn--primary { background: var(--tbd-accent); border-color: var(--tbd-accent); color: #fff; }
.tbd .tbd-btn--primary { color: #fff; }
.tbd-btn:focus-visible, .tbd-gallery__item:focus-visible, .tbd-card:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }

.tbd-gallery { margin: 16px -16px 0; }
.tbd-gallery__strip { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.tbd-gallery__strip li { flex: none; scroll-snap-align: start; }
/* Themes style <button>; these buttons are image tiles and controls, so reset them. */
.tbd .tbd-gallery__item, .tbd .tbd-video__play, .tbd .tbd-lightbox button { margin: 0; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal; font: inherit; }
.tbd .tbd-gallery__item, .tbd .tbd-gallery__item:hover, .tbd .tbd-gallery__item:focus { background: #fff !important; color: inherit !important; }
.tbd .tbd-video__play { background: transparent !important; color: #fff !important; padding: 0; width: 100%; border: 0; }
.tbd .tbd-video__play:hover, .tbd .tbd-video__play:focus { background: rgba(255, 255, 255, .08) !important; }
.tbd-gallery__item { display: block; padding: 0; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); overflow: hidden; background: #fff; cursor: zoom-in; width: 40vw; max-width: 200px; aspect-ratio: 4 / 3; }
.tbd-gallery__item img { width: 100%; height: 100%; object-fit: contain; display: block; }

.tbd-cols { display: block; }
.tbd-section { margin-top: 24px; }
.tbd-h2 { font-size: 18px; margin: 0 0 10px; }
.tbd-about__text > :first-child { margin-top: 0; }
.tbd-about__text img { max-width: 100%; height: auto; }

.tbd-hours__table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.tbd-hours__table th, .tbd-hours__table td { padding: 7px 0; border: 0; border-bottom: 1px solid var(--tbd-line); text-align: left; font-weight: 400; background: none; }
.tbd-hours__table td { text-align: right; }
.tbd-hours__table tr.is-today th, .tbd-hours__table tr.is-today td { font-weight: 700; }

.tbd-contact__list { list-style: none; margin: 0; padding: 0; }
.tbd-contact__list li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--tbd-line); overflow-wrap: anywhere; }
.tbd-social { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tbd-social a { display: inline-block; padding: 4px 12px; border: 1px solid var(--tbd-line); border-radius: 999px; font-size: 14px; text-decoration: none; }

.tbd-map { height: 260px; border-radius: var(--tbd-radius); background: var(--tbd-soft); overflow: hidden; z-index: 0; }
.tbd-marker { width: 18px; height: 18px; border-radius: 50%; background: var(--tbd-accent, #c8102e); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }

.tbd-video { max-width: 640px; aspect-ratio: 16 / 9; background: #111; border-radius: var(--tbd-radius); overflow: hidden; margin-bottom: 10px; display: flex; }
.tbd-video__play { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: none; border: 0; font-size: 16px; cursor: pointer; }
.tbd-video iframe { width: 100%; height: 100%; border: 0; }

.tbd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tbd-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); text-decoration: none; background: #fff; }
.tbd-card__img { flex: none; width: 64px; height: 64px; border-radius: 8px; background: var(--tbd-soft); overflow: hidden; }
.tbd-card__img img { width: 100%; height: 100%; object-fit: contain; }
.tbd-card__body { display: flex; flex-direction: column; min-width: 0; }
.tbd-card__name { font-weight: 600; overflow-wrap: anywhere; }
.tbd-card__meta { font-size: 13px; color: var(--tbd-muted); }
.tbd-edit { margin-top: 24px; font-size: 14px; }

.tbd-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.tbd-lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.tbd-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.tbd-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.tbd .tbd-lightbox button { position: absolute; padding: 0; font-size: 32px; background: rgba(0, 0, 0, .5); color: #fff; border: 0; font-size: 32px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.tbd-lightbox__close { top: 12px; right: 12px; }
.tbd-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.tbd-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Cards (directory pages and similar businesses). The whole card is a link; Call sits above it. */
.tbd-card { position: relative; }
.tbd-card__name { font-size: 16px; line-height: 1.3; margin: 0; font-weight: 600; }
.tbd-card__link { text-decoration: none; }
.tbd-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--tbd-radius); }
.tbd-card__link:focus-visible { outline: none; }
.tbd-card:focus-within { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }
.tbd-card__meta { margin: 2px 0 0; }
.tbd-card__open { margin: 2px 0 0; font-size: 13px; }
.tbd-card__body { flex: 1; }
.tbd-cards--list .tbd-card, .tbd-results .tbd-card { align-items: flex-start; }
.tbd-card__desc { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--tbd-text); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tbd-card__phone { position: relative; z-index: 1; margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; align-self: flex-start; }
.tbd-card__phone .tbd-icon { color: var(--tbd-accent); }
.tbd-card__phone a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--tbd-text); }
.tbd-card__phone a:hover, .tbd-card__phone a:focus-visible { text-decoration: underline; }

/* Directory pages. */
.tbd-directory { padding-bottom: 32px; }
.tbd-dir-head__title { font-size: 24px; line-height: 1.25; margin: 0 0 8px; }
.tbd-dir-head__intro { color: var(--tbd-muted); font-size: 15px; }
.tbd-dir-head__intro p { margin: 0 0 8px; }
.tbd-subterms { margin: 10px 0 0; }
.tbd-filters { margin: 14px 0 0; }
.tbd-filters__box > summary { list-style: none; display: inline-flex; cursor: pointer; flex: none; }
.tbd-filters__box > summary::-webkit-details-marker { display: none; }
.tbd-filters__grid { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; }
.tbd-filters__grid p { margin: 0; }
.tbd-filters__grid label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tbd-filters__check label { font-weight: 400; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.tbd-filters input[type="search"], .tbd-filters select { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; font-size: 16px; }
.tbd-filters__actions { display: flex; gap: 8px; }
.tbd-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 16px 0 10px; }
.tbd-toolbar__count { margin: 0; font-weight: 600; }
.tbd-toolbar__sort { margin: 0; }
.tbd-toolbar__sort select { width: auto; min-height: 40px; font-size: 15px; }
.tbd-toolbar__views { display: flex; gap: 6px; width: 100%; }
.tbd-toolbar__views .tbd-btn[aria-pressed="true"] { background: var(--tbd-text); border-color: var(--tbd-text); color: #fff; }
.tbd-results[data-mode="list"] .tbd-results__map { display: none; }
.tbd-results[data-mode="map"] .tbd-results__list { display: none; }
.tbd-map--results { height: 70vh; min-height: 320px; }
.tbd-empty { padding: 24px 0; color: var(--tbd-muted); }
.tbd-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; align-items: center; }
.tbd-pager .tbd-btn { flex: none; min-width: 44px; }
.tbd-pager__current { background: var(--tbd-text); border-color: var(--tbd-text); color: #fff; }
.tbd-pager__gap { padding: 0 4px; color: var(--tbd-muted); }

@media (min-width: 768px) {
	.tbd-card__img { width: 88px; height: 88px; }
	.tbd-dir-head__title { font-size: 30px; }
	.tbd-filters__grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 10px; }
	.tbd-filters__grid > p { flex: 1 1 180px; }
	.tbd-filters__grid > p:first-child { flex-basis: 260px; }
	.tbd-filters__grid > .tbd-filters__check, .tbd-filters__grid > .tbd-filters__near, .tbd-filters__grid > .tbd-filters__actions { flex: 0 0 auto; }
	.tbd-filters__near label { display: inline; margin-right: 6px; }
	.tbd-filters__near select { width: auto; }
	.tbd-filters__check label { min-height: 44px; }
	.tbd-toolbar__views { display: none; }
	.tbd-results { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
	.tbd-results[data-mode] .tbd-results__map, .tbd-results[data-mode] .tbd-results__list { display: block; }
	.tbd-results__map { position: sticky; top: 24px; }
	.tbd-map--results { height: calc(100vh - 48px); max-height: 720px; }
}
@media (min-width: 768px) {
	.tbd { padding: 24px 24px 48px; }
	.tbd .tbd-actions { margin-top: 16px; }
	.tbd-head__logo { width: 96px; height: 96px; }
	.tbd-head__title { font-size: 28px; }
	.tbd-chips { flex-wrap: wrap; overflow: visible; }
	.tbd-actions { position: static; box-shadow: none; border: 0; padding: 0; margin-top: 16px; background: none; max-width: 520px; }
	.tbd-gallery { margin: 20px 0 0; }
	.tbd-gallery__strip { padding: 0; }
	.tbd-gallery__item { width: 200px; }
	.tbd-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
	.tbd-map { height: 280px; }
	.tbd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tbd-gallery__strip { scroll-behavior: auto; } }
.tbd-cards.tbd-cards--list { grid-template-columns: minmax(0, 1fr); } /* One card per row on directory pages at every width. */

/* Ratings and reviews (0.5.2). */
.tbd .screen-reader-text, .tbd-card .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tbd-stars { position: relative; display: inline-block; color: #d0d5dd; letter-spacing: 1px; line-height: 1; font-size: 15px; white-space: nowrap; vertical-align: -1px; }
.tbd-stars__on { position: absolute; left: 0; top: 0; overflow: hidden; color: #f5a623; }
.tbd-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; color: inherit; }
.tbd-rating__avg { font-weight: 600; }
.tbd-rating__count { color: var(--tbd-muted); }
.tbd-head__rating, .tbd-card__rating { margin: 4px 0 0; }
.tbd-card__rating .tbd-rating { font-size: 13px; }
.tbd-card__rating .tbd-stars { font-size: 13px; }
.tbd-reviews { margin-top: 24px; }
.tbd-reviews__summary { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; }
.tbd-reviews__score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tbd-reviews__avg { font-size: 32px; font-weight: 700; line-height: 1; }
.tbd-reviews__score .tbd-stars { font-size: 20px; }
.tbd-reviews__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tbd-reviews__bars li { display: grid; grid-template-columns: 2.4em 1fr 2.4em; gap: 8px; align-items: center; font-size: 13px; }
.tbd-reviews__bar { height: 8px; border-radius: 4px; background: var(--tbd-soft); overflow: hidden; }
.tbd-reviews__bar span { display: block; height: 100%; background: #f5a623; }
.tbd-reviews__bar-n { text-align: right; color: var(--tbd-muted); }
.tbd-reviews__write { margin: 14px 0; }
.tbd-review-form > summary { list-style: none; display: inline-flex; cursor: pointer; }
.tbd-review-form > summary::-webkit-details-marker { display: none; }
.tbd-review-form form { margin-top: 12px; padding: 14px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; display: grid; gap: 10px; }
.tbd-review-form form p { margin: 0; }
.tbd-review-form label, .tbd-review__report label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.tbd-review-form textarea, .tbd-review__reply-form textarea, .tbd-review__report select { box-sizing: border-box; width: 100%; max-width: 100%; font-size: 16px; }
.tbd-rate { border: 0; margin: 0; padding: 0; min-width: 0; }
.tbd-rate legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 4px; }
.tbd-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.tbd-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tbd-rate__stars label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; font-size: 32px; line-height: 1; color: #d0d5dd; cursor: pointer; }
.tbd-rate__stars input:checked ~ label, .tbd-rate__stars label:hover, .tbd-rate__stars label:hover ~ label { color: #f5a623; }
.tbd-rate__stars input:focus-visible + label { outline: 3px solid var(--tbd-accent); outline-offset: 2px; border-radius: 6px; }
.tbd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tbd-form-status { min-height: 1.2em; font-size: 14px; }
.tbd-form-status--error { color: #b3261e; font-weight: 600; }
.tbd-notice { padding: 10px 12px; border-radius: var(--tbd-radius); background: var(--tbd-soft); font-size: 14px; }
.tbd-review-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.tbd-review { padding: 12px 14px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; }
.tbd-review__head { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tbd-review__text { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.tbd-review__reply { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--tbd-line); background: var(--tbd-soft); border-radius: 4px; }
.tbd-review__reply p { margin: 0 0 4px; }
.tbd-review__report, .tbd-review__reply-form { margin-top: 8px; }
.tbd-review__report form, .tbd-review__reply-form form { margin-top: 8px; display: grid; gap: 6px; max-width: 420px; }
.tbd-link { cursor: pointer; color: var(--tbd-muted); text-decoration: underline; font-size: 13px; }
.tbd-filters__actions .tbd-btn { white-space: nowrap; }
/* Astra's "back to top" button must not cover the phone action bar. */
@media (max-width: 767px) {
	body.tharlizwa-business-directory-listing #ast-scroll-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
	.tbd-reviews { max-width: 66%; }
	.tbd-reviews__summary { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
}

/* Content blocks on site pages (0.5.3). */
.tbd-block { margin: 16px 0; }
.tbd-chips.tbd-chips--wrap { flex-wrap: wrap; overflow: visible; }
.tbd-searchbox { display: grid; gap: 8px; margin: 12px 0; padding: 10px; border-radius: var(--tbd-radius); background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.tbd-searchbox p { margin: 0; }
.tbd-searchbox input[type="search"], .tbd-searchbox select { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 48px; font-size: 16px; }
.tbd-searchbox .tbd-btn { width: 100%; min-height: 48px; white-space: nowrap; }
.tbd-cards.tbd-cards--carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.tbd-cards--carousel > li { flex: 0 0 min(85%, 320px); scroll-snap-align: start; }
.tbd-block .tbd-cards--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
/* Theme button styles (e.g. Twenty Twenty-One's .site button) must not hide the plugin's buttons. */
.tbd button.tbd-btn { background: #fff !important; color: var(--tbd-text) !important; border: 1px solid var(--tbd-line) !important; font-family: inherit; line-height: 1.2; text-transform: none; }
.tbd button.tbd-btn--primary { background: var(--tbd-accent) !important; border-color: var(--tbd-accent) !important; color: #fff !important; }
.tbd button.tbd-btn[aria-pressed="true"] { background: var(--tbd-text) !important; border-color: var(--tbd-text) !important; color: #fff !important; }
.tbd-termlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tbd-termlist__head { display: inline-block; font-weight: 700; font-size: 18px; margin-bottom: 6px; text-decoration: none; }
.tbd-catgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tbd-catgrid__item { padding: 12px 14px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; }
.tbd-catgrid__head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; text-decoration: none; margin-bottom: 6px; }
@media (min-width: 768px) {
	.tbd-searchbox { grid-template-columns: 2fr 1.4fr auto; align-items: center; }
	.tbd-searchbox:has(select[name="category"]) { grid-template-columns: 2fr 1.2fr 1.2fr auto; }
	.tbd-catgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
	.tbd-termlist { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Home-page cards (0.5.3.1, PM: match the old home page): vertical cards and photo tiles. */
.tbd-vcard, .tbd-tile { position: relative; height: 100%; }
.tbd-vcard { display: flex; flex-direction: column; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; overflow: hidden; }
.tbd-vcard:focus-within, .tbd-tile:focus-within { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }
.tbd-vcard__img { aspect-ratio: 3 / 2; background: #fff; border-bottom: 1px solid var(--tbd-line); display: flex; align-items: center; justify-content: center; }
.tbd-vcard__img img { width: 100% !important; height: 100% !important; object-fit: contain; }
.tbd-vcard__body { padding: 10px 12px 12px; }
.tbd-vcard__name { margin: 0 0 4px; font-size: 16px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.tbd-vcard__name a { text-decoration: none; }
.tbd-vcard__cat { margin: 0 0 4px; font-size: 13px; color: var(--tbd-accent); }
.tbd-vcard__place { margin: 0; font-size: 13px; color: var(--tbd-muted); display: flex; gap: 4px; align-items: flex-start; }
.tbd-vcard__place .tbd-icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.tbd-tile { display: block; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #3c4043; }
.tbd-tile .tbd-tile__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.tbd-tile__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; text-align: center; background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .55)); }
.tbd-tile__name { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; }
.tbd .tbd-tile__name a, .tbd-tile__name a { color: #fff !important; text-decoration: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tbd-tile__place { margin: 4px 0 0; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tbd-block .tbd-cards.tbd-cards--tile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tbd-cards--carousel.tbd-cards--card > li { flex: 0 0 min(70%, 240px); }
.tbd-block--card { position: relative; }
.tbd-cards--carousel { scrollbar-width: none; }
.tbd-cards--carousel::-webkit-scrollbar { display: none; }
.tbd button.tbd-carousel__nav { background: #fff !important; color: var(--tbd-text) !important; border: 1px solid var(--tbd-line) !important; position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50% !important; font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.tbd button.tbd-carousel__nav[hidden] { display: none; }
.tbd-carousel__prev { left: -6px; }
.tbd-carousel__next { right: -6px; }
@media (min-width: 768px) {
	.tbd-block .tbd-cards.tbd-cards--tile { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.tbd-tile__name { font-size: 20px; }
	.tbd-cards--carousel.tbd-cards--card > li { flex-basis: calc((100% - 36px) / 4); min-width: 200px; }
	.tbd-carousel__prev { left: -20px; }
	.tbd-carousel__next { right: -20px; }
}

/* 0.5.3.2: blocks take the width of the page-builder column they sit in (no page padding or
   centring of their own), so they line up with the section headings. */
.tbd.tbd-block { max-width: none; margin: 16px 0; padding: 0; }
.tbd.tbd-searchbox { max-width: none; }
.tbd-vcard__phone { position: relative; z-index: 1; margin: 4px 0 0; font-size: 13px; display: flex; gap: 4px; align-items: center; }
.tbd-vcard__phone .tbd-icon { width: 14px; height: 14px; flex: none; }
.tbd-vcard__phone a { text-decoration: none; color: var(--tbd-accent); }
.tbd-statetiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tbd-tile--state { aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
	.tbd-statetiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.tbd-tile--state .tbd-tile__name { font-size: 22px; }
}

/* 0.5.3.3: featured tiles at most 3 a row on tablets and 4 on desktop (never 6 small ones). */
@media (min-width: 1024px) {
	.tbd-block .tbd-cards.tbd-cards--tile { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 0.5.3.3: opening hours without theme table borders (Astra draws a top and left border on
   every table and a right border on cells); only the plugin's thin row separator stays. */
.tbd table.tbd-hours__table { border: 0 !important; border-collapse: collapse !important; border-spacing: 0; }
.tbd table.tbd-hours__table th, .tbd table.tbd-hours__table td { border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--tbd-line) !important; background: none !important; }
.tbd table.tbd-hours__table tr:last-child th, .tbd table.tbd-hours__table tr:last-child td { border-bottom: 0 !important; }

/* 0.6.0: account pages (login, registration, password, dashboard). */
.tbd.tbd-account { box-sizing: border-box; width: 100%; max-width: 992px; padding: 0 16px; margin: 24px auto; }
.tbd-account__grid { display: grid; gap: 16px; }
.tbd-account__panel { background: #fff; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); padding: 16px; margin: 0 0 16px; }
.tbd-account__panel > :last-child { margin-bottom: 0; }
.tbd-account__form p { margin: 0 0 12px; }
.tbd-account__form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.tbd-account__form input[type="text"], .tbd-account__form input[type="email"], .tbd-account__form input[type="password"] { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; font-size: 16px; padding: 8px 10px; border: 1px solid #c4c8cf; border-radius: 8px; }
.tbd-account__form small { display: block; margin-top: 4px; font-size: 13px; }
.tbd-account__check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; min-height: 44px; }
.tbd-account__check input { margin-top: 3px; flex: none; }
.tbd-account__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tbd-account__actions .tbd-btn { flex: 0 1 auto; }
.tbd-account__form .tbd-btn { width: 100%; }
.tbd-account__notice { background: #edf7ed; border: 1px solid #b7dfb9; color: #1e4620; border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.tbd-account__error { background: #fdecea; border: 1px solid #f5c2c0; color: #8a1c1c; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.tbd-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.tbd-turnstile { margin: 0 0 12px; min-height: 65px; }
@media (min-width: 768px) {
	.tbd-account__grid { grid-template-columns: 1fr 1fr; align-items: start; }
	.tbd-account__panel { padding: 20px 24px; }
	.tbd-account__form .tbd-btn { width: auto; min-width: 160px; }
}

/* 0.6.1: owner area (your businesses, edit form, images). */
.tbd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.tbd-badge { display: inline-block; font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 999px; background: var(--tbd-soft); border: 1px solid var(--tbd-line); }
.tbd-badge--tier { background: #fff7e6; border-color: #f3d39b; }
.tbd-badge--wait { background: #eef4ff; border-color: #c6d6f5; }
.tbd-owner-list { list-style: none; margin: 0; padding: 0; }
.tbd-owner-list__item { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--tbd-line); }
.tbd-owner-list__item:first-child { border-top: 0; }
.tbd-owner-list__img img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--tbd-line); display: block; }
.tbd-owner-list__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.tbd-owner-list__actions .tbd-btn { flex: 0 1 auto; min-width: 88px; }
.tbd-owner-photos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tbd-owner-photo img { flex: none; width: 100%; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--tbd-line); display: block; }
.tbd-owner-photo.is-hidden img { opacity: .45; }
.tbd-owner-photo__label { font-size: 13px; margin: 4px 0; }
.tbd-owner-photo { min-width: 0; display: flex; flex-direction: column; }
.tbd-owner-photo__actions { display: flex; flex-direction: column; gap: 6px; }
.tbd-owner-photo__actions form { margin: 0; padding: 0; display: block; height: auto; }
.tbd-owner-photo__actions .tbd-btn { flex: none; display: flex; width: 100%; height: auto; min-height: 40px; font-size: 13px; padding: 6px 8px; }
.tbd-owner-grid { display: grid; gap: 0 16px; }
.tbd-owner-form select, .tbd-owner-form input[type="time"] { min-height: 44px; font-size: 16px; max-width: 100%; box-sizing: border-box; }
.tbd-owner-form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.tbd-owner-form legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tbd-owner-cats__group { margin: 0 0 8px; }
.tbd-owner-cats label { display: flex; gap: 8px; align-items: center; font-weight: 400; min-height: 36px; margin: 0; }
.tbd-owner-cats__child { padding-left: 24px; }
.tbd-owner-hours__all { display: inline-flex !important; gap: 4px; align-items: center; font-weight: 400 !important; margin: 0 !important; }
.tbd-owner-social { display: grid; grid-template-columns: 1fr; gap: 6px; }
.tbd-owner-over { background: var(--tbd-soft); border-radius: 8px; padding: 8px 12px; }
.tbd-owner-save { margin: 28px 0 12px; padding: 16px; background: #fff; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.tbd-owner-save .tbd-btn { width: 100%; min-height: 52px; font-size: 17px; padding: 12px 32px; }
.tbd-owner-save .tbd-account__error { flex: 1 1 100%; margin: 0; }
.tbd-owner-missing { margin: 0 0 8px 1.2em; padding: 0; }
.tbd-owner-missing li { margin: 2px 0; }
.tbd-owner-state[data-state="rejected"] { border-color: #d63638; }
.tbd-submit-dups { border-color: #dba617; background: #fcf9e8; }
.tbd-submit-dups__list { margin: 0 0 10px 1.2em; padding: 0; }
.tbd-submit-dups__list li { margin: 4px 0; }
.tbd-owner-removal textarea { width: 100%; box-sizing: border-box; }
.tbd-submit-form textarea { width: 100%; box-sizing: border-box; min-height: 120px; font-size: 16px; }
.tbd-field-error { display: block; color: #8a1c1c; font-size: 13px; margin-top: 4px; }
.tbd-owner-desc { margin: 0 0 12px; }
.tbd-owner-desc .wp-editor-wrap { margin-top: 4px; }
@media (min-width: 768px) {
	.tbd-owner-list__item { grid-template-columns: 56px 1fr auto; }
	.tbd-owner-list__actions { grid-column: auto; }
	.tbd-owner-photos { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
	.tbd-owner-grid { grid-template-columns: 1fr 1fr; }
	.tbd-owner-social { grid-template-columns: 180px 1fr; }
}

/* 0.6.1 rev. (PM UAT): compact grids and a prominent description. */
.tbd-owner-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 4px 16px; }
.tbd-owner-cats__group { margin: 0; break-inside: avoid; }
.tbd-owner-cats label:has(input:disabled) { opacity: .5; }
.tbd-owner-hours { display: grid; gap: 0; }
.tbd-owner-hours__day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 6px 8px; align-items: center; padding: 8px 0; }
.tbd-owner-hours__day + .tbd-owner-hours__day { border-top: 1px solid var(--tbd-line); }
.tbd-owner-hours__day > strong { grid-column: 1; }
.tbd-owner-hours__day > select { grid-column: 2 / -1; width: 100%; }
.tbd-owner-hours__slot { grid-column: 1 / 3; display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.tbd-owner-hours__slot input[type="time"] { flex: 1 1 0; min-width: 0; }
.tbd-owner-hours__slot[hidden], .tbd-owner-hours__more[hidden] { display: none !important; }
.tbd-owner-form .tbd-owner-hours__more { grid-column: 3; grid-row: 2; align-self: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 1px solid #c4c8cf; border-radius: 8px; background: #fff; color: var(--tbd-text); font-size: 22px; font-weight: 400; line-height: 1; cursor: pointer; }
.tbd-owner-form .tbd-owner-hours__more:hover, .tbd-owner-form .tbd-owner-hours__more:focus-visible { border-color: var(--tbd-text); }
.tbd-owner-hours__all { flex: none; }
/* 1.4.0: opening hours — "Copy hours" tool and additional periods kept from earlier data. */
.tbd-hours-copy { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 4px 0 12px; border-bottom: 1px solid var(--tbd-line); }
.tbd-hours-copy[hidden] { display: none !important; }
.tbd-hours-copy label { margin: 0; font-weight: 600; font-size: 14px; }
.tbd-hours-copy select { width: auto; max-width: 100%; min-height: 44px; }
.tbd-hours-copy .tbd-hours-copy__go { flex: 0 0 auto; }
.tbd-hours-copy__status { flex-basis: 100%; font-size: 14px; color: var(--tbd-muted); }
.tbd-hours-copy__status:empty { display: none; }
.tbd-owner-hours__extra-label { grid-column: 1 / -1; font-size: 13px; color: var(--tbd-muted); }
.tbd-owner-hours__extra-label[hidden], .tbd-owner-hours__remove[hidden] { display: none !important; }
.tbd-owner-form .tbd-owner-hours__remove { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border: 1px solid #c4c8cf; border-radius: 8px; background: #fff; color: var(--tbd-text); font-size: 20px; font-weight: 400; line-height: 1; cursor: pointer; }
.tbd-owner-form .tbd-owner-hours__remove:hover, .tbd-owner-form .tbd-owner-hours__remove:focus-visible { border-color: var(--tbd-text); }
.tbd-owner-loc { border: 0; padding: 0; margin: 8px 0 12px; }
.tbd-owner-loc legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tbd-owner-loc select { width: 100%; }
.tbd-owner-loc__suggest[hidden] { display: none !important; }
.tbd-owner-cats__head { margin: 0; min-height: 36px; display: flex; align-items: center; font-weight: 700; font-size: 14px; }
.tbd-owner-desc__tip { margin: 0 0 6px; font-size: 14px; }
.tbd-owner-desc .wp-editor-container { border: 1px solid #c4c8cf; border-radius: 8px; overflow: hidden; }
.tbd-owner-desc .tbd-owner-desc__area { min-height: 380px; font-size: 16px; }
.tbd-owner-tags.is-chips label { display: block; margin-bottom: 6px; }
.tbd-owner-tags__grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tbd-owner-tags__chip { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; padding: 4px 4px 4px 12px; background: var(--tbd-soft); border: 1px solid var(--tbd-line); border-radius: 18px; font-size: 14px; overflow-wrap: anywhere; }
.tbd-owner-tags__x { flex: 0 0 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; padding: 0; color: inherit; }
.tbd-owner-tags__x:hover, .tbd-owner-tags__x:focus-visible { background: #fff; }
.tbd-owner-tags__add { width: 100%; max-width: 320px; }
.tbd-owner-tags__add:disabled { opacity: .5; }
@media (min-width: 768px) {
	.tbd-owner-hours__day { grid-template-columns: 84px minmax(104px, 150px) minmax(0, 1fr) 40px; padding: 6px 0; }
	.tbd-owner-hours__slot input[type="time"] { padding: 4px 6px; font-size: 15px; }
	.tbd-owner-hours__all { font-size: 14px; }
	.tbd-owner-hours__day > strong { grid-column: 1; }
	.tbd-owner-hours__day > select { grid-column: 2; }
	.tbd-owner-hours__slot { grid-column: 3; }
	.tbd-owner-form .tbd-owner-hours__more { grid-column: 4; grid-row: 1; }
	.tbd-owner-hours__extra-label { grid-column: 2; text-align: right; }
	.tbd-owner-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
	.tbd-owner-save .tbd-btn { width: auto; min-width: 240px; }
}

/* Enquiry form (0.6.3). */
.tbd-enquiry__form { display: grid; gap: 10px; }
.tbd-enquiry__form p { margin: 0; }
.tbd-enquiry .tbd-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tbd-enquiry .tbd-field input[type="text"], .tbd-enquiry .tbd-field input[type="email"], .tbd-enquiry .tbd-field input[type="tel"], .tbd-enquiry .tbd-field textarea { width: 100%; max-width: 100%; min-height: 44px; font-size: 16px; padding: 8px 10px; border: 1px solid #c5c9cf; border-radius: 8px; background: #fff; }
.tbd-enquiry .tbd-field--check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.tbd-enquiry .tbd-field--check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.tbd-enquiry .tbd-btn { width: 100%; justify-content: center; }
.tbd-notice--ok { background: #e7f5ec; color: #12512b; }
.tbd-notice--error { background: #fdecea; color: #8a1c1c; }
@media (min-width: 768px) { .tbd-enquiry .tbd-btn { width: auto; } }

/* Owner dashboard: Account details (0.6.3). */
.tbd-dashboard .tbd-account__panel { padding: 18px 16px; margin-bottom: 20px; }
.tbd-dashboard .tbd-h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; }
.tbd-account-details__grid { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
.tbd-account-details__grid p { margin: 0 0 14px; }
.tbd-account-details input[readonly] { background: var(--tbd-soft); color: var(--tbd-muted); }
.tbd-account-details .tbd-hint { display: block; margin-top: 4px; font-size: 13px; color: var(--tbd-muted); }
.tbd-account-details .tbd-hint--wait { color: #7a4b00; }
.tbd-account-details__pw { border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); padding: 12px 14px 0; margin: 4px 0 14px; min-width: 0; }
.tbd-account-details__pw legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.tbd-account-details__current { max-width: 420px; }
.tbd-owner-list__item { gap: 12px; }
@media (min-width: 768px) {
	.tbd-dashboard .tbd-account__panel { padding: 22px 26px; }
	.tbd-account-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tbd-account-details__wide { grid-column: 1 / -1; max-width: calc(50% - 8px); }
}

/* ---- My Account: shared two-column layout (0.6.4). ------------------------------------- */
.tbd.tbd-acct {
	--tbd-acct-blue: #2563eb; --tbd-acct-teal: #0d9488; --tbd-acct-green: #16a34a; --tbd-acct-purple: #7c3aed;
	--tbd-acct-amber: #d97706; --tbd-acct-red: #b54848; --tbd-acct-slate: #475569;
	box-sizing: border-box; width: 100%; max-width: 1200px; margin: 24px auto; padding: 0 16px;
	container: tbd-acct / inline-size;
}
/* Columns follow the space the theme gives the page (container query), not the screen width:
   two columns from 720 px of account area, one column (menu above) below. */
.tbd-acct__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.tbd-acct *, .tbd-acct *::before, .tbd-acct *::after { box-sizing: border-box; }
.tbd-acct .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tbd-acct__nav { background: #fff; border: 1px solid var(--tbd-line); border-radius: 14px; padding: 14px; }
.tbd-acct__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--tbd-text); }
.tbd-acct__who { margin: 2px 0 12px; font-size: 13px; color: var(--tbd-muted); overflow-wrap: anywhere; }
.tbd-acct__menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tbd-acct__item { margin: 0; padding: 0; }
.tbd-acct__item::before { content: none; }
.tbd-acct__link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--tbd-text) !important; text-decoration: none !important; font-size: 15px; font-weight: 500; line-height: 1.25; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease; }
.tbd-acct__link:hover { background: #f4f6f9; }
.tbd-acct__link:focus-visible { outline: 3px solid var(--tbd-acct-blue); outline-offset: 2px; }
.tbd-acct__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; color: var(--tbd-acct-c, var(--tbd-acct-slate)); background: #f1f5f9; background: color-mix(in srgb, var(--tbd-acct-c, var(--tbd-acct-slate)) 12%, #fff); }
.tbd-acct__label { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.tbd-acct__badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--tbd-acct-amber); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tbd-acct__item--dashboard { --tbd-acct-c: var(--tbd-acct-blue); }
.tbd-acct__item--businesses { --tbd-acct-c: var(--tbd-acct-teal); }
.tbd-acct__item--add { --tbd-acct-c: var(--tbd-acct-green); }
.tbd-acct__item--account { --tbd-acct-c: var(--tbd-acct-purple); }
.tbd-acct__item--notifications { --tbd-acct-c: var(--tbd-acct-amber); }
.tbd-acct__item--store { --tbd-acct-c: var(--tbd-acct-slate); }
.tbd-acct__item--logout { --tbd-acct-c: var(--tbd-acct-red); }
.tbd-acct__item--logout .tbd-acct__link { color: var(--tbd-acct-red) !important; }
.tbd-acct__item.is-active .tbd-acct__link { background: #f1f5f9; border-color: #cbd5e1; background: color-mix(in srgb, var(--tbd-acct-c) 9%, #fff); border-color: color-mix(in srgb, var(--tbd-acct-c) 35%, #fff); font-weight: 700; box-shadow: inset 3px 0 0 var(--tbd-acct-c); }
.tbd-acct__item.is-active .tbd-acct__icon { background: var(--tbd-acct-c); color: #fff; }
.tbd-acct__main { min-width: 0; container: tbd-acct-main / inline-size; }
.tbd-acct .tbd-owner-list__item { grid-template-columns: 56px minmax(0, 1fr); }
.tbd-acct .tbd-owner-list__actions { grid-column: 1 / -1; flex-wrap: wrap; }
.tbd-acct__h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
.tbd-acct__card, .tbd-acct .tbd-account__panel { background: #fff; border: 1px solid var(--tbd-line); border-radius: 14px; padding: 18px 16px; margin: 0 0 16px; }
.tbd-acct__card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.tbd-acct__card-head .tbd-h2, .tbd-acct__card-head .tbd-acct__h1 { margin: 0; }
.tbd-acct .tbd-acct__add { width: auto; flex: 0 0 auto; }
.tbd-acct__empty { margin: 0; color: var(--tbd-muted); }
.tbd-acct__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.tbd-acct__stats li { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--tbd-soft); font-size: 14px; }
.tbd-acct__stats strong { font-variant-numeric: tabular-nums; }
.tbd-acct__more { margin: 12px 0 0; }
.tbd-acct__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tbd-acct__notes li { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff8eb; border: 1px solid #f3d9a6; }
.tbd-acct__notes a { color: #6b4300; text-decoration: none; }
.tbd-acct__notes a:hover { text-decoration: underline; }
.tbd-acct .tbd-owner-list { margin: 0; padding: 0; }
.tbd-acct .tbd-owner-list__item { border-radius: 12px; }
.tbd-acct .tbd.tbd-account { max-width: none; padding: 0; margin: 0; }
.tbd-updates { list-style: none; margin: 0; padding: 0; }
.tbd-updates__item { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--tbd-line); }
.tbd-updates__item:last-child { border-bottom: 0; }
.tbd-updates__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tbd-acct-slate); align-self: center; }
.tbd-updates__item--good .tbd-updates__dot { background: var(--tbd-acct-green); }
.tbd-updates__item--bad .tbd-updates__dot { background: var(--tbd-acct-red); }
.tbd-updates__item--wait .tbd-updates__dot { background: var(--tbd-acct-amber); }
.tbd-updates__item--info .tbd-updates__dot { background: var(--tbd-acct-blue); }
.tbd-updates__text { overflow-wrap: anywhere; }
.tbd-updates__text a { text-decoration: none; }
.tbd-updates__text a:hover { text-decoration: underline; }
.tbd-updates__time { grid-column: 2; font-size: 13px; color: var(--tbd-muted); }
.tbd-badge--new { margin-left: 6px; background: #fff3d6; color: #7a4b00; }
@container tbd-acct-main (min-width: 520px) {
	.tbd-acct .tbd-owner-list__item { grid-template-columns: 56px minmax(0, 1fr) auto; }
	.tbd-acct .tbd-owner-list__actions { grid-column: auto; flex-wrap: nowrap; }
}
@container tbd-acct (min-width: 720px) {
	.tbd-acct__grid { grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr); gap: 24px; }
	.tbd-acct__nav { position: sticky; top: 24px; padding: 18px 14px; }
	.tbd-acct__menu { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.tbd-acct__item--logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tbd-line); }
	.tbd-acct__card, .tbd-acct .tbd-account__panel { padding: 22px 26px; }
	.tbd-acct__h1 { font-size: 28px; }
}
@container tbd-acct (max-width: 719px) {
	.tbd-acct__nav { padding: 12px 10px; }
	.tbd-acct__link { gap: 8px; padding: 6px 8px; font-size: 14px; }
	.tbd-acct__icon { width: 28px; height: 28px; border-radius: 8px; }
	.tbd-acct__item--logout { grid-column: 1 / -1; }
}
@container tbd-acct (max-width: 320px) {
	.tbd-acct__menu { grid-template-columns: minmax(0, 1fr); }
}

/* Premium billing (1.0.0) */
.tbd-badge--until { background: #fff8e5; border-color: #f0dca0; }
.tbd-acct .tbd-owner-list__actions .tbd-btn--premium { border-color: var(--tbd-accent); color: var(--tbd-accent); }
.tbd-billing h2 { margin: 0 0 12px; }
.tbd-billing h3 { margin: 24px 0 8px; font-size: 1.05em; }
.tbd-billing .tbd-notice { margin: 0 0 12px; }
.tbd-billing .tbd-notice p { margin: 0; }
.tbd-billing__compare, .tbd-billing__history table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbd-billing__compare th, .tbd-billing__compare td, .tbd-billing__history th, .tbd-billing__history td { padding: 8px; border-bottom: 1px solid var(--tbd-line); text-align: left; vertical-align: top; }
.tbd-billing__history { overflow-x: auto; margin-top: 24px; }
.tbd-billing__price { font-size: 1.1em; }
.tbd-billing__form fieldset { border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); padding: 8px 12px 12px; margin: 0 0 12px; }
.tbd-billing__option { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.tbd-billing__option input { margin-top: 4px; }
.tbd-billing .tbd-btn { flex: 0 1 auto; }
.tbd-billing__off { margin: 0 0 16px; }
.tbd-acct__lead, .tbd-intro { color: var(--tbd-muted); margin: 0 0 16px; }

/* 1.1.0: /directory/ category index. */
.tbd-catindex__search { display: flex; gap: 8px; margin: 12px 0 6px; max-width: 640px; }
.tbd-catindex__search input { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); font-size: 16px; }
.tbd-catindex__search .tbd-btn { flex: none; }
.tbd-catindex__all { margin: 0 0 16px; font-weight: 600; }
/* 1.4.0: "Explore by Category" icon cards ([tharlizwa_directory_categories layout="icons"]).
   Columns follow the width of the block's own container (page builder columns included):
   2 on phones, then 3, 4 and 6. */
.tbd-caticons { container-type: inline-size; }
.tbd-caticons__title { font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.tbd-caticons__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tbd-caticons__grid > li { margin: 0; padding: 0; list-style: none; }
/* The card link is .tbd-catlink: .tbd-caticon is the class of the icon SVG itself
   (CategoryIcons::svg, also used by the /directory/ cards), so it must not carry card styles. */
.tbd a.tbd-catlink { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; min-height: 132px; padding: 16px 10px 14px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; color: var(--tbd-text); text-align: center; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.tbd a.tbd-catlink:hover { border-color: var(--tbd-cat); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.tbd a.tbd-catlink:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }
.tbd-catlink__icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--tbd-cat); color: var(--tbd-cat-ink); display: flex; align-items: center; justify-content: center; }
.tbd-catlink__icon svg { display: block; flex: none; width: 30px; height: 30px; }
.tbd-catlink__name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.tbd-catlink__count { font-size: 13px; color: var(--tbd-muted); }
.tbd-caticons__more { margin: 14px 0 0; text-align: center; font-weight: 600; }
.tbd .tbd-caticons__more a { color: var(--tbd-accent); text-decoration: none; }
.tbd .tbd-caticons__more a:hover { text-decoration: underline; }
@container (min-width: 520px) { .tbd-caticons__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@container (min-width: 760px) { .tbd-caticons__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 1040px) { .tbd-caticons__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .tbd a.tbd-catlink { transition: none; } .tbd a.tbd-catlink:hover { transform: none; } }

.tbd-catcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .tbd-catcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tbd-catcards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .tbd-catcards { grid-template-columns: repeat(4, 1fr); } }
.tbd-catcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--tbd-line); border-top: 5px solid var(--tbd-cat); border-radius: var(--tbd-radius); background: #fff; }
.tbd-catcard__head { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; color: var(--tbd-text); }
.tbd-catcard__icon { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 12px; background: var(--tbd-cat); color: var(--tbd-cat-ink); display: flex; align-items: center; justify-content: center; }
.tbd-catcard__name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.tbd-catcard__count { font-size: 13px; color: var(--tbd-muted); }
.tbd-catcard__subs { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 4px; }
.tbd-catcard__subs a { text-decoration: none; }
.tbd-catcard__subs a:hover, .tbd-catcard__head:hover .tbd-catcard__name { text-decoration: underline; }
.tbd-catcard__all { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--tbd-text); border-bottom: 2px solid var(--tbd-cat); }
.tbd-catcard a:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 2px; border-radius: 4px; }

/* 1.1.0: Top of the Week (dark cards; 3 / 2 / 1 per view). */
.tbd-topweek { --tbd-pv: 1; box-sizing: border-box; max-width: 100%; overflow: hidden; background: #111827; color: #f9fafb; border-radius: var(--tbd-radius); padding: 18px 16px 14px; }
@media (min-width: 600px) { .tbd-topweek { --tbd-pv: 2; } }
@media (min-width: 960px) { .tbd-topweek { --tbd-pv: 3; } }
.tbd-topweek__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tbd-topweek__title { margin: 0; font-size: 22px; color: #fff; min-width: 0; }
.tbd-topweek__nav { display: flex; gap: 8px; }
.tbd-topweek__nav[hidden], .tbd-topweek__dots[hidden] { display: none; }
.tbd-topweek__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4b5563; background: #1f2937; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.tbd-topweek__btn:focus-visible, .tbd-topweek__dot:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.tbd-topweek__viewport { overflow: hidden; }
.tbd-topweek__track { list-style: none; margin: 0; padding: 0; display: flex; transition: transform .45s ease; }
.tbd-topweek__slide { flex: 0 0 calc(100% / var(--tbd-pv)); min-width: 0; max-width: calc(100% / var(--tbd-pv)); padding: 4px 6px; box-sizing: border-box; overflow-wrap: anywhere; }
.tbd-topweek:not(.is-ready) .tbd-topweek__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.tbd-topweek:not(.is-ready) .tbd-topweek__slide { scroll-snap-align: start; }
.tbd-topweek .tbd-vcard { background: #1f2937; border-color: #374151; color: #f9fafb; }
.tbd-topweek .tbd-vcard__img { background: #fff; border-color: #374151; }
.tbd-topweek .tbd-vcard a { color: #fff; }
.tbd-topweek .tbd-vcard__cat, .tbd-topweek .tbd-vcard__place, .tbd-topweek .tbd-vcard__phone { color: #d1d5db; }
.tbd-topweek__dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.tbd-topweek__dot { width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; position: relative; }
.tbd-topweek__dot::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #6b7280; }
.tbd-topweek__dot[aria-current="true"]::after { background: #fbbf24; }
@media (prefers-reduced-motion: reduce) { .tbd-topweek__track { transition: none; } }

/* 1.2.0: listing layouts (shared parts; Free compact, Premium hero, tabs and gallery). */
.tbd-head__logo { border-radius: 50%; }
.tbd-head__logo img { object-fit: cover; }
.tbd-head__logo--none { background: var(--tbd-soft); color: #9aa0a6; }
.tbd-head__logo--none .tbd-icon { width: 34px; height: 34px; }
.tbd-head__title--sub { font-weight: 700; }
.tbd-head { flex-wrap: wrap; }
.tbd-mainphoto { margin: 0 0 16px; }
.tbd .tbd-mainphoto__btn { display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); overflow: hidden; background: var(--tbd-soft) !important; cursor: zoom-in; min-height: 0; box-shadow: none; }
.tbd-mainphoto__btn img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.tbd-mainphoto__btn:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }
.tbd-gallery { margin: 0 0 8px; }
.tbd-gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tbd-gallery__grid .tbd-gallery__item { width: 100%; max-width: none; aspect-ratio: 4 / 3; }
.tbd-gallery__grid .tbd-gallery__item img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.tbd-below { margin-top: 8px; }
.tbd-below > .tbd-enquiry, .tbd-below > .tbd-section { max-width: 100%; }
.tbd-side .tbd-section { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; }
.tbd-side .tbd-section .tbd-h2 { font-size: 17px; margin: 0 0 6px; }
.tbd-side .tbd-hours__table { font-size: 14px; }
.tbd-side .tbd-hours__table th, .tbd-side .tbd-hours__table td { padding: 4px 0; }
.tbd-side .tbd-contact__list li { padding: 6px 0; font-size: 15px; }
.tbd-side .tbd-map { height: 220px; }
/* Premium hero: cover image (or the main photo, darkened), name and rating. */
.tbd-hero { position: relative; margin: 8px -16px 0; min-height: 180px; background: #1f2937; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
/* !important: some themes and WordPress image styles size images by their width/height attributes. */
.tbd-hero .tbd-hero__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.tbd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, .15)); }
.tbd-hero--photo .tbd-hero__img { filter: blur(2px) brightness(.85); transform: scale(1.04); }
.tbd-hero__text { position: relative; z-index: 1; padding: 18px 16px; width: 100%; text-align: center; }
.tbd .tbd-hero__title { margin: 0; color: #fff; font-size: 26px; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.tbd-hero__rating { margin: 6px 0 0; }
.tbd-hero__rating, .tbd-hero__rating a { color: #fff; }
.tbd-listing--premium .tbd-head { position: relative; z-index: 2; margin-top: -36px; padding: 0 4px; }
.tbd-listing--premium .tbd-head__logo { border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
/* Only the logo overlaps the banner; the name and details start below its edge. */
.tbd-listing--premium .tbd-head__main { padding-top: 40px; }
/* Section bar: anchor links that look like tabs. */
.tbd-tabs { position: sticky; top: 0; z-index: 20; margin: 16px -16px 16px; background: #fff; border-bottom: 1px solid var(--tbd-line); }
.tbd-tabs ul { list-style: none; margin: 0; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tbd-tabs li { flex: none; margin: 0; }
.tbd-tabs__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--tbd-text); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.tbd-tabs__link:hover, .tbd-tabs__link.is-current { color: var(--tbd-accent); border-bottom-color: var(--tbd-accent); }
.tbd-tabs__link:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: -3px; }
.tbd-listing [id] { scroll-margin-top: 60px; }
@media (min-width: 600px) {
	.tbd-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.tbd-hero { margin: 8px 0 0; min-height: 260px; border-radius: var(--tbd-radius); }
	.tbd .tbd-hero__title { font-size: 36px; }
	.tbd-tabs { margin: 18px 0; }
	.tbd-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tbd-listing--premium .tbd-head { margin-top: -48px; padding: 0 20px; }
	.tbd-listing--premium .tbd-head__main { padding-top: 52px; }
	.tbd-below { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 32px; }
	.tbd-below > * { grid-column: 1 / -1; }
	.tbd-below > .tbd-enquiry { grid-column: 1; }
}
@media (min-width: 1024px) {
	.tbd-hero { min-height: 320px; }
}

/* 1.2.0: [tharlizwa_directory_featured]. */
.tbd-featured__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tbd-featured--wide .tbd-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tbd-featured--wide .tbd-featured__grid { grid-template-columns: repeat(var(--tbd-cols, 4), minmax(0, 1fr)); } }
.tbd-featured--sidebar .tbd-featured__grid { grid-template-columns: 1fr; }
.tbd-featured--norating .tbd-card__rating { display: none; }
.tbd-rotator { --tbd-pv: 1; max-width: 100%; overflow: hidden; }
.tbd-rotator__viewport { overflow: hidden; }
.tbd-rotator__track { list-style: none; margin: 0; padding: 0; display: flex; transition: transform .45s ease; }
.tbd-rotator__slide { flex: 0 0 calc(100% / var(--tbd-pv)); max-width: calc(100% / var(--tbd-pv)); min-width: 0; padding: 4px 6px; box-sizing: border-box; display: grid; gap: 12px; align-content: start; overflow-wrap: anywhere; }
.tbd-rotator:not(.is-ready) .tbd-rotator__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.tbd-rotator:not(.is-ready) .tbd-rotator__slide { scroll-snap-align: start; }
.tbd-rotator__bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.tbd-rotator__bar[hidden] { display: none; }
.tbd .tbd-rotator__btn { width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 1px solid var(--tbd-line); background: #fff; color: var(--tbd-text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: none; }
.tbd-rotator__btn:focus-visible, .tbd-rotator .tbd-topweek__dot:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }
.tbd-rotator__dots { display: flex; gap: 2px; }
.tbd-rotator .tbd-topweek__dot::after { background: #c5c9cf; }
.tbd-rotator .tbd-topweek__dot[aria-current="true"]::after { background: var(--tbd-accent); }
/* Themes style every <button> (Twenty Twenty-One, Astra); keep the carousel controls as designed. */
.tbd-rotator .tbd-rotator__btn { background: #fff !important; color: var(--tbd-text) !important; border: 1px solid var(--tbd-line) !important; padding: 0 !important; text-decoration: none; }
.tbd-rotator .tbd-topweek__dot, .tbd-topweek .tbd-topweek__dot { width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none; }
.tbd-featured__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tbd-frow { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); background: #fff; position: relative; }
.tbd-frow__img { flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--tbd-soft); }
.tbd-frow__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbd-frow__body { min-width: 0; }
.tbd-frow__name { margin: 0; font-size: 15px; line-height: 1.3; }
.tbd-frow__name a::after { content: ""; position: absolute; inset: 0; }
.tbd-frow__meta { margin: 2px 0 0; font-size: 13px; color: var(--tbd-muted); }
@media (prefers-reduced-motion: reduce) { .tbd-rotator__track { transition: none; } }

/* 1.2.0: profile photos. */
.tbd-avatar { --tbd-av: 72px; display: inline-flex; align-items: center; justify-content: center; width: var(--tbd-av); height: var(--tbd-av); border-radius: 50%; overflow: hidden; background: var(--tbd-soft); color: #fff; font-weight: 700; font-size: calc(var(--tbd-av) * .38); line-height: 1; flex: none; }
.tbd-avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbd-acct__me { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tbd-acct__me .tbd-acct__title, .tbd-acct__me .tbd-acct__who { margin: 0; }
.tbd-acct__photo { position: relative; display: inline-flex; border-radius: 50%; text-decoration: none; }
.tbd-acct__photo:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }
.tbd-acct__cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--tbd-text); border: 1px solid var(--tbd-line); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.tbd-account-photo__row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

/* 1.2.0: sub-category links on category pages (wrap, even spacing, 44 px targets on phones). */
.tbd-subterms { margin: 12px 0 0; }
.tbd-subterms__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tbd-subterms__list li { margin: 0; }
.tbd-subterms__list a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--tbd-line); border-radius: 999px; background: #fff; color: var(--tbd-text); text-decoration: none; font-size: 14px; line-height: 1.25; max-width: 100%; }
.tbd-subterms__name { overflow-wrap: anywhere; }
.tbd-subterms__count { flex: none; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--tbd-soft); color: var(--tbd-muted); font-size: 12px; text-align: center; }
.tbd-subterms__list a:hover { border-color: var(--tbd-accent); color: var(--tbd-accent); }
.tbd-subterms__list a:focus-visible, .tbd-subterms__more summary:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 2px; }
.tbd-subterms__more { margin-top: 8px; }
.tbd-subterms__more summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; font-size: 14px; color: var(--tbd-accent); }
.tbd-subterms__more[open] summary { margin-bottom: 8px; }
@media (max-width: 767px) { .tbd-subterms__list a, .tbd-subterms__more summary { min-height: 44px; } }

/* ==========================================================================
   1.3.0 — Display & Layout (UI-01/02), Design 2 hero (UI-03), gallery (UI-04),
   badges (BADGE-01). Widths come from Settings → Display & Layout (--tbd-w-*).
   ========================================================================== */
:root { --tbd-w-dir: 1440px; --tbd-w-listing: 1280px; --tbd-w-forms: 1200px; --tbd-pad: 16px; }
.tbd { padding-left: var(--tbd-pad); padding-right: var(--tbd-pad); }
.tbd.tbd-listing { max-width: var(--tbd-w-listing); }
.tbd.tbd-directory, .tbd.tbd-catindex { max-width: var(--tbd-w-dir); }
.tbd.tbd-account, .tbd-acct { max-width: var(--tbd-w-forms); }
@media (min-width: 768px) { .tbd { padding-left: max(var(--tbd-pad), 24px); padding-right: max(var(--tbd-pad), 24px); } }

/* Pages the plugin draws itself, "Follow theme width": stay inside the theme's content area. */
.tbd-layout-theme .tbd.tbd-listing, .tbd-layout-theme .tbd.tbd-directory, .tbd-layout-theme .tbd.tbd-catindex { max-width: 100%; }

/* Pages the plugin draws itself, "Full width": the plugin's own container is the only one that
   limits the width (no theme box or sidebar around it); full-width sections span the window. */
.tbd-layout-full #primary.tbd-primary { float: none; width: 100%; max-width: none; margin: 0 auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
.tbd-layout-full #primary.tbd-primary > .site-main { margin: 0; padding: 0; }
.tbd-layout-full.ast-page-builder-template .site-content > .ast-container { max-width: 100%; padding-left: 0; padding-right: 0; }
.tbd-layout-full .tbd-bleed { position: relative; width: var(--tbd-vw, 100vw); max-width: none; margin-left: calc(50% - var(--tbd-vw, 100vw) / 2); margin-right: 0; border-radius: 0; }
html:has(body.tbd-layout-full) { overflow-x: clip; }
body.tbd-layout-full { overflow-x: clip; }

/* ---- Premium hero (Design 2). */
.tbd-listing--premium { padding-top: 0; }
.tbd .tbd-hero { margin: 0 0 0; min-height: 300px; border-radius: 0; display: flex; align-items: flex-end; background: linear-gradient(135deg, #1f2937, #374151); }
.tbd-layout-theme .tbd .tbd-hero { border-radius: var(--tbd-radius); margin-top: 8px; }
.tbd-hero--photo .tbd-hero__img { filter: none; transform: none; }
.tbd-hero::after { background: linear-gradient(to right, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .25) 100%), linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%); }
.tbd-hero--photo::after { background: linear-gradient(to right, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .4) 100%); }
.tbd-hero__inner { position: relative; z-index: 1; box-sizing: border-box; width: 100%; max-width: var(--tbd-w-listing); margin: 0 auto; padding: 20px var(--tbd-pad) 76px; text-align: left; color: #fff; }
.tbd-layout-theme .tbd-hero__inner { padding-left: 20px; padding-right: 20px; }
.tbd .tbd-hero__title { margin: 10px 0 0; font-size: clamp(28px, 6vw, 52px); line-height: 1.1; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.tbd-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.tbd .tbd-hero__rating { margin: 0; font-size: 17px; color: #fff; }
.tbd-hero__rating a, .tbd-hero__rating .tbd-stars { color: #fff; }
.tbd-hero__text { display: none; }
@media (min-width: 768px) { .tbd .tbd-hero { min-height: 340px; } .tbd-hero__inner { padding: 28px 24px 84px; } }
@media (min-width: 1100px) { .tbd .tbd-hero { min-height: 380px; } }

/* Breadcrumbs: plain on Free listings; a translucent pill (no white box) in the hero. */
.tbd-crumbs { align-items: center; }
.tbd-crumbs__sep { opacity: .7; }
.tbd-crumbs--hero { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 5px 14px; font-size: 14px; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; backdrop-filter: blur(2px); }
.tbd-crumbs--hero a { color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.tbd-crumbs--hero .tbd-icon { width: 15px; height: 15px; vertical-align: 0; }

/* Head under the hero: logo overlaps the hero; category, place and the action buttons. */
.tbd .tbd-listing--premium .tbd-head, .tbd-listing--premium .tbd-head { margin-top: -56px; padding: 0; align-items: flex-end; gap: 12px 16px; }
.tbd-listing--premium .tbd-head__logo { width: 112px; height: 112px; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); background: #fff; }
.tbd-listing--premium .tbd-head__main { padding-top: 0; flex: 1 1 220px; align-self: flex-end; padding-bottom: 4px; }
.tbd-listing--premium .tbd-head .tbd-chips { margin-top: 62px; }
/* Phones keep the 1.2.0 Call / Website / Directions bar fixed at the bottom of the screen. */
.tbd-head .tbd-actions .tbd-btn { flex: 1 1 0; justify-content: center; min-height: 46px; }
@media (min-width: 768px) {
	.tbd-head .tbd-actions, .tbd .tbd-head .tbd-actions { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; box-shadow: none; background: none; max-width: none; width: 100%; }
	.tbd-listing--premium .tbd-head { margin-top: -64px; }
	.tbd-listing--premium .tbd-head__logo { width: 136px; height: 136px; }
	.tbd-listing--premium .tbd-head .tbd-chips { margin-top: 70px; }
	.tbd-head .tbd-actions, .tbd .tbd-head .tbd-actions { width: auto; margin: 0 0 4px auto; align-self: flex-end; flex-wrap: nowrap; }
	.tbd-head .tbd-actions .tbd-btn, .tbd-head .tbd-actions .tbd-btn--primary { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
	.tbd-listing--free .tbd-head .tbd-actions { align-self: center; }
}

/* ---- Badges (Option 1: solid). */
.tbd-badges--full, .tbd-badges--compact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; vertical-align: middle; }
.tbd-head__main > .tbd-badges { margin: 2px 0 6px; }
.tbd-badge--verified, .tbd-badge--premium { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 9px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.tbd-badge--verified .tbd-icon, .tbd-badge--premium .tbd-icon { width: 16px; height: 16px; vertical-align: 0; }
.tbd-badge--verified { background: #15803d; color: #fff; }
.tbd-badge--premium { background: #f5b301; color: #1f1300; }
.tbd-badges--compact .tbd-badge { height: 22px; padding: 0 8px 0 6px; font-size: 11.5px; gap: 4px; }
.tbd-badges--compact .tbd-badge .tbd-icon { width: 13px; height: 13px; }

/* ---- Section tabs: in page order; "Gallery" on narrow screens. */
.tbd-tabs__short { display: none; }
@media (max-width: 599px) {
	.tbd-tabs__short { display: inline; }
	.tbd-tabs__long { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Product & Service Gallery: stage + thumbnails. */
.tbd-gallery--stage { margin: 0 0 20px; }
.tbd-gallery--stage .tbd-h2 { margin: 0 0 10px; }
.tbd-stage { position: relative; border-radius: var(--tbd-radius); overflow: hidden; background: #111; aspect-ratio: 16 / 10; outline: none; }
.tbd .tbd-stage__open { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: #111 !important; cursor: zoom-in; box-shadow: none; min-height: 0; }
.tbd-stage .tbd-stage__img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.tbd-stage__zoom { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tbd .tbd-stage__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95) !important; color: #111 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tbd-stage__nav--prev { left: 12px; }
.tbd-stage__nav--next { right: 12px; }
.tbd-stage__nav .tbd-icon { width: 22px; height: 22px; }
.tbd-stage__open:focus-visible, .tbd .tbd-stage__nav:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: -3px; }
.tbd-stage__count { position: absolute; left: 12px; bottom: 10px; margin: 0; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; pointer-events: none; }
.tbd-thumbs { margin-top: 10px; }
.tbd-thumbs__list { list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tbd-thumbs__list li { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.tbd-thumb { display: block; width: 92px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .82; }
.tbd-thumb img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.tbd-thumb[aria-current="true"] { border-color: var(--tbd-accent); opacity: 1; }
.tbd-thumb:hover { opacity: 1; }
.tbd-thumb:focus-visible { outline: 3px solid var(--tbd-accent); outline-offset: 1px; }
@media (min-width: 768px) { .tbd-thumb { width: 112px; } }
@media (prefers-reduced-motion: reduce) { .tbd-thumbs__list { scroll-behavior: auto; } }

/* ---- Free listing (UI-05): tidy head and sidebar; the sidebar sticks beside a long main column
   instead of leaving an empty band; enquiry and reviews under the main column. */
.tbd-listing--free .tbd-head { align-items: center; }
@media (min-width: 900px) {
	.tbd-side { position: sticky; top: 16px; align-self: start; }
	.tbd-cols { align-items: start; }
	.tbd-side > .tbd-section:first-child { margin-top: 0; }
}
/* 1.3.0 BADGE-01: compact badges on cards, directly under the business name. */
.tbd-card__body > .tbd-badges, .tbd-vcard__body > .tbd-badges, .tbd-tile__text > .tbd-badges { display: flex; margin: 2px 0 6px; }
.tbd-tile__text > .tbd-badges { margin: 4px 0; }
/* 1.3.0: comparison table (Automatic / Custom). Three columns fit on phones; long labels wrap. */
.tbd-compare-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbd-compare th[scope="row"] { font-weight: 500; }
.tbd-compare thead th:not(:first-child), .tbd-compare td { text-align: center; white-space: nowrap; }
.tbd-compare td { white-space: normal; min-width: 64px; }
.tbd-compare__yes { color: #15803d; font-weight: 700; }
.tbd-compare__no { color: #6b7280; }
@media (max-width: 480px) { .tbd-compare { font-size: 13px; } .tbd-compare th, .tbd-compare td { padding: 6px 4px; } }
/* 1.3.0 SUB-01: Free / Premium choice on Add Business; Premium choice on the edit page. */
.tbd-plan fieldset { border: 0; margin: 0; padding: 0; }
.tbd-plan .tbd-plan__opt { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; margin: 0 0 8px; font-weight: 400; font-size: inherit; border: 1px solid var(--tbd-line); border-radius: var(--tbd-radius); cursor: pointer; }
.tbd-plan .tbd-plan__opt > input { grid-row: 1 / span 2; align-self: start; margin: 2px 0 0; }
.tbd-plan__opt:has(input:checked) { border-color: var(--tbd-accent); box-shadow: 0 0 0 1px var(--tbd-accent) inset; }
.tbd-plan .tbd-plan__opt .tbd-muted { display: block; grid-column: 2; margin: 4px 0 0; }
.tbd-plan__compare { margin-top: 8px; }
.tbd-intent { border-left: 4px solid #f5b301; }
.tbd-intent__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tbd-inline-form { display: inline; margin: 0; }
/* 1.3.0 AI-01: optional description suggestions (owner edit form). */
.tbd-ai { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--tbd-line); border-radius: var(--tbd-radius); }
.tbd-ai summary { cursor: pointer; font-weight: 600; }
.tbd-ai textarea { width: 100%; box-sizing: border-box; }
.tbd-ai__text { padding: 10px 12px; background: var(--tbd-soft); border-radius: var(--tbd-radius); }
