/* ==========================================================================
   admi.lv — Design System (ported from Claude Design handoff 9fbce7)
   Warm wellness catalogue: cream paper, sand cards, olive green, brown ink.
   Fonts (Nunito / Nunito Sans / Playfair Display) are loaded async in head.php
   so rendering never blocks on the network; system-font fallbacks apply meanwhile.
   ========================================================================== */

:root {
  /* Brand olive */
  --olive-900:#3f4a1c; --olive-800:#4e5b23; --olive-700:#5d6c29; --olive-600:#6b7d33;
  --olive-500:#7c8c46; --olive-400:#97a566; --olive-300:#b7c294; --olive-200:#d5dcbf;
  --olive-100:#eaeedd; --olive-50:#f4f6ec;
  /* Warm neutrals */
  --cream-50:#fbf8f1; --cream-100:#f7f2e9; --sand-200:#f0e9da; --sand-300:#e9e0cd;
  --beige-400:#e2d7c0; --beige-500:#d3c5a8;
  /* Brown ink */
  --brown-900:#33271a; --brown-800:#43341f; --brown-700:#524024; --brown-600:#6d5a3c;
  --brown-500:#8a785c; --brown-400:#a99a7f;
  /* Support */
  --amber-500:#e8a73b; --amber-400:#f0bd63;
  --success-600:#5d8a3a; --success-100:#e5efd6; --danger-600:#c0552f; --danger-100:#f6e2d7;
  --info-600:#4a7c7e; --info-100:#dfeceb; --white:#fff; --black:#241a10;
  /* Semantic */
  --surface-page:var(--cream-100); --surface-page-alt:var(--cream-50); --surface-card:var(--white);
  --surface-sand:var(--sand-200); --surface-sand-deep:var(--sand-300); --surface-raised:var(--white);
  --surface-hover:var(--sand-200);
  --text-heading:var(--brown-800); --text-body:var(--brown-600); --text-strong:var(--brown-700);
  --text-muted:#766544; --text-placeholder:#8f7f63; --text-on-olive:#fff;
  --text-price:var(--olive-700); --text-link:var(--olive-700);
  --border-soft:var(--beige-400); --border-strong:var(--beige-500); --border-olive:var(--olive-300); --border-focus:var(--olive-500);
  --action-primary:var(--olive-600); --action-primary-hover:var(--olive-700); --action-primary-active:var(--olive-800); --action-primary-text:#fff;
  --action-secondary-bg:var(--sand-200); --action-secondary-border:var(--beige-500); --action-secondary-text:var(--brown-700);
  --accent-icon:var(--olive-600); --accent-leaf:var(--olive-500); --rating-star:var(--amber-500);
  --badge-pro-bg:var(--olive-600); --badge-pro-text:#fff;
  /* Fonts */
  --font-heading:'Nunito','Segoe UI',system-ui,sans-serif;
  --font-body:'Nunito Sans','Segoe UI',system-ui,sans-serif;
  --font-wordmark:'Playfair Display',Georgia,serif;
  --fw-regular:400; --fw-medium:500; --fw-semibold:600; --fw-bold:700; --fw-extra:800; --fw-black:900;
  --text-display:40px; --text-h1:32px; --text-h2:26px; --text-h3:21px; --text-h4:18px;
  --text-body-lg:18px; --text-body-base:16px; --text-body-sm:14px; --text-caption:13px; --text-label:15px; --text-display-lg:52px;
  --lh-tight:1.12; --lh-snug:1.25; --lh-normal:1.45; --lh-relaxed:1.6;
  --ls-tight:-0.02em; --ls-normal:0; --ls-wide:0.04em; --ls-caps:0.08em;
  /* Spacing */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px;
  --space-8:32px; --space-10:40px; --space-12:48px; --space-16:64px; --space-20:80px;
  --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --radius-xl:22px; --radius-2xl:28px; --radius-pill:999px;
  --shadow-xs:0 1px 2px rgba(67,52,31,.05); --shadow-sm:0 2px 8px rgba(67,52,31,.06);
  --shadow-md:0 6px 20px rgba(67,52,31,.08); --shadow-lg:0 12px 32px rgba(67,52,31,.10);
  --shadow-card:0 4px 16px rgba(67,52,31,.07); --shadow-cta:0 6px 16px rgba(107,125,51,.24);
  --ring-olive:0 0 0 3px rgba(124,140,70,.35);
  --touch-min:48px; --touch-cta:56px; --touch-nav:64px;
  --container-max:1280px; --container-pad:16px; --gutter:16px;
  --ease-soft:cubic-bezier(.22,.61,.36,1); --dur-fast:140ms; --dur-base:220ms; --dur-slow:360ms;
}

