/* Inter, self-hosted (no external requests). Swedish å/ä/ö live in the latin subset. */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(../vendor/inter/inter-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(../vendor/inter/inter-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(../vendor/inter/inter-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(../vendor/inter/inter-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(../vendor/inter/inter-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(../vendor/inter/inter-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(../vendor/inter/inter-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(../vendor/inter/inter-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --ink:#1e1e1e;--muted:#666;--plum:#4b2a4f;--plum-soft:#f4eef5;--line:#e7e7e7;--bg:#fff;
  --accent:#a01050;--accent-soft:#fde8ef;--gold:#e0a100;--ok:#1a6b34;--ok-soft:#e6f3ea;
  --radius:16px;--radius-sm:12px;--radius-pill:999px;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:40px;
  --shadow-1:0 4px 16px rgba(0,0,0,.06);--shadow-2:0 8px 24px rgba(0,0,0,.10);--shadow-3:0 12px 40px rgba(0,0,0,.22);
}
:focus-visible{outline:2px solid var(--plum);outline-offset:2px;border-radius:2px}
.skip-link{position:absolute;left:8px;top:-48px;z-index:1000;background:#fff;color:var(--plum);padding:10px 16px;border-radius:10px;box-shadow:var(--shadow-1);text-decoration:none;transition:top .15s}
.skip-link:focus{top:8px}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
img{max-width:100%;height:auto}

/* Header / footer */
.site-header{border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:22px;text-decoration:none;color:var(--ink)}
.logo-mark{width:27px;height:27px;flex:0 0 auto;color:var(--plum)}
.logo-text .tld{color:var(--plum)}
.site-footer .logo{color:#fff}
.site-footer .logo-mark{color:#fff}
.site-footer .logo-text .tld{color:#e7c9e0}
.header-nav{display:flex;align-items:center;gap:16px}
.header-nav a{color:var(--ink);text-decoration:none}
.header-nav a:hover{color:var(--plum)}
.header-nav .nav-cta{background:var(--plum);color:#fff;padding:9px 18px;border-radius:999px;min-height:40px;display:inline-flex;align-items:center;box-sizing:border-box;border:1.5px solid var(--plum);font-weight:600;transition:background .15s,color .15s}
.header-nav .nav-cta:hover{background:#3c2140;border-color:#3c2140;color:#fff}
.header-nav .nav-cta-outline{background:transparent;color:var(--plum)}
.header-nav .nav-cta-outline:hover{background:var(--plum);border-color:var(--plum);color:#fff}
/* Hamburger toggle (mobile only) */
.site-header{position:relative}
.nav-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;align-items:center;justify-content:center}
.nav-toggle-bar,.nav-toggle-bar::before,.nav-toggle-bar::after{display:block;width:20px;height:2px;background:var(--ink);transition:transform .15s,opacity .15s}
.nav-toggle-bar{position:relative}
.nav-toggle-bar::before,.nav-toggle-bar::after{content:"";position:absolute;left:0}
.nav-toggle-bar::before{top:-6px}
.nav-toggle-bar::after{top:6px}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar{background:transparent}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before{transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after{transform:translateY(-6px) rotate(-45deg)}
@media (max-width:640px){
  .nav-toggle{display:inline-flex}
  .header-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:var(--shadow-1);padding:6px 0;z-index:60}
  .header-nav.open{display:flex}
  .header-nav a,.header-nav .hello,.header-nav .inline,.header-nav .link-btn{padding:12px 20px;width:100%;text-align:left}
  .header-nav .nav-cta{background:transparent;color:var(--plum);border:0;border-radius:0;min-height:auto;justify-content:flex-start}
  .header-nav .nav-cta:hover{background:var(--plum-soft);color:var(--plum)}
  .header-nav .nav-cta-outline:hover{background:var(--plum-soft);color:var(--plum)}
  .header-nav .hello{color:var(--muted);border-top:1px solid var(--line);margin-top:4px}
}
.inline{display:inline}
.link-btn{background:none;border:0;color:var(--plum);cursor:pointer;font:inherit;min-height:44px}
.site-footer{border-top:1px solid var(--line);margin-top:48px;padding:24px 0;color:var(--muted)}

/* Buttons */
.btn-primary{padding:12px 24px;border:0;border-radius:999px;background:var(--plum);color:#fff;font:inherit;cursor:pointer;min-height:44px}
.btn-primary:hover{background:#3c2140}
.btn-ghost{padding:12px 20px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:inherit;cursor:pointer;min-height:44px}
.btn-ghost:hover{border-color:var(--plum);color:var(--plum)}

/* Auth (from phase 2) */
.auth{max-width:420px;padding:40px 20px}
.form{display:flex;flex-direction:column;gap:8px}
.form label{font-size:14px;margin-top:8px}
.form input{padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;min-height:44px}
.alert{background:#fdecea;border:1px solid #f5c6cb;color:#842029;padding:12px;border-radius:12px}
.form textarea{padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;min-height:96px;resize:vertical}
.form .field-error{color:#842029;font-size:13px;margin-top:-2px}
.form .field-hint{color:#666;font-size:13px;margin-top:-2px}
.form .checkbox{display:flex;flex-direction:row;align-items:flex-start;gap:8px;margin-top:12px;font-size:14px}
.form .checkbox input{min-height:auto;width:18px;height:18px;margin-top:2px;flex:0 0 auto}
.signup{max-width:640px}
.signup-lead{color:var(--muted);margin:0 0 20px;max-width:60ch}
.signup-done{text-align:center;padding:32px}
.signup-done .btn-primary{display:inline-block;text-decoration:none;margin-top:12px}

/* Hero + search module */
/* Drop in your own licensed photo by swapping hero.svg for hero.jpg below. */
.hero{position:relative;padding:80px 0;color:#fff;background:#3c2140 center/cover no-repeat;
      background-image:linear-gradient(120deg,rgba(30,14,32,.78),rgba(75,42,79,.5)),var(--hero-photo,url(../img/hero.svg))}
.hero .container{position:relative;max-width:760px}
.hero h1{font-size:36px;margin:0 0 10px;color:#fff;letter-spacing:-.01em}
.hero-sub{margin:0 0 24px;color:rgba(255,255,255,.88);font-size:18px}
.search-module{display:flex;flex-direction:column;gap:12px;background:#fff;padding:16px;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.22)}
.search-field{display:flex;flex-direction:column;gap:4px}
.search-field label{font-size:13px;font-weight:600;color:var(--muted)}
.search-field input{padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;min-height:44px}
.search-actions{display:flex;gap:8px;flex-wrap:wrap}
.search-actions .btn-primary{flex:1}
.search-status{min-height:1.2em;margin:8px 2px 0;color:rgba(255,255,255,.9);font-size:14px}

/* Sections */
.section{padding:40px 20px}
.section h2{font-size:24px;margin:0 0 20px}

/* Provider map */
.map-section h2{margin-bottom:8px}
.map-intro{margin:0 0 16px;color:var(--muted)}
.provider-map{height:440px;border-radius:16px;overflow:hidden;border:1px solid var(--line);z-index:0}
.provider-map:focus{outline:2px solid var(--plum)}
.map-popup-link{color:var(--plum);font-weight:600;text-decoration:none}
@media (max-width:640px){.provider-map{height:340px}}

/* Category grid */
.category-grid{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:1fr}
.category-card a{display:block;height:100%;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.category-card a:hover{border-color:var(--plum);box-shadow:0 4px 16px rgba(0,0,0,.06)}
.category-card-body{display:block;padding:18px}
.category-name{display:block;font-weight:600;font-size:17px}
.category-desc{display:block;margin-top:6px;color:var(--muted);font-size:14px}

/* A–Ö panel */
.az-toggle{border:2px solid var(--plum);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 4px 16px rgba(74,37,69,.08)}
.az-summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;font-size:22px;font-weight:700;color:var(--plum);background:var(--plum-soft);min-height:56px;transition:background .15s,color .15s}
.az-summary::-webkit-details-marker{display:none}
.az-summary-left{display:flex;align-items:center;gap:14px}
.az-ico{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--plum);color:#fff;flex:0 0 auto}
.az-ico svg{width:22px;height:22px}
.az-summary-hint{display:inline-flex;align-items:center;gap:10px;font-size:15px;font-weight:600;color:var(--plum)}
.az-summary-hint::after{content:"";width:12px;height:12px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg);transition:transform .2s;flex:0 0 auto;margin-bottom:4px}
.az-toggle[open] .az-summary-hint::after{transform:rotate(-135deg);margin-bottom:0;margin-top:4px}
.az-toggle[open] .az-hint-text{display:none}
.az-summary:hover,.az-toggle[open] .az-summary{background:var(--plum);color:#fff}
.az-summary:hover .az-ico,.az-toggle[open] .az-ico{background:#fff;color:var(--plum)}
.az-summary:hover .az-summary-hint,.az-toggle[open] .az-summary-hint{color:#fff}
.az-body{padding:10px 22px 22px}
@media (max-width:520px){
  .az-summary{font-size:18px;padding:16px 18px}
  .az-summary .az-hint-text{display:none}
  .az-ico{width:36px;height:36px}
}
.az-panel .az-index{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:24px}
.az-panel .az-index a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--plum);font-weight:600}
.az-panel .az-index a:hover{background:var(--plum-soft)}
.az-group{padding-top:8px;margin-bottom:20px;border-top:1px solid var(--line)}
.az-letter{font-size:20px;color:var(--plum);margin:16px 0 8px}
.az-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;grid-template-columns:1fr}
.az-list a{display:inline-block;padding:8px 4px;min-height:40px;text-decoration:none;color:var(--ink)}
.az-list a:hover{color:var(--plum);text-decoration:underline}

/* Tablet and up */
@media (min-width:640px){
    .hero h1{font-size:44px}
    .search-module{flex-direction:row;align-items:flex-end;flex-wrap:wrap}
    .search-field{flex:1;min-width:180px}
    .search-actions{flex:0 0 auto}
    .search-actions .btn-primary{flex:0 0 auto}
    .category-grid{grid-template-columns:repeat(2,1fr)}
    .az-list{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:960px){
    .category-grid{grid-template-columns:repeat(4,1fr)}
    .az-list{grid-template-columns:repeat(3,1fr)}
}

/* ============================================================= */
/* Search results (phase 3, step 2)                              */
/* ============================================================= */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted{color:var(--muted)}
.breadcrumbs{font-size:14px;color:var(--muted);margin-bottom:16px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.breadcrumbs a{color:var(--plum);text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}

.search-module.compact{margin-bottom:24px}
.results h1{margin:8px 0 4px;font-size:28px}
.results-count{color:var(--muted);margin:0 0 20px}

.results-layout{display:grid;gap:24px;grid-template-columns:1fr}
.filters{border:1px solid var(--line);border-radius:16px;padding:16px;align-self:start}
.filter-group{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;border:0;padding:0}
.filter-group legend{font-weight:600;font-size:14px;padding:0;margin-bottom:6px}
.filter-group label{font-size:14px;font-weight:600;color:var(--muted)}
.filters select,.filters input[type=number]{padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit;min-height:44px}
.filters .check{display:flex;align-items:center;gap:8px;font-weight:400;color:var(--ink);min-height:36px}
.filter-submit{width:100%}

.results-list{display:flex;flex-direction:column;gap:20px}
.empty{padding:24px;border:1px dashed var(--line);border-radius:16px;color:var(--muted)}
.result-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;transition:box-shadow .15s,border-color .15s,transform .15s}
.result-card:hover{border-color:var(--plum);box-shadow:0 8px 24px rgba(0,0,0,.10);transform:translateY(-2px)}
.result-media{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--plum-soft);width:100%;height:200px;text-decoration:none}
.result-media img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.result-initial{font-size:56px;font-weight:700;color:var(--plum)}
.media-flag{position:absolute;top:12px;left:12px;background:#a01050;color:#fff;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px}
.result-content{display:flex;flex-direction:column;padding:16px}
.result-name{margin:0 0 4px;font-size:18px}
.result-name a{color:var(--ink);text-decoration:none}
.result-name a:hover{color:var(--plum)}
.result-cats{margin:0 0 4px;color:var(--muted);font-size:14px}
.result-meta{margin:0 0 4px;font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px}
.result-meta .dot{opacity:.5}
.result-rating{margin:0 0 6px;font-size:14px;display:flex;gap:6px;align-items:center}
.result-desc{margin:0 0 8px;font-size:14px}
.stars{color:#e0a100;letter-spacing:1px}
.badges{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.badge{display:inline-block;font-size:12px;padding:3px 8px;border-radius:999px;background:#f0f0f0;color:#444}
.badge-offer{background:#fde8ef;color:#a01050}
.badge-verified{background:#e6f3ea;color:#1a6b34}
.result-action{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px}
.result-action .btn-primary{text-decoration:none}
.price-from{margin:0;color:var(--muted);font-size:14px}
.price-from strong{color:var(--ink);font-size:16px}

.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:24px}
.pagination a{color:var(--plum);text-decoration:none;padding:10px 16px;border:1px solid var(--line);border-radius:999px;min-height:44px;display:inline-flex;align-items:center}
.pagination a:hover{background:var(--plum-soft)}
.page-info{color:var(--muted);font-size:14px}

@media (min-width:840px){
    .results-layout{grid-template-columns:260px 1fr}
    .result-card{flex-direction:row}
    .result-media{width:260px;height:auto;min-height:210px;flex:0 0 260px}
    .result-content{flex:1;min-width:0}
    .result-action{margin-top:auto}
}

/* ============================================================= */
/* Provider page (phase 3, step 3)                               */
/* ============================================================= */
.provider-hero{background:var(--plum-soft);padding:32px 0}
.provider-hero-inner{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.provider-logo{width:88px;height:88px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}
.provider-logo img{width:100%;height:100%;object-fit:cover}
.provider-head{flex:1;min-width:240px}
.provider-head h1{margin:0 0 6px;font-size:30px}
.provider-cats{margin:0 0 6px}
.provider-cats a{color:var(--plum);text-decoration:none}
.provider-rating{margin:0 0 6px;display:flex;gap:8px;align-items:center;font-size:15px}
.provider-address{margin:0 0 10px;color:var(--muted)}
.provider-head .badges{margin:0 0 4px}
.provider-head .btn-primary{display:inline-block;margin-top:16px;text-decoration:none}
.booking-note{margin:8px 0 0;font-size:13px;color:var(--muted)}

.provider-body{padding:32px 20px}
.provider-section{padding:24px 0;border-top:1px solid var(--line)}
.provider-section:first-child{border-top:0}
.provider-section h2{font-size:22px;margin:0 0 16px}
.service-cat{font-size:16px;color:var(--plum);margin:16px 0 8px}
.service-list{list-style:none;margin:0 0 8px;padding:0}
.service-item{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.service-info{display:flex;flex-direction:column;gap:2px}
.service-name{font-weight:600}
.service-desc{font-size:14px;color:var(--muted)}
.service-meta{font-size:13px;color:var(--muted)}
.service-price{text-align:right;white-space:nowrap}
.price-old{display:block;text-decoration:line-through;color:var(--muted);font-size:14px}
.price-now{font-weight:600}

.staff-grid{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:1fr}
.staff-card{display:flex;gap:12px;border:1px solid var(--line);border-radius:16px;padding:14px}
.staff-avatar{width:56px;height:56px;border-radius:50%;background:var(--plum-soft);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}
.staff-avatar img{width:100%;height:100%;object-fit:cover}
.staff-avatar--mono{background:var(--plum)}
.staff-monogram{color:#fff;font-weight:700;font-size:19px;letter-spacing:.5px;line-height:1}
.staff-info{display:flex;flex-direction:column;gap:2px}
.staff-name{font-weight:600}
.staff-title,.staff-lang,.staff-bio{font-size:13px;color:var(--muted)}

.reviews-summary{display:flex;gap:24px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.reviews-score{display:flex;flex-direction:column;align-items:center;gap:2px}
.reviews-score strong{font-size:36px;line-height:1}
.reviews-dist{list-style:none;margin:0;padding:0;flex:1;min-width:220px}
.reviews-dist li{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-size:13px}
.dist-label{width:32px;color:var(--muted)}
.dist-bar{flex:1;height:8px;background:#eee;border-radius:999px;overflow:hidden}
.dist-bar span{display:block;height:100%;background:#e0a100}
.dist-n{width:24px;text-align:right;color:var(--muted)}
.reviews-list{list-style:none;margin:0;padding:0}
.review{padding:14px 0;border-bottom:1px solid var(--line)}
.review-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 6px;font-size:14px}
.review-service{color:var(--muted)}
.review-date{color:var(--muted);margin-left:auto}
.review-text{margin:0 0 6px}
.review-reply{margin:6px 0 0;padding:10px 12px;background:var(--plum-soft);border-radius:12px;font-size:14px}
.provider-about{white-space:normal}

.provider-columns{display:grid;gap:24px;grid-template-columns:1fr}
.hours{border-collapse:collapse;width:100%;max-width:320px}
.hours th,.hours td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);font-weight:400}
.hours th{color:var(--muted)}
.contact-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.contact-list a{color:var(--plum)}
.map{width:100%;height:320px;border:0;border-radius:16px}

@media (min-width:720px){
    .staff-grid{grid-template-columns:repeat(2,1fr)}
    .provider-columns{grid-template-columns:1fr 1fr}
}
@media (min-width:960px){
    .staff-grid{grid-template-columns:repeat(3,1fr)}
}

/* ============================================================= */
/* Booking flow (phase 4)                                        */
/* ============================================================= */
.booking h1{margin:8px 0 8px}
.booking-summary{color:var(--muted);margin:0 0 24px}
.booking-step{padding:16px 0;border-top:1px solid var(--line)}
.booking-step h2{font-size:18px;margin:0 0 12px}
.book-btn{margin-top:8px;padding:8px 16px;min-height:40px}

.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--ink);background:#fff}
.chip:hover{border-color:var(--plum);color:var(--plum)}
.chip-on{background:var(--plum);color:#fff;border-color:var(--plum)}
.chip-on:hover{color:#fff}

.date-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:12px}
.date-form label{display:block;font-size:13px;color:var(--muted);font-weight:600}
.date-form input[type=date]{padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit;min-height:44px}

.slot-grid{list-style:none;margin:0;padding:0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
.slot{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--plum);font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.slot:hover{border-color:var(--plum);background:var(--plum-soft)}
.slot-grid form{margin:0}

.review-box{border:1px solid var(--line);border-radius:16px;padding:20px;margin:16px 0}
.review-list{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0}
.review-list dt{color:var(--muted)}
.review-list dd{margin:0}
.booking-form{max-width:520px;margin-top:16px}
.booking-form textarea{padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit}

.confirm-badge{display:inline-block;background:#e6f3ea;color:#1a6b34;padding:8px 14px;border-radius:999px;font-weight:600;margin:0 0 8px}
.confirm-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.confirm-actions .btn-primary,.confirm-actions .btn-ghost{text-decoration:none;display:inline-flex;align-items:center}

/* ============================================================= */
/* Provider portal (phase 5)                                     */
/* ============================================================= */
.portal-head{background:var(--plum);color:#fff}
.portal-head .container{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;min-height:56px}
.portal-name{font-weight:700;margin:0}
.portal-nav{display:flex;flex-wrap:wrap;gap:4px}
.portal-nav a{color:#f0e6f2;text-decoration:none;padding:10px 12px;border-radius:8px;min-height:44px;display:inline-flex;align-items:center}
.portal-nav a:hover{background:rgba(255,255,255,.12)}
.portal-nav a.on{background:#fff;color:var(--plum);font-weight:600}

.small{font-size:12px}
.btn-sm{padding:6px 12px;min-height:36px}
.portal-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.portal-toolbar .btn-primary{text-decoration:none}
.portal-block{margin-top:32px}
.portal-block h2{font-size:20px;margin:0 0 12px}

.stat-row{display:grid;gap:12px;grid-template-columns:repeat(2,1fr);margin:16px 0 8px}
.stat{border:1px solid var(--line);border-radius:16px;padding:16px;text-align:center}
.stat-n{display:block;font-size:30px;font-weight:700;color:var(--plum)}
.stat-l{display:block;color:var(--muted);font-size:13px}

.ptable{width:100%;border-collapse:collapse;margin-top:8px}
.ptable th,.ptable td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top;font-size:14px}
.ptable th{color:var(--muted);font-weight:600}
.ptable .btn-ghost{text-decoration:none}

.pill{display:inline-block;font-size:12px;padding:3px 10px;border-radius:999px;background:#f0f0f0;color:#444;white-space:nowrap}
.pill-completed{background:#e6f3ea;color:#1a6b34}
.pill-confirmed{background:#e7eefb;color:#1b4bb3}
.pill-new{background:#fff4e5;color:#8a5300}
.pill-no_show,.pill-voided,.pill-cancelled_by_customer,.pill-cancelled_by_provider{background:#fdecea;color:#842029}

.tabs{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0 4px;border-bottom:1px solid var(--line)}
.tabs a{padding:10px 14px;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent;min-height:44px;display:inline-flex;align-items:center}
.tabs a.on{color:var(--plum);border-bottom-color:var(--plum);font-weight:600}

.portal-form{max-width:640px}
.portal-form input,.portal-form select,.portal-form textarea{padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;min-height:44px}
.form-grid{display:grid;gap:12px;grid-template-columns:repeat(2,1fr);margin-top:8px}
.form-grid label{font-size:13px;color:var(--muted);font-weight:600}
.services-pick{border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:12px;display:flex;flex-direction:column;gap:6px}
.services-pick legend{font-weight:600;padding:0 4px}

.row-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.row-form input,.row-form select{padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit;min-height:44px}
.row-form .btn-primary{text-decoration:none}
.inline-form{margin-top:16px}

@media (min-width:720px){
    .stat-row{grid-template-columns:repeat(4,1fr)}
}

/* Phase 6 – economy tables & action grids */
table.data{width:100%;border-collapse:collapse;margin:12px 0}
table.data th{text-align:left;border-bottom:2px solid var(--plum);padding:8px 6px;font-size:14px}
table.data td{padding:8px 6px;border-bottom:1px solid var(--line);font-size:14px}
table.data td.num,table.data th.num{text-align:right}
table.data tfoot td{border-top:2px solid var(--plum)}
.actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:16px}
.actions-grid .card{margin:0}

/* Provider gallery (profile + public page) */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin:12px 0}
.gallery-item{margin:0;position:relative}
.gallery-item img{width:100%;height:120px;object-fit:cover;border-radius:12px;border:1px solid var(--line);display:block}
.gallery-item .link-btn{margin-top:4px}
.provider-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin:12px 0}
.provider-gallery img{width:100%;height:180px;object-fit:cover;border-radius:14px;border:1px solid var(--line);display:block}

/* Gallery management (main badge + reorder actions) */
.badge-main{position:absolute;top:6px;left:6px;background:var(--plum);color:#fff;font-size:11px;padding:2px 8px;border-radius:999px;z-index:1}
.gallery-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}
.gallery-actions .link-btn{min-height:auto;padding:2px 4px}
.gallery-actions button[disabled]{opacity:.35;cursor:default}

/* Staff photos (list thumbnail + edit preview) */
.staff-thumb{display:inline-flex;width:40px;height:40px;border-radius:50%;overflow:hidden;background:#f0eef1;align-items:center;justify-content:center}
.staff-thumb img{width:100%;height:100%;object-fit:cover}
.staff-thumb .result-initial{font-weight:600;color:var(--plum)}
.staff-photo-current{display:flex;align-items:center;gap:12px;margin:4px 0}
.staff-photo-current img{width:72px;height:72px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}

/* ============================================================= */
/* Design refresh v2 – trust, icons, cards, chips, favourites    */
/* ============================================================= */

/* Trust strip in the hero */
.trust-strip{list-style:none;display:flex;flex-wrap:wrap;gap:8px 24px;margin:20px 0 0;padding:0;color:rgba(255,255,255,.9);font-size:15px}
.trust-strip li{display:flex;gap:6px;align-items:baseline}
.trust-strip strong{color:#fff;font-size:18px}

/* Category icons */
.category-icon-wrap{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--plum-soft);color:var(--plum);margin-bottom:10px}
.cat-icon{width:24px;height:24px}

/* Horizontal provider rows (offers, top-rated) */
.nearby-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nearby-head h2{margin:0}
.nearby-all{color:var(--plum);font-weight:600;text-decoration:none;font-size:15px;white-space:nowrap}
.nearby-all:hover{text-decoration:underline}
.nearby-status{color:var(--muted);font-size:14px;display:block;margin:8px 0}
.provider-row{list-style:none;margin:0;padding:4px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.mini-card{scroll-snap-align:start}
.mini-card a{display:flex;flex-direction:column;height:100%;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s,transform .15s}
.mini-card a:hover{border-color:var(--plum);box-shadow:var(--shadow-1);transform:translateY(-2px)}
.mini-media{position:relative;height:140px;background:var(--plum-soft);display:flex;align-items:center;justify-content:center;overflow:hidden}
.mini-media img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.mini-media .result-initial{font-size:40px;font-weight:700;color:var(--plum)}
.mini-body{display:flex;flex-direction:column;gap:2px;padding:12px 14px 14px}
.mini-name{font-weight:600}
.mini-sub{color:var(--muted);font-size:14px}
.mini-slot{color:var(--plum);font-weight:600;font-size:13px;margin-top:2px}
.mini-price{margin-top:6px;display:flex;gap:8px;align-items:baseline}
.mini-rating{margin-top:6px;font-size:14px;display:flex;gap:6px;align-items:center;color:var(--muted)}
@media (min-width:640px){.provider-row{grid-auto-columns:minmax(240px,1fr)}}

/* When rows fit, show them as a clean multi-column grid instead of scroll */
@media (min-width:960px){
  .provider-row{grid-auto-flow:row;grid-template-columns:repeat(3,1fr);overflow:visible}
}

/* Quick-filter chips */
.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-pill);text-decoration:none;color:var(--ink);font-size:14px;min-height:40px;transition:background .15s,border-color .15s,color .15s}
.chip:hover{border-color:var(--plum);color:var(--plum)}
.chip-on{background:var(--plum);border-color:var(--plum);color:#fff}
.chip-on:hover{color:#fff}

/* Results map (collapsible) */
.results-map-wrap{margin:0 0 20px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.results-map-wrap summary{cursor:pointer;padding:12px 16px;font-weight:600;color:var(--plum);list-style:none}
.results-map-wrap summary::-webkit-details-marker{display:none}
.results-map-wrap summary::before{content:"▸ ";}
.results-map-wrap[open] summary::before{content:"▾ ";}
.results-map-wrap #results-map{height:360px;border:0;border-top:1px solid var(--line);border-radius:0}

/* Favourite button */
.result-card{position:relative}
.fav-btn{position:absolute;top:12px;right:12px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:var(--shadow-1);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.fav-btn svg{width:22px;height:22px;fill:none;stroke:var(--plum);stroke-width:1.8}
.fav-btn:hover{background:#fff}
.fav-btn.fav-on svg{fill:var(--accent);stroke:var(--accent)}
.fav-btn-inline{position:static;width:auto;height:44px;min-height:44px;border-radius:var(--radius-pill);border:1px solid var(--line);background:#fff;padding:0 16px;gap:8px}
.fav-btn-inline .fav-label{font:inherit;color:var(--ink)}
.fav-btn-inline.fav-on{border-color:var(--accent)}
.fav-btn-inline.fav-on .fav-label{color:var(--accent)}
.provider-cta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.provider-cta .btn-primary{margin-top:0}

/* Open / closed badges */
.badge-open{background:var(--ok-soft);color:var(--ok)}
.badge-closed{background:#f3f3f3;color:#777}

/* Sticky mobile booking bar */
.booking-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(0,0,0,.08)}
.booking-bar-info{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.booking-bar-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.booking-bar-price{color:var(--muted);font-size:14px}
.booking-bar .btn-primary{text-decoration:none;white-space:nowrap}
@media (max-width:840px){.booking-bar{display:flex}body{padding-bottom:76px}}

/* Gallery thumbnails as buttons + lightbox */
.gallery-thumb{padding:0;border:0;background:none;cursor:pointer;display:block;border-radius:12px;overflow:hidden}
.gallery-thumb img{display:block}
.lightbox{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;padding:24px}
.lightbox[hidden]{display:none}
.lightbox-img{max-width:95vw;max-height:90vh;border-radius:8px}
.lightbox-close{position:absolute;top:16px;right:20px;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.lightbox-close:hover{background:rgba(255,255,255,.28)}

/* ============================================================= */
/* Autocomplete, next-slot, skeletons (design v3)                */
/* ============================================================= */

/* Autocomplete dropdown */
.search-field{position:relative}
.ac-list{list-style:none;margin:4px 0 0;padding:4px;position:absolute;left:0;right:0;top:100%;z-index:60;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-2);max-height:320px;overflow:auto}
.ac-item{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 12px;border-radius:8px;cursor:pointer}
.ac-item:hover,.ac-item.is-active{background:var(--plum-soft)}
.ac-label{color:var(--ink)}
.ac-sub{color:var(--muted);font-size:13px;white-space:nowrap}

/* Next available time on result cards */
.result-next{margin:0 0 6px;font-size:14px;color:var(--ok)}
.result-next strong{color:var(--ink)}
.result-next .dot-ok{color:var(--ok);font-size:10px;margin-right:2px}

/* Skeleton shimmer */
.skeleton{position:relative;overflow:hidden;background:#ececec}
.skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:bd-shimmer 1.3s infinite}
.provider-map{position:relative}
.map-skeleton{position:absolute;inset:0;z-index:1;border-radius:inherit}
@keyframes bd-shimmer{100%{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.skeleton::after{animation:none}}

/* ============================================================= */
/* Category photos (drop-in) + banner                            */
/* ============================================================= */
.category-card.has-photo a{display:flex;flex-direction:column}
.category-photo{display:block;height:120px;overflow:hidden;background:var(--plum-soft)}
.category-photo img{width:100%;height:100%;object-fit:cover}
.category-photo--icon{display:flex;align-items:center;justify-content:center}
.category-badge{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:16px;background:rgba(255,255,255,.75);color:var(--plum);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.category-badge .cat-icon{width:30px;height:30px}
.category-card.has-photo .category-card-body{padding:14px 18px 18px}

.category-banner{position:relative;border-radius:var(--radius);overflow:hidden;margin:8px 0 12px;min-height:220px;display:flex;align-items:flex-end;background:var(--plum-soft)}
@media (min-width:700px){.category-banner{min-height:360px}}
.category-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.category-banner h1{position:relative;margin:0;padding:20px;color:#fff;font-size:32px;text-shadow:0 2px 12px rgba(0,0,0,.45);
  background:linear-gradient(0deg,rgba(0,0,0,.55),rgba(0,0,0,0));width:100%}

/* ============================================================= */
/* Rich footer                                                   */
/* ============================================================= */
.site-footer{border-top:0;margin-top:64px;background:#2b142e;color:rgba(255,255,255,.82)}
.footer-grid{display:grid;grid-template-columns:1fr;gap:28px;padding:48px 20px 8px}
.footer-col h3{font-size:14px;letter-spacing:.02em;text-transform:uppercase;color:#fff;margin:0 0 12px}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.footer-col a{color:rgba(255,255,255,.82);text-decoration:none}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer-brand .logo{color:#fff}
.footer-brand .logo span{color:#e9a6c9}
.footer-tagline{margin:12px 0 12px;max-width:34ch;line-height:1.5;font-size:14px}
.footer-social{display:flex;gap:16px;margin:0}
.footer-social a{color:rgba(255,255,255,.82);text-decoration:none;font-size:14px}
.footer-social a:hover{color:#fff}
.footer-bottom{padding:16px 20px 32px;border-top:1px solid rgba(255,255,255,.12);margin-top:20px;color:rgba(255,255,255,.6);font-size:13px}
@media (min-width:640px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr}}
@media (min-width:960px){.footer-grid{grid-template-columns:1.6fr 1fr 1fr 1fr 1fr}}

/* Static content pages */
.page-doc{max-width:860px;margin:0 auto}
.page-doc h1{font-size:34px;line-height:1.15;letter-spacing:-.01em;margin:0 0 10px}
.page-doc .lead{color:var(--muted);font-size:19px;line-height:1.55;margin:0 0 28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.page-doc h2{font-size:22px;color:var(--plum);margin:36px 0 12px;display:flex;align-items:center;gap:10px}
.page-doc h2::before{content:"";width:6px;height:22px;border-radius:3px;background:var(--plum);flex:0 0 auto}
.page-doc h3{font-size:17px;margin:20px 0 8px}
.page-doc p{line-height:1.7;margin:0 0 14px}
.page-doc ul{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-direction:column;gap:10px}
.page-doc li{position:relative;padding-left:26px;line-height:1.6}
.page-doc li::before{content:"";position:absolute;left:4px;top:11px;width:7px;height:7px;border-radius:50%;background:var(--plum)}
.page-doc a{color:var(--plum);text-underline-offset:2px}
.page-doc a.btn-primary{color:#fff;text-decoration:none}
.page-doc .muted-note{background:var(--plum-soft);border:1px solid #ecdcec;border-radius:14px;padding:14px 18px;font-size:14px;color:#6b3a5f;margin:0 0 24px}
.page-doc .info-table{border-collapse:collapse;margin:8px 0 20px;width:100%}
.page-doc .info-table th{text-align:left;padding:11px 20px 11px 0;color:var(--muted);font-weight:600;vertical-align:top;border-bottom:1px solid var(--line)}
.page-doc.page-tight .lead{margin-bottom:14px;padding-bottom:16px}
.page-doc .info-table td{padding:11px 0;border-bottom:1px solid var(--line)}
.page-doc .updated{color:var(--muted);font-size:14px;margin-top:36px;padding-top:16px;border-top:1px solid var(--line)}
/* Highlighted / CTA cards inside content pages */
.page-card{border:1px solid var(--line);border-radius:16px;padding:20px 24px;margin:20px 0;background:#fff;box-shadow:0 4px 16px rgba(74,37,69,.06)}
.page-card > :first-child{margin-top:0}
.page-card > :last-child{margin-bottom:0}
.page-card--accent{background:var(--plum-soft);border-color:#ecdcec;box-shadow:none}
.page-card .btn-primary{display:inline-block;text-decoration:none;margin-top:8px}
.price-badge{display:inline-block;background:var(--plum);color:#fff;font-weight:700;border-radius:999px;padding:4px 12px;font-size:14px;vertical-align:middle}

/* Provider cover banner (drop-in <slug>-cover.jpg when no gallery exists) */
.provider-cover{border-radius:16px;overflow:hidden;border:1px solid var(--line)}
.provider-cover .gallery-thumb{width:100%;border-radius:16px}
.provider-cover img{width:100%;height:clamp(220px,38vw,420px);object-fit:cover;object-position:center 30%;display:block}

/* ============================================================= */
/* Sortable tables + provider overview                           */
/* ============================================================= */
.table-scroll{overflow-x:auto}
th.is-sortable{cursor:pointer;user-select:none;white-space:nowrap}
th.is-sortable::after{content:" ↕";opacity:.35;font-size:11px}
th.is-sortable[aria-sort="ascending"]::after{content:" ▲";opacity:.9}
th.is-sortable[aria-sort="descending"]::after{content:" ▼";opacity:.9}
th.is-sortable:hover{color:var(--plum)}
.pill-approved{background:var(--ok-soft);color:var(--ok)}
.pill-paused{background:#fdecef;color:#a01050}
.pill-pending{background:#fff4e0;color:#8a5a00}
.pill-rejected{background:#f3f3f3;color:#777}

/* "Ej aktiv" banner on demo/example provider profiles */
.demo-banner{background:#fff4e0;color:#8a5a00;border-bottom:1px solid #f0d9a8;padding:12px 20px;text-align:center;font-size:15px}
.demo-banner strong{color:#7a4f00}

/* ---- Messaging (booking-scoped) ------------------------------------ */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.msg-page{max-width:760px}
.ptable-actions{white-space:nowrap;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.msg-list{list-style:none;padding:0;margin:16px 0;display:flex;flex-direction:column;gap:10px}
.msg-item{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--ink);background:var(--bg);transition:border-color .15s,box-shadow .15s}
.msg-item:hover{border-color:var(--plum);box-shadow:0 2px 10px rgba(0,0,0,.05)}
.msg-item.is-unread{border-left:4px solid var(--plum)}
.msg-item-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.msg-title{font-size:16px}
.msg-sub{color:var(--muted);font-size:13px}
.msg-preview{color:#444;font-size:14px;margin-top:2px}
.msg-badge{background:var(--plum);color:#fff;font-size:12px;font-weight:700;line-height:1;padding:4px 8px;border-radius:999px;min-width:20px;text-align:center}
.msg-context{margin-top:-6px;margin-bottom:18px}
.msg-back{margin-bottom:6px}
.msg-thread{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.msg-bubble{max-width:80%;padding:10px 14px;border-radius:14px;font-size:15px}
.msg-bubble .msg-body{white-space:pre-wrap;word-wrap:break-word}
.msg-bubble .msg-meta{font-size:12px;color:var(--muted);margin-top:5px}
.msg-bubble.mine{align-self:flex-end;background:var(--plum);color:#fff;border-bottom-right-radius:4px}
.msg-bubble.mine .msg-meta{color:rgba(255,255,255,.8)}
.msg-bubble.theirs{align-self:flex-start;background:#f2eef3;color:var(--ink);border-bottom-left-radius:4px}
.msg-form{margin-top:8px}
.msg-form textarea{width:100%;resize:vertical}

/* ---- Mina bokningar + kontosidor ----------------------------------- */
.alert-ok{background:var(--ok-soft);border:1px solid #b7dfc3;color:var(--ok)}
.btn-danger{color:#842029}
.btn-danger:hover{border-color:#842029;color:#842029}
.mb-list{display:flex;flex-direction:column;gap:12px;margin:12px 0}
.mb-past{opacity:.75}
.mb-card{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:var(--bg)}
.mb-card-main{display:flex;flex-direction:column;gap:3px}
.mb-provider{font-size:16px}
.mb-service{color:#444}
.mb-when{font-size:14px}
.mb-meta{color:var(--muted);font-size:13px;margin-top:2px}
.mb-card-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}

/* ---- Recensionsformulär (stjärnbetyg) ------------------------------ */
.rating-input{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;font-size:32px;line-height:1;margin:2px 0}
.rating-input input{position:absolute;opacity:0;width:0;height:0}
.rating-input label{color:#d9d2db;cursor:pointer;padding:0 3px;transition:color .1s}
.rating-input input:checked ~ label{color:var(--gold)}
.rating-input label:hover,.rating-input label:hover ~ label{color:var(--gold)}
.rating-input input:focus-visible + label{outline:2px solid var(--plum);outline-offset:2px;border-radius:3px}
.mb-reviewed{color:var(--gold);font-weight:600;font-size:14px}

/* ---- Bulkutskick (admin) ------------------------------------------- */
.bulk-form{max-width:820px}
.bulk-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:12px}
.bulk-filters select,.bulk-filters input{padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;min-height:44px;width:100%}
.bulk-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.bulk-recipients{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-top:18px}
.bulk-recipients legend{font-weight:600;padding:0 6px}
.bulk-selectall{margin:0 0 8px}
.bulk-list{max-height:360px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.bulk-recipient{display:flex;align-items:center;gap:10px;padding:6px 4px;border-bottom:1px solid #f0eef1}
.bulk-recipient input{width:18px;height:18px;flex:0 0 auto}
.bulk-badge{font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;flex:0 0 auto}
.bulk-badge-p{background:var(--plum-soft);color:var(--plum)}
.bulk-badge-u{background:var(--accent-soft);color:var(--accent)}
.bulk-name{font-weight:600}
.bulk-email{font-size:13px}

/* ---- AI-chatbot widget --------------------------------------------- */
#chat-widget{position:fixed;right:18px;bottom:18px;z-index:1000;font-family:inherit}
.chat-toggle{width:56px;height:56px;border-radius:50%;border:0;background:var(--plum);color:#fff;font-size:24px;cursor:pointer;box-shadow:var(--shadow-2);display:flex;align-items:center;justify-content:center;transition:transform .12s}
.chat-toggle:hover{transform:scale(1.05);background:#3c2140}
#chat-widget.open .chat-toggle{display:none}
.chat-panel{position:fixed;right:18px;bottom:18px;width:360px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 36px);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-3);display:flex;flex-direction:column;overflow:hidden}
.chat-panel[hidden]{display:none}
.chat-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--plum);color:#fff}
.chat-title{font-weight:600}
.chat-close{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0 4px}
.chat-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#faf8fb}
.chat-msg{max-width:85%;padding:9px 13px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.chat-msg.user{align-self:flex-end;background:var(--plum);color:#fff;border-bottom-right-radius:4px}
.chat-msg.bot{align-self:flex-start;background:#f0eef1;color:var(--ink);border-bottom-left-radius:4px}
.chat-msg.bot a{color:var(--plum);font-weight:600}
.chat-msg.user a{color:#fff;text-decoration:underline}
.chat-msg.typing{opacity:.6;font-style:italic}
.chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);align-items:flex-end}
.chat-form textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;max-height:96px;min-height:24px}
.chat-send{width:42px;height:42px;flex:0 0 auto;border:0;border-radius:50%;background:var(--plum);color:#fff;font-size:16px;cursor:pointer}
.chat-send:hover{background:#3c2140}
.chat-disclaimer{margin:0;padding:0 12px 10px;font-size:11px;color:var(--muted)}
@media (max-width:640px){
  .chat-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100vh;max-height:100vh;border-radius:0}
}
