/* Legal Directory Pro — front end. Inherits theme fonts; uses logical properties for RTL (Arabic/Urdu). */
.ld {
	--ld-accent: #1d4e89;
	--ld-accent-ink: #fff;
	--ld-ink: #1b1f24;
	--ld-muted: #5b6470;
	--ld-line: #e3e6ea;
	--ld-bg: #fff;
	--ld-soft: #f5f7f9;
	--ld-ok: #17713a;
	--ld-warn: #8a5a00;
	--ld-gold: #b7791f;
	--ld-star: #e3a008;
	--ld-radius: 10px;
	--ld-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
	color: var(--ld-ink);
	line-height: 1.55;
	box-sizing: border-box;
}
.ld *, .ld *::before, .ld *::after { box-sizing: inherit; }
.ld a { color: var(--ld-accent); }
.ld h2 { font-size: 1.3rem; margin: 0 0 .75rem; line-height: 1.3; }
.ld h3, .ld .ld-h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; line-height: 1.35; }
.ld .ld-h3 { margin-top: 0; }
.ld p { margin: 0 0 .75rem; }
.ld img { max-width: 100%; height: auto; }
.ld-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ld-muted { color: var(--ld-muted); }
.ld-small { font-size: .875rem; }
.ld-hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.ld-icon { vertical-align: -3px; flex: none; }

/* Buttons */
.ld-btn, .ld .ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--ld-accent); background: var(--ld-accent); color: var(--ld-accent-ink); font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: filter .15s, background .15s; }
.ld-btn:hover { filter: brightness(1.08); color: var(--ld-accent-ink); }
.ld-btn:focus-visible, .ld a:focus-visible, .ld button:focus-visible, .ld input:focus-visible, .ld select:focus-visible, .ld textarea:focus-visible, .ld summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--ld-accent) 45%, transparent); outline-offset: 2px; }
.ld-btn--ghost, .ld .ld-btn--ghost { background: transparent; color: var(--ld-accent); }
.ld-btn--ghost:hover { background: color-mix(in srgb, var(--ld-accent) 8%, transparent); color: var(--ld-accent); }
.ld-btn--sm { padding: .4rem .7rem; font-size: .85rem; }
.ld-btn--block { width: 100%; }
.ld-btn--wa { background: #1f9d55; border-color: #1f9d55; }
.ld-link { background: none; border: 0; padding: 0; color: var(--ld-accent); cursor: pointer; font: inherit; text-decoration: underline; }
.ld-link--danger { color: #b42318; }

/* Cards */
.ld-card { background: var(--ld-bg); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-pad { padding: 1.25rem; }
.ld-section { margin-block-end: 1.25rem; }

/* Notices */
.ld-notice { padding: .75rem 1rem; border-radius: 8px; background: var(--ld-soft); border-inline-start: 4px solid var(--ld-accent); margin: 0 0 1rem; }
.ld-notice--success { background: #ecfdf3; border-color: var(--ld-ok); }
.ld-notice--error { background: #fef3f2; border-color: #b42318; }

/* Search */
.ld-search { margin-block-end: 1.25rem; }
.ld-search__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .5rem; background: var(--ld-bg); border: 1px solid var(--ld-line); border-radius: 12px; padding: .5rem; box-shadow: var(--ld-shadow); }
.ld-search__field { position: relative; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ld-search__field label { font-size: .8rem; color: var(--ld-muted); font-weight: 600; }
.ld-search__field--q .ld-icon { position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%); color: var(--ld-muted); pointer-events: none; }
.ld-search__field--q input { padding-inline-start: 2.2rem !important; }
.ld input[type=text], .ld input[type=search], .ld input[type=email], .ld input[type=tel], .ld input[type=url], .ld input[type=number], .ld input[type=date], .ld input[type=time], .ld input[type=password], .ld input:not([type]), .ld select, .ld textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--ld-line); border-radius: 8px; background: #fff; color: var(--ld-ink); font: inherit; font-size: 1rem; min-height: 44px; }
.ld textarea { min-height: 96px; }
.ld-search__main input, .ld-search__main select { border-color: transparent; background: var(--ld-soft); }
.ld-search__submit { min-height: 44px; padding-inline: 1.4rem; }
.ld-search__more { margin-block-start: .6rem; }
.ld-search__more > summary { cursor: pointer; font-weight: 600; color: var(--ld-accent); display: inline-block; padding: .3rem 0; }
.ld-search__adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; padding: 1rem; margin-block-start: .5rem; background: var(--ld-soft); border-radius: 10px; }
.ld-search__checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; border: 0; padding: 0; margin: 0; }
.ld-search__checks label { display: inline-flex; gap: .4rem; align-items: center; }
.ld-search__near { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ld-search__near select { width: auto; }
.ld-search__near [aria-pressed=true] { background: var(--ld-accent); color: #fff; }
.ld-search__reset { grid-column: 1 / -1; margin: 0; font-size: .875rem; }
.ld-search--compact .ld-search__main { grid-template-columns: 1.4fr 1fr 1fr auto; }

/* Results */
.ld-results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block-end: .75rem; }
.ld-results-count { margin: 0; color: var(--ld-muted); }
.ld-results--map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 40%); gap: 1.25rem; align-items: start; }
.ld-results--map.is-map-hidden { grid-template-columns: 1fr; }
.ld-results--map.is-map-hidden .ld-results__map { display: none; }
.ld-results__map { position: sticky; top: 1rem; }
.ld-map { width: 100%; height: 70vh; min-height: 320px; border-radius: var(--ld-radius); border: 1px solid var(--ld-line); background: var(--ld-soft); z-index: 0; }
.ld-map--sm { height: 220px; min-height: 0; margin-block: .5rem; }
.ld-map__consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; height: 100%; text-align: center; padding: 1rem; font-size: .875rem; color: var(--ld-muted); }
.ld-list { display: grid; gap: 1rem; }
.ld-grid { display: grid; gap: 1rem; }
.ld-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ld-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-empty { color: var(--ld-muted); }