/* ---- Reset / base ---- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);font-size:var(--text-body-base);line-height:var(--lh-normal);
  color:var(--text-body);background:var(--surface-page);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);color:var(--text-heading);font-weight:var(--fw-extra);line-height:var(--lh-tight);margin:0}
p{margin:0}
a{color:var(--text-link);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
button{font-family:inherit}
:focus-visible{outline:none;box-shadow:var(--ring-olive);border-radius:var(--radius-sm)}
.svg-ico{display:inline-block;vertical-align:middle;flex:none}

/* ---- Layout ---- */
.container{max-width:1200px;margin:0 auto;padding:24px 24px 64px}
.container-wide{max-width:1280px;margin:0 auto;padding:0 24px}
.stack{display:flex;flex-direction:column}
.row{display:flex}
.wrap{flex-wrap:wrap}
.items-center{align-items:center}
.justify-between{justify-content:space-between}
.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-5{gap:20px}.gap-6{gap:24px}
.grid{display:grid}
.mt-auto{margin-top:auto}
.muted{color:var(--text-muted)}
.text-price{color:var(--text-price)}
.hidden{display:none}

/* ---- Wordmark / logo ---- */
.admi-logo{display:inline-flex;align-items:center;gap:10px}
.admi-logo .wm{display:flex;flex-direction:column;line-height:1}
.admi-wordmark{font-family:var(--font-wordmark);font-style:italic;font-weight:700;color:var(--brown-800);letter-spacing:var(--ls-tight);line-height:1;font-size:30px}
.admi-logo .sub{font-family:var(--font-body);font-size:11px;letter-spacing:.02em;color:var(--text-muted);margin-top:3px}
.admi-logo.sm .admi-wordmark{font-size:25px}
.leaf-accent{display:inline-block;width:20px;height:20px;color:var(--accent-leaf);vertical-align:middle}

/* ---- Buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;
  font-family:var(--font-heading);font-weight:var(--fw-bold);font-size:var(--text-label);line-height:1;
  border-radius:var(--radius-pill);cursor:pointer;white-space:nowrap;border:1px solid transparent;
  transition:transform var(--dur-fast) var(--ease-soft),background var(--dur-fast),box-shadow var(--dur-fast);text-decoration:none}
.btn:hover{text-decoration:none}
.btn:active{transform:scale(.97)}
.btn--sm{height:40px;padding:0 16px;font-size:var(--text-body-sm);gap:6px}
.btn--lg{height:var(--touch-cta);padding:0 30px;font-size:var(--text-body-lg);gap:10px}
.btn--primary{background:var(--action-primary);color:var(--action-primary-text);border-color:var(--action-primary);box-shadow:var(--shadow-cta)}
.btn--primary:hover{background:var(--action-primary-hover);color:#fff}
.btn--secondary{background:var(--surface-card);color:var(--action-secondary-text);border-color:var(--action-secondary-border);box-shadow:var(--shadow-xs)}
.btn--secondary:hover{background:var(--sand-200);color:var(--brown-800)}
.btn--ghost{background:transparent;color:var(--olive-700);border-color:transparent}
.btn--ghost:hover{background:var(--olive-50)}
.btn--danger{background:var(--danger-600);color:#fff;border-color:var(--danger-600)}
.btn--link{background:none;border:none;box-shadow:none;padding:0;height:auto;color:var(--text-link)}
.btn--block{display:flex;width:100%}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* ---- Badge ---- */
.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;font-family:var(--font-heading);
  font-weight:var(--fw-bold);font-size:var(--text-caption);line-height:1;letter-spacing:var(--ls-wide);
  text-transform:uppercase;border-radius:var(--radius-pill);border:1px solid transparent;white-space:nowrap}
