/* Xelze Core — directory blocks. Colours come from the theme palette
   (Apparence › Éditeur › Styles), with fallbacks. */

:root {
	--xz-ink: var(--wp--preset--color--ink, #10213A);
	--xz-accent: var(--wp--preset--color--accent, #F2B705);
	--xz-on-accent: var(--wp--preset--color--ink, #10213A);
	--xz-base: var(--wp--preset--color--base, #FFFFFF);
	--xz-surface: var(--wp--preset--color--surface, #F2F4F6);
	--xz-muted: var(--wp--preset--color--muted, #5A6472);
	--xz-line: var(--wp--preset--color--line, #E3E7EC);
	--xz-field: var(--wp--preset--color--field-border, #C5CCD5);
	--xz-wa: var(--wp--preset--color--whatsapp, #0F7A3D);
	--xz-radius: 14px;
	--xz-radius-sm: 10px;
}

.xelze-icon { flex: none; }
.xelze-prices, .xelze-related, .xelze-card, .xelze-empty, .xelze-contact, .xelze-request { box-sizing: border-box; }
.xelze-notice { padding: 16px; border: 1px dashed var(--xz-field); border-radius: var(--xz-radius-sm); color: var(--xz-muted); font-size: 14px; background: var(--xz-base); }
.xelze-muted { color: var(--xz-muted); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Buttons ------------------------------------------------------------ */
.xelze-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px; border-radius: var(--xz-radius-sm);
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; border: 1px solid transparent; cursor: pointer; box-sizing: border-box;
	transition: filter .15s ease, transform .15s ease;
}
.xelze-btn:hover { filter: brightness(1.12); text-decoration: none; }
.xelze-btn:focus-visible, .xelze-chip:focus-visible, .xelze-tile:focus-visible, .xelze-district:focus-visible { outline: 3px solid var(--xz-accent); outline-offset: 2px; }
.xelze-btn--call, .xelze-btn--primary { background: var(--xz-ink); color: #fff; }
.xelze-btn--wa { background: var(--xz-wa); color: #fff; }
.xelze-btn--accent { background: var(--xz-accent); color: var(--xz-on-accent); }
.xelze-btn--outline { background: transparent; color: var(--xz-ink); border-color: var(--xz-ink); }
.xelze-btn--block { width: 100%; }
.xelze-btn--call:hover, .xelze-btn--wa:hover, .xelze-btn--primary:hover { color: #fff; }

/* Search -------------------------------------------------------------- */
.xelze-search__form {
	display: flex; flex-wrap: wrap; gap: 10px; padding: 10px;
	background: var(--xz-base); border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.22);
	max-width: 900px; box-sizing: border-box;
}
.xelze-search__field {
	flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px;
	padding: 8px 14px; border-radius: var(--xz-radius-sm); background: var(--xz-surface); color: var(--xz-ink);
}
.xelze-search__field > span { font-size: 13px; font-weight: 600; color: var(--xz-muted); }
.xelze-search__field select { border: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 600; color: var(--xz-ink); padding: 2px 0; width: 100%; cursor: pointer; }
.xelze-search__button {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 60px; padding: 0 28px; border: 0; border-radius: var(--xz-radius-sm);
	background: var(--xz-accent); color: var(--xz-on-accent); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
}
.xelze-search.is-compact .xelze-search__form { box-shadow: none; padding: 0; gap: 8px; background: transparent; }
.xelze-search.is-compact .xelze-search__field { flex-basis: 150px; padding: 4px 12px; }
.xelze-search.is-compact .xelze-search__field > span { font-size: 12px; }
.xelze-search.is-compact .xelze-search__field select { font-size: 15px; }
.xelze-search.is-compact .xelze-search__button { min-height: 52px; min-width: 52px; padding: 0 14px; }
@media (max-width: 600px) { .xelze-search__button { width: 100%; } }

/* Service tiles ----------------------------------------------------- */
.xelze-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.xelze-tile {
	display: flex; gap: 16px; align-items: center; padding: 20px;
	border: 1px solid var(--xz-line); border-radius: var(--xz-radius); background: var(--xz-base);
	color: var(--xz-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.xelze-tile:hover { border-color: var(--xz-ink); box-shadow: 0 8px 24px rgba(16,33,58,.08); transform: translateY(-1px); color: var(--xz-ink); }
.xelze-tile__icon { flex: 0 0 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.xelze-tile__text { display: flex; flex-direction: column; min-width: 0; }
.xelze-tile__title { font-weight: 700; font-size: 17px; }
.xelze-tile__sub { font-size: 14px; color: var(--xz-muted); }
.xelze-tone--blue { background: #E8F0FA; color: #0B5CAD; }
.xelze-tone--yellow { background: #FDF3D6; color: #8A5F00; }
.xelze-tone--gray { background: #EDEFF2; color: #10213A; }
.xelze-tone--red { background: #FBE6DE; color: #B23A0E; }
.xelze-tone--teal { background: #E3F4F1; color: #0E6B5C; }
.xelze-tone--purple { background: #EEEAF7; color: #5B3FA3; }

/* Districts --------------------------------------------------------- */
.xelze-districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.xelze-district {
	display: flex; flex-direction: column; padding: 16px 18px; border-radius: 12px;
	background: var(--xz-surface); color: var(--xz-ink); text-decoration: none; border: 1px solid transparent;
}
.xelze-district:hover { border-color: var(--xz-ink); color: var(--xz-ink); }
.xelze-district__name { font-weight: 700; }
.xelze-district__sub { font-size: 13px; color: var(--xz-muted); }

.xelze-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.xelze-links a { color: inherit; text-decoration: none; }
.xelze-links a:hover { text-decoration: underline; }

/* Listing ----------------------------------------------------------- */
.xelze-breadcrumb { font-size: 14px; color: var(--xz-muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.xelze-breadcrumb a { color: var(--xz-muted); }
.xelze-breadcrumb [aria-current] { color: var(--xz-ink); font-weight: 600; }
.xelze-listing-header__title { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; }
.xelze-listing-header__count { margin: 6px 0 0; color: var(--xz-muted); }

.xelze-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.xelze-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xelze-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--xz-field); background: var(--xz-base); color: var(--xz-ink);
	font-size: 14px; font-weight: 600; text-decoration: none; box-sizing: border-box;
}
.xelze-chip:hover { border-color: var(--xz-ink); color: var(--xz-ink); }
.xelze-chip.is-active { background: var(--xz-ink); border-color: var(--xz-ink); color: #fff; }
.xelze-sort label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--xz-muted); }
.xelze-sort select { font: inherit; font-weight: 600; color: var(--xz-ink); padding: 8px 10px; border: 1px solid var(--xz-field); border-radius: 8px; background: var(--xz-base); }

.xelze-cards { display: flex; flex-direction: column; gap: 14px; }
.xelze-card {
	background: var(--xz-base); border: 1px solid var(--xz-line); border-radius: 16px; padding: 20px;
	display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.xelze-card.is-premium { border-color: var(--xz-accent); box-shadow: 0 0 0 1px var(--xz-accent); }
.xelze-avatar {
	flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; overflow: hidden;
	background: #DCE3EC; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--xz-ink);
}
.xelze-avatar--lg { flex-basis: 112px; width: 112px; height: 112px; border-radius: 20px; }
.xelze-avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xelze-avatar__initials { font-weight: 800; font-size: 24px; }
.xelze-avatar--lg .xelze-avatar__initials { font-size: 36px; }
.xelze-card__body { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.xelze-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xelze-card__name { margin: 0; font-size: 19px; line-height: 1.3; }
.xelze-card__name a { color: var(--xz-ink); text-decoration: none; }
.xelze-card__name a:hover { text-decoration: underline; }
.xelze-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--xz-muted); }
.xelze-card__meta a { color: var(--xz-muted); }
.xelze-card__skills, .xelze-card__areas { margin: 0; font-size: 14px; color: var(--xz-muted); }
.xelze-card__areas { color: var(--xz-ink); }
.xelze-card__areas span { color: var(--xz-muted); }
.xelze-card__actions { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.xelze-card__price { margin: 0; font-size: 14px; color: var(--xz-muted); }
.xelze-card__price strong { color: var(--xz-ink); font-size: 17px; }
.xelze-card.is-compact .xelze-card__actions { flex-direction: row; flex-basis: 100%; }
.xelze-card.is-compact .xelze-card__actions .xelze-btn { flex: 1; }

.xelze-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.xelze-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.6; }
.xelze-badge--verified { color: var(--xz-wa); background: #E3F4E9; }
.xelze-badge--allday { color: var(--xz-ink); background: #FDF3D6; }
.xelze-badge--premium { color: var(--xz-on-accent); background: var(--xz-accent); }

.xelze-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--xz-ink); }
.xelze-rating__star { color: #D9A100; font-size: 16px; }
.xelze-stars { color: #D9A100; letter-spacing: 1px; }
.xelze-stars__off { color: var(--xz-line); }
.xelze-available { display: inline-flex; align-items: center; gap: 8px; color: var(--xz-wa); font-weight: 700; }
.xelze-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--xz-wa); box-shadow: 0 0 0 3px rgba(15,122,61,.18); }

.xelze-empty { background: var(--xz-base); border: 1px dashed var(--xz-field); border-radius: var(--xz-radius); padding: 24px; color: var(--xz-muted); }
.xelze-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.xelze-pager a, .xelze-pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--xz-radius-sm); border: 1px solid var(--xz-field); color: var(--xz-ink); text-decoration: none; font-weight: 600; background: var(--xz-base); }
.xelze-pager .xelze-pager__current { background: var(--xz-ink); color: #fff; border-color: var(--xz-ink); }

.xelze-related { background: var(--xz-base); border: 1px solid var(--xz-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.xelze-related__title { margin: 0 0 4px; font-size: 17px; line-height: 1.35; }
.xelze-related a { color: var(--xz-ink); }

.xelze-prices { background: var(--xz-base); border: 1px solid var(--xz-line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.xelze-prices__title { margin: 0 0 14px; font-size: 26px; line-height: 1.3; }
.xelze-table-wrap { overflow-x: auto; }
.xelze-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.xelze-table td:last-child, .xelze-table th:last-child { text-align: right; white-space: nowrap; }
.xelze-table th { text-align: left; color: var(--xz-muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--xz-line); }
.xelze-table td { padding: 12px 8px; border-bottom: 1px solid var(--xz-line); }
.xelze-table tr:last-child td { border-bottom: 0; }
.xelze-seo { color: var(--xz-muted); max-width: 820px; }

/* Forms ------------------------------------------------------------- */
.xelze-form { display: flex; flex-direction: column; gap: 16px; }
.xelze-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.xelze-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--xz-ink); }
.xelze-field input, .xelze-field select, .xelze-field textarea,
.xelze-pro-reviews input[type=text], .xelze-pro-reviews textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 12px; border: 1px solid var(--xz-field);
	border-radius: var(--xz-radius-sm); background: var(--xz-base); color: var(--xz-ink); width: 100%; box-sizing: border-box;
}
.xelze-field textarea { resize: vertical; }
.xelze-form .xelze-btn--block { min-height: 54px; font-size: 17px; }
.xelze-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xelze-alert { padding: 12px 16px; border-radius: var(--xz-radius-sm); font-weight: 600; margin: 0 0 16px; }
.xelze-alert--ok { background: #E3F4E9; color: #0B5E2F; }
.xelze-alert--error { background: #FBE6DE; color: #8E2B07; }

/* Artisan page ------------------------------------------------------ */
.xelze-pro-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.xelze-pro-head__body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; }
.xelze-pro-head__name { margin: 0; font-size: clamp(28px, 3.5vw, 36px); line-height: 1.2; }
.xelze-pro-head__sub { margin: 0; color: var(--xz-muted); font-size: 17px; }
.xelze-section-title { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
.xelze-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.xelze-pill { background: var(--xz-surface); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--xz-ink); text-decoration: none; }
.xelze-pill:hover { background: var(--xz-line); color: var(--xz-ink); }
.xelze-pricelist, .xelze-hours { margin: 0; }
.xelze-pricelist > div, .xelze-hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--xz-line); }
.xelze-pricelist > div:last-child, .xelze-hours > div:last-child { border-bottom: 0; }
.xelze-pricelist dt, .xelze-hours dt { margin: 0; }
.xelze-pricelist dd, .xelze-hours dd { margin: 0; font-weight: 700; text-align: right; }
.xelze-hours dd { font-weight: 400; }
.xelze-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.xelze-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--xz-surface); }
.xelze-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.xelze-reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.xelze-reviews__head .xelze-section-title { margin-bottom: 8px; }
.xelze-review { border-bottom: 1px solid var(--xz-line); padding: 14px 0; }
.xelze-review:last-of-type { border-bottom: 0; }
.xelze-review__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.xelze-review__head time { color: var(--xz-muted); font-size: 14px; }
.xelze-review p { margin: 6px 0 0; color: #3F4A58; }
.xelze-review-form { margin-top: 16px; }
.xelze-review-form > summary { list-style: none; display: inline-flex; }
.xelze-review-form > summary::-webkit-details-marker { display: none; }
.xelze-review-form .comment-respond { margin-top: 16px; }
.xelze-review-form .comment-reply-title { display: none; }
.xelze-review-form p { margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.xelze-rate { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.xelze-rate legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; float: left; width: 100%; }
.xelze-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xelze-rate label { font-size: 32px; line-height: 1; color: var(--xz-line); cursor: pointer; padding: 4px; }
.xelze-rate input:checked ~ label, .xelze-rate label:hover, .xelze-rate label:hover ~ label { color: #D9A100; }
.xelze-rate input:focus-visible + label { outline: 3px solid var(--xz-accent); border-radius: 6px; }

.xelze-contact { display: flex; flex-direction: column; gap: 12px; }
.xelze-contact .xelze-btn { min-height: 54px; font-size: 17px; border-radius: 12px; }
.xelze-contact__label { margin: 0; font-size: 14px; color: var(--xz-muted); }
.xelze-contact__price { margin: 0; font-size: 26px; font-weight: 800; }
.xelze-contact__note { margin: 0; font-size: 13px; color: var(--xz-muted); text-align: center; }

/* Mobile action bar ------------------------------------------------- */
.xelze-mobile-cta { display: none; }
@media (max-width: 781px) {
	.xelze-mobile-cta {
		display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--xz-base);
		border-top: 1px solid var(--xz-line); box-shadow: 0 -8px 24px rgba(16,33,58,.08); margin: 0 !important;
	}
	.xelze-mobile-cta .xelze-btn { flex: 1; min-height: 52px; }
	body:has(.xelze-mobile-cta) { padding-bottom: 84px; }
	.xelze-card__actions { flex-direction: row; flex-basis: 100%; }
	.xelze-card__actions .xelze-btn { flex: 1; }
	.xelze-card__price { flex-basis: 100%; }
	.xelze-card__actions { flex-wrap: wrap; }
	.xelze-card { padding: 14px; gap: 12px; }
	.xelze-avatar { flex-basis: 54px; width: 54px; height: 54px; }
	.xelze-avatar__initials { font-size: 19px; }
}
/* Don't pin the bar inside the editor canvas. */
.editor-styles-wrapper .xelze-mobile-cta { position: static; display: flex; }