/* Listing card */
.ld-listing-card { position: relative; display: grid; gap: 1rem; padding: 1rem; }
.ld-listing-card--row { grid-template-columns: 96px minmax(0, 1fr) auto; align-items: start; }
.ld-listing-card--grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
.ld-listing-card.is-featured { border-color: color-mix(in srgb, var(--ld-gold) 55%, var(--ld-line)); }
.ld-listing-card.is-premium { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ld-gold) 35%, transparent), var(--ld-shadow); }
.ld-listing-card__media { display: block; text-decoration: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--ld-soft); }
.ld-listing-card--grid .ld-listing-card__media { width: 72px; height: 72px; }
.ld-listing-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-avatar { display: grid; place-items: center; width: 100%; height: 100%; min-width: 40px; min-height: 40px; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--ld-accent) 12%, #fff); color: var(--ld-accent); font-weight: 700; font-size: 1.6rem; }
.ld-avatar--lg { font-size: 3rem; }
.ld-listing-card__top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-block-end: .2rem; }
.ld-listing-card__type { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ld-muted); font-weight: 600; text-decoration: none; }
.ld .ld-listing-card__title { font-size: 1.15rem; margin: 0 0 .2rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.ld-listing-card__title a { color: var(--ld-ink); text-decoration: none; }
.ld-listing-card__title a:hover { color: var(--ld-accent); text-decoration: underline; }
.ld-listing-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ld-listing-card__actions, .ld-listing-card .ld-fav, .ld-listing-card__actions a { position: relative; z-index: 1; }
.ld-listing-card__tagline { color: var(--ld-muted); margin: 0 0 .4rem; font-size: .95rem; }
.ld-listing-card__rating { margin-block-end: .35rem; }
.ld-listing-card__actions { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; min-width: 130px; }
.ld-listing-card--grid .ld-listing-card__actions { flex-direction: row; flex-wrap: wrap; }
.ld-listing-card__flags { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-block-start: .5rem; font-size: .85rem; color: var(--ld-ok); }
.ld-flag { display: inline-flex; gap: .3rem; align-items: center; }

.ld-meta { list-style: none; padding: 0; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9rem; color: var(--ld-muted); }
.ld-meta li { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }
.ld-open { color: var(--ld-ok) !important; }
.ld-closed { color: var(--ld-muted); }
.ld-chips { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ld-chips li { margin: 0; }
.ld-chip { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--ld-soft); border: 1px solid var(--ld-line); font-size: .8rem; color: var(--ld-ink); text-decoration: none; }
a.ld-chip:hover { border-color: var(--ld-accent); color: var(--ld-accent); }
.ld-chip--more { color: var(--ld-muted); }
.ld-badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--ld-soft); color: var(--ld-muted); }
.ld-badge--feat { background: #fdf3e1; color: var(--ld-gold); }
.ld-badge--ok { background: #ecfdf3; color: var(--ld-ok); }
.ld-verified { color: var(--ld-ok); display: inline-flex; align-items: center; gap: .25rem; }
.ld-verified--label { font-size: .8rem; font-weight: 600; background: #ecfdf3; padding: .15rem .5rem; border-radius: 999px; }

/* Stars */
.ld-stars { --ld-s: 1rem; position: relative; display: inline-block; width: calc(var(--ld-s) * 5); height: var(--ld-s); vertical-align: -2px; background: linear-gradient(90deg, #d0d5dd 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") 0 0 / var(--ld-s) var(--ld-s) repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") 0 0 / var(--ld-s) var(--ld-s) repeat-x; }
.ld-stars__fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--ld-star); }
.ld-stars__meta { font-size: .875rem; font-weight: 600; }

/* Favourite */
.ld-fav { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 40px; min-height: 40px; border: 1px solid var(--ld-line); border-radius: 8px; background: #fff; color: var(--ld-muted); cursor: pointer; font: inherit; font-size: .9rem; padding: .3rem .6rem; }
.ld-fav.is-saved { color: #c01048; border-color: #fecdd6; background: #fff1f3; }
.ld-fav.is-saved svg { fill: currentColor; }

/* Profile */
.ld-breadcrumbs { font-size: .875rem; color: var(--ld-muted); margin-block-end: .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.ld-profile__header { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; margin-block-end: 1.25rem; }
.ld-profile__photo { width: 180px; height: 180px; border-radius: 16px; overflow: hidden; background: var(--ld-soft); }
.ld-profile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-profile__photo .ld-avatar { border-radius: 16px; }
.ld-profile__name { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: .1rem 0 .3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ld-profile__tagline { font-size: 1.05rem; color: var(--ld-muted); }
.ld-profile__role { margin-block-end: .4rem; }
.ld-profile__rating { display: inline-block; text-decoration: none; color: var(--ld-ink); margin-block-end: .4rem; }
.ld-profile__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: .75rem; }
.ld-profile__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.ld-profile__aside { display: grid; gap: 1.25rem; }
.ld-sticky { position: sticky; top: 1rem; }
.ld-prose > :last-child { margin-block-end: 0; }
.ld-inline-meta { display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; margin: .75rem 0 0; }
.ld-dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.ld-dl dt { color: var(--ld-muted); font-weight: 600; }
.ld-dl dd { margin: 0; }
.ld-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.5rem; }
.ld-list-plain { margin: 0; padding-inline-start: 1.1rem; }
.ld-list-plain li { margin-block-end: .3rem; }
.ld-list-check { list-style: none; padding: 0; margin: 0 0 1rem; }
.ld-list-check li { padding-inline-start: 1.4rem; position: relative; margin-block-end: .35rem; }
.ld-list-check li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ld-ok); font-weight: 700; }
.ld-services { list-style: none; padding: 0; margin: 0; }
.ld-services li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-block-end: 1px dashed var(--ld-line); }
.ld-services__price { font-weight: 600; white-space: nowrap; }
.ld-team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.ld-team a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; text-decoration: none; color: var(--ld-ink); }
.ld-team img, .ld-team .ld-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.ld-team__name { font-weight: 600; }
.ld-gallery { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.ld-gallery li { margin: 0; }
.ld-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.ld-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.ld-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ld-faq { border-block-end: 1px solid var(--ld-line); padding: .6rem 0; }
.ld-faq summary { cursor: pointer; font-weight: 600; }
.ld-faq p { margin: .5rem 0 0; }
.ld-hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ld-hours th, .ld-hours td { padding: .3rem 0; border: 0; text-align: start; font-weight: 400; }
.ld-hours td { text-align: end; }
.ld-hours tr.is-today { font-weight: 700; }
.ld-hours tr.is-today th { font-weight: 700; }
.ld-address { font-style: normal; }
.ld-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ld-related { margin-block-start: 2rem; }
.ld-disclaimer { margin-block-start: 1.5rem; font-size: .8rem; color: var(--ld-muted); border-block-start: 1px solid var(--ld-line); padding-block-start: .75rem; }

/* Reviews */
.ld-review-summary { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-block-end: 1rem; }
.ld-review-summary__score { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.ld-review-summary__num { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.ld-review-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; font-size: .85rem; }
.ld-review-bars li { display: grid; grid-template-columns: 2.2rem 1fr 2rem; gap: .5rem; align-items: center; }
.ld-bar { height: 8px; border-radius: 99px; background: var(--ld-soft); overflow: hidden; }
.ld-bar span { display: block; height: 100%; background: var(--ld-star); }
.ld-reviews { list-style: none; margin: 0; padding: 0; }
.ld-review { padding: 1rem 0; border-block-start: 1px solid var(--ld-line); }
.ld-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-end: .3rem; }
.ld-review__reply { margin-block-start: .5rem; padding: .75rem; background: var(--ld-soft); border-radius: 8px; border-inline-start: 3px solid var(--ld-accent); }
.ld-review__reply p { margin: .3rem 0 0; }
.ld-review-form { margin-block-start: 1rem; }
.ld-review-form > summary { list-style: none; cursor: pointer; }
.ld-review-form > summary::-webkit-details-marker { display: none; }
.ld-review-form[open] > summary { margin-block-end: 1rem; }
.ld-rate { border: 0; padding: 0; margin: 0 0 .75rem; }
.ld-rate legend { font-weight: 600; margin-block-end: .3rem; }
.ld-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.ld-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ld-rate__stars label { cursor: pointer; color: #d0d5dd; }
.ld-rate__stars label .ld-icon { width: 32px; height: 32px; }
.ld-rate__stars input:checked ~ label, .ld-rate__stars label:hover, .ld-rate__stars label:hover ~ label { color: var(--ld-star); }
.ld-rate__stars input:checked ~ label svg, .ld-rate__stars label:hover svg, .ld-rate__stars label:hover ~ label svg { fill: currentColor; }
.ld-rate__stars input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--ld-accent) 45%, transparent); border-radius: 4px; }