.badge--pro{background:var(--badge-pro-bg);color:#fff}
.badge--verified{background:var(--olive-100);color:var(--olive-800);border-color:var(--olive-300)}
.badge--neutral{background:var(--sand-300);color:var(--brown-700);border-color:var(--beige-500)}
.badge--success{background:var(--success-100);color:var(--success-600)}
.badge--warning{background:#fbeccd;color:#a06a12}
.badge--info{background:var(--info-100);color:var(--info-600)}

/* ---- Tag ---- */
.tag{display:inline-flex;align-items:center;padding:6px 13px;font-family:var(--font-body);font-weight:var(--fw-semibold);
  font-size:var(--text-body-sm);line-height:1.2;border-radius:var(--radius-pill);white-space:nowrap;
  background:var(--sand-200);color:var(--brown-700);border:1px solid transparent;
  transition:background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast);cursor:default}
.tag--outline{background:transparent;color:var(--brown-600);border-color:var(--border-strong)}
.tag.is-selected,.tag--selected{background:var(--olive-600);color:#fff;border-color:var(--olive-600)}
a.tag:hover{text-decoration:none;background:var(--sand-300)}

/* ---- Rating ---- */
.rating{display:inline-flex;align-items:center;gap:5px}
.rating .score{font-family:var(--font-heading);font-weight:var(--fw-bold);color:var(--brown-800)}
.rating .cnt{color:var(--text-muted);font-size:var(--text-body-sm)}
.rating .stars{display:inline-flex;gap:2px}

/* ---- Site header ---- */
.site-header{display:flex;align-items:center;gap:var(--space-6);padding:14px 28px;background:var(--surface-page-alt);
  border-bottom:1px solid var(--border-soft);position:sticky;top:0;z-index:40}
.mainnav{display:flex;align-items:center;gap:4px;flex:1;justify-content:center}
.mainnav a{padding:9px 15px;border-radius:var(--radius-pill);font-family:var(--font-heading);font-weight:var(--fw-semibold);
  font-size:var(--text-body-base);color:var(--brown-700);white-space:nowrap}
.mainnav a:hover{background:var(--olive-50);text-decoration:none}
.mainnav a.active{background:var(--olive-100);color:var(--olive-800);font-weight:var(--fw-bold)}
.header-cta{display:flex;align-items:center;gap:12px}
.lang-switch{display:inline-flex;gap:2px;background:var(--sand-200);border-radius:var(--radius-pill);padding:3px}
.lang-switch a{padding:5px 10px;border-radius:var(--radius-pill);font-family:var(--font-heading);font-weight:700;font-size:13px;color:var(--brown-600);text-transform:uppercase}
.lang-switch a.on{background:var(--olive-600);color:#fff}
.lang-switch a:hover{text-decoration:none}
.burger{display:none;width:44px;height:44px;border-radius:var(--radius-md);background:none;border:none;cursor:pointer;place-items:center}

/* ---- Footer ---- */
.site-footer{background:var(--surface-sand);border-top:1px solid var(--beige-400);padding:40px 24px 28px;margin-top:40px}
.site-footer .cols{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}
.site-footer h4{font-size:15px;margin-bottom:12px;color:var(--brown-800)}
.site-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.site-footer a{font-size:14px;color:var(--text-body)}
.site-footer .fdesc{margin-top:14px;font-size:14px;color:var(--text-muted);max-width:260px;line-height:1.5}
.site-footer .fbottom{max-width:1200px;margin:24px auto 0;padding-top:18px;border-top:1px solid var(--beige-400);font-size:13px;color:var(--text-muted)}

/* ---- Hero ---- */
.hero{position:relative;display:flex;border-radius:var(--radius-2xl);overflow:hidden;margin-bottom:20px;min-height:280px;
  background:var(--cream-100);box-shadow:var(--shadow-sm);border:1px solid var(--border-soft)}
.hero .hero-img{position:absolute;top:0;right:0;bottom:0;width:58%;background-size:cover;background-position:center}
.hero .hero-fade{position:absolute;top:0;bottom:0;left:34%;width:26%;background:linear-gradient(90deg,var(--cream-100) 8%,rgba(247,242,233,0) 100%)}
.hero .hero-body{position:relative;z-index:2;max-width:560px;padding:48px 44px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.hero h1{font-size:46px;line-height:1.08;color:var(--brown-900);margin:0 0 12px}
.hero p{font-size:20px;color:var(--text-strong);margin:0 0 24px}

/* ---- Search bar ---- */
.searchbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:16px;background:var(--surface-card);
  border:1px solid var(--border-soft);border-radius:var(--radius-2xl);box-shadow:var(--shadow-md);margin-bottom:12px}
.field{display:flex;align-items:center;gap:8px;height:56px;padding:0 16px;background:#fff;border:1.5px solid var(--border-soft);border-radius:var(--radius-lg)}
.field input,.field select{flex:1;min-width:0;border:none;outline:none;background:transparent;font-family:var(--font-body);font-size:16px;color:var(--text-strong)}
.field.select{padding:0 14px;cursor:pointer}
.field.select select{font-family:var(--font-heading);font-weight:700;font-size:15px;color:var(--brown-800);cursor:pointer;appearance:none;-webkit-appearance:none}
.field-grow{flex:2 1 240px;min-width:200px}
.field-fixed{flex:1 1 140px;min-width:130px}
.popular-queries{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:24px;padding:0 6px}
.popular-queries .lbl{color:var(--text-muted);font-size:14px;font-weight:600}
.popular-queries a{font-size:14px;font-weight:600}

/* ---- Category chips ---- */
.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:32px}
.cat-chip{display:flex;align-items:center;gap:12px;min-height:88px;padding:14px 16px;background:var(--surface-card);
  border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);text-align:left;
  transition:transform var(--dur-fast) var(--ease-soft),box-shadow var(--dur-fast)}
.cat-chip:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);text-decoration:none}
.cat-chip.active{background:var(--olive-50);border-color:var(--olive-300)}
.cat-chip .ico{flex:none;width:46px;height:46px;border-radius:var(--radius-md);background:var(--olive-100);display:grid;place-items:center;color:var(--olive-700)}
.cat-chip .cat-txt{display:flex;flex-direction:column;min-width:0}
.cat-chip .lab{font-family:var(--font-heading);font-weight:800;color:var(--brown-800);font-size:15px;line-height:1.15}
.cat-chip .sub{font-size:12px;color:var(--text-muted);line-height:1.25;margin-top:3px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---- Section header ---- */
.section{margin-bottom:32px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}
.section-head h2{font-size:var(--text-h2);color:var(--brown-900);display:flex;align-items:center;gap:10px}
.section-head .action{font-family:var(--font-heading);font-weight:700;font-size:14px;color:var(--olive-700);display:inline-flex;align-items:center;gap:4px}

/* ---- Provider card ---- */
.provider-card{position:relative;display:flex;flex-direction:row;gap:var(--space-4);padding:var(--space-4);
  background:var(--surface-card);border:1px solid var(--border-soft);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);
  transition:transform var(--dur-base) var(--ease-soft),box-shadow var(--dur-base)}
.provider-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.provider-card .pc-photo{position:relative;flex:0 0 158px;width:158px;min-height:180px;border-radius:var(--radius-lg);
  overflow:hidden;background:var(--sand-300) center/cover no-repeat;display:block}
.provider-card .pc-badge{position:absolute;top:10px;left:10px}
.provider-card .pc-heart{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:var(--radius-pill);
  display:grid;place-items:center;background:var(--surface-card);border:1px solid var(--border-soft);box-shadow:var(--shadow-xs);cursor:pointer;z-index:2}
.provider-card .pc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.provider-card .pc-name{font-size:var(--text-h3);font-weight:var(--fw-extra);color:var(--brown-900);margin:0;padding-right:44px}
.provider-card .pc-loc{display:flex;align-items:center;gap:5px;color:var(--text-muted);font-size:var(--text-body-base)}
.provider-card .pc-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.provider-card .pc-price{font-family:var(--font-heading);color:var(--text-muted);font-size:var(--text-body-base)}
.provider-card .pc-price strong{font-size:var(--text-h4);font-weight:var(--fw-extra);color:var(--text-price)}
.provider-card .pc-tags{display:flex;flex-wrap:wrap;gap:6px}
.provider-card .pc-blurb{color:var(--text-body);font-size:var(--text-body-base);line-height:var(--lh-normal);margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.provider-card .pc-actions{display:flex;gap:10px;margin-top:auto;padding-top:4px;flex-wrap:wrap}
.provider-card .pc-actions .btn{flex:1 1 130px}
.provider-card.tile{flex-direction:column}
.provider-card.tile .pc-photo{flex:none;width:100%;aspect-ratio:3/2;height:auto;min-height:0}
.provider-card.tile .pc-name{padding-right:0}
.provider-card.tile .pc-heart{top:12px;right:12px}

/* ---- Salon card ---- */
.salon-card{display:flex;flex-direction:column;background:var(--surface-card);border:1px solid var(--border-soft);
  border-radius:var(--radius-xl);box-shadow:var(--shadow-card);overflow:hidden;transition:transform var(--dur-base) var(--ease-soft),box-shadow var(--dur-base)}
.salon-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);text-decoration:none}
.salon-card .sc-img{height:150px;background:var(--sand-300) center/cover no-repeat}
.salon-card .sc-body{padding:var(--space-4);display:flex;flex-direction:column;gap:8px}
.salon-card h3{font-size:var(--text-h3);font-weight:var(--fw-extra);color:var(--brown-900);margin:0}
.salon-card .sc-loc{display:flex;align-items:center;gap:5px;color:var(--text-muted);font-size:var(--text-body-base)}
.salon-card .sc-desc{color:var(--text-body);font-size:var(--text-body-sm);line-height:var(--lh-normal);margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.salon-card .sc-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
.salon-card .sc-price{font-family:var(--font-heading);color:var(--text-muted);font-size:var(--text-body-base)}
.salon-card .sc-price strong{font-size:var(--text-h4);font-weight:var(--fw-extra);color:var(--text-price)}

/* ---- Article card ---- */
.article-card{display:flex;gap:14px;padding:14px;background:var(--surface-card);border:1px solid var(--border-soft);
  border-radius:var(--radius-xl);box-shadow:var(--shadow-card)}
.article-card:hover{text-decoration:none;box-shadow:var(--shadow-md)}
.article-card .ac-img{flex:0 0 84px;height:84px;border-radius:var(--radius-md);background-size:cover;background-position:center}
.article-card h3{font-size:16px;margin:0 0 6px;color:var(--brown-900)}
.article-card p{font-size:13px;color:var(--text-body);margin:0 0 8px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-card .ac-foot{display:flex;align-items:center;justify-content:space-between}
.article-card .ac-date{font-size:12px;color:var(--text-muted)}

/* ---- Promo banner ---- */
.promo{position:relative;border-radius:var(--radius-2xl);overflow:hidden;min-height:220px;display:flex;align-items:center;
  background:var(--olive-800);box-shadow:var(--shadow-md)}
.promo .promo-img{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.55}
.promo .promo-body{position:relative;z-index:2;padding:40px 44px;max-width:560px;color:#fff}
.promo .promo-body h2{color:#fff;font-size:30px;margin:0 0 10px}
.promo .promo-body p{color:rgba(255,255,255,.9);font-size:17px;margin:0 0 20px}

/* ---- Grids for pages ---- */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}

/* ---- Catalogue (filter + results) ---- */
.catalogue{display:grid;grid-template-columns:290px 1fr;gap:24px;align-items:start}
.filter-panel{position:sticky;top:88px;display:flex;flex-direction:column;gap:18px;padding:20px;background:var(--surface-card);
  border:1px solid var(--border-soft);border-radius:var(--radius-xl);box-shadow:var(--shadow-card)}
.filter-panel h3{font-size:var(--text-h4);color:var(--brown-800);margin:0}
.filter-group{display:flex;flex-direction:column;gap:8px}
.filter-group>label{font-family:var(--font-heading);font-weight:700;font-size:13px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.catalogue-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.catalogue-head .count{color:var(--text-muted);font-size:15px}
.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.pagination{display:flex;gap:6px;justify-content:center;margin-top:32px;flex-wrap:wrap}
.pagination a,.pagination span{min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 12px;border-radius:var(--radius-md);border:1px solid var(--border-soft);background:var(--surface-card);
  font-family:var(--font-heading);font-weight:700;color:var(--brown-700)}
.pagination a:hover{background:var(--sand-200);text-decoration:none}
.pagination .cur{background:var(--olive-600);color:#fff;border-color:var(--olive-600)}
.chips-row{display:flex;flex-wrap:wrap;gap:8px}

/* ---- Forms ---- */
.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.form-field label{font-family:var(--font-heading);font-weight:700;font-size:14px;color:var(--brown-700)}
.input,.select,textarea.input{width:100%;height:50px;padding:0 16px;background:#fff;border:1.5px solid var(--border-soft);
  border-radius:var(--radius-md);font-family:var(--font-body);font-size:16px;color:var(--text-strong);outline:none;transition:border-color var(--dur-fast),box-shadow var(--dur-fast)}
.select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a785c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:42px;cursor:pointer}
textarea.input{height:auto;min-height:120px;padding:12px 16px;line-height:1.5;resize:vertical}
.input:focus,.select:focus,textarea.input:focus{border-color:var(--border-focus);box-shadow:var(--ring-olive)}
.input::placeholder{color:var(--text-placeholder)}
.form-hint{font-size:13px;color:var(--text-muted)}
.form-error{color:var(--danger-600);font-size:14px;font-weight:600}

/* ---- Cards / panels ---- */
.card{background:var(--surface-card);border:1px solid var(--border-soft);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:20px}
.panel-sand{background:var(--surface-sand);border-radius:var(--radius-lg);padding:16px}
.breadcrumbs{margin-bottom:16px;font-size:14px;color:var(--text-muted)}
.breadcrumbs a{color:var(--text-muted)}
.breadcrumbs a:hover{color:var(--olive-700)}

/* ---- Alerts / flash ---- */
.alert{padding:12px 16px;border-radius:var(--radius-md);font-size:15px;margin-bottom:16px;border:1px solid transparent;display:flex;gap:8px;align-items:flex-start}
.alert--success{background:var(--success-100);color:var(--success-600);border-color:#c9e0ad}
.alert--error{background:var(--danger-100);color:var(--danger-600);border-color:#eecab7}
.alert--info{background:var(--info-100);color:var(--info-600)}

/* ---- Profile page ---- */
.profile-grid{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}
.profile-head{display:flex;gap:20px}
.profile-photo{position:relative;flex:0 0 160px;height:190px;border-radius:var(--radius-lg);background-size:cover;background-position:center top}
.profile-head h1{font-size:30px;margin:0}
.service-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid var(--border-soft)}
.service-row:first-child{border-top:none}
.service-row .s-name{font-family:var(--font-heading);font-weight:700;font-size:16px;color:var(--brown-800)}
.service-row .s-dur{display:flex;align-items:center;gap:5px;color:var(--text-muted);font-size:14px;margin-top:3px}
.service-row .s-price{font-family:var(--font-heading);font-weight:800;font-size:20px;color:var(--text-price)}
.review-item{padding:16px;background:var(--surface-sand);border-radius:var(--radius-lg)}
.review-item .avatar{width:38px;height:38px;border-radius:50%;background:var(--olive-200);display:grid;place-items:center;font-family:var(--font-heading);font-weight:800;color:var(--olive-800)}
.contact-rail{position:sticky;top:88px;display:flex;flex-direction:column;gap:12px;padding:20px;background:var(--surface-card);border:1px solid var(--border-soft);border-radius:var(--radius-xl);box-shadow:var(--shadow-md)}
.contact-rail .price-big{font-family:var(--font-heading);font-weight:800;font-size:30px;color:var(--brown-900)}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.gallery a{display:block;aspect-ratio:1;border-radius:var(--radius-md);overflow:hidden;background:var(--sand-300) center/cover}
.gallery img{width:100%;height:100%;object-fit:cover}

/* ---- Dashboard ---- */
.dash-grid{display:grid;grid-template-columns:230px 1fr;gap:24px;align-items:start}
.dash-nav{display:flex;flex-direction:column;gap:4px;padding:12px;background:var(--surface-card);border:1px solid var(--border-soft);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);position:sticky;top:88px}
.dash-nav a{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:var(--radius-md);color:var(--brown-700);font-family:var(--font-heading);font-weight:700;font-size:15px}
.dash-nav a:hover{background:var(--sand-200);text-decoration:none}
.dash-nav a.active{background:var(--olive-100);color:var(--olive-800)}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin-bottom:20px}
.stat{padding:18px;background:var(--surface-card);border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs)}
.stat .num{font-family:var(--font-heading);font-weight:900;font-size:28px;color:var(--brown-900)}
.stat .lbl{color:var(--text-muted);font-size:13px}
.table{width:100%;border-collapse:collapse}
.table th{text-align:left;font-family:var(--font-heading);font-size:13px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;padding:10px 12px;border-bottom:2px solid var(--border-soft)}
.table td{padding:12px;border-bottom:1px solid var(--border-soft);vertical-align:middle}

/* ---- Auth ---- */
.auth-wrap{max-width:440px;margin:48px auto;padding:0 20px}
.auth-card{background:var(--surface-card);border:1px solid var(--border-soft);border-radius:var(--radius-2xl);box-shadow:var(--shadow-lg);padding:36px 32px}
.auth-card h1{font-size:26px;margin:0 0 6px;text-align:center}
.auth-card .sub{text-align:center;color:var(--text-muted);margin-bottom:24px}
.auth-alt{text-align:center;margin-top:18px;color:var(--text-muted);font-size:15px}

/* ---- Article / content pages ---- */
.prose{max-width:760px;line-height:1.7;color:var(--text-body);font-size:17px}
.prose h1{font-size:34px;margin-bottom:16px;color:var(--brown-900)}
.prose h2{font-size:24px;margin:28px 0 12px;color:var(--brown-800)}
.prose p{margin-bottom:16px}
.prose ul{padding-left:22px;margin-bottom:16px}
.prose li{margin-bottom:8px}
.type-hero{height:220px;border-radius:var(--radius-2xl);background:var(--sand-300) center/cover;margin-bottom:24px;position:relative;overflow:hidden}

/* ---- Mobile bottom nav ---- */
.bottom-nav{display:none}

/* ---- Responsive ---- */
@media(max-width:1024px){
  .catalogue{grid-template-columns:1fr}
  .filter-panel{position:static}
  .profile-grid{grid-template-columns:1fr}
  .contact-rail{position:static}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .grid-4,.result-grid{grid-template-columns:1fr 1fr}
  .dash-grid{grid-template-columns:1fr}
  .dash-nav{position:static;flex-direction:row;flex-wrap:wrap}
}
@media(max-width:768px){
  .container{padding:16px 16px 80px}
  .site-header{padding:12px 16px}
  .mainnav,.header-cta .btn{display:none}
  .header-cta .lang-switch{display:inline-flex}
  .burger{display:grid}
  .hero{min-height:auto}
  .hero .hero-img{position:relative;width:100%;height:170px}
  .hero .hero-fade{display:none}
  .hero .hero-body{padding:24px 20px}
  .hero h1{font-size:30px}
  .hero p{font-size:16px}
  .searchbar{flex-direction:column;align-items:stretch}
  .field,.field-grow,.field-fixed{width:100%;flex:none}
  .cat-grid,.grid-2,.grid-3,.grid-4,.result-grid{grid-template-columns:1fr}
  .provider-card{flex-direction:column}
  .provider-card .pc-photo{width:100%;height:180px;flex:none}
  .provider-card .pc-name{padding-right:0}
  .site-footer .cols{grid-template-columns:1fr 1fr}
  .profile-head{flex-direction:column}
  .profile-photo{flex:none;width:100%;height:220px}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:var(--touch-nav);background:var(--surface-page-alt);
    border-top:1px solid var(--border-soft);z-index:50;justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom)}
  .bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;font-family:var(--font-heading);font-weight:700;font-size:11px;color:var(--text-muted);flex:1;padding:6px 0}
  .bottom-nav a.on{color:var(--olive-700)}
}