/* Forms */
.ld-form .ld-field { margin: 0 0 .85rem; display: flex; flex-direction: column; gap: .3rem; }
.ld-form .ld-field > label, .ld-field legend, .ld-label { font-weight: 600; font-size: .9rem; }
.ld-field--inline { border: 0; padding: 0; flex-direction: row !important; flex-wrap: wrap; gap: .5rem 1rem !important; }
.ld-field--inline legend { width: 100%; margin-block-end: .3rem; }
.ld-field--inline label { display: inline-flex; gap: .3rem; align-items: center; font-weight: 400; }
.ld-field--consent label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400 !important; font-size: .85rem; }
.ld-field--consent input { margin-block-start: .25rem; }
.ld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.ld-form__status:empty { display: none; }
.ld-booking { margin: 0 0 .85rem; padding: .75rem; background: var(--ld-soft); border-radius: 8px; }
.ld-booking > summary { cursor: pointer; list-style: none; }
.ld-booking > summary::-webkit-details-marker { display: none; }
.ld-booking[open] > summary { margin-block-end: .75rem; }
.ld-booking summary label { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; cursor: pointer; }
.ld-help { font-size: .8rem; color: var(--ld-muted); margin: .2rem 0 0; }
.ld-fieldset { border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; background: var(--ld-bg); }
.ld-fieldset legend { font-weight: 700; padding: 0 .4rem; }
.ld-grid-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.ld-grid-fields .ld-field { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.ld-grid-fields .ld-field > label { font-weight: 600; font-size: .9rem; }
.ld-field--full { grid-column: 1 / -1; }
.ld-check { display: inline-flex !important; gap: .45rem; align-items: center; font-weight: 400 !important; }
.ld-checklist { max-height: 240px; overflow: auto; border: 1px solid var(--ld-line); border-radius: 8px; padding: .5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .1rem .75rem; }
.ld-checklist__item { display: flex; gap: .4rem; align-items: center; padding: .2rem 0; padding-inline-start: calc(var(--ld-depth, 0) * 1rem); font-size: .9rem; }
.ld-checklist__item[hidden] { display: none; }
.ld-checklist__filter { margin-block-end: .5rem; }
.ld-hours-edit { border-collapse: collapse; margin-block-end: .5rem; }
.ld-hours-edit th { text-align: start; padding-inline-end: 1rem; font-weight: 600; font-size: .9rem; }
.ld-hours-edit td { padding: .2rem .4rem .2rem 0; }
.ld-hours-edit input[type=time] { width: auto; min-height: 38px; }
.ld-gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 .5rem; }
.ld-thumb { position: relative; display: inline-block; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; }
.ld-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ld-thumb__x { position: absolute; top: 2px; inset-inline-end: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; line-height: 1; }
.ld-thumb--current { margin-block-end: .4rem; }
.ld-picker-map { height: 260px; margin-block-start: .5rem; border-radius: 8px; border: 1px solid var(--ld-line); }
.ld-form__footer { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

/* Dashboard */
.ld-dashboard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ld-dashboard__hello { font-size: 1.3rem; font-weight: 700; margin: 0; }
.ld-dashboard__nav ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: flex; gap: .25rem; flex-wrap: wrap; border-block-end: 1px solid var(--ld-line); }
.ld-dashboard__nav li { margin: 0; }
.ld-dashboard__nav a { display: block; padding: .6rem .9rem; text-decoration: none; color: var(--ld-muted); border-block-end: 2px solid transparent; margin-block-end: -1px; font-weight: 600; }
.ld-dashboard__nav a[aria-current=page] { color: var(--ld-accent); border-color: var(--ld-accent); }
.ld-dashboard__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block-end: 1rem; }
.ld-dashboard__bar h2 { margin: 0; }
.ld-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-block-end: 1.25rem; }
.ld-stat { padding: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.ld-stat__num { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.ld-stat__label { color: var(--ld-muted); }
.ld-table-wrap { overflow-x: auto; }
.ld-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ld-table th, .ld-table td { padding: .7rem .5rem; border-block-end: 1px solid var(--ld-line); text-align: start; vertical-align: middle; }
.ld-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ld-muted); }
.ld-table__actions { white-space: nowrap; display: flex; gap: .75rem; align-items: center; }
.ld-inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.ld-inline-form select { width: auto; min-height: 36px; padding-block: .3rem; }
.ld-enquiry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.ld-enquiry-item.is-new { border-inline-start: 4px solid var(--ld-accent); }
.ld-enquiry-item__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; justify-content: space-between; margin-block-end: .4rem; }
.ld-enquiry-item__booking { background: #fdf3e1; padding: .5rem .75rem; border-radius: 8px; }
.ld-enquiry-item__contact { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.ld-enquiry-item__contact a { display: inline-flex; gap: .3rem; align-items: center; }
.ld-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ld-plan { display: flex; flex-direction: column; }
.ld-plan h3 { margin-top: 0; }
.ld-plan .ld-form { margin-top: auto; display: grid; gap: .5rem; }
.ld-plan__price { font-size: 1.6rem; font-weight: 700; }
.ld-plan--highlight { border: 2px solid var(--ld-accent); }
.ld-order { margin-block-end: 1.25rem; }
.ld-account { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.ld-account form p { margin: 0 0 .85rem; }
.ld-account #ld-login label { display: block; font-weight: 600; font-size: .9rem; margin-block-end: .3rem; }
.ld-account #ld-login .login-remember label { display: inline-flex; gap: .4rem; font-weight: 400; }
.ld-account #ld-login input[type=submit] { padding: .6rem 1.2rem; border-radius: 8px; border: 0; background: var(--ld-accent); color: #fff; font-weight: 600; cursor: pointer; }

/* Browse links */
.ld-browse { margin-block: 1.5rem; }
.ld-browse__title { font-size: 1.2rem; }
.ld-browse__list { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 1.5rem; }
.ld-browse__list li { break-inside: avoid; padding: .3rem 0; margin: 0; }

/* Pagination */
.ld-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 1.25rem 0; justify-content: center; }
.ld-pagination li { margin: 0; }
.ld-pagination a, .ld-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 8px; border: 1px solid var(--ld-line); text-decoration: none; color: var(--ld-ink); }
.ld-pagination [aria-current] { background: var(--ld-accent); color: #fff; border-color: var(--ld-accent); }
.ld-pagination__gap { border: 0 !important; }

/* Disclaimer gate */
.ld-gate { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, .6); display: grid; place-items: center; padding: 16px; }
.ld-gate[hidden] { display: none; }
.ld-gate__box { background: #fff; max-width: 560px; width: 100%; border-radius: 14px; padding: 1.5rem; max-height: 90vh; overflow: auto; }
.ld-gate__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Lightbox */
.ld-lightbox { position: fixed; inset: 0; z-index: 99998; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.ld-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }

/* Responsive */
@media (max-width: 960px) {
	.ld-profile__layout { grid-template-columns: 1fr; }
	.ld-sticky { position: static; }
	.ld-results--map { grid-template-columns: 1fr; }
	.ld-results__map { position: static; order: -1; }
	.ld-map { height: 300px; min-height: 0; }
	.ld-grid--3, .ld-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.ld-search__main, .ld-search--compact .ld-search__main { grid-template-columns: 1fr; }
	.ld-listing-card--row { grid-template-columns: 64px minmax(0, 1fr); }
	.ld-listing-card--row .ld-listing-card__media { width: 64px; height: 64px; }
	.ld-listing-card--row .ld-listing-card__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
	.ld-listing-card--row .ld-listing-card__actions .ld-btn { flex: 1 1 auto; }
	.ld-profile__header { grid-template-columns: 1fr; padding: 1rem; }
	.ld-profile__photo { width: 120px; height: 120px; }
	.ld-profile__name { font-size: 1.35rem; }
	.ld-grid--2, .ld-grid--3, .ld-grid--4, .ld-grid-fields, .ld-row { grid-template-columns: 1fr; }
	.ld-dl { grid-template-columns: 1fr; gap: .1rem; }
	.ld-dl dd { margin-block-end: .5rem; }
	.ld-review-summary { grid-template-columns: 1fr; }
	.ld-dashboard__nav ul { flex-wrap: nowrap; overflow-x: auto; }
	.ld-dashboard__nav a { white-space: nowrap; }
	.ld-hours-edit, .ld-hours-edit tbody, .ld-hours-edit tr { display: block; }
	.ld-hours-edit tr { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-block-end: .4rem; }
	.ld-hours-edit th { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ld * { transition: none !important; } }

/* Container-aware layout: adapts to the theme's content width, not just the viewport. */
.ld-directory, .ld-profile, .ld-dashboard { container-type: inline-size; container-name: ld; }
.ld-results__list, .ld-grid { container-type: inline-size; }
@container ld (max-width: 900px) {
	.ld-results--map { grid-template-columns: 1fr; }
	.ld-results__map { position: static; order: -1; }
	.ld-results--map .ld-map { height: 300px; min-height: 0; }
	.ld-profile__layout { grid-template-columns: 1fr; }
	.ld-sticky { position: static; }
	.ld-search__main { grid-template-columns: 1fr 1fr; }
	.ld-search__field--q, .ld-search__submit { grid-column: 1 / -1; }
}
@container ld (max-width: 560px) {
	.ld-search__main { grid-template-columns: 1fr; }
	.ld-profile__header { grid-template-columns: 1fr; padding: 1rem; }
	.ld-profile__photo { width: 120px; height: 120px; }
	.ld-grid-fields, .ld-row { grid-template-columns: 1fr; }
}
@container (max-width: 620px) {
	.ld-listing-card--row { grid-template-columns: 64px minmax(0, 1fr); }
	.ld-listing-card--row .ld-listing-card__media { width: 64px; height: 64px; }
	.ld-listing-card--row .ld-listing-card__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
	.ld-listing-card--row .ld-listing-card__actions .ld-btn { flex: 1 1 auto; }
	.ld-grid--3, .ld-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 420px) {
	.ld-grid--2, .ld-grid--3, .ld-grid--4 { grid-template-columns: 1fr; }
}
.ld-booking summary label { font-size: .95rem; }
.ld-field--consent label > span { flex: 1; }
.ld-profile-title { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; }
.ld-intro { margin-block-end: 1.25rem; }
.ld-sponsored { position: relative; margin-block-end: 1rem; }
.ld-sponsored > .ld-badge { position: absolute; top: -.6rem; inset-inline-end: 1rem; z-index: 2; }
.ld-banner { display: block; margin-block: 1rem; text-align: center; }
.ld-banner img { width: 100%; height: auto; border-radius: 8px; }
.ld-banner__label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ld-muted); text-align: start; }
.ld-profile__name-ar { font-size: 1.15rem; margin: 0 0 .3rem; }
.ld-plan-table td, .ld-plan-table th { text-align: center; }
.ld-plan-table th[scope=row] { text-align: start; }
.ld-faq-block .ld-faq { padding: .75rem 0; }

/* Task-first layouts and accessible mobile controls (2.1). */
.ld [hidden]{display:none!important}.ld-results.is-map-hidden .ld-results__map{display:none}.ld-results.is-map-hidden{display:block}.ld input,.ld select,.ld textarea{max-width:100%;box-sizing:border-box}.ld button,.ld .ld-btn{min-height:44px}.ld :focus-visible{outline:3px solid #2563eb;outline-offset:3px}.ld-banner{max-height:180px;overflow:hidden;margin-block:1rem}.ld-banner img{max-height:150px;object-fit:contain}.ld-prose{overflow-wrap:anywhere}#ld-progress{width:min(100%,650px);height:24px}@media(max-width:600px){.ld-results__list{min-width:0}.ld .ld-form-grid{grid-template-columns:1fr}.ld-hours-edit input{width:100px}.ld-single section:empty{display:none}}

.ld-profile-extra{border:1px solid #d5dee8;border-radius:10px;padding:14px;margin-block:12px;min-width:0}.ld-profile-extra>summary{cursor:pointer;min-height:36px;font-weight:600;list-style-position:inside}.ld-profile-extra[open]>summary{margin-bottom:14px}.ld-profile-extra .ld-field{margin-block:12px}.ld-profile-jumps{display:flex;flex-wrap:wrap;gap:12px;margin-block:14px}.ld-profile-jumps a{padding:8px 12px;border:1px solid #d5dee8;border-radius:20px;text-decoration:none}