/* ==========================================================================
   UI/UX review fixes (accessibility, touch, mobile nav)
   ========================================================================== */

/* Reduce 300ms tap delay; smoother touch */
html { touch-action: manipulation; }

/* Skip link (keyboard a11y) */
.skip-link { position:absolute; left:-999px; top:8px; z-index:1000; background:var(--olive-700); color:#fff;
  padding:10px 16px; border-radius:var(--radius-md); font-family:var(--font-heading); font-weight:700; }
.skip-link:focus { left:8px; text-decoration:none; box-shadow:var(--ring-olive); }

/* Ensure comfortable touch targets */
.btn--sm { min-height:40px; }
.mainnav a, .lang-switch a { min-height:40px; display:inline-flex; align-items:center; }
@media (pointer:coarse) { .btn--sm { min-height:44px; } }

/* Header positioning for the mobile dropdown */
.site-header { position:sticky; }

/* Mobile nav: burger toggles body.nav-open. Header grows downward via flex-wrap
   (no absolute positioning / magic offsets). Logo + burger stay on the top row;
   nav links and CTAs wrap to full-width rows beneath. */
@media (max-width:768px){
  .site-header { flex-wrap:wrap; row-gap:0; }
  .burger { margin-left:auto; }
  body.nav-open .mainnav {
    display:flex; flex-direction:column; width:100%; order:3; gap:2px;
    padding-top:8px; margin-top:8px; border-top:1px solid var(--border-soft);
  }
  body.nav-open .mainnav a { width:100%; min-height:48px; }
  body.nav-open .header-cta {
    display:flex; width:100%; order:4; flex-wrap:wrap; gap:10px; padding-top:10px;
  }
  body.nav-open .header-cta .btn { display:inline-flex; flex:1 1 45%; }
  body.nav-open .header-cta .lang-switch { display:inline-flex; flex:1 1 100%; justify-content:center; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after {
    animation-duration:0.01ms !important; animation-iteration-count:1 !important;
    transition-duration:0.01ms !important; scroll-behavior:auto !important;
  }
  .provider-card:hover, .salon-card:hover, .cat-chip:hover, .btn:active { transform:none !important; }
}

/* Gallery/image press feedback without layout shift */
.gallery a:focus-visible { box-shadow:var(--ring-olive); }

/* ---- Feature chips on cards/profile ---- */
.pc-feats{display:flex;flex-wrap:wrap;gap:5px 12px;font-size:12px;color:var(--text-muted);font-weight:600}
.pc-feats .feat{display:inline-flex;align-items:center;gap:4px}
.amenity-list{display:flex;flex-wrap:wrap;gap:8px}
.amenity{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;background:var(--surface-sand);border-radius:var(--radius-pill);font-size:14px;font-weight:600;color:var(--brown-700)}

/* ---- Star rating input (review form) ---- */
.stars-input{display:inline-flex;flex-direction:row-reverse;gap:4px}
.stars-input input{position:absolute;opacity:0;width:0;height:0}
.stars-input label{cursor:pointer;color:var(--beige-500);line-height:1;transition:color var(--dur-fast)}
.stars-input label svg{fill:currentColor;stroke:currentColor}
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label{color:var(--amber-500)}
.review-form{background:var(--surface-sand);border-radius:var(--radius-lg);padding:18px}
.review-form .stars-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}

/* ---- Spa brand logo badge (real archived logos) ---- */
.salon-card .sc-img{position:relative}
.sc-logo{position:absolute;bottom:8px;left:8px;background:rgba(255,255,255,.94);border-radius:var(--radius-md);
  padding:4px 6px;box-shadow:var(--shadow-sm);border:1px solid var(--border-soft);line-height:0;max-width:64%}
.sc-logo img{height:34px;width:auto;max-width:100%;border-radius:6px;display:block}
.spa-hero-logo{background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius-md);
  padding:8px 12px;box-shadow:var(--shadow-sm);display:inline-flex;align-items:center}
.spa-hero-logo img{height:52px;width:auto;display:block}

/* ---- Card "NEW" badge (top-right of photo) ---- */
.pc-badge-new{position:absolute;top:10px;right:10px}
.pc-badge-new .badge{background:var(--success-600);color:#fff;box-shadow:var(--shadow-sm)}

/* ==========================================================================
   Dashboard ad-editor — upgraded UI (toggle chips, working hours, save bar, preview)
   ========================================================================== */

/* Two-column: form + sticky live preview */
.ad-layout{display:grid;grid-template-columns:1fr 330px;gap:24px;align-items:start}
.ad-preview-col{position:sticky;top:88px;display:flex;flex-direction:column;gap:12px}
.ad-preview-col .pv-label{font-family:var(--font-heading);font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}

/* Section header with icon inside the form cards */
.fsec-head{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.fsec-head .fsec-ico{width:38px;height:38px;border-radius:var(--radius-md);background:var(--olive-100);display:grid;place-items:center;color:var(--olive-700);flex:none}
.fsec-head h2{font-size:var(--text-h4);margin:0}
.fsec-head .fsec-sub{font-size:13px;color:var(--text-muted);margin-top:1px}

/* Toggle chips (checkbox styled as a selectable pill) */
.toggle-grid{display:flex;flex-wrap:wrap;gap:10px}
.toggle-chip{position:relative;display:inline-flex;align-items:center;gap:9px;padding:9px 15px;border-radius:var(--radius-pill);
  border:1.5px solid var(--border-strong);background:var(--surface-card);color:var(--brown-700);font-family:var(--font-body);
  font-weight:600;font-size:14px;cursor:pointer;transition:background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast);user-select:none}
.toggle-chip input{position:absolute;opacity:0;width:0;height:0}
.toggle-chip .chk{width:18px;height:18px;border-radius:6px;border:2px solid var(--beige-500);display:grid;place-items:center;flex:none;transition:background var(--dur-fast),border-color var(--dur-fast)}
.toggle-chip .chk svg{opacity:0;transition:opacity var(--dur-fast)}
.toggle-chip:hover{border-color:var(--olive-400);background:var(--olive-50)}
.toggle-chip.on,.toggle-chip:has(input:checked){background:var(--olive-100);border-color:var(--olive-500);color:var(--olive-800)}
.toggle-chip.on .chk,.toggle-chip:has(input:checked) .chk{background:var(--olive-600);border-color:var(--olive-600)}
.toggle-chip.on .chk svg,.toggle-chip:has(input:checked) .chk svg{opacity:1}
.toggle-chip:has(input:focus-visible){box-shadow:var(--ring-olive)}

/* Working-hours widget */
.wh-widget{display:flex;flex-direction:column;gap:8px}
.wh-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:4px}
.wh-row{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:14px;padding:9px 14px;border-radius:var(--radius-md);
  background:var(--surface-sand);border:1px solid transparent;transition:opacity var(--dur-fast)}
.wh-row .wh-day{display:flex;align-items:center;gap:10px;font-family:var(--font-heading);font-weight:700;color:var(--brown-800);cursor:pointer;margin:0}
.wh-row .wh-day input{position:absolute;opacity:0;width:0;height:0}
.wh-row .wh-day .chk{width:20px;height:20px;border-radius:6px;border:2px solid var(--beige-500);display:grid;place-items:center;flex:none;transition:background var(--dur-fast),border-color var(--dur-fast)}
.wh-row .wh-day .chk svg{opacity:0}
.wh-row .wh-day:has(input:checked) .chk{background:var(--olive-600);border-color:var(--olive-600)}
.wh-row .wh-day:has(input:checked) .chk svg{opacity:1}
.wh-times{display:flex;align-items:center;gap:8px}
.wh-times input[type=time]{height:42px;padding:0 12px;border:1.5px solid var(--border-soft);border-radius:var(--radius-md);
  background:#fff;font-family:var(--font-body);font-size:15px;color:var(--text-strong);outline:none}
.wh-times input[type=time]:focus{border-color:var(--border-focus);box-shadow:var(--ring-olive)}
.wh-times .sep{color:var(--text-muted);font-weight:700}
.wh-closed{display:none;color:var(--text-muted);font-style:italic;font-size:14px}
.wh-row.is-closed{opacity:.62}
.wh-row.is-closed .wh-times{display:none}
.wh-row.is-closed .wh-closed{display:inline}

/* Sticky save bar */
.save-bar{position:sticky;bottom:12px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:14px 18px;margin-top:6px;background:rgba(251,248,241,.94);backdrop-filter:blur(8px);
  border:1px solid var(--border-soft);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg)}
.save-bar .save-hint{color:var(--text-muted);font-size:14px;display:flex;align-items:center;gap:8px}

/* Photo manager tiles */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
.photo-tile{position:relative;aspect-ratio:1;border-radius:var(--radius-md);overflow:hidden;background:var(--sand-300);box-shadow:var(--shadow-xs)}
.photo-tile img{width:100%;height:100%;object-fit:cover}
.photo-tile .cover-flag{position:absolute;top:6px;left:6px;background:var(--olive-600);color:#fff;font-family:var(--font-heading);font-weight:700;font-size:11px;padding:3px 8px;border-radius:var(--radius-pill)}
.photo-tile .del{position:absolute;top:6px;right:6px}
.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px;text-align:center;
  border:2px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-page-alt);color:var(--text-muted);cursor:pointer;transition:border-color var(--dur-fast),background var(--dur-fast)}
.dropzone:hover,.dropzone.drag{border-color:var(--olive-500);background:var(--olive-50)}
.dropzone .dz-files{font-size:13px;color:var(--olive-700);font-weight:600}

/* Service editor rows */
.svc-row{display:grid;grid-template-columns:1fr 120px 110px 1fr auto;gap:10px;align-items:center}
@media(max-width:1024px){
  .ad-layout{grid-template-columns:1fr}
  .ad-preview-col{position:static;order:-1}
  .svc-row{grid-template-columns:1fr 1fr}
}
