/*
Theme Name: Marketplace Studio
Description: Original, responsive WordPress theme for local service directories.
Version: 2.9.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: marketplace-theme
*/

/* Fonts: FiraGO + Georgian caps come from assets/fonts/firago/webpixel-type.css (shared by all WebPixel products). */

:root,
html[data-theme="light"] {
    color-scheme: light;

    /* ——— Glowiget brand palette (change here only) ——— */
    --brand-primary: #1a6b4f;
    --brand-primary-deep: #14563f;
    --brand-primary-mid: #2a7d5c;
    --brand-primary-logo: #174f3c;
    --brand-primary-night: #0f3f2f;
    --brand-accent: #ed936f;
    --brand-accent-strong: #ee794e;
    --brand-ink: #171715;
    --brand-muted: #6f6c66;
    --brand-soft: #eef1ef;
    --brand-ground: #f4f4f2;
    --brand-surface: #ffffff;
    --brand-line: #dddcd7;
    --brand-dark: #000000;
    --brand-dark-card: #131212;
    --brand-dark-mute: #878686;
    --brand-dark-line: rgb(255 255 255 / 10%);

    /* Aliases used across the theme */
    --color-ink: var(--brand-ink);
    --color-muted: var(--brand-muted);
    --color-green: var(--brand-primary);
    --color-green-deep: var(--brand-primary-deep);
    --color-green-soft: var(--brand-soft);
    --color-orange: var(--brand-primary);
    --color-orange-hover: var(--brand-primary-deep);
    --color-ground: var(--brand-ground);
    --color-surface: var(--brand-surface);
    --color-cream: var(--brand-ground);
    --color-white: #fff;
    --color-line: var(--brand-line);

    --header-bg: rgb(255 255 255 / 88%);
    --header-bg-solid: #fff;
    --header-fg: #47564e;
    --header-fg-strong: var(--brand-ink);
    --header-border: var(--brand-line);

    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-body: var(--wp-font);
    --font-header: var(--wp-font);
    --radius-card: 22px;
    --radius-control: 12px;
    --radius-soft: 15px;
    --shell-max: 1200px;
    --shell-pad: 120px;
    --shell-pad-md: 80px;
    --shell-pad-sm: 32px;
    --shell-width: min(var(--shell-max), calc(100% - var(--shell-pad)));
    --shadow-card: 0 12px 28px rgb(23 23 21 / 8%);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --duration-fast: 160ms;
    --duration-ui: 200ms;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --color-ink: #f2f2f0;
    --color-muted: #a3a19b;
    --color-ground: #0a0a0a;
    --color-surface: #131212;
    --color-cream: #0a0a0a;
    --color-line: rgb(255 255 255 / 12%);
    --color-green-soft: #1a2e26;
    --shadow-card: 0 12px 28px rgb(0 0 0 / 35%);

    --header-bg: rgb(0 0 0 / 72%);
    --header-bg-solid: rgb(0 0 0 / 88%);
    --header-fg: #cfcfcf;
    --header-fg-strong: #fff;
    --header-border: rgb(255 255 255 / 10%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--color-ink);
    background: var(--color-ground);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.entry-title,
.catalog-heading h1,
.portal-intro h1,
.provider-profile-header .entry-title {
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

button,
input,
select,
textarea {
    font-size: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

.screen-reader-text {
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
    clip-path: inset(50%);
}

.skip-link {
    position: fixed;
    z-index: 10000;
    inset: 12px auto auto 12px;
    padding: 12px 18px;
    transform: translateY(-160%);
    border-radius: 9px;
    color: var(--color-white);
    background: var(--color-green-deep);
}

.skip-link:focus {
    transform: translateY(0);
    color: var(--color-white);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--header-border);
    background-color: var(--header-bg-solid);
    backdrop-filter: blur(14px);
    transition:
        border-color var(--duration-ui) var(--ease-out),
        background-color var(--duration-ui) var(--ease-out),
        box-shadow var(--duration-ui) var(--ease-out),
        color var(--duration-ui) var(--ease-out);
}

.site-header.is-scrolled {
    border-bottom-color: var(--header-border);
    background-color: var(--header-bg-solid);
    box-shadow: 0 10px 28px rgb(23 23 21 / 6%);
}

html[data-theme="dark"] .site-header.is-scrolled {
    box-shadow: 0 10px 28px rgb(0 0 0 / 35%);
}

/* Forced white chrome only over dark hero (home). Solid bars use theme --header-* */
.site-header[data-chrome="dark"] {
    --header-fg: #fff;
    --header-fg-strong: #fff;
    --header-border: rgb(255 255 255 / 22%);
}

.theme-toggle {
    transition:
        color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
}

.theme-toggle:hover {
    color: var(--brand-primary);
    border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--header-border));
}

.theme-toggle .theme-toggle-icon { display: none; line-height: 0; }
html[data-theme="light"] .theme-toggle .theme-toggle-icon--moon { display: block; }
html[data-theme="dark"] .theme-toggle .theme-toggle-icon--sun { display: block; }
.theme-toggle .marketplace-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.site-shell,
.footer-shell,
.page-shell,
.directory-shell {
    width: var(--shell-width);
    margin-inline: auto;
}

.header-main {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.header-main:has(.site-nav) .header-actions {
    margin-left: 0;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    margin: 0;
}

.site-nav a,
.site-nav a.site-nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 0;
    color: var(--header-fg) !important;
    background: transparent !important;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: var(--wp-caps-weight);
    letter-spacing: var(--wp-caps-tracking);
    font-feature-settings: "case" 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-out);
}

.site-nav a:hover,
.site-nav a.site-nav-contact:hover,
.site-nav .current-menu-item > a {
    color: var(--brand-primary) !important;
    background: transparent !important;
}

.site-nav-cta {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0 !important;
    border-radius: 10px;
    color: #fff !important;
    background: var(--brand-primary) !important;
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: var(--wp-caps-weight);
    letter-spacing: var(--wp-caps-tracking);
    font-feature-settings: "case" 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color var(--duration-fast) var(--ease-out);
}

.site-nav-cta:hover {
    color: #fff !important;
    background: var(--brand-primary-deep) !important;
}

.site-nav a.site-nav-contact:active {
    transform: none;
}

.theme-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--header-border);
    border-radius: 9px;
    color: var(--header-fg-strong);
    background: transparent;
    cursor: pointer;
}

/* Same chrome as theme-toggle */
.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--header-border);
    border-radius: 9px;
    color: var(--header-fg-strong);
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.menu-toggle-icon {
    display: block;
    width: 18px;
    height: 14px;
}

.site-nav-panel-actions,
.site-nav-close {
    display: none;
}

.site-nav-panel-content {
    display: contents;
}

/* Drawer-only links + CTA — hidden on desktop bar */
.site-nav .site-nav-cta--drawer,
.site-nav .site-nav-drawer-only {
    display: none;
}

.site-brand {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 11px;
}

.site-brand .custom-logo,
.site-brand .brand-logo {
    width: auto;
    max-width: 148px;
    max-height: 34px;
    object-fit: contain;
}

.site-brand .brand-logo--mark {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
}

.brand-logo {
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Logo pair — white on dark theme or dark hero chrome */
.site-brand .brand-logo.brand-logo--on-dark { display: none; }
.site-brand .brand-logo.brand-logo--on-light { display: block; }

html[data-theme="dark"] .site-brand .brand-logo.brand-logo--on-light,
.site-header[data-chrome="dark"] .site-brand .brand-logo.brand-logo--on-light {
    display: none;
}

html[data-theme="dark"] .site-brand .brand-logo.brand-logo--on-dark,
.site-header[data-chrome="dark"] .site-brand .brand-logo.brand-logo--on-dark {
    display: block;
}

.brand-logo--footer,
.brand-logo--app,
.brand-logo--nav {
    display: block;
}

.brand-logo--footer {
    max-width: 160px;
    max-height: 42px;
}

.brand-logo--app {
    max-width: 112px;
    max-height: 28px;
}

.site-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--color-white);
    background: var(--color-green);
}

.marketplace-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    flex: 0 0 auto;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.18em;
}

.site-mark .marketplace-icon {
    width: 25px;
    height: 25px;
}

.site-brand-name {
    max-width: 250px;
    overflow: hidden;
    color: var(--color-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-content--home {
    padding: 0;
}

.marketplace-home {
    overflow: hidden;
}

.home-hero-wrap {
    padding: 0;
    background: #f1eee7;
}

.home-hero {
    position: relative;
    display: grid;
    width: 100%;
    min-height: clamp(540px, 41vw, 660px);
    grid-template-columns: 1.04fr .96fr;
    align-items: center;
    overflow: hidden;
    color: var(--color-ink);
    background: #f1eee7;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 64px clamp(24px, 4vw, 64px) 66px max(32px, calc((100vw - 1280px) / 2));
}

.hero-copy h1 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(36px, 4.3vw, 54px);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.22;
}

.hero-copy h1 span {
    color: var(--color-green);
}

.hero-copy > p {
    max-width: 475px;
    margin: 16px 0 23px;
    color: #66736d;
    font-size: 15px;
    line-height: 1.85;
}

.search-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #52655a;
    font-size: 12px;
    font-weight: 650;
}

.search-location svg {
    color: var(--color-orange);
}

.gn-search-form {
    display: flex;
    width: min(530px, 100%);
    min-height: 62px;
    align-items: center;
    gap: 10px;
    padding: 6px 7px 6px 18px;
    border: 1px solid #dedfd8;
    border-radius: 6px;
    background: var(--color-white);
    box-shadow: none;
}

.gn-search-form:focus-within {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgb(23 79 60 / 12%);
}

.gn-search-form input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 4px 0;
    border: 0;
    outline: 0;
    color: var(--color-ink);
    background: transparent;
    font: inherit;
    font-size: 12px;
}

.gn-search-form input::placeholder {
    color: #959c95;
}

.gn-search-form button,
.gn-cta {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 7px;
    color: var(--color-white);
    background: var(--color-orange);
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--duration-fast) var(--ease-out);
}

.gn-search-form button:hover,
.gn-cta:hover {
    color: var(--color-white);
    background: var(--color-orange-hover);
}

.sample-tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 4px 8px;
    border-radius: 99px;
    color: #77705c;
    background: #f3efe5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .025em;
}

.home-proof {
    display: flex;
    min-height: 87px;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 7vw, 95px);
    border-bottom: 1px solid var(--color-line);
    background: var(--color-white);
}

.home-how {
    padding-top: 62px;
    padding-bottom: 10px;
}

.how-grid,
.business-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.how-card,
.business-benefits article {
    padding: 23px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-white);
}

.how-card > span {
    color: var(--color-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.how-card h3 {
    margin: 13px 0 8px;
    font-size: 16px;
}

.how-card p,
.business-benefits article span {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.8;
}

.proof-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #46554c;
    font-size: 12px;
    font-weight: 600;
}

.proof-item svg {
    color: var(--color-green);
}

.home-section {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 78px 0 20px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.section-heading h2 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(23px, 3.2vw, 34px);
    letter-spacing: -.05em;
    line-height: 1.4;
}

.section-heading > p {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.service-category {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    color: var(--color-ink);
    background: var(--color-white);
    box-shadow: 0 3px 10px rgb(32 49 44 / 2%);
}

.service-category:hover {
    color: var(--color-ink);
}

.category-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 10px;
    color: var(--color-green);
    background: var(--color-green-soft);
}

.category-icon .marketplace-icon {
    width: 22px;
    height: 22px;
}

.service-category > span:last-child {
    display: grid;
    gap: 1px;
}

.service-category strong {
    font-size: 11px;
    font-weight: 700;
}

.service-category small {
    color: var(--color-muted);
    font-size: 10px;
}

.home-featured {
    padding-bottom: 85px;
}

.home-results-section .gn-results:empty {
    display: none;
    margin: 0;
}

.home-hot-section .gn-hot-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 24px;
}

.home-hot-actions {
    display: flex;
    justify-content: center;
}

.home-hot-more-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 4px;
    color: var(--color-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-hot-more-link:hover {
    color: var(--color-green-deep);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-hot-more-link .marketplace-icon {
    width: 16px;
    height: 16px;
}

.featured-provider-grid,
.home-venue-grid,
.gc-favorites {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.featured-provider {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: var(--color-surface);
    color: var(--color-ink);
    text-decoration: none;
}

.featured-provider[hidden] {
    display: none !important;
}

.featured-provider:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--color-line));
    color: var(--color-ink);
}

.featured-provider--recommended .sample-tag {
    color: var(--brand-primary);
    background: transparent;
}

.featured-provider-photo {
    display: block;
    width: 132px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-green-soft);
}

.featured-provider-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-provider-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 0;
}

.featured-provider-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 12.5px;
}

.featured-provider-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.featured-provider-brand .provider-brandmark {
    display: none;
}

.featured-provider-brand > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-brandmark {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid currentColor;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}

.provider-brandmark--logo {
    border: none;
    background: transparent;
}

.provider-brandmark--logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.provider-brandmark--store {
    border: 1px solid var(--color-line);
    background: var(--color-green-soft);
    color: var(--color-green);
}

.provider-brandmark-store-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.provider-brandmark--profile .provider-brandmark-store-icon {
    width: 38px;
    height: 38px;
}

.provider-brandmark--result .provider-brandmark-store-icon {
    width: 20px;
    height: 20px;
}

.provider-brandmark--tone-1 {
    color: #426c59;
    background: #edf4ee;
}

.provider-brandmark--tone-2 {
    color: #9a5e4b;
    background: #fbefeb;
}

.provider-brandmark--tone-3 {
    color: #6a5d8b;
    background: #f1eef8;
}

.provider-brandmark--tone-4 {
    color: #9a783b;
    background: #f8f3e5;
}

.provider-brandmark--tone-5 {
    color: #426b7b;
    background: #eaf3f5;
}

.provider-brandmark--tone-6 {
    color: #765f54;
    background: #f4efeb;
}

.provider-brandmark--card {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 13px;
}

.provider-brandmark--profile {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    font-size: 23px;
}

.provider-brandmark-symbol {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 11px;
    height: 11px;
    padding: 1px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    opacity: .86;
}

.provider-brandmark--profile .provider-brandmark-symbol {
    right: 7px;
    bottom: 7px;
    width: 16px;
    height: 16px;
}

.featured-provider-city {
    color: var(--color-muted);
    font-size: inherit;
}

.featured-provider-city::before {
    content: "·";
    margin-right: 8px;
    color: var(--color-muted);
}

.featured-provider-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--color-ink);
    font-size: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.featured-provider .sample-tag {
    padding: 0;
    border-radius: 0;
    color: var(--color-muted);
    background: transparent;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0;
}

.featured-provider--recommended .sample-tag {
    color: var(--brand-primary);
}

.featured-provider-link {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--color-muted);
}

.featured-provider-link .marketplace-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 689px) {
    .featured-provider-grid,
    .home-venue-grid,
    .gc-favorites {
        grid-template-columns: 1fr;
    }

    .featured-provider {
        grid-template-columns: 100px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 8px 10px 8px 8px;
    }

    .featured-provider-photo {
        width: 100px;
    }
}

.directory-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 30px;
}

.show-more-providers,
.catalog-page-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid #d9e2dc;
    border-radius: 7px;
    color: var(--color-green);
    background: var(--color-white);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.show-more-providers:hover {
    border-color: var(--color-line);
    color: var(--color-green);
    background: var(--color-white);
}

.catalog-page-link {
    border-color: var(--color-green);
    color: var(--color-white);
    background: var(--color-green);
}

.catalog-page-link:hover {
    color: var(--color-white);
    background: var(--color-green);
}

.catalog-page {
    width: min(1180px, calc(100% - 64px));
    min-height: 60vh;
    margin: 0 auto;
    padding: 64px 0 96px;
}

.catalog-heading {
    max-width: 740px;
    margin-bottom: 28px;
}

.catalog-heading h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
}

.catalog-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.6;
}

.catalog-filter-form {
    display: grid;
    grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: none;
}

.catalog-filter-form label {
    display: grid;
    min-width: 0;
    gap: 8px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
}

.catalog-filter-form button {
    min-height: 48px;
    padding: 10px 22px;
    border: 0;
    border-radius: var(--radius-control);
    color: #fff;
    background: var(--brand-primary);
    font: inherit;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.catalog-filter-form button:hover {
    background: var(--brand-primary-deep);
}

.catalog-result-count {
    margin: 24px 0 0;
    color: var(--color-muted);
    font-size: 14px;
}

.catalog-results {
    margin-top: 14px;
}

.gn-app,
.gn-hot {
    color: var(--color-ink);
}

.gn-results,
.gn-hot-results,
.gn-booking-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    margin: 28px auto;
}

.gn-hot-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gn-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px auto 32px;
}

.gn-load-more-status {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
}

.gn-owner-booking-card[hidden],
.gn-booking-card[hidden] {
    display: none;
}

.gn-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: none;
}

.gn-card:hover {
    box-shadow: none;
}

.gn-offer-card {
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-card);
}

.gn-card-media-wrap {
    position: relative;
    width: 100%;
}

.gn-card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f1eee7;
}

.gn-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gn-card-category,
.gn-card-ad {
    position: absolute;
    top: 12px;
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.gn-card-category {
    left: 12px;
    color: #36453e;
    background: rgb(255 255 255 / 92%);
    font-size: 10px;
}

.gn-card-ad {
    right: 12px;
    color: #594719;
    background: #fff1c9;
}

.gn-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.gn-offer-card .gn-card-top {
    min-height: 20px;
}

.gn-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.gn-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.provider-brandmark--result {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 12px;
}

.gn-offer-card h3 a {
    color: var(--color-ink);
    text-decoration: none;
}

.gn-offer-card h3 a:hover {
    color: var(--color-green);
}

.gn-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
}

.gn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-green);
    font-size: 12px;
    font-weight: 750;
}

.gn-card > strong {
    color: var(--color-green);
    font-size: 19px;
}

.gn-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #765a19;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.gn-card-rating .marketplace-icon,
.featured-provider-rating .marketplace-icon {
    width: 14px;
    height: 14px;
    color: var(--brand-primary);
    fill: currentColor;
    stroke-width: 1.2;
}

.featured-provider-rating .marketplace-icon {
    width: 12px;
    height: 12px;
}

.gn-card .gn-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gn-card-location .marketplace-icon,
.gn-card-next .marketplace-icon,
.gn-card-price .marketplace-icon {
    color: var(--color-green);
}

.gn-card-next {
    display: grid;
    gap: 5px;
    margin-top: 3px;
    padding-top: 11px;
    border-top: 1px solid var(--color-line);
}

.gn-card-next > span,
.gn-card-price > span {
    color: var(--color-muted);
    font-size: 10px;
}

.gn-card-next > strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.gn-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 11px;
}

.gn-card-price > strong {
    color: var(--color-green);
    font-size: 20px;
    line-height: 1.2;
}

.gn-card-price > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gn-card .gn-card-profile {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--color-green);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.gn-card-profile .marketplace-icon {
    width: 16px;
    height: 16px;
}

.gn-card .gn-cta {
    min-height: 42px;
    margin-top: auto;
    background: var(--color-green);
}

.gn-card .gn-cta:hover {
    background: var(--color-green);
}

.gn-offer-card .gn-book-button,
.gn-offer-card .gn-other-slots {
    width: 100%;
}

.gn-offer-card .gn-book-button {
    color: var(--color-white);
    background: var(--color-green);
}

.gn-offer-card .gn-book-button:hover {
    color: var(--color-white);
    background: var(--color-green-deep);
}

/* Offer cards — variant A (home, offers page, catalog search results) */
.gn-offer-card {
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: var(--color-surface);
    color: var(--color-ink);
    box-shadow: none;
}

.gn-offer-card .gn-card-media {
    aspect-ratio: 16 / 10;
    background: var(--color-green-soft);
}

.gn-offer-card .gn-favorite-toggle {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: rgb(255 255 255 / 92%);
    color: var(--brand-ink);
    box-shadow: none;
}

.gn-offer-card .gn-favorite-toggle.is-favorite {
    color: var(--brand-primary);
    background: rgb(255 255 255 / 94%);
    border-color: transparent;
}

.gn-offer-card .gn-favorite-toggle.is-favorite .marketplace-icon {
    fill: currentColor;
}

.gn-offer-card .gn-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 18px;
}

.gn-offer-card .gn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 0;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 400;
}

.gn-offer-card .gn-card-cat {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gn-offer-card .gn-card-rating {
    color: var(--color-ink);
    font-size: 12px;
    font-weight: 600;
}

.gn-offer-card .gn-card-rating .marketplace-icon {
    width: 13px;
    height: 13px;
    color: var(--brand-primary);
    fill: currentColor;
    stroke-width: 1.2;
}

.gn-offer-card .gn-card-service {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.gn-offer-card .gn-card-salon {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.gn-offer-card .gn-card-salon > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gn-offer-card .gn-card-salon a {
    color: var(--color-ink);
    font-weight: 600;
    text-decoration: none;
}

.gn-offer-card .gn-card-salon a:hover {
    color: var(--brand-primary);
}

.gn-offer-card .gn-card-salon .provider-brandmark--result {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.gn-offer-card .gn-card-salon .provider-brandmark-store-icon {
    width: 12px;
    height: 12px;
}

.gn-offer-card .gn-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-line);
    font-size: 13px;
}

.gn-offer-card .gn-card-when {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-ink);
    font-weight: 600;
}

.gn-offer-card .gn-card-when .marketplace-icon {
    width: 14px;
    height: 14px;
    color: var(--color-muted);
}

.gn-offer-card .gn-card-price {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.gn-offer-card .gn-card-price strong {
    color: var(--color-ink);
    font-size: 16px;
    font-weight: 600;
}

.gn-offer-card .gn-book-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    border: 0;
    border-radius: 10px !important;
    color: #fff;
    background: var(--brand-primary);
    font-size: 14px;
    font-weight: 600;
}

.gn-offer-card .gn-book-button:hover {
    color: #fff;
    background: var(--brand-primary-deep);
}

.gn-offer-card .gn-other-slots {
    width: 100%;
    min-height: 36px;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
}

.gn-offer-card .gn-card-booking:empty {
    display: none;
}

.gn-hot-results,
.home-hot-section .gn-hot-results,
.catalog-results {
    gap: 20px;
}

.gn-ad {
    padding: 3px 8px;
    border-radius: 99px;
    color: #716748;
    background: #f5f0df;
    font-size: 9px;
}

.gn-loading,
.gn-empty,
.gn-error {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 9px;
    color: var(--color-muted);
    background: var(--color-white);
    font-size: 13px;
}

.gn-error {
    border-color: #f3d4d1;
    color: #942d2a;
    background: #fff7f5;
}

.gn-book-button,
.gn-other-slots,
.gn-confirm-booking,
.gn-cancel-booking,
.gn-register-form button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid var(--color-green);
    border-radius: 7px;
    color: var(--color-green);
    background: var(--color-white);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.gn-book-button,
.gn-confirm-booking {
    color: var(--color-white);
    background: var(--color-green);
}

.gn-book-button:hover,
.gn-confirm-booking:hover {
    color: var(--color-white);
    background: var(--color-green);
}

.gn-other-slots:hover,
.gn-cancel-booking:hover,
.gn-register-form button:hover {
    color: var(--color-green);
    background: var(--color-white);
    border-color: var(--color-green);
}

.gn-book-button:disabled,
.gn-confirm-booking:disabled,
.gn-cancel-booking:disabled {
    opacity: .6;
    cursor: wait;
}

.gn-card-booking,
.gn-card-booking label,
.gn-register-form,
.gn-register-form label {
    display: grid;
    gap: 10px;
}

.gn-card-booking label,
.gn-register-form label {
    gap: 5px;
    font-size: 12px;
    font-weight: 650;
}

.gn-booking-success {
    padding: 12px;
    border-radius: 8px;
    color: #23613a;
    background: #edf6ef;
    font-size: 12px;
}

.gn-account,
.gn-hot {
    width: min(1050px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0 90px;
}

.gn-account > h1,
.gn-hot > h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.045em;
    line-height: 1.35;
}

.gn-hot > p {
    color: var(--color-muted);
}

.gn-account-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gn-account .gn-card h2 {
    margin: 0;
    font-size: 19px;
}

.gn-register-form .gn-consent {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
}

.gn-account #loginform {
    display: grid;
    gap: 11px;
}

.gn-account .login-username,
.gn-account .login-password,
.gn-account .login-remember {
    margin: 0;
    font-size: 12px;
}

.gn-account .login-submit input {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    color: var(--color-white);
    background: var(--color-green);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.gn-account-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.gn-account-heading h1 {
    margin: 0;
}

.gn-account-link {
    color: var(--color-green);
    font-weight: 700;
}

.gn-account-notice {
    min-height: 1.5em;
}

.provider-profile-header {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 27px;
    border: 1px solid var(--color-line);
    border-radius: 13px;
    background: var(--color-cream);
}

.provider-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 10px;
    color: var(--color-green);
    background: var(--color-green-soft);
    font-size: 17px;
    font-weight: 800;
}

.featured-provider-photo--placeholder {
    display: grid;
    place-items: center;
}

.provider-profile-cover {
    width: 100%;
    max-height: 390px;
    aspect-ratio: 2.45 / 1;
    overflow: hidden;
    margin: 34px 0 20px;
    border-radius: 16px;
    background: var(--color-green-soft);
}

.provider-profile-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-avatar-large {
    width: 84px;
    height: 84px;
    font-size: 28px;
}

.provider-profile-header .entry-title {
    margin: 8px 0 2px;
    font-size: clamp(22px, 4vw, 34px);
    letter-spacing: -.04em;
}

.provider-profile-header p {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
}

.provider-description {
    max-width: 760px;
    margin-block: 25px 50px;
    color: #58665e;
}

.provider-services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.provider-services-header h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 29px);
}

.map-link {
    color: var(--color-green);
    font-size: 12px;
    font-weight: 700;
}

.provider-services {
    display: grid;
    gap: 12px;
}

.provider-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px 20px;
    padding: 19px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-soft);
    background: var(--color-surface);
}

.provider-service h3 {
    margin: 7px 0 2px;
    font-size: 15px;
}

.provider-service p {
    margin: 0;
    color: var(--color-muted);
    font-size: 11px;
}

.provider-service-action {
    display: grid;
    justify-items: end;
    gap: 9px;
}

.provider-service-action strong {
    font-size: 18px;
}

.provider-service .gn-card-booking {
    grid-column: 1 / -1;
}

.page-shell {
    width: min(1180px, calc(100% - 64px));
    min-height: 60vh;
    margin: 0 auto;
    padding-block: 64px 96px;
}

.page-shell--portal {
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-shell.page-shell--portal {
    width: 100%;
}

.page-shell--portal .entry-content {
    width: 100%;
    max-width: none;
}

.page-shell--portal-auth {
    display: grid;
    min-height: calc(100vh - 121px);
    min-height: calc(100svh - 121px);
    align-items: center;
    background: var(--color-ground);
}

.page-shell--portal-auth .entry-content {
    display: grid;
    place-items: center;
    padding: 24px;
}

.page-shell .entry-header {
    margin-bottom: 28px;
}

.page-shell .entry-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
}

.entry-content {
    max-width: 790px;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p,
.entry-content li {
    color: #53635a;
    line-height: 1.9;
}

.directory-shell {
    min-height: 55vh;
    padding-block: 48px 80px;
}

.post-card {
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: 11px;
    background: var(--color-white);
}

.post-card h2 {
    margin-top: 0;
    font-size: 19px;
}

.post-card p {
    color: var(--color-muted);
}

/* Footer — Smart Home layout, theme-aware (no CTA band) */
.site-footer {
    color: var(--color-muted);
    background: #fff;
    border-top: 1px solid var(--color-line);
}

html[data-theme="dark"] .site-footer {
    background: #131212;
    border-top-color: rgb(255 255 255 / 10%);
}

.footer-top {
    border-bottom: 1px solid var(--color-line);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 40px 32px;
    padding: 64px 0 56px;
}

.footer-intro {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-brand .brand-logo {
    display: block;
    max-width: 156px;
    max-height: 44px;
    width: auto;
    height: auto;
}

.footer-brand .brand-logo--on-dark { display: none; }
.footer-brand .brand-logo--on-light { display: block; }

html[data-theme="dark"] .footer-brand .brand-logo--on-light { display: none; }
html[data-theme="dark"] .footer-brand .brand-logo--on-dark { display: block; }

.footer-intro > p,
.footer-social-col > p {
    max-width: 34ch;
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.65;
}

.footer-column {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 12px;
}

.footer-column h2 {
    margin: 0 0 10px;
    color: var(--color-ink);
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-link {
    position: relative;
    padding-left: 14px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
}

.footer-link::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 700;
}

.footer-link:hover,
.footer-legal a:hover,
.footer-contact-list a:hover {
    color: var(--brand-primary);
}

.footer-contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.45;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
}

.footer-contact-list .marketplace-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--brand-primary);
}

.footer-app-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
}

.footer-app-badge {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    box-sizing: border-box;
    width: auto;
    min-width: 132px;
    height: 40px;
    padding: 5px 10px;
    border: 1px solid rgb(255 255 255 / 88%);
    border-radius: 6px;
    color: #fff;
    background: #000;
    text-decoration: none;
}

.footer-app-badge:hover {
    color: #fff;
    background: #000;
}

.footer-app-badge-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.footer-app-store-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.footer-app-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background-color: #fff;
}

.footer-app-icon--apple {
    -webkit-mask: url("assets/app-store.svg") center / contain no-repeat;
    mask: url("assets/app-store.svg") center / contain no-repeat;
}

.footer-app-badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 0;
    line-height: 1;
}

.footer-app-badge-sub {
    display: block;
    color: #fff;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: nowrap;
}

.footer-app-badge-sub--caps {
    letter-spacing: var(--wp-caps-tracking);
    text-transform: uppercase;
    font-feature-settings: "case" 1;
    font-weight: var(--wp-caps-weight);
}

.footer-app-badge-title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.footer-app-badge--soon {
    cursor: default;
    opacity: 0.92;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.footer-social-links a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--brand-primary);
    border: 0;
}

.footer-social-links a:hover {
    color: #fff;
    background: var(--brand-primary);
}

.footer-social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    color: var(--color-muted);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.6;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-legal a {
    color: var(--color-muted);
    font-size: 13px;
    text-decoration: none;
}

@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
        padding: 48px 0 40px;
    }
}

@media (max-width: 760px) {
    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 36px 0 28px;
    }

    .footer-intro,
    .footer-column {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-block: 18px 22px;
    }
}

.no-results {
    max-width: 650px;
    padding: 32px;
    border: 1px solid var(--color-line);
    border-radius: 11px;
}

.no-results h2 {
    margin-top: 0;
    font-size: 21px;
}

.no-results p {
    color: var(--color-muted);
}

.portal-page {
    width: min(580px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 90px;
}

.portal-page--login {
    width: min(480px, 100%);
    margin: 0;
    padding: 38px 0;
}

.portal-page--login .portal-intro {
    margin-bottom: 24px;
    text-align: center;
}

.portal-page--login .portal-intro h1 {
    font-size: clamp(27px, 4vw, 35px);
}

.portal-page--login .portal-intro > p:last-child {
    margin-top: 10px;
}

.portal-intro {
    margin-bottom: 26px;
}

.portal-intro h1,
.business-landing h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.25;
}

.portal-intro > p:last-child,
.business-landing > p {
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}

.portal-panel {
    padding: clamp(22px, 5vw, 32px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: none;
}

.portal-panel #loginform,
.portal-panel .gn-register-form {
    display: grid;
    gap: 15px;
}

.portal-panel #loginform label,
.portal-panel .gn-register-form label {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
}

.portal-panel #loginform .login-remember label,
.portal-panel .gn-register-form .gn-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 400;
}

.portal-panel #loginform .login-submit {
    margin: 4px 0 0;
}

.portal-panel #loginform .login-submit input,
.portal-panel .gn-register-form button,
.portal-primary-link {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius-control);
    color: #fff;
    background: var(--brand-primary);
    font: inherit;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.portal-panel #loginform .login-submit input:hover,
.portal-panel .gn-register-form button:hover,
.portal-primary-link:hover {
    color: #fff;
    background: var(--brand-primary-deep);
}

.portal-message {
    padding: 12px 14px;
    border-radius: 8px;
    color: #28523b;
    background: #eef5ef;
    font-size: 12px;
}

.portal-message--error {
    color: #8b2d2b;
    background: #fff1ef;
}

.portal-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 11px;
}

.portal-switch--register {
    justify-content: center;
    margin-top: 18px;
    text-align: center;
}

.portal-switch--account-type {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #eeeee8;
    text-align: center;
}

.portal-switch--account-type > span {
    color: #536159;
    font-size: 12px;
}

.portal-switch--account-type a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    border: 1px solid #dce5de;
    border-radius: 7px;
    color: var(--color-green);
    background: #fbfcfa;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease;
}

.portal-switch--account-type a:hover {
    border-color: var(--color-green);
    background: var(--color-green-soft);
}

.portal-switch--account-type a:focus-visible {
    outline: 3px solid rgb(23 79 60 / 22%);
    outline-offset: 3px;
}

.portal-switch a {
    color: var(--color-green);
    font-weight: 700;
}

.business-landing {
    width: min(1050px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 90px;
}

.business-landing > p {
    max-width: 710px;
    margin-bottom: 28px;
}

.business-benefits article {
    display: grid;
    gap: 8px;
    align-content: start;
}

.business-benefits article strong {
    font-size: 14px;
}

.business-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.business-actions .portal-primary-link,
.portal-secondary-link {
    width: auto;
    min-width: 220px;
    text-align: center;
    text-decoration: none;
}

.portal-secondary-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--color-green);
    border-radius: 8px;
    color: var(--color-green);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 999px) {
    :root,
    html[data-theme="light"],
    html[data-theme="dark"] {
        --shell-pad: var(--shell-pad-md);
    }
}

@media (max-width: 980px) {
    .site-shell,
    .footer-shell,
    .page-shell,
    .directory-shell {
        width: min(100% - 40px, 800px);
    }

    .home-hero-wrap {
        padding-inline: 0;
    }

    .home-hero {
        min-height: 520px;
        grid-template-columns: 1.08fr .92fr;
    }

    .hero-copy {
        padding-left: max(32px, calc((100vw - 900px) / 2));
    }

    .service-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .featured-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter-query {
        grid-column: 1 / -1;
    }
}

/* Header collapse: ≤999 — logo + icons + burger */
@media (max-width: 999px) {
    .header-main {
        position: relative;
        min-height: 60px;
        gap: 12px;
    }

    .menu-toggle {
        display: grid;
    }

    .header-actions {
        margin-left: auto;
        gap: 12px;
        align-items: center;
    }

    /* Mobile bar: logo + burger only */
    .header-actions .site-nav-fav,
    .header-actions .theme-toggle,
    .header-actions .site-nav-cta--bar {
        display: none;
    }

    /* Full-screen offcanvas (Blocksy-like modal) */
    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 0;
        border: 0;
        background: #fff;
        box-shadow: none;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    html[data-theme="dark"] .site-nav {
        background: #0a0a0a;
    }

    .site-nav.is-open {
        display: flex;
    }

    body.nav-drawer-open {
        overflow: hidden;
    }

    .site-nav-panel-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        box-sizing: border-box;
        min-height: 32px;
        padding: 18px 22px 0;
    }

    .site-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        margin: 0;
        padding: 10px;
        border: 0;
        border-radius: 0;
        color: var(--header-fg-strong);
        background: transparent;
        cursor: pointer;
        line-height: 0;
    }

    html[data-theme="dark"] .site-nav-close {
        color: #fff;
    }

    .site-nav-close-icon {
        display: block;
        width: 12px;
        height: 12px;
    }

    .site-nav-panel-content {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        padding: 12px 24px 48px;
    }

    .site-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .site-nav li {
        margin: 0;
        padding: 0;
        border: 0;
        width: 100%;
    }

    .site-nav a,
    .site-nav a.site-nav-contact,
    .site-nav a.site-nav-extra {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        min-height: 52px;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
        padding: 14px 0;
        border: 0 !important;
        border-bottom: 1px solid var(--header-border) !important;
        border-radius: 0;
        color: var(--header-fg-strong) !important;
        background: transparent !important;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -0.01em;
        line-height: 1.3;
        text-align: left;
        text-transform: none;
    }

    html[data-theme="dark"] .site-nav a,
    html[data-theme="dark"] .site-nav a.site-nav-contact,
    html[data-theme="dark"] .site-nav a.site-nav-extra {
        color: #fff !important;
        border-bottom-color: rgb(255 255 255 / 12%) !important;
    }

    .site-nav a:hover,
    .site-nav a.site-nav-contact:hover,
    .site-nav a.site-nav-extra:hover,
    .site-nav .current-menu-item > a {
        color: var(--brand-primary) !important;
        background: transparent !important;
        opacity: 1;
    }

    .site-nav .site-nav-drawer-only {
        display: flex;
    }

    .site-nav .site-nav-extra:last-of-type {
        border-bottom: 0 !important;
    }

    .site-nav .site-nav-cta--drawer {
        display: flex;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin-top: 28px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        padding: 0 22px;
        border: 0 !important;
        border-bottom: 0 !important;
        border-radius: 12px;
        color: #fff !important;
        background: var(--brand-primary) !important;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-align: center;
        text-transform: none;
    }

    .site-nav .site-nav-cta--drawer:hover {
        color: #fff !important;
        background: var(--brand-primary-deep) !important;
    }

    /* Dark drawer: white button, dark text */
    html[data-theme="dark"] .site-nav .site-nav-cta--drawer {
        color: #131212 !important;
        background: #fff !important;
    }

    html[data-theme="dark"] .site-nav .site-nav-cta--drawer:hover {
        color: #131212 !important;
        background: #f2f2f0 !important;
    }

    .site-brand-name {
        max-width: 220px;
        font-size: 17px;
    }
}

@media (max-width: 760px) {
    .site-shell,
    .footer-shell,
    .page-shell,
    .directory-shell {
        width: calc(100% - 36px);
    }

    .home-hero-wrap {
        padding: 0;
    }

    .home-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 42px 20px 32px;
    }

    .hero-copy h1 {
        max-width: 480px;
        font-size: clamp(34px, 9vw, 48px);
    }

    .hero-copy > p {
        max-width: 420px;
        font-size: 13px;
    }

    .home-proof {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 13px 22px;
        padding: 17px 20px;
    }

    .proof-item {
        font-size: 10px;
    }

    .proof-item svg {
        width: 16px;
    }

    .home-section {
        width: calc(100% - 36px);
        padding-top: 53px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 8px;
    }

    .service-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .how-grid,
    .business-benefits {
        grid-template-columns: 1fr;
    }

    .how-card,
    .business-benefits article {
        padding: 18px;
    }

    .service-category {
        min-height: 74px;
        gap: 9px;
        padding: 10px;
    }

    .category-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .category-icon svg {
        width: 19px;
    }

    .service-category strong {
        font-size: 10px;
    }

    .service-category small {
        font-size: 9px;
    }

    .featured-provider-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .catalog-page {
        width: calc(100% - 36px);
        padding-block: 42px 64px;
    }

    .catalog-filter-form {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .catalog-filter-query {
        grid-column: auto;
    }

    .catalog-filter-form button {
        width: 100%;
    }

    .directory-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .show-more-providers,
    .catalog-page-link {
        width: 100%;
    }

    .featured-provider {
        min-height: 84px;
    }

    .home-featured {
        padding-bottom: 55px;
    }

    .gn-account,
    .gn-hot {
        width: calc(100% - 36px);
        padding-block: 44px 60px;
    }

    .portal-page {
        width: min(580px, calc(100% - 40px));
        margin: 0 auto;
        padding: 72px 0 90px;
    }

    .portal-page--login {
        width: 100%;
        margin: 0;
        padding-block: 32px;
    }

    .page-shell--portal-auth .entry-content {
        padding: 18px;
    }

    .portal-intro {
        margin-bottom: 26px;
    }

    .portal-intro h1,
    .business-landing h1 {
        margin: 0;
        font-size: clamp(28px, 5vw, 40px);
        letter-spacing: -.045em;
        line-height: 1.35;
    }

    .portal-intro > p:last-child,
    .business-landing > p {
        margin: 12px 0 0;
        color: var(--color-muted);
        font-size: 14px;
        line-height: 1.85;
    }

    .portal-panel {
        padding: clamp(22px, 5vw, 34px);
        border: 1px solid var(--color-line);
        border-radius: 15px;
        background: var(--color-white);
        box-shadow: 0 12px 34px rgb(32 49 44 / 5%);
    }

    .portal-panel #loginform {
        display: grid;
        gap: 12px;
    }

    .portal-panel #loginform label,
    .portal-panel .gn-register-form label {
        color: #3c4a43;
        font-size: 12px;
        font-weight: 650;
    }

    .portal-panel #loginform .login-remember label,
    .portal-panel .gn-register-form .gn-consent {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        color: var(--color-muted);
        font-size: 11px;
        font-weight: 400;
    }

    .portal-panel #loginform .login-submit {
        margin: 4px 0 0;
    }

    .portal-panel #loginform .login-submit input,
    .portal-panel .gn-register-form button,
    .portal-primary-link {
        display: inline-flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 10px 18px;
        border: 0;
        border-radius: 8px;
        color: var(--color-white);
        background: var(--color-green);
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .portal-panel #loginform .login-submit input:hover,
    .portal-panel .gn-register-form button:hover,
    .portal-primary-link:hover {
        color: var(--color-white);
        background: var(--color-green);
    }

    .portal-panel .gn-register-form {
        gap: 15px;
    }

    .portal-message {
        padding: 12px 14px;
        border-radius: 8px;
        color: #28523b;
        background: #eef5ef;
        font-size: 12px;
    }

    .portal-message--error {
        color: #8b2d2b;
        background: #fff1ef;
    }

    .portal-switch {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 18px;
        color: var(--color-muted);
        font-size: 11px;
    }

    .portal-switch a {
        color: var(--color-green);
        font-weight: 700;
    }

    .business-landing {
        width: min(1050px, calc(100% - 48px));
        margin: 0 auto;
        padding: 72px 0 90px;
    }

    .business-landing > p {
        max-width: 710px;
        margin-bottom: 28px;
    }

    .business-benefits article {
        display: grid;
        gap: 8px;
        align-content: start;
    }

    .business-benefits article strong {
        font-size: 14px;
    }

    .business-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 26px;
    }

    .business-actions .portal-primary-link,
    .portal-secondary-link {
        width: auto;
        min-width: 220px;
        text-align: center;
        text-decoration: none;
    }

    .portal-secondary-link {
        display: inline-flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 10px 18px;
        border: 1px solid var(--color-green);
        border-radius: 8px;
        color: var(--color-green);
        font-size: 13px;
        font-weight: 700;
    }

    .gn-account-columns {
        grid-template-columns: 1fr;
    }

    .provider-profile-header {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 13px;
        padding: 17px;
    }

    .provider-avatar-large {
        width: 58px;
        height: 58px;
    }

    .provider-service {
        grid-template-columns: 1fr;
    }

    .provider-service-action {
        justify-items: start;
    }
}

@media (max-width: 390px) {
    .site-brand-name {
        max-width: 190px;
    }

    .hero-copy {
        padding-inline: 18px;
    }

    .gn-search-form {
        gap: 5px;
        padding-left: 11px;
    }

    .gn-search-form input {
        font-size: 10px;
    }

    .gn-search-form button {
        padding-inline: 12px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.section-heading > p,
.catalog-result-count,
.featured-provider-city,
.featured-provider-rating,
.featured-provider-link,
.search-location,
.map-link,
.gn-card .gn-card-profile,
.provider-profile-header p,
.provider-service p,
.gn-card p,
.gn-card-top,
.gn-card-rating,
.gn-card-next > strong,
.gn-card-profile,
.gn-loading,
.gn-empty,
.gn-error,
.portal-panel #loginform .login-remember label,
.portal-panel .gn-register-form .gn-consent,
.portal-message,
.portal-switch,
.portal-switch--account-type > span,
.portal-switch--account-type a,
.portal-secondary-link,

.search-location,
.proof-item,
.service-category small,
.catalog-filter-form label,
.catalog-filter-form button,
.gn-card-next > span,
.gn-card-price > span,
.gn-book-button,
.gn-other-slots,
.gn-confirm-booking,
.gn-cancel-booking,
.gn-register-form button,
.gn-card-booking label,
.gn-register-form label,
.gn-booking-success,
.provider-service h3,
.provider-service-action strong,
.portal-panel #loginform label,
.portal-panel .gn-register-form label,
.portal-panel #loginform .login-submit input,
.portal-panel .gn-register-form button,
.portal-primary-link,
.footer-bottom,
.footer-legal a {
    font-size: var(--font-size-sm);
}

.hero-copy > p,
.gn-search-form input,
.gn-search-form button,
.gn-cta,
.how-card p,
.business-benefits article span,
.service-category strong,
.show-more-providers,
.catalog-page-link,
.gn-card h3,
.portal-intro > p:last-child,
.business-landing > p {
    font-size: var(--font-size-base);
}

.service-category small,
.sample-tag,
.gn-card-category,
.gn-card-ad,
.gn-ad {
    font-size: 10px;
}

.gn-card-price > strong {
    font-size: 22px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-copy > p {
    margin-inline: auto;
}

.gn-search-form {
    margin-inline: auto;
}

.catalog-filter-form label {
    font-size: 12px;
}

.home-hero {
    min-height: clamp(500px, 38vw, 600px);
    grid-template-columns: 1fr;
    justify-items: center;
}

.hero-copy {
    width: min(100%, 980px);
    grid-column: 1 / -1;
    align-items: center;
    margin-inline: auto;
    padding: clamp(54px, 6vw, 86px) 24px;
}

.hero-copy h1 {
    max-width: 860px;
}

.hero-copy > p {
    max-width: 650px;
}

.search-location {
    justify-content: center;
    text-align: center;
}

.gn-search-form {
    width: min(680px, 100%);
}

@media (max-width: 760px) {
    .home-hero {
        min-height: 540px;
    }

    .hero-copy {
        padding: 64px 20px;
    }

    .gn-search-form {
        width: min(100%, 620px);
    }
}

@media (max-width: 390px) {
    .hero-copy {
        padding-inline: 18px;
    }

    .gn-search-form input {
        font-size: 12px;
    }

    .gn-search-form button {
        font-size: 11px;
    }
}

.provider-profile {
    padding-top: 32px;
}

.provider-profile-cover {
    position: relative;
    max-height: 440px;
    aspect-ratio: 2.45 / 1;
    margin: 0 0 22px;
    border-radius: 24px;
    background: #e8eee8;
}

.provider-profile-cover::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgb(20 36 29 / 34%), transparent);
    content: "";
    pointer-events: none;
}

.provider-profile-image-label {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 99px;
    color: #fff;
    background: rgb(24 42 34 / 62%);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.provider-profile-image-label .marketplace-icon {
    width: 16px;
    height: 16px;
}

.provider-profile-header {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 22px;
    padding: 28px 30px;
    border-color: var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: none;
}

.provider-profile-heading {
    min-width: 0;
}

.provider-profile-header .entry-title {
    margin: 4px 0 12px;
    color: var(--color-ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.provider-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 20px;
    color: #59675f;
    font-size: 13px;
}

.provider-profile-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.provider-profile-meta .marketplace-icon {
    width: 17px;
    height: 17px;
    color: var(--color-green);
}

.provider-profile-meta .provider-profile-rating .marketplace-icon {
    color: #bd8b39;
}

.provider-profile-rating {
    color: #5f4820;
    font-weight: 800;
}

.provider-profile-rating span {
    color: #707970;
    font-weight: 500;
}

.provider-profile-primary-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 10px;
    color: #fff;
    background: var(--color-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease;
}

.provider-profile-primary-link:hover {
    color: #fff;
    background: var(--color-green);
}

.provider-profile-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0 42px;
    overflow: hidden;
    border: 1px solid #e8e9e3;
    border-radius: 16px;
    background: #fff;
}

.provider-profile-highlight {
    display: flex;
    min-height: 90px;
    align-items: center;
    gap: 13px;
    padding: 16px 22px;
}

.provider-profile-highlight + .provider-profile-highlight {
    border-left: 1px solid #eceee9;
}

.provider-profile-highlight-icon,
.provider-profile-card-icon,
.provider-service-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--color-green);
    background: #edf2ec;
}

.provider-profile-highlight-icon {
    width: 42px;
    height: 42px;
}

.provider-profile-highlight-icon .marketplace-icon {
    width: 19px;
    height: 19px;
}

.provider-profile-highlight strong,
.provider-profile-highlight small {
    display: block;
}

.provider-profile-highlight strong {
    color: var(--color-ink);
    font-size: 17px;
}

.provider-profile-highlight small {
    margin-top: 2px;
    color: var(--color-muted);
    font-size: 12px;
}

.provider-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 34px;
}

.provider-profile-main {
    min-width: 0;
}

.provider-profile-about {
    margin-bottom: 42px;
}

.provider-profile-about h2,
.provider-profile-card h2 {
    margin: 0;
    color: var(--color-ink);
}

.provider-profile-about h2 {
    font-size: clamp(23px, 3vw, 30px);
}

.provider-profile-about .provider-description {
    max-width: 720px;
    margin: 12px 0 0;
    color: #647068;
    font-size: 15px;
    line-height: 1.85;
}

.provider-profile-about .provider-description p {
    margin: 0;
}

.provider-profile-services .provider-services-header {
    align-items: flex-end;
    margin-bottom: 20px;
}

.provider-profile-services .provider-services-header h2 {
    color: var(--color-ink);
    font-size: clamp(23px, 3vw, 30px);
}

.provider-services-intro {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.provider-profile-services .map-link {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #e2e8e1;
    border-radius: 9px;
    background: #fff;
    font-size: 12px;
    text-decoration: none;
}

.provider-profile-services .map-link .marketplace-icon {
    width: 16px;
    height: 16px;
}

.provider-profile-services .provider-services {
    gap: 12px;
}

.provider-profile-services .provider-service {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 20px;
    border-color: #e8eae5;
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.provider-profile-services .provider-service:hover {
    border-color: var(--color-line);
}

.provider-service-icon {
    width: 42px;
    height: 42px;
}

.provider-service-icon .marketplace-icon {
    width: 18px;
    height: 18px;
}

.provider-service-details {
    min-width: 0;
}

.provider-profile-services .provider-service h3 {
    margin: 0 0 5px;
    color: var(--color-ink);
    font-size: 15px;
}

.provider-profile-services .provider-service-details > p {
    margin: 0 0 8px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.55;
}

.provider-service-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #69756d;
    font-size: 11px;
}

.provider-service-duration .marketplace-icon {
    width: 14px;
    height: 14px;
}

.provider-profile-services .provider-service-action {
    align-content: center;
    justify-items: end;
    gap: 8px;
}

.provider-profile-services .provider-service-action strong {
    color: var(--color-ink);
    font-size: 19px;
}

.provider-profile-services .provider-service-action .gn-other-slots {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 12px;
}

.provider-profile-services .provider-service .gn-card-booking {
    grid-column: 1 / -1;
}

.provider-profile-sidebar {
    display: grid;
    gap: 16px;
}

.provider-profile-card {
    padding: 21px;
    border: 1px solid #e7e9e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(32 49 44 / 4%);
}

.provider-profile-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.provider-profile-card-icon {
    width: 42px;
    height: 42px;
}

.provider-profile-card-icon .marketplace-icon {
    width: 19px;
    height: 19px;
}

.provider-profile-card h2 {
    font-size: 17px;
}

.provider-hours-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.provider-hours-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eff0ec;
    color: #3e4c44;
    font-size: 12px;
}

.provider-hours-list > div:last-child {
    border-bottom: 0;
}

.provider-hours-list dt,
.provider-hours-list dd {
    margin: 0;
}

.provider-hours-list dd {
    font-weight: 700;
}

.provider-hours-list .is-closed,
.provider-hours-list .is-closed dd {
    color: #929a93;
}

.provider-hours-note {
    margin: 12px 0 0;
    padding: 10px 11px;
    border-radius: 8px;
    color: #607066;
    background: #f3f6f2;
    font-size: 11px;
    line-height: 1.55;
}

.provider-profile-card > p {
    margin: 0;
    color: #69756d;
    font-size: 12px;
    line-height: 1.65;
}

.provider-profile-card .provider-sidebar-empty {
    color: var(--color-muted);
}

.provider-location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--color-green);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .gn-hot-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hot-section .gn-hot-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .provider-profile-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 22px;
    }

    .provider-profile-header {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .provider-brandmark--profile {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }

    .provider-profile-primary-link {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .provider-profile {
        padding-top: 20px;
    }

    .provider-profile-cover {
        aspect-ratio: 1.7 / 1;
        border-radius: 16px;
    }

    .provider-profile-header {
        gap: 14px;
        padding: 20px;
        border-radius: 15px;
    }

    .provider-brandmark--profile {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 22px;
    }

    .provider-profile-header .entry-title {
        font-size: clamp(24px, 6vw, 34px);
    }

    .provider-profile-meta {
        gap: 8px 12px;
        font-size: 11px;
    }

    .provider-profile-highlights {
        margin: 14px 0 30px;
    }

    .provider-profile-highlight {
        min-height: 76px;
        gap: 8px;
        padding: 12px 10px;
    }

    .provider-profile-highlight-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .provider-profile-highlight-icon .marketplace-icon {
        width: 16px;
        height: 16px;
    }

    .provider-profile-highlight strong {
        font-size: 14px;
    }

    .provider-profile-highlight small {
        font-size: 10px;
        line-height: 1.35;
    }

    .provider-profile-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .provider-profile-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .gn-hot-results {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hot-section .gn-hot-results {
        grid-template-columns: minmax(0, 1fr);
    }

    .provider-profile-image-label {
        right: 10px;
        bottom: 10px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .provider-profile-header {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 16px;
    }

    .provider-brandmark--profile {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 19px;
    }

    .provider-profile-primary-link {
        min-height: 42px;
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .provider-profile-meta > span {
        gap: 4px;
    }

    .provider-profile-services .provider-services-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .provider-profile-services .provider-service {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 15px;
    }

    .provider-service-icon {
        width: 36px;
        height: 36px;
    }

    .provider-profile-services .provider-service-action {
        grid-column: 2;
        justify-items: start;
    }

    .provider-profile-services .provider-service-action strong {
        font-size: 17px;
    }

    .provider-profile-services .provider-service .gn-card-booking {
        grid-column: 1 / -1;
    }

    .provider-profile-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Modern Marketplace UI & Interactive Enhancements
   ========================================================================== */

/* Favorites / Wishlist */
.site-nav-fav {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    min-height: 38px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--header-border);
    border-radius: 9px;
    color: var(--header-fg-strong);
    background: transparent;
    transition:
        color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
}

.site-nav-fav:hover {
    color: var(--brand-primary);
    border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--header-border));
    background: transparent;
}

.site-nav-fav .marketplace-icon {
    width: 18px;
    height: 18px;
}

.header-fav-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--color-orange);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

.provider-profile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gn-favorite-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: var(--color-muted);
    cursor: pointer;
    box-shadow: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.provider-profile-title-row .gn-favorite-toggle {
    position: static;
    border: 1px solid var(--color-line);
}

.gn-favorite-toggle:hover {
    color: var(--color-muted);
}

.gn-favorite-toggle.is-favorite {
    color: var(--color-orange);
    background: #fff5f0;
    border-color: var(--color-orange);
}

.gn-favorite-toggle.is-favorite .marketplace-icon {
    fill: var(--color-orange);
}

.gn-favorite-toggle .marketplace-icon {
    width: 17px;
    height: 17px;
}

/* Skeleton Loaders */
.gn-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    margin: 28px auto;
}

.gn-skeleton-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-white);
}

.gn-skeleton-media {
    aspect-ratio: 3 / 2;
    background: linear-gradient(90deg, #f0ede6 25%, #f9f7f2 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: gn-shimmer 1.5s infinite;
}

.gn-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.gn-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0ede6 25%, #f9f7f2 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: gn-shimmer 1.5s infinite;
}

.gn-skeleton-line--tag {
    width: 35%;
    height: 12px;
}

.gn-skeleton-line--title {
    width: 75%;
    height: 18px;
}

.gn-skeleton-line--meta {
    width: 50%;
}

.gn-skeleton-btn {
    height: 40px;
    margin-top: 6px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0ede6 25%, #f9f7f2 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: gn-shimmer 1.5s infinite;
}

@keyframes gn-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Interactive Slot Picker */
.gn-slot-picker {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    margin-top: 10px;
    border-radius: 10px;
    background: var(--color-cream);
    border: 1px solid var(--color-line);
    animation: gnFadeIn var(--duration-ui) var(--ease-out);
}

@keyframes gnFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.gn-slot-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green-deep);
}

.gn-slot-picker-head .marketplace-icon {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
}

.gn-slot-picker-total {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-muted);
}

.gn-date-tabs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gn-date-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 72px;
    padding: 8px 10px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-ink);
    cursor: pointer;
    transition:
        border-color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
    font-size: 12px;
}

.gn-date-tab-day {
    font-size: 11px;
    font-weight: 750;
    color: var(--color-green);
}

.gn-date-tab-date {
    font-size: 11px;
    color: var(--color-muted);
}

.gn-date-tab:hover {
    border-color: var(--color-green);
    background: var(--color-green-soft);
}

.gn-date-tab.is-active {
    border-color: var(--color-green);
    background: var(--color-green);
    color: var(--color-white);
}

.gn-date-tab.is-active .gn-date-tab-day,
.gn-date-tab.is-active .gn-date-tab-date {
    color: var(--color-white);
}

.gn-time-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding: 2px;
}

.gn-time-chip {
    padding: 8px 10px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition:
        border-color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.gn-time-chip:hover {
    border-color: var(--color-orange);
    color: var(--color-ink);
    background: #fff4ef;
}

.gn-time-chip.is-selected {
    border-color: var(--color-orange);
    background: var(--color-orange);
    color: var(--color-white);
}

.gn-slot-picker-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-line);
}

.gn-selected-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.gn-selected-summary small {
    color: var(--color-muted);
    font-size: 11px;
}

.gn-selected-summary strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-green-deep);
    font-size: 13px;
}

.gn-selected-summary .marketplace-icon {
    width: 14px;
    height: 14px;
    color: var(--color-green);
}

.gn-confirm-booking-btn {
    min-height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 7px;
    background: var(--color-green);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gn-confirm-booking-btn:hover:not(:disabled) {
    background: var(--color-green);
}

.gn-confirm-booking-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Auth prompt box */
.gn-booking-auth-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 9px;
    background: #fbfaf6;
    border: 1px solid #ebd9c8;
    text-align: center;
    animation: gnFadeIn var(--duration-ui) var(--ease-out);
}

.gn-auth-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #8c531b;
}

.gn-auth-title .marketplace-icon {
    width: 17px;
    height: 17px;
}

.gn-auth-desc {
    margin: 0;
    font-size: 12px;
    color: var(--color-muted);
}

.gn-auth-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.gn-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.gn-auth-btn--login {
    background: var(--color-green);
    color: var(--color-white) !important;
}

.gn-auth-btn--login:hover {
    background: var(--color-green-deep);
}

.gn-auth-btn--register {
    border: 1px solid var(--color-line);
    background: var(--color-white);
    color: var(--color-ink) !important;
}

.gn-auth-btn--register:hover {
    border-color: var(--color-green);
    background: var(--color-green-soft);
}

/* Success Confirmation Box */
.gn-booking-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    border-radius: 10px;
    background: #f2f8f4;
    border: 1px solid #cce5d4;
    text-align: center;
    animation: gnFadeIn var(--duration-ui) var(--ease-out);
}

.gn-success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2f1e6;
    color: var(--color-green);
}

.gn-success-badge .marketplace-icon {
    width: 28px;
    height: 28px;
}

.gn-booking-success-box h4 {
    margin: 0;
    font-size: 16px;
    color: var(--color-green-deep);
}

.gn-success-msg {
    margin: 0;
    font-size: 13px;
    color: #3b5b4c;
}

.gn-success-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--color-white);
    border: 1px solid #d5e9dc;
    font-size: 12px;
    color: var(--color-green-deep);
}

.gn-success-time .marketplace-icon {
    width: 14px;
    height: 14px;
    color: var(--color-green);
}

.gn-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.gn-success-account-btn,
.gn-calendar-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.gn-success-account-btn {
    background: var(--color-green);
    color: var(--color-white) !important;
    border: none;
}

.gn-success-account-btn:hover {
    background: var(--color-green-deep);
}

.gn-calendar-export-btn {
    border: 1px solid #b8dac4;
    background: var(--color-white);
    color: var(--color-green-deep);
}

.gn-calendar-export-btn .marketplace-icon {
    width: 14px;
    height: 14px;
}

.gn-calendar-export-btn:hover {
    border-color: var(--color-green);
    background: var(--color-white);
}

/* Owner / Business Panel in Account */
.gn-owner-panel {
    margin-bottom: 35px;
    padding: 24px;
    border-radius: 14px;
    background: #fbfaf7;
    border: 1px solid #e7e4dc;
}

.gn-owner-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-line);
}

.gn-owner-panel-heading h2 {
    margin: 0;
    font-size: 20px;
    color: var(--color-green-deep);
}

.gn-owner-panel-heading p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--color-muted);
}

.gn-owner-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--color-green-soft);
    color: var(--color-green);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.gn-owner-bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gn-owner-booking-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--color-line);
    background: var(--color-white);
}

.gn-owner-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gn-owner-booking-price {
    font-size: 16px;
    color: var(--color-green);
}

.gn-owner-booking-service {
    margin: 0;
    font-size: 16px;
    color: var(--color-ink);
}

.gn-owner-booking-salon {
    margin: 0;
    font-size: 12px;
    color: var(--color-muted);
}

.gn-owner-booking-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-green-deep);
}

.gn-owner-booking-time .marketplace-icon {
    width: 15px;
    height: 15px;
    color: var(--color-green);
}

.gn-owner-booking-customer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 7px;
    background: #f6f5f1;
    font-size: 12px;
}

.gn-customer-label {
    color: var(--color-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--wp-caps-tracking);
    font-weight: var(--wp-caps-weight);
    font-feature-settings: "case" 1;
}

.gn-customer-contact {
    color: var(--color-green);
    text-decoration: underline;
    font-size: 11px;
}

.gn-owner-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.gn-owner-btn {
    flex: 1;
    min-height: 36px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.gn-owner-btn--confirm {
    background: var(--color-green);
    color: var(--color-white);
}

.gn-owner-btn--confirm:hover {
    background: var(--color-green);
}

.gn-owner-btn--complete {
    background: #2a6f97;
    color: var(--color-white);
}

.gn-owner-btn--complete:hover {
    background: #2a6f97;
}

.gn-owner-btn--cancel {
    background: #f3ece8;
    color: #9c4125;
}

.gn-owner-btn--cancel:hover {
    background: #f3ece8;
}

/* Status Tags */
.gn-booking-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.gn-booking-status-tag--pending {
    background: #fef3c7;
    color: #92400e;
}

.gn-booking-status-tag--confirmed {
    background: #d1fae5;
    color: #065f46;
}

.gn-booking-status-tag--completed {
    background: #e0f2fe;
    color: #0369a1;
}

.gn-booking-status-tag--cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.gn-account-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-line);
}

.gn-account-role-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--color-muted);
}

.gn-account-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gn-account-btn--admin {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 7px;
    background: var(--color-green-soft);
    color: var(--color-green) !important;
    font-size: 12px;
    font-weight: 700;
}

.gn-booking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gn-booking-time-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    font-size: 13px;
    color: var(--color-green-deep);
}

.gn-booking-time-display .marketplace-icon {
    width: 14px;
    height: 14px;
    color: var(--color-green);
}

.gn-booking-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .gn-owner-panel {
        padding: 16px;
    }

    .gn-owner-panel-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .gn-slot-picker-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gn-confirm-booking-btn {
        width: 100%;
    }
}

/* ——— Homepage smart (palette from :root --brand-*) ——— */
body.home {
    color: var(--color-ink);
    background: var(--color-ground);
    font-family: var(--font-body);
}

/* Home only: transparent over hero; elsewhere sticky solid bar (same chrome) */
body.home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 0;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

/* Mobile offcanvas lives in header — must beat page stacking */
body.nav-drawer-open .site-header,
body.home.nav-drawer-open .site-header {
    z-index: 1300;
}

body.home .site-header.is-over-hero.is-scrolled {
    position: fixed;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    background-color: rgb(0 0 0 / 55%);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

body.home .site-header.is-scrolled:not(.is-over-hero) {
    position: fixed;
    border-bottom: 1px solid var(--header-border);
    background-color: var(--header-bg-solid);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgb(23 23 21 / 6%);
}

html[data-theme="dark"] body.home .site-header.is-scrolled:not(.is-over-hero) {
    box-shadow: 0 10px 28px rgb(0 0 0 / 35%);
}

/* No nav hover while transparent over hero */
body.home .site-header.is-over-hero .site-nav a:hover,
body.home .site-header.is-over-hero .site-nav a.site-nav-contact:hover {
    color: var(--header-fg) !important;
    background: transparent !important;
}

body.home .site-header.is-over-hero .site-nav-fav:hover {
    color: var(--header-fg-strong);
    border-color: var(--header-border);
    background: transparent;
}

@media (max-width: 999px) {
    /* Over dark hero — fullscreen drawer stays dark; burger stays clean */
    body.home .site-header.is-over-hero .site-nav {
        background: #0a0a0a;
    }

    body.home .site-header.is-over-hero .site-nav a,
    body.home .site-header.is-over-hero .site-nav a.site-nav-contact,
    body.home .site-header.is-over-hero .site-nav a.site-nav-extra {
        color: #fff !important;
        border-bottom-color: rgb(255 255 255 / 12%) !important;
    }

    body.home .site-header.is-over-hero .site-nav a:hover,
    body.home .site-header.is-over-hero .site-nav a.site-nav-contact:hover,
    body.home .site-header.is-over-hero .site-nav a.site-nav-extra:hover,
    body.home .site-header.is-over-hero .site-nav .current-menu-item > a {
        color: var(--brand-primary) !important;
        opacity: 1;
    }

    body.home .site-header.is-over-hero .site-nav-close {
        color: #fff;
    }

    body.home .site-header.is-over-hero .menu-toggle {
        color: #fff;
        border-color: rgb(255 255 255 / 22%);
        background: transparent;
    }

    body.home .site-header.is-over-hero .site-nav .site-nav-cta--drawer {
        color: #131212 !important;
        background: #fff !important;
    }

    body.home .site-header.is-over-hero .site-nav .site-nav-cta--drawer:hover {
        color: #131212 !important;
        background: #f2f2f0 !important;
    }
}

.page-content--home {
    padding: 0;
    max-width: none;
    background: var(--color-ground);
}

.marketplace-home--smart {
    --smart-brand: var(--brand-primary);
    --smart-brand-deep: var(--brand-primary-deep);
    --smart-accent: var(--brand-primary);
    --smart-ink: var(--color-ink);
    --smart-mute: var(--color-muted);
    --smart-card: var(--color-surface);
    --smart-line: var(--color-line);
    --smart-radius: 28px;
    color: var(--smart-mute);
    background: var(--color-ground);
    font-family: var(--font-body);
}

html[data-theme="dark"] .marketplace-home--smart {
    --smart-ink: #fff;
    --smart-mute: var(--brand-dark-mute);
    --smart-card: var(--brand-dark-card);
    --smart-line: var(--brand-dark-line);
}

.marketplace-home--smart .home-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* Sitewide controls — same language as homepage */
.gn-book-button,
.gn-cta,
.show-more-providers,
.catalog-page-link {
    border-radius: var(--radius-control) !important;
}

.gn-book-button,
.gn-confirm-booking,
.gn-cancel-booking {
    font-family: var(--font-header);
}

.marketplace-home--smart .home-section-eyebrow {
    display: none;
}

.marketplace-home--smart .home-section-lead {
    margin: 12px auto 0;
    max-width: 46ch;
    color: var(--smart-mute);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.marketplace-home--smart .home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    color: #fff;
    background: var(--smart-brand-deep);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease;
}

.marketplace-home--smart .home-btn:hover {
    background: var(--smart-brand);
}

/* Hero — exact Smart Home row geometry */
.marketplace-home--smart .home-hero-smart {
    position: relative;
    margin-bottom: 80px;
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgb(0 0 0 / 35%) 0%, rgb(0 0 0 / 72%) 58%, #000 100%),
        var(--hero-image) center / cover no-repeat;
    background-color: #000;
}

.marketplace-home--smart .home-hero-smart-inner {
    --phone-col: calc(38% - 45px);
    --header-clear: 68px;
    --hero-gap: 112px;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--hero-gap);
    box-sizing: border-box;
    width: var(--shell-width);
    margin: 0 auto;
    /* header clear + same air as gap under search */
    padding: calc(var(--header-clear) + var(--hero-gap)) 0 0;
    overflow: hidden;
}

/* 1) Search — standard form-controls, always dark, padded so fields are not flush */
.marketplace-home--smart .gn-search-form--hero {
    --fc-ink: #f2f2f0;
    --fc-bg: #0a0a0a;
    --fc-bg-focus: #131212;
    --fc-border: rgb(255 255 255 / 16%);
    --fc-border-hover: rgb(255 255 255 / 28%);
    --fc-placeholder: #9a9a9a;
    --fc-pop-bg: #1a1919;
    --fc-pop-border: rgb(255 255 255 / 12%);
    --fc-pop-shadow: 0 20px 48px rgb(0 0 0 / 60%);
    --fc-option-hover: #1a2e26;
    --fc-accent-text: color-mix(in srgb, var(--brand-primary) 45%, #fff);
    --fc-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a19b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --color-ink: #f2f2f0;
    --color-muted: #a3a19b;
    --color-line: rgb(255 255 255 / 12%);
    --color-ground: #0a0a0a;
    --color-surface: #131212;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px;
    padding: 16px;
    overflow: visible;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 20px;
    background: rgb(0 0 0 / 78%);
    box-shadow: 0 18px 40px rgb(0 0 0 / 28%);
}

/* 2+3) Title panel + phone under search — fixed band crops phone bottom */
.marketplace-home--smart .home-hero-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: calc((38cqi - 45px) * 989 / 672);
    max-height: calc((38cqi - 45px) * 989 / 672);
    overflow: hidden;
}

.marketplace-home--smart .home-hero-panel {
    display: grid;
    gap: 14px;
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: center;
    width: calc(62% - 45px);
    max-width: calc(62% - 45px);
    min-width: 0;
    margin: 0;
    padding: 35px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 25px;
    background: rgb(0 0 0 / 22%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
}

.marketplace-home--smart .home-hero-eyebrow {
    margin: 0;
    color: var(--smart-accent);
    font-size: 14px;
    font-weight: 700;
}

.marketplace-home--smart .home-hero-panel h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-header);
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.12;
    font-feature-settings: "case" 1;
    text-transform: uppercase;
}

.marketplace-home--smart .home-hero-lead {
    margin: 0;
    color: #c8c8c8;
    font-size: clamp(14px, 1.35vw, 16px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.45;
}

.marketplace-home--smart .gn-search-form--hero .gn-search-field {
    display: grid;
    flex: 1 1 0;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.marketplace-home--smart .gn-search-form--hero .gn-search-field span {
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.marketplace-home--smart .gn-search-form--hero .gn-search-field select,
.marketplace-home--smart .gn-search-form--hero .gw-select > button.gw-select-trigger {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    height: var(--fc-h);
    min-height: var(--fc-h);
    max-height: none;
    margin: 0;
    padding: 0 var(--fc-px);
    padding-right: 42px;
    overflow: hidden;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    color: var(--fc-ink);
    background-color: var(--fc-bg);
    background-image: var(--fc-chevron);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px 14px;
    box-shadow: none;
    font: inherit;
    font-family: var(--font-body);
    font-size: var(--fc-font);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-feature-settings: normal;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.marketplace-home--smart .gn-search-form--hero .gn-search-field select:hover,
.marketplace-home--smart .gn-search-form--hero .gw-select > button.gw-select-trigger:not(:disabled):hover {
    border-color: var(--fc-border-hover);
    background-color: var(--fc-bg);
    box-shadow: none;
}

.marketplace-home--smart .gn-search-form--hero .gn-search-field select:focus,
.marketplace-home--smart .gn-search-form--hero .gw-select > button.gw-select-trigger:focus-visible,
.marketplace-home--smart .gn-search-form--hero .gw-select.is-open > button.gw-select-trigger {
    border-color: var(--brand-primary);
    background-color: var(--fc-bg-focus);
    background-image: var(--fc-chevron);
    box-shadow: var(--fc-ring);
    outline: none;
}

.marketplace-home--smart .gn-search-form--hero .gn-search-field select option {
    color: #f2f2f0;
    background: #1a1919;
}

.marketplace-home--smart .gn-search-form--hero button[type="submit"] {
    flex: 0 0 auto;
    align-self: end;
    width: auto;
    height: var(--fc-h);
    min-height: var(--fc-h);
    max-height: var(--fc-h);
    min-width: 110px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--smart-brand-deep);
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: var(--wp-caps-weight);
    letter-spacing: var(--wp-caps-tracking);
    font-feature-settings: "case" 1;
    text-transform: uppercase;
    cursor: pointer;
}

.marketplace-home--smart .gn-search-form--hero button[type="submit"]:hover {
    background: var(--smart-brand);
}

.marketplace-home--smart .home-cat-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    color: #6f6f6f;
    font-size: 13px;
}

.marketplace-home--smart .home-cat-list a {
    color: #ececec;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.marketplace-home--smart .home-cat-list a:hover {
    color: var(--smart-brand);
    border-bottom-color: var(--smart-brand);
}

.marketplace-home--smart .home-hero-device {
    display: block;
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: stretch;
    width: var(--phone-col);
    max-width: var(--phone-col);
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
    overflow: hidden;
    line-height: 0;
}

/* Hero phone — photo mockup, bottom cropped by hero band */
.marketplace-home--smart .home-phone {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 0;
    filter: drop-shadow(0 28px 48px rgb(0 0 0 / 34%));
}

.marketplace-home--smart .home-phone-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.marketplace-home--smart .home-phone-screen {
    container-type: inline-size;
    container-name: phone-screen;
    position: absolute;
    z-index: 1;
    top: 2.17%;
    right: 4.88%;
    bottom: 2.17%;
    left: 5.19%;
    overflow: hidden;
    border-radius: 12.5% / 6.2%;
    background: #fff;
    line-height: normal;
}

.marketplace-home--smart .home-phone-frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

.marketplace-home--smart .home-phone-ui {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

/* iOS status — time/icons centered on Dynamic Island height */
.marketplace-home--smart .home-phone-status {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 14.5cqi;
    padding: 3.2cqi 6.2cqi 0;
    color: #111;
    font-family: var(--font-body);
    font-size: 4.35cqi;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.marketplace-home--smart .home-phone-status-time {
    flex: 0 0 auto;
    width: 18cqi;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.marketplace-home--smart .home-phone-status-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5cqi;
    width: 22cqi;
    padding-right: 0.4cqi;
}

.marketplace-home--smart .home-phone-status-signal,
.marketplace-home--smart .home-phone-status-wifi {
    display: block;
    flex: 0 0 auto;
    width: 5.2cqi;
    height: auto;
    color: #111;
}

.marketplace-home--smart .home-phone-status-battery {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: 7.8cqi;
    height: 3.5cqi;
    border: 0.38cqi solid #111;
    border-radius: 0.85cqi;
    padding: 0.4cqi;
}

.marketplace-home--smart .home-phone-status-battery-level {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: 0.35cqi;
    background: #111;
}

.marketplace-home--smart .home-phone-status-battery-cap {
    position: absolute;
    top: 50%;
    right: -1cqi;
    width: 0.55cqi;
    height: 48%;
    border-radius: 0 0.35cqi 0.35cqi 0;
    background: #111;
    transform: translateY(-50%);
}

.marketplace-home--smart .home-phone-app {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3cqi;
    box-sizing: border-box;
    min-height: 0;
    height: 100%;
    padding: 16.5cqi 4.5cqi 0;
    color: var(--brand-ink);
    background: #fff;
}

.marketplace-home--smart .app-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3cqi;
    min-height: 10cqi;
}

.marketplace-home--smart .app-menu {
    display: grid;
    place-items: center;
    width: 10cqi;
    height: 10cqi;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--brand-ink);
    background: transparent;
    cursor: default;
}

.marketplace-home--smart .app-menu .marketplace-icon {
    width: 6.8cqi;
    height: 6.8cqi;
}

.marketplace-home--smart .app-avatar {
    display: block;
    width: 10cqi;
    height: 10cqi;
    overflow: hidden;
    border: 0.4cqi solid var(--brand-soft);
    border-radius: 50%;
    background: var(--brand-soft);
}

.marketplace-home--smart .app-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-home--smart .app-welcome {
    display: block;
    margin: 0;
    color: var(--brand-ink);
    font-size: 5cqi;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.marketplace-home--smart .app-welcome-hello,
.marketplace-home--smart .app-welcome-name {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.marketplace-home--smart .app-feed {
    display: grid;
    flex: 1 1 auto;
    gap: 2.8cqi;
    align-content: start;
    min-height: 0;
    overflow: hidden;
    padding-top: 0.5cqi;
}

.marketplace-home--smart .app-kicker {
    margin: 0;
    color: var(--brand-muted);
    font-size: 3.2cqi;
    font-weight: var(--wp-caps-weight);
    letter-spacing: var(--wp-caps-tracking);
    text-transform: uppercase;
    font-feature-settings: "case" 1;
}

.marketplace-home--smart .app-chips {
    display: flex;
    align-items: center;
    gap: 2cqi;
    overflow: hidden;
}

.marketplace-home--smart .app-chips span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 8.2cqi;
    padding: 0 3.6cqi;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 3.3cqi;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.marketplace-home--smart .app-chips span.is-active {
    color: #fff;
    background: var(--brand-primary);
}

.marketplace-home--smart .app-venue-stack {
    display: grid;
    gap: 2.6cqi;
    min-height: 0;
}

.marketplace-home--smart .app-venue-card {
    display: grid;
    grid-template-columns: 22cqi 1fr;
    gap: 2.6cqi;
    align-items: center;
    overflow: hidden;
    border-radius: 3.6cqi;
    background: var(--brand-soft);
}

.marketplace-home--smart .app-venue-card img {
    display: block;
    width: 22cqi;
    height: 18cqi;
    object-fit: cover;
}

.marketplace-home--smart .app-venue-meta {
    display: grid;
    gap: 0.8cqi;
    min-width: 0;
    padding-right: 2.4cqi;
}

.marketplace-home--smart .app-venue-meta strong {
    overflow: hidden;
    color: var(--brand-ink);
    font-size: 3.6cqi;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-home--smart .app-venue-meta span {
    color: var(--brand-muted);
    font-size: 3.1cqi;
}

.marketplace-home--smart .app-tabbar {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: auto;
    padding: 2.2cqi 1cqi 5.5cqi;
    border-top: 0.3cqi solid rgb(0 0 0 / 6%);
    background: #fff;
}

.marketplace-home--smart .app-tabbar span {
    display: grid;
    justify-items: center;
    gap: 0.8cqi;
    color: var(--brand-muted);
    font-size: 2.6cqi;
    font-weight: 600;
    line-height: 1;
}

.marketplace-home--smart .app-tabbar span.is-active {
    color: var(--brand-primary);
}

.marketplace-home--smart .app-tabbar .marketplace-icon {
    width: 5.2cqi;
    height: 5.2cqi;
}

.marketplace-home--smart .app-tabbar i {
    font-style: normal;
}

.marketplace-home--smart .app-search--hero {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    overflow: hidden;
    border: 0.35cqi solid rgb(255 255 255 / 14%);
    border-radius: 5cqi;
    background: rgb(0 0 0 / 88%);
    box-shadow: 0 3.5cqi 8cqi rgb(0 0 0 / 22%);
}

.marketplace-home--smart .app-search-field {
    position: relative;
    display: grid;
    gap: 0.9cqi;
    min-width: 0;
    padding: 3.4cqi 8.5cqi 3.4cqi 3.8cqi;
    border-bottom: 0.3cqi solid rgb(255 255 255 / 10%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a9a9a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 3.8cqi center;
    background-size: 3cqi 2.1cqi;
}

.marketplace-home--smart .app-search-field:last-of-type {
    border-bottom: 0;
}

.marketplace-home--smart .app-search-field span {
    color: #9a9a9a;
    font-size: 3.1cqi;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.marketplace-home--smart .app-search-field strong {
    overflow: hidden;
    color: #fff;
    font-size: 4.1cqi;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-home--smart .app-search-go {
    display: grid;
    place-items: center;
    min-height: 12.5cqi;
    margin: 3.2cqi;
    border-radius: 3.6cqi;
    color: #fff;
    background: var(--smart-brand-deep, var(--brand-primary-deep));
    font-family: var(--font-header);
    font-size: 3.8cqi;
    font-weight: var(--wp-caps-weight);
    letter-spacing: var(--wp-caps-tracking);
    text-transform: uppercase;
    font-feature-settings: "case" 1;
}

/* Apps — gallery + download stack (theme ground; pulls up over hero margin gap) */
.marketplace-home--smart .home-apps {
    margin: -80px 0 0;
    padding: 56px 0 80px;
    background: var(--color-ground);
}

.marketplace-home--smart .home-apps-head {
    margin-bottom: 40px;
}

.marketplace-home--smart .home-apps h1 {
    margin: 0;
    max-width: none;
    color: var(--smart-ink);
    font-family: var(--font-header);
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-feature-settings: "case" 1;
    text-transform: uppercase;
}

.marketplace-home--smart .home-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.marketplace-home--smart .home-apps-shot {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 465 / 690;
    border-radius: 15px;
    background: #fff;
}

html[data-theme="light"] .marketplace-home--smart .home-apps-shot {
    background: #171010;
}

html[data-theme="dark"] .marketplace-home--smart .home-apps-shot {
    background: #fff;
}

.marketplace-home--smart .home-apps-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* accent shot uses same theme bg as other shots */

.marketplace-home--smart .home-apps-downloads {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 17px;
    min-height: 0;
}

.marketplace-home--smart .home-app-card {
    display: grid;
    place-content: center;
    place-items: center;
    gap: 16px;
    box-sizing: border-box;
    min-height: 0;
    padding: 20px;
    border: 0;
    border-radius: 15px;
    background: #fff;
    color: #131212;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html[data-theme="light"] .marketplace-home--smart .home-app-card {
    background: #171010;
    color: #f4f5f6;
}

html[data-theme="dark"] .marketplace-home--smart .home-app-card {
    background: #fff;
    color: #131212;
}

.marketplace-home--smart .home-app-card img {
    display: block;
    width: 42px;
    height: 42px;
}

.marketplace-home--smart .home-app-icon {
    display: block;
    width: 42px;
    height: 42px;
    background-color: currentColor;
}

.marketplace-home--smart .home-app-icon--apple {
    -webkit-mask: url("assets/app-store.svg") center / contain no-repeat;
    mask: url("assets/app-store.svg") center / contain no-repeat;
}

.marketplace-home--smart .home-app-card h3 {
    margin: 0;
    max-width: 12ch;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.marketplace-home--smart .home-app-card--soon {
    cursor: default;
}

/* Statement + animated stats (Smart Home layout) */
.marketplace-home--smart .home-statement {
    padding: 56px 0 96px;
}

.marketplace-home--smart .home-statement-inner {
    display: grid;
    gap: 48px;
    justify-items: center;
}

.marketplace-home--smart .home-statement h2 {
    margin: 0;
    max-width: none;
    width: 100%;
    color: var(--smart-ink);
    font-family: var(--font-header);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.28;
    text-align: center;
    font-feature-settings: "case" 1;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

.marketplace-home--smart .home-statement.is-inview h2 {
    opacity: 1;
    transform: none;
}

.marketplace-home--smart .home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
    width: 100%;
    align-items: start;
    justify-items: center;
}

.marketplace-home--smart .home-stat {
    display: grid;
    gap: 12px;
    justify-items: center;
    align-content: start;
    text-align: center;
    min-width: 0;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.55s var(--ease-out),
        transform 0.55s var(--ease-out);
}

.marketplace-home--smart .home-statement.is-inview .home-stat {
    opacity: 1;
    transform: none;
}

.marketplace-home--smart .home-statement.is-inview .home-stat:nth-child(1) { transition-delay: 0.05s; }
.marketplace-home--smart .home-statement.is-inview .home-stat:nth-child(2) { transition-delay: 0.12s; }
.marketplace-home--smart .home-statement.is-inview .home-stat:nth-child(3) { transition-delay: 0.19s; }
.marketplace-home--smart .home-statement.is-inview .home-stat:nth-child(4) { transition-delay: 0.26s; }

.marketplace-home--smart .home-stat-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.marketplace-home--smart .home-stat-icon .marketplace-icon {
    width: 26px;
    height: 26px;
}

.marketplace-home--smart .home-stat-value {
    color: var(--smart-ink);
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.marketplace-home--smart .home-stat-label {
    max-width: 16ch;
    color: var(--smart-mute);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-home--smart .home-statement h2,
    .marketplace-home--smart .home-stat {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* How it works — tall stretched cards like Smart Home */
.marketplace-home--smart .home-how {
    padding: 72px 0 48px;
    text-align: center;
}

.marketplace-home--smart .home-how h2 {
    margin: 0;
    color: var(--smart-ink);
    font-family: var(--font-header);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-feature-settings: "case" 1;
    text-transform: uppercase;
}

.marketplace-home--smart .home-how .home-section-lead {
    margin-top: 14px;
}

.marketplace-home--smart .home-how-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
    text-align: center;
}

.marketplace-home--smart .home-how-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-sizing: border-box;
    min-height: 420px;
    padding: 72px 26px;
    border: 0;
    border-radius: var(--radius-soft);
    background: #fff;
    box-shadow: 0 8px 24px rgb(23 23 21 / 6%);
}

html[data-theme="dark"] .marketplace-home--smart .home-how-card {
    background: #171616;
    box-shadow: none;
}

.marketplace-home--smart .home-how-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: var(--smart-ink);
    background: #f4f5f6;
    box-shadow: none;
}

html[data-theme="dark"] .marketplace-home--smart .home-how-icon {
    background: #242323;
    box-shadow: none;
}

.marketplace-home--smart .home-how-icon .marketplace-icon {
    width: 30px;
    height: 30px;
}

.marketplace-home--smart .home-how-card h3 {
    margin: 0;
    color: var(--smart-ink);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.marketplace-home--smart .home-how-card p {
    margin: 0;
    max-width: 26ch;
    color: var(--smart-mute);
    font-size: 15px;
    line-height: 1.6;
}

/* Solutions */
.marketplace-home--smart .home-solutions {
    padding: 56px 0 24px;
}

.marketplace-home--smart .home-solutions > .home-shell > h2 {
    margin: 0 0 24px;
    max-width: 18ch;
    color: var(--smart-ink);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.marketplace-home--smart .home-solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.marketplace-home--smart .home-solution-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgb(0 0 0 / 15%) 10%, rgb(0 0 0 / 78%) 100%),
        var(--card-image) center / cover no-repeat;
}

.marketplace-home--smart .home-solution-copy {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: 28px;
}

.marketplace-home--smart .home-solution-copy h3 {
    margin: 0;
    max-width: 16ch;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* Rails / listings */
.marketplace-home--smart .home-rail {
    padding: 56px 0 8px;
}

.marketplace-home--smart .home-rail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.marketplace-home--smart .home-rail-head h2 {
    margin: 0;
    color: var(--smart-ink);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.marketplace-home--smart .home-rail-count,
.marketplace-home--smart .home-text-link {
    color: var(--smart-mute);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.marketplace-home--smart .home-text-link {
    color: var(--smart-brand);
}

.marketplace-home--smart .home-text-link:hover {
    color: var(--smart-ink);
}

.marketplace-home--smart .home-venue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.marketplace-home--smart .home-venue-grid .featured-provider,
.marketplace-home--smart .home-hot-section .featured-provider {
    border: 1px solid var(--smart-line);
    border-radius: 16px;
    background: var(--smart-card);
    color: var(--smart-ink) !important;
    box-shadow: none;
    transition: border-color 180ms ease;
}

.marketplace-home--smart .home-venue-grid .featured-provider:hover,
.marketplace-home--smart .home-hot-section .featured-provider:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--smart-line));
    color: var(--smart-ink) !important;
    box-shadow: none;
}

.marketplace-home--smart .featured-provider-brand > strong {
    color: var(--smart-ink);
}

.marketplace-home--smart .featured-provider-meta,
.marketplace-home--smart .featured-provider-city,
.marketplace-home--smart .featured-provider-city::before,
.marketplace-home--smart .featured-provider-link {
    color: var(--smart-mute);
}

.marketplace-home--smart .featured-provider-rating {
    color: var(--smart-ink);
}

.marketplace-home--smart .featured-provider-rating .marketplace-icon,
.marketplace-home--smart .featured-provider--recommended .sample-tag {
    color: var(--smart-brand);
}

.marketplace-home--smart .home-hot-section .gn-hot-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.marketplace-home--smart .directory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding-bottom: 24px;
}

.marketplace-home--smart .show-more-providers {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--smart-line);
    border-radius: 12px;
    background: transparent;
    color: var(--smart-ink);
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
}

.marketplace-home--smart .show-more-providers:hover {
    color: #fff;
    background: var(--smart-brand-deep);
    border-color: var(--smart-brand-deep);
}

/* CTA band — Smart Home style: solid brand panel, copy left, button right */
.marketplace-home--smart .home-cta-band {
    padding: 28px 0 72px;
}

.marketplace-home--smart .home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 45px 55px;
    border: 0;
    border-radius: 15px;
    background: var(--brand-primary);
    box-shadow: none;
}

.marketplace-home--smart .home-cta-copy {
    flex: 1 1 auto;
    max-width: 500px;
    min-width: 0;
}

.marketplace-home--smart .home-cta-inner h2 {
    margin: 0 0 10px;
    max-width: none;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 25px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.5;
}

.marketplace-home--smart .home-cta-inner p {
    margin: 0;
    max-width: none;
    color: rgb(255 255 255 / 73%);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.marketplace-home--smart .home-cta-inner .home-btn--on-band {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 15px 25px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #000;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 160ms ease;
}

.marketplace-home--smart .home-cta-inner .home-btn--on-band:hover {
    color: #fff;
    background: #1a1a1a;
    transform: none;
}

/* Hot offer cards — variant A, follow light/dark */
.marketplace-home--smart .gn-offer-card {
    color: var(--smart-ink);
    background: var(--smart-card);
    border: 1px solid var(--smart-line);
    border-radius: 16px;
    box-shadow: none;
}

.marketplace-home--smart .gn-offer-card .gn-card-top,
.marketplace-home--smart .gn-offer-card .gn-card-salon,
.marketplace-home--smart .gn-offer-card .gn-card-price {
    color: var(--smart-mute);
}

.marketplace-home--smart .gn-offer-card .gn-card-service,
.marketplace-home--smart .gn-offer-card .gn-card-salon a,
.marketplace-home--smart .gn-offer-card .gn-card-when,
.marketplace-home--smart .gn-offer-card .gn-card-price strong,
.marketplace-home--smart .gn-offer-card .gn-card-rating {
    color: var(--smart-ink);
}

.marketplace-home--smart .gn-offer-card .gn-card-rating .marketplace-icon {
    color: var(--smart-brand);
}

.marketplace-home--smart .gn-offer-card .gn-book-button {
    color: #fff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.marketplace-home--smart .gn-offer-card .gn-book-button:hover {
    background: var(--brand-primary-deep);
    border-color: var(--brand-primary-deep);
}

.marketplace-home--smart .gn-offer-card .gn-other-slots {
    color: var(--smart-brand);
}

.marketplace-home--smart .home-hot-section .gn-hot-results {
    gap: 20px;
}

/* Tablet: 690–999 — search top; 55/45 row under */
@media (max-width: 999px) and (min-width: 690px) {
    .marketplace-home--smart .home-hero-smart {
        margin-bottom: 60px;
    }

    .marketplace-home--smart .home-hero-smart-inner {
        --phone-col: calc(45% - 25px);
        --header-clear: 60px;
        --hero-gap: 96px;
        width: min(1200px, calc(100% - 80px));
        padding-top: calc(var(--header-clear) + var(--hero-gap));
    }

    .marketplace-home--smart .gn-search-form--hero {
        width: 100%;
        margin: 0 0 20px;
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
    }

    .marketplace-home--smart .gn-search-form--hero .gn-search-field {
        flex: 1 1 calc(50% - 6px);
        border: 0;
    }

    .marketplace-home--smart .gn-search-form--hero .gn-search-field:nth-child(odd) {
        border: 0;
    }

    .marketplace-home--smart .gn-search-form--hero button[type="submit"] {
        flex: 1 1 100%;
        margin: 0;
        height: var(--fc-h);
        min-height: var(--fc-h);
        max-height: var(--fc-h);
    }

    .marketplace-home--smart .home-hero-row {
        height: calc((45cqi - 25px) * 989 / 672);
        max-height: calc((45cqi - 25px) * 989 / 672);
    }

    .marketplace-home--smart .home-hero-panel {
        width: calc(55% - 25px);
        max-width: calc(55% - 25px);
        margin-bottom: 0;
        padding: 28px;
    }

    .marketplace-home--smart .home-hero-device {
        width: var(--phone-col);
        max-width: var(--phone-col);
    }

}

@media (max-width: 980px) {
    .marketplace-home--smart .home-solutions-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-home--smart .home-how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .marketplace-home--smart .home-how-card {
        min-height: 320px;
        padding: 48px 22px;
    }

    .marketplace-home--smart .home-statement {
        padding: 40px 0 88px;
    }

    .marketplace-home--smart .home-statement-inner {
        gap: 36px;
    }

    .marketplace-home--smart .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 32px;
        max-width: min(520px, 100%);
        margin-inline: auto;
        padding-bottom: 0;
    }

    .marketplace-home--smart .home-apps {
        margin-top: -60px;
    }

    /* 2×2: photo | photo / photo | store buttons */
    .marketplace-home--smart .home-apps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .marketplace-home--smart .home-apps-downloads {
        grid-column: auto;
        grid-template-columns: none;
        grid-template-rows: 1fr 1fr;
        gap: 22px;
        min-height: 0;
        height: 100%;
    }

    .marketplace-home--smart .home-app-card {
        min-height: 0;
        padding: 18px 14px;
    }

    .marketplace-home--smart .home-how-grid {
        grid-template-columns: 1fr 1fr;
    }

    .marketplace-home--smart .home-venue-grid,
    .marketplace-home--smart .home-hot-section .gn-hot-results {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile ≤689 — stack: hide phone (doesn't fit); panel full width + bottom air */
@media (max-width: 689px) {
    .marketplace-home--smart .home-hero-smart {
        margin-bottom: 48px;
    }

    .marketplace-home--smart .home-hero-smart-inner {
        --header-clear: 60px;
        --hero-gap: 72px;
        width: calc(100% - 32px);
        padding-top: calc(var(--header-clear) + var(--hero-gap));
        /* Bottom air = same as gap above the panel (flex gap + search margin) */
        padding-bottom: calc(var(--hero-gap) + 16px);
        overflow: visible;
    }

    .marketplace-home--smart .gn-search-form--hero {
        width: 100%;
        margin: 0 0 16px;
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
    }

    .marketplace-home--smart .gn-search-form--hero .gn-search-field {
        flex: 1 1 100%;
        border: 0;
    }

    .marketplace-home--smart .gn-search-form--hero button[type="submit"] {
        flex: 1 1 100%;
        margin: 0;
        height: var(--fc-h);
        min-height: var(--fc-h);
        max-height: var(--fc-h);
    }

    .marketplace-home--smart .home-hero-row {
        display: block;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .marketplace-home--smart .home-hero-device {
        display: none;
    }

    .marketplace-home--smart .home-shell,
    .marketplace-home--smart .home-hero-smart-inner {
        width: calc(100% - 32px);
    }

    .marketplace-home--smart .home-hero-panel {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        padding: 24px 20px;
        border-radius: 22px;
    }

    .marketplace-home--smart .gn-search-form--hero .gn-search-field {
        flex: 1 1 100%;
        padding: 0;
    }

    .marketplace-home--smart .gn-search-form--hero button[type="submit"] {
        flex: 1 1 100%;
        height: var(--fc-h);
        min-height: var(--fc-h);
        max-height: var(--fc-h);
        min-width: 0;
        margin: 0;
        padding: 0 14px;
    }

    .marketplace-home--smart .home-how-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .marketplace-home--smart .home-how-card {
        min-height: 0;
        padding: 40px 22px;
    }

    .marketplace-home--smart .home-venue-grid,
    .marketplace-home--smart .home-hot-section .gn-hot-results {
        grid-template-columns: 1fr;
    }

    .marketplace-home--smart .home-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 24px;
    }

    .marketplace-home--smart .home-cta-copy {
        max-width: none;
    }

    .marketplace-home--smart .home-cta-inner .home-btn--on-band {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .marketplace-home--smart .home-statement {
        padding: 32px 0 72px;
    }

    .marketplace-home--smart .home-statement-inner {
        gap: 28px;
    }

    .marketplace-home--smart .home-apps {
        margin-top: -48px;
        padding: 40px 0 56px;
    }

    .marketplace-home--smart .home-apps-head {
        margin-bottom: 24px;
    }

    .marketplace-home--smart .home-apps h1 {
        margin-bottom: 0;
        font-size: clamp(22px, 6.5vw, 30px);
    }

    /* 2×2 same as tablet: 3 photos + buttons beside 3rd */
    .marketplace-home--smart .home-apps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .marketplace-home--smart .home-apps-shot {
        border-radius: 12px;
    }

    .marketplace-home--smart .home-apps-downloads {
        grid-column: auto;
        grid-template-columns: none;
        grid-template-rows: 1fr 1fr;
        gap: 18px;
        min-height: 0;
        height: 100%;
    }

    .marketplace-home--smart .home-app-card {
        min-height: 0;
        padding: 14px 10px;
        gap: 8px;
        border-radius: 12px;
    }

    .marketplace-home--smart .home-app-card img,
    .marketplace-home--smart .home-app-icon {
        width: 28px;
        height: 28px;
    }

    .marketplace-home--smart .home-app-card h3 {
        max-width: none;
        font-size: 12px;
    }
}

/* Stats stack only when 2 cols really don't fit */
@media (max-width: 420px) {
    .marketplace-home--smart .home-stats {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 280px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   Information pages, business landing additions and cookie notice
   (built on the existing tokens; no new visual language)
   ========================================================================== */

.entry-content h2 { margin: 40px 0 14px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; }
.entry-content h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content a:not([class]) { color: var(--color-green); font-weight: 600; text-underline-offset: 3px; }
.entry-content strong { color: var(--color-ink); }
html[data-theme="dark"] .entry-content p, html[data-theme="dark"] .entry-content li { color: var(--color-muted); }
.gw-lead { font-size: 17px; line-height: 1.8 !important; color: var(--color-ink) !important; }
.gw-updated { margin: 0 0 8px; color: var(--color-muted) !important; font-size: 13px; }
.page-shell .entry-content:has(.gw-contact-layout), .page-shell .entry-content:has(.gw-cards) { max-width: 980px; }

.gw-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.gw-card { padding: 20px 22px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.gw-card p { margin: 0; font-size: 14px; line-height: 1.75 !important; }

.gw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 26px 0; }
.gw-stats > div { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.gw-stats strong { color: var(--color-green); font-size: 26px; line-height: 1.1; }
.gw-stats span { color: var(--color-muted); font-size: 13px; }

.gw-steps { display: grid; gap: 12px; margin: 18px 0; padding: 0 !important; list-style: none; counter-reset: gw-step; }
.gw-steps li { position: relative; padding: 18px 20px 18px 66px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); counter-increment: gw-step; }
.gw-steps li::before { content: counter(gw-step); position: absolute; top: 18px; left: 20px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-green-soft); color: var(--color-green); font-weight: 800; font-size: 14px; }
.gw-steps p { margin: 0; font-size: 14px; line-height: 1.75 !important; }

.gw-faq { display: grid; gap: 10px; margin: 16px 0 8px; }
.gw-faq details { border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.gw-faq summary { position: relative; padding: 16px 48px 16px 20px; cursor: pointer; font-weight: 700; line-height: 1.5; list-style: none; }
.gw-faq summary::-webkit-details-marker { display: none; }
.gw-faq summary::after { content: "+"; position: absolute; top: 50%; right: 20px; color: var(--color-green); font-size: 22px; font-weight: 400; transform: translateY(-50%); }
.gw-faq details[open] summary::after { content: "−"; }
.gw-faq summary:focus-visible { outline: 2px solid var(--color-green); outline-offset: 2px; border-radius: 12px; }
.gw-faq details p { margin: 0; padding: 0 20px 18px; font-size: 14px; }

.gw-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--color-line); border-radius: 12px; }
.gw-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; background: var(--color-surface); }
.gw-table th, .gw-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; line-height: 1.6; }
.gw-table th { font-size: 13px; color: var(--color-muted); }
.gw-table tr:last-child td { border-bottom: 0; }
.gw-table td:first-child { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 12px; word-break: break-word; }

.gw-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 44px 0 0; padding: 26px 28px; border-radius: 16px; background: var(--color-green); color: #fff; }
.gw-cta h2 { margin: 0 0 6px !important; color: #fff; font-size: 22px; }
.gw-cta p { margin: 0; color: rgb(255 255 255 / 82%) !important; line-height: 1.7 !important; }
.gw-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gw-cta .gc-btn { background: #fff; color: var(--color-green); border-color: #fff; text-decoration: none; }
.gw-cta .gc-btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 60%); }

.gw-contact-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; margin: 24px 0 8px; }
.gw-contact-card, .gw-contact-form { padding: 24px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-surface); }
.gw-contact-card h2, .gw-contact-form h2 { margin: 0 0 16px !important; font-size: 18px; }
.gw-contact-list { display: grid; gap: 14px; margin: 0; padding: 0 !important; list-style: none; }
.gw-contact-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5 !important; }
.gw-contact-list .marketplace-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: var(--color-green); }
.gw-contact-list small { display: block; color: var(--color-muted); font-size: 12px; }
.gw-contact-social { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.gw-contact-business { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--color-line); font-size: 14px; }
.gw-contact-form .gc-btn { margin-top: 6px; }
.gw-contact-form .gw-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; font-size: 13px; font-weight: 400; line-height: 1.6; }
.gw-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-green); }
.gw-consent a { color: var(--color-green); font-weight: 600; }
.gw-contact-form, .gw-contact-card { min-width: 0; }
.gw-optional { color: var(--color-muted); font-weight: 400; font-size: 12px; }
.gw-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gw-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.6 !important; }
.gw-notice--success { background: var(--color-green-soft); color: var(--color-green) !important; }
.gw-notice--error { background: #fdecea; color: #a32a1b !important; }
html[data-theme="dark"] .gw-notice--error { background: #3a1814; color: #f3b2a8 !important; }

.business-landing h2.business-section-title { margin: 56px 0 18px; font-size: clamp(22px, 2.6vw, 28px); }
.business-benefits--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.business-benefits--grid article { background: var(--color-surface); }
.business-benefits--grid article span:not(.business-benefit-icon) { font-size: 13px; }
.business-benefit-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-green-soft); color: var(--color-green); }
.business-benefit-icon .marketplace-icon { width: 20px; height: 20px; }
.gw-stats--business { margin-top: 36px; }
.business-landing .business-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; padding: 0 !important; list-style: none; }
.business-steps li { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.business-steps li > span:last-child { color: var(--color-muted); font-size: 13px; line-height: 1.7; }
.business-step-number { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 4px; border-radius: 50%; background: var(--color-green); color: #fff; font-weight: 800; font-size: 14px; }
.business-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.business-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-surface); }
.business-plan--featured { border-color: var(--color-green); box-shadow: 0 0 0 1px var(--color-green); }
.business-plan h3 { margin: 0; font-size: 20px; }
.business-plan-price { margin: 4px 0 0; color: var(--color-green); font-size: 22px; font-weight: 800; }
.business-plan-note { margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.6; }
.business-plan ul { flex: 1; margin: 14px 0 20px; padding-left: 1.1em; font-size: 14px; line-height: 1.9; }
.business-plan .portal-primary-link, .business-plan .portal-secondary-link { width: 100%; text-decoration: none; }
.business-plan-badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--color-green-soft); color: var(--color-green); font-size: 12px; font-weight: 700; }
.business-plans-footnote { margin-top: 16px; color: var(--color-muted); font-size: 13px; line-height: 1.7; }
.business-plans-footnote a { color: var(--color-green); font-weight: 600; }

.footer-follow-list { display: grid; gap: 2px; margin: 0 0 18px; padding: 0; list-style: none; }

.cookie-notice { position: fixed; z-index: 90; right: 20px; bottom: 20px; left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 460px; padding: 16px 18px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); color: var(--color-ink); box-shadow: 0 12px 32px rgb(0 0 0 / 14%); font-size: 13px; line-height: 1.6; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { flex: 1 1 240px; margin: 0; }
.cookie-notice a { color: var(--color-green); font-weight: 600; }
.cookie-notice-accept { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 8px; background: var(--color-green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-notice-accept:hover { background: var(--color-green-deep); }

@media (max-width: 900px) {
    .business-benefits--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .business-landing .business-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .gw-cards, .business-benefits--grid, .business-landing .business-steps, .business-plans { grid-template-columns: 1fr; }
    .gw-cta { padding: 22px; }
    .gw-cta-actions, .gw-cta-actions .gc-btn { width: 100%; }
    .gw-cta-actions .gc-btn { justify-content: center; text-align: center; }
    .cookie-notice { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}
.portal-lost-password { margin: -4px 0 0; font-size: 13px; text-align: right; }
.portal-lost-password a { color: var(--color-green); font-weight: 600; }

/* ==========================================================================
   Salon page v2 (single-gn_salon.php + assets/salon.js)
   Only theme tokens: neutrals + the brand green; light by default, dark via html[data-theme="dark"].
   ========================================================================== */
.gs {
    --gs-bg: var(--color-ground);
    --gs-card: var(--color-surface);
    --gs-line: var(--color-line);
    --gs-ink: var(--color-ink);
    --gs-muted: var(--color-muted);
    --gs-soft: var(--color-green-soft);
    --gs-accent: var(--brand-primary);
    --gs-accent-hover: var(--brand-primary-deep);
    --gs-accent-text: var(--brand-primary);
    --gs-star: #bd8b39;
    --gs-chip-bg: rgb(255 255 255 / 80%);
    --gs-chip-line: rgb(23 23 21 / 10%);
    --gs-sel-bg: var(--brand-ink);
    --gs-sel-ink: #fff;
    --gs-field: #fff;
    --gs-shadow: 0 18px 44px rgb(23 23 21 / 9%);
    --gs-sticky-top: 92px;
    color: var(--gs-ink);
    background: var(--gs-bg);
}

html[data-theme="dark"] .gs {
    --gs-accent-text: color-mix(in srgb, var(--brand-primary) 45%, #fff);
    --gs-chip-bg: rgb(10 10 10 / 55%);
    --gs-chip-line: rgb(255 255 255 / 14%);
    --gs-sel-bg: #f2f2f0;
    --gs-sel-ink: #0a0a0a;
    --gs-field: #0d0d0d;
    --gs-shadow: 0 18px 44px rgb(0 0 0 / 45%);
}

.gs .marketplace-icon { width: 18px; height: 18px; }
.gs-muted { color: var(--gs-muted); }

/* Buttons */
.gs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--gs-line);
    border-radius: 13px;
    color: var(--gs-ink);
    background: var(--gs-card);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.gs-btn:hover { border-color: color-mix(in srgb, var(--gs-ink) 30%, transparent); color: var(--gs-ink); }
.gs-btn--primary { border-color: var(--gs-accent); color: #fff; background: var(--gs-accent); }
.gs-btn--primary:hover { border-color: var(--gs-accent-hover); color: #fff; background: var(--gs-accent-hover); }
.gs-btn--primary:disabled { border-color: var(--gs-line); color: var(--gs-muted); background: var(--gs-soft); cursor: not-allowed; }
.gs-btn--ghost { background: transparent; }
.gs-btn--glass { border-color: var(--gs-chip-line); background: var(--gs-chip-bg); backdrop-filter: blur(10px); }
.gs .gs-btn.gn-favorite-toggle {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--gs-chip-line);
    border-radius: 13px;
    color: var(--gs-ink);
    background: var(--gs-chip-bg);
    backdrop-filter: blur(10px);
    box-shadow: none;
}
.gs .gs-btn.gn-favorite-toggle .marketplace-icon { width: 18px; height: 18px; }
.gs-btn.gn-favorite-toggle.is-favorite { color: var(--gs-accent-text); border-color: color-mix(in srgb, var(--gs-accent) 45%, transparent); }
.gs-btn.gn-favorite-toggle.is-favorite .marketplace-icon { fill: currentColor; }

/* Cover */
.gs-cover {
    position: relative;
    display: flex;
    min-height: 620px;
    overflow: hidden;
    align-items: flex-end;
    isolation: isolate;
    background: var(--gs-soft);
}
.gs-cover--plain { min-height: 420px; }
.gs-cover-img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}
.gs-cover-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, var(--gs-bg) 0%, color-mix(in srgb, var(--gs-bg) 92%, transparent) 26%, color-mix(in srgb, var(--gs-bg) 55%, transparent) 46%, transparent 68%),
        linear-gradient(0deg, var(--gs-bg) 0%, color-mix(in srgb, var(--gs-bg) 70%, transparent) 16%, transparent 42%);
}
.gs-cover--plain .gs-cover-shade { display: none; }
.gs-cover-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 64px 0 44px;
}
.gs-cover-text { max-width: 760px; min-width: 0; }
.gs-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gs-muted);
    font-size: 13px;
}
.gs-crumbs a { color: var(--gs-muted); text-decoration: none; }
.gs-crumbs a:hover { color: var(--gs-ink); }
.gs-crumbs [aria-current] { color: var(--gs-ink); }
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gs-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--gs-chip-line);
    border-radius: 999px;
    color: var(--gs-ink);
    background: var(--gs-chip-bg);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
}
.gs-chip .marketplace-icon { width: 15px; height: 15px; color: var(--gs-accent-text); }
.gs-chip--accent { border-color: color-mix(in srgb, var(--gs-accent) 40%, transparent); color: var(--gs-accent-text); }
.gs-name {
    margin: 0;
    color: var(--gs-ink);
    font-size: clamp(44px, 6.2vw, 86px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}
.gs-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    color: var(--gs-ink);
    font-size: 15px;
}
.gs-facts li { display: inline-flex; align-items: center; gap: 7px; }
.gs-facts li + li::before {
    width: 4px;
    height: 4px;
    margin-right: 15px;
    border-radius: 50%;
    background: var(--gs-muted);
    content: "";
    opacity: .6;
}
.gs-facts a { color: inherit; text-decoration: none; }
.gs-facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gs-facts .marketplace-icon { width: 16px; height: 16px; color: var(--gs-muted); }
.gs-facts .gs-star, .gs-stars .is-on { color: var(--gs-star); fill: var(--gs-star); stroke: var(--gs-star); }
.gs-fact-rating a { color: var(--gs-muted); }
.gs-open { color: var(--gs-muted); }
.gs-open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-muted); }
.gs-open.is-open { color: var(--gs-accent-text); font-weight: 600; }
.gs-open.is-open .gs-open-dot { background: var(--gs-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gs-accent) 22%, transparent); }
.gs-cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.gs-thumbs { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, 136px); gap: 10px; }
.gs-thumbs--1 { grid-template-columns: 220px; }
.gs-thumbs--1 .gs-thumb { height: 150px; }
.gs-thumbs--3 .gs-thumb:first-child { grid-row: span 2; height: auto; }
.gs-thumb {
    position: relative;
    height: 100px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gs-chip-line);
    border-radius: 16px;
    background: var(--gs-soft);
    box-shadow: var(--gs-shadow);
    cursor: zoom-in;
}
.gs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.gs-thumb:hover img { transform: scale(1.05); }
.gs-thumb--more span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgb(10 10 10 / 55%);
    font-size: 14px;
    font-weight: 600;
}

/* Layout */
.gs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    align-items: start;
    gap: 28px;
    padding: 12px 0 88px;
}
.gs-main { display: grid; gap: 22px; min-width: 0; }
.gs-card {
    padding: 28px;
    border: 1px solid var(--gs-line);
    border-radius: var(--radius-card);
    background: var(--gs-card);
}
.gs-card h2, .gs-book h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.gs-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 18px;
}
.gs-card-head .gs-muted { font-size: 13px; }

.gs-about-text { margin-top: 12px; color: var(--gs-muted); }
.gs-about-text p { margin: 0 0 10px; }
.gs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.gs-tags li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--gs-line);
    border-radius: 10px;
    color: var(--gs-ink);
    font-size: 13px;
}
.gs-tags .marketplace-icon { width: 15px; height: 15px; color: var(--gs-accent-text); }

/* Services */
.gs-service-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gs-service {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--gs-line);
    border-radius: 18px;
    transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.gs-service.is-selected { border-color: color-mix(in srgb, var(--gs-accent) 55%, transparent); background: var(--gs-soft); }
.gs-service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--gs-accent-text);
    background: var(--gs-soft);
}
.gs-service.is-selected .gs-service-icon { background: var(--gs-card); }
.gs-service-body h3 { margin: 0; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
.gs-service-body p { margin: 3px 0 0; color: var(--gs-muted); font-size: 13px; line-height: 1.5; }
.gs-service-duration { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--gs-muted); font-size: 12px; }
.gs-service-duration .marketplace-icon { width: 14px; height: 14px; }
.gs-service-price { font-size: 19px; white-space: nowrap; }
.gs-add {
    display: inline-flex;
    min-width: 118px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--gs-line);
    border-radius: 12px;
    color: var(--gs-ink);
    background: var(--gs-card);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.gs-add span { display: inline-flex; align-items: center; gap: 6px; }
.gs-add .marketplace-icon { width: 15px; height: 15px; }
.gs-add-on { display: none !important; }
.gs-add[aria-pressed="true"] { border-color: var(--gs-accent); color: #fff; background: var(--gs-accent); }
.gs-add[aria-pressed="true"] .gs-add-on { display: inline-flex !important; }
.gs-add[aria-pressed="true"] .gs-add-off { display: none; }
.gs-add:hover:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--gs-ink) 30%, transparent); }

/* Team */
.gs-team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gs-member {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--gs-line);
    border-radius: 16px;
    color: var(--gs-ink);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.gs-member[aria-pressed="true"] { border-color: color-mix(in srgb, var(--gs-accent) 55%, transparent); background: var(--gs-soft); }
.gs-member-text { display: grid; min-width: 0; }
.gs-member-text strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.gs-member-text small { color: var(--gs-muted); font-size: 12px; }
.gs-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--gs-accent-text);
    background: var(--gs-soft);
    font-size: 15px;
    font-weight: 700;
}
.gs-member[aria-pressed="true"] .gs-avatar { color: #fff; background: var(--gs-accent); }
.gs-avatar--sm { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; }
.gs-avatar--any .marketplace-icon { width: 18px; height: 18px; }

/* Reviews */
.gs-score {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--gs-line);
}
.gs-score-big { display: grid; gap: 6px; }
.gs-score-big strong { font-size: 64px; line-height: .95; letter-spacing: -0.04em; }
.gs-score-big small { color: var(--gs-muted); font-size: 13px; }
.gs-stars { display: inline-flex; gap: 3px; color: color-mix(in srgb, var(--gs-muted) 45%, transparent); }
.gs-stars .marketplace-icon { width: 16px; height: 16px; }
.gs-bars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gs-bars li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 24px; align-items: center; gap: 12px; color: var(--gs-muted); font-size: 12px; }
.gs-bars li span:last-child { text-align: right; }
.gs-bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--gs-soft); }
.gs-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gs-accent); }
.gs-review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.gs-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--gs-line);
    border-radius: 18px;
}
.gs-review p { flex: 1; margin: 0; color: var(--gs-ink); font-size: 14px; line-height: 1.6; }
.gs-review-foot { display: flex; align-items: center; gap: 10px; }
.gs-review-who { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.gs-review-who strong { font-size: 13px; }
.gs-review-who small { overflow: hidden; color: var(--gs-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.gs-verified-visit { display: inline-flex; align-items: center; gap: 4px; color: var(--gs-accent-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.gs-verified-visit .marketplace-icon { width: 13px; height: 13px; stroke-width: 2.4; }

/* Location */
.gs-location {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
}
.gs-location:not(:has(.gs-map)) { grid-template-columns: 1fr; }
.gs-map { min-height: 380px; height: 100%; background: var(--gs-soft); }
.gs-location-body { padding: 26px 28px; }
.gs-location-body h2 { font-size: 20px; }
.gs-location-body > .gs-muted { margin: 4px 0 0; font-size: 14px; }
.gs-directions { width: 100%; margin-top: 16px; }
.gs-directions .marketplace-icon { width: 16px; height: 16px; }
.gs-hours { display: grid; gap: 2px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--gs-line); font-size: 14px; }
.gs-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.gs-hours dt { color: var(--gs-ink); }
.gs-hours dd { margin: 0; color: var(--gs-muted); font-variant-numeric: tabular-nums; }
.gs-hours .is-closed dt, .gs-hours .is-closed dd { color: var(--gs-muted); }
.gs-hours .is-today dt, .gs-hours .is-today dd { color: var(--gs-accent-text); font-weight: 700; }
.gs-location-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.gs-location-actions .marketplace-icon { width: 16px; height: 16px; }
.gs-contacts { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; }
.gs-contacts li { display: flex; align-items: center; gap: 8px; color: var(--gs-muted); min-width: 0; }
.gs-contacts a { overflow: hidden; color: var(--gs-ink); text-overflow: ellipsis; white-space: nowrap; }
.gs-contacts .marketplace-icon { width: 15px; height: 15px; flex: 0 0 auto; }

/* Map: OSM tiles as-is in light mode, darkened with a filter in dark mode */
.gs .leaflet-container { font: inherit; background: var(--gs-soft); }
html[data-theme="dark"] .gs-tiles,
html[data-theme="dark"] .gc-geo-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.35);
}
.gs .leaflet-bar { border: 1px solid var(--gs-line); border-radius: 12px; overflow: hidden; box-shadow: none; }
.gs .leaflet-bar a { width: 32px; height: 32px; border-bottom-color: var(--gs-line); color: var(--gs-ink); background: var(--gs-card); line-height: 32px; }
.gs .leaflet-bar a:hover { background: var(--gs-soft); }
.gs .leaflet-container .leaflet-control-attribution { color: var(--gs-muted); background: color-mix(in srgb, var(--gs-card) 85%, transparent); font-size: 10px; }
.gs .leaflet-container .leaflet-control-attribution a { color: var(--gs-ink); }
.gs-pin { background: none; border: 0; }
.gs-pin svg { display: block; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 30%)); }
.gs-pin path { fill: var(--brand-primary); stroke: #fff; stroke-width: 2; }
.gs-pin circle { fill: #fff; }
.gs .gs-pin-label {
    padding: 5px 10px;
    border: 1px solid var(--gs-line);
    border-radius: 10px;
    color: var(--gs-ink);
    background: var(--gs-card);
    box-shadow: var(--gs-shadow);
    font-size: 12px;
    font-weight: 700;
}
.gs .gs-pin-label::before { border-top-color: var(--gs-card); }

/* Booking card */
.gs-aside { position: sticky; top: var(--gs-sticky-top); min-width: 0; }
.gs-book {
    padding: 24px;
    border: 1px solid var(--gs-line);
    border-radius: var(--radius-card);
    background: var(--gs-card);
    box-shadow: var(--gs-shadow);
}
.gs-book-rows { display: grid; margin-top: 14px; border-top: 1px solid var(--gs-line); }
.gs-book-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gs-line);
    font-size: 13px;
}
.gs-book-row > span { color: var(--gs-muted); }
.gs-book-label { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 10px; font-size: 13px; }
.gs-book-label span { color: var(--gs-muted); font-size: 12px; }
.gs-days { display: flex; gap: 8px; margin: 0 -4px; padding: 2px 4px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.gs-days::-webkit-scrollbar { display: none; }
.gs-day {
    display: grid;
    flex: 0 0 52px;
    height: 62px;
    place-content: center;
    gap: 1px;
    border: 1px solid var(--gs-line);
    border-radius: 14px;
    color: var(--gs-ink);
    background: var(--gs-card);
    font: inherit;
    text-align: center;
    scroll-snap-align: start;
    cursor: pointer;
}
.gs-day small { color: var(--gs-muted); font-size: 11px; line-height: 1.2; }
.gs-day strong { font-size: 18px; line-height: 1.15; }
.gs-day:hover:not(:disabled) { border-color: color-mix(in srgb, var(--gs-ink) 35%, transparent); }
.gs-day.is-selected { border-color: var(--gs-sel-bg); color: var(--gs-sel-ink); background: var(--gs-sel-bg); }
.gs-day.is-selected small { color: inherit; opacity: .75; }
.gs-day:disabled { opacity: .38; cursor: not-allowed; }
.gs-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 92px; align-content: start; }
.gs-times-note { grid-column: 1 / -1; margin: 6px 0; color: var(--gs-muted); font-size: 13px; }
.gs-time {
    min-height: 40px;
    border: 1px solid var(--gs-line);
    border-radius: 11px;
    color: var(--gs-ink);
    background: var(--gs-card);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.gs-time:hover:not(:disabled) { border-color: color-mix(in srgb, var(--gs-ink) 35%, transparent); }
.gs-time.is-taken { color: color-mix(in srgb, var(--gs-muted) 70%, transparent); background: transparent; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.gs-time.is-selected { border-color: var(--gs-accent); color: #fff; background: var(--gs-accent); }
.gs-book.is-loading .gs-days, .gs-book.is-loading .gs-times { opacity: .55; pointer-events: none; }
.gs-total { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid var(--gs-line); color: var(--gs-muted); font-size: 14px; }
.gs-total strong { color: var(--gs-ink); font-size: 26px; letter-spacing: -0.02em; }
.gs-book-btn { width: 100%; min-height: 54px; border-radius: 15px; font-size: 15px; }
.gs-book-msg { margin: 10px 0 0; font-size: 13px; }
.gs-book-msg:empty { display: none; }
.gs-book-msg.is-error { color: #b4442c; }
html[data-theme="dark"] .gs-book-msg.is-error { color: #f3b2a8; }
.gs-book-note { display: flex; gap: 8px; margin: 12px 0 0; color: var(--gs-muted); font-size: 12px; line-height: 1.5; }
.gs-book-note .marketplace-icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.gs-book-done {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--gs-accent) 45%, transparent);
    border-radius: 14px;
    background: var(--gs-soft);
}
.gs-book-done strong { color: var(--gs-accent-text); }
.gs-book-done p { margin: 0; font-size: 13px; }
.gs-book-done .gs-btn { justify-self: start; min-height: 36px; margin-top: 4px; font-size: 13px; }

/* Mobile booking bar */
.gs-mbar { display: none; }

/* Lightbox */
.gs-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: rgb(8 8 8 / 94%);
}
.gs-lightbox::backdrop { background: rgb(0 0 0 / 60%); }
.gs-lightbox[open] { display: grid; place-items: center; }
.gs-lightbox img { max-width: min(1200px, 90vw); max-height: 84vh; border-radius: 16px; object-fit: contain; }
.gs-lightbox button {
    position: absolute;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50%;
    color: #fff;
    background: rgb(255 255 255 / 8%);
    cursor: pointer;
}
.gs-lightbox button .marketplace-icon { width: 22px; height: 22px; }
.gs-lightbox-close { top: 20px; right: 20px; }
.gs-lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); }
.gs-lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); }
.gs-lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 13px; opacity: .8; }

.gs-toast {
    position: fixed;
    z-index: 1300;
    bottom: 96px;
    left: 50%;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--color-surface);
    background: var(--color-ink);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.gs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
    .gs-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; }
    .gs-thumbs { grid-template-columns: repeat(2, 112px); }
    .gs-thumb { height: 84px; }
}

@media (max-width: 980px) {
    .gs { --gs-sticky-top: 0px; }
    .gs-cover { min-height: 0; }
    .gs-cover-shade {
        background: linear-gradient(0deg, var(--gs-bg) 0%, color-mix(in srgb, var(--gs-bg) 92%, transparent) 30%, color-mix(in srgb, var(--gs-bg) 40%, transparent) 54%, transparent 78%);
    }
    .gs-cover-inner { flex-direction: column; align-items: stretch; gap: 18px; padding: 260px 0 22px; }
    .gs-cover--plain .gs-cover-inner { padding-top: 48px; }
    .gs-thumbs, .gs-thumbs--1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gs-thumbs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gs-thumbs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gs-thumb, .gs-thumbs--1 .gs-thumb, .gs-thumbs--3 .gs-thumb:first-child { grid-row: auto; height: 76px; border-radius: 13px; }
    .gs-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
    body.single-gn_salon { padding-bottom: 84px; }
    .gs-aside { position: static; order: 2; }
    .gs-main { display: contents; }
    .gs-about { order: 1; }
    .gs-services { order: 1; }
    .gs-team { order: 1; }
    .gs-reviews { order: 3; }
    .gs-location { order: 4; }
    .gs-mbar {
        position: fixed;
        z-index: 90;
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 18px;
        border: 1px solid var(--gs-line);
        border-radius: 18px;
        background: color-mix(in srgb, var(--gs-card) 94%, transparent);
        backdrop-filter: blur(14px);
        box-shadow: 0 16px 40px rgb(0 0 0 / 22%);
        transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out);
    }
    .gs-mbar > div { display: grid; min-width: 0; line-height: 1.3; }
    .gs-mbar small { overflow: hidden; color: var(--gs-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .gs-mbar strong { font-size: 19px; }
    .gs-mbar .gs-btn { flex: 0 0 auto; min-height: 46px; padding: 0 22px; }
    .gs-mbar.is-hidden { opacity: 0; pointer-events: none; transform: translateY(140%); }
}

@media (max-width: 760px) {
    .gs-cover-inner { padding-top: 230px; }
    .gs-crumbs { display: none; }
    .gs-name { font-size: clamp(36px, 11vw, 48px); }
    .gs-facts { gap: 8px 14px; margin-top: 14px; font-size: 14px; }
    .gs-facts li + li::before { display: none; }
    .gs-cover-actions { margin-top: 18px; }
    .gs-cover-actions .gs-btn { flex: 1; }
    .gs-card, .gs-book { padding: 20px; border-radius: 20px; }
    .gs-card h2, .gs-book h2 { font-size: 20px; }
    .gs-service { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
    .gs-service-icon { width: 44px; height: 44px; border-radius: 13px; }
    .gs-service-price { font-size: 17px; }
    .gs-add { grid-column: 2 / 4; justify-self: start; min-width: 0; min-height: 36px; }
    .gs-team-list, .gs-review-list { grid-template-columns: 1fr; }
    .gs-score { gap: 20px; }
    .gs-score-big strong { font-size: 52px; }
    .gs-location { grid-template-columns: 1fr; padding: 0; }
    .gs-map { min-height: 240px; height: 240px; }
    .gs-location-body { padding: 20px; }
    .gs-times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .gs-thumb img, .gs-mbar, .gs-toast { transition: none; }
}

/* ==========================================================================
   Form controls v3 — one system for every input, select and textarea.
   Same height, radius and padding; brand-green focus ring; error and disabled
   states; light and dark. Selects are enhanced by assets/forms.js (gw-select).
   ========================================================================== */
:root {
    --fc-h: 48px;
    --fc-h-sm: 40px;
    --fc-radius: var(--radius-control);
    --fc-px: 14px;
    --fc-font: 15px;
    --fc-ink: var(--color-ink);
    --fc-bg: var(--color-ground);
    --fc-bg-focus: var(--color-surface);
    --fc-border: var(--color-line);
    --fc-border-hover: #b9b8b1;
    --fc-placeholder: #8e8c86;
    --fc-ring: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, transparent);
    --fc-error: #b4442c;
    --fc-error-ring: 0 0 0 3px rgb(180 68 44 / 14%);
    --fc-disabled-bg: #ecebe7;
    --fc-pop-bg: var(--color-surface);
    --fc-pop-border: var(--color-line);
    --fc-pop-shadow: 0 18px 44px rgb(23 23 21 / 14%), 0 2px 6px rgb(23 23 21 / 6%);
    --fc-option-hover: var(--color-green-soft);
    --fc-accent-text: var(--brand-primary);
    --fc-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6c66' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html[data-theme="dark"] {
    --fc-bg: #0a0a0a;
    --fc-bg-focus: #0f0f0f;
    --fc-border-hover: rgb(255 255 255 / 26%);
    --fc-placeholder: #77756f;
    --fc-error: #f3b2a8;
    --fc-error-ring: 0 0 0 3px rgb(243 178 168 / 16%);
    --fc-disabled-bg: #1b1a1a;
    --fc-pop-bg: #1a1919;
    --fc-pop-border: rgb(255 255 255 / 12%);
    --fc-pop-shadow: 0 20px 48px rgb(0 0 0 / 60%);
    --fc-option-hover: var(--color-green-soft);
    --fc-accent-text: color-mix(in srgb, var(--brand-primary) 45%, #fff);
    --fc-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a19b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

:is(input:is([type="text"], [type="email"], [type="tel"], [type="password"], [type="number"], [type="date"], [type="time"], [type="datetime-local"], [type="search"], [type="url"]), input:not([type]), select, textarea):not(:where(.gn-search-form, .gw-bare, #wpadminbar) *):not(:where(.gn-search-form--hero) *),
.gw-select > button.gw-select-trigger {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: var(--fc-h);
    margin: 0;
    padding: 0 var(--fc-px);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    color: var(--fc-ink);
    background-color: var(--fc-bg);
    box-shadow: none;
    font: inherit;
    font-family: var(--font-body);
    font-size: var(--fc-font);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    font-feature-settings: normal;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

select:not(:where(.gn-search-form, .gw-bare, #wpadminbar) *):not(:where(.gn-search-form--hero) *),
.gw-select > button.gw-select-trigger {
    padding-right: 42px;
    overflow: hidden;
    background-image: var(--fc-chevron);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px 14px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

textarea:not(:where(.gw-bare, #wpadminbar) *) {
    min-height: 112px;
    padding: 12px var(--fc-px);
    line-height: 1.55;
    resize: vertical;
}

:is(input, select, textarea):not(:where(.gn-search-form, .gw-bare, #wpadminbar) *):not(:where(.gn-search-form--hero) *):not([type="checkbox"]):not([type="radio"]):not(:disabled):hover,
.gw-select > button.gw-select-trigger:not(:disabled):hover {
    border-color: var(--fc-border-hover);
}

:is(input, select, textarea):not(:where(.gn-search-form, .gw-bare, #wpadminbar) *):not(:where(.gn-search-form--hero) *):not([type="checkbox"]):not([type="radio"]):focus,
.gw-select > button.gw-select-trigger:focus-visible,
:is(input, select, textarea):not(:where(.gn-search-form, .gw-bare, #wpadminbar) *):not([type="checkbox"]):not([type="radio"]):focus-visible,
.gw-select.is-open > button.gw-select-trigger {
    border-color: var(--brand-primary);
    background-color: var(--fc-bg-focus);
    box-shadow: var(--fc-ring);
    outline: none;
}

:is(input, textarea)::placeholder {
    color: var(--fc-placeholder);
    opacity: 1;
}

:is(input, select, textarea):not([type="checkbox"]):not([type="radio"])[aria-invalid="true"],
:is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):user-invalid,
.gw-select.is-invalid > button.gw-select-trigger {
    border-color: var(--fc-error);
    box-shadow: var(--fc-error-ring);
}

:is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):disabled,
.gw-select > button.gw-select-trigger:disabled,
:is(input, textarea)[readonly] {
    border-color: var(--fc-border);
    color: var(--color-muted);
    background-color: var(--fc-disabled-bg);
    box-shadow: none;
    cursor: not-allowed;
}

:is(input, textarea)[readonly] {
    cursor: default;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="date"],
input[type="time"] {
    min-width: 0;
}

input:is([type="date"], [type="time"])::-webkit-calendar-picker-indicator {
    opacity: .6;
    cursor: pointer;
}

html[data-theme="dark"] input:is([type="date"], [type="time"])::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

html[data-theme="dark"] :is(input, select, textarea) {
    color-scheme: dark;
}

.gw-field-error {
    display: block;
    margin-top: 6px;
    color: var(--fc-error);
    font-size: 13px;
    font-weight: 500;
}

/* Checkbox and radio */
input:is([type="checkbox"], [type="radio"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *) {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid var(--fc-border-hover);
    border-radius: 6px;
    background: var(--color-surface);
    vertical-align: -4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

input[type="radio"]:not(:where(#wpadminbar, .gw-bare, .gc-rate) *) {
    border-radius: 50%;
}

input[type="checkbox"]:not([role="switch"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *)::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #fff;
    clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
    transform: scale(0);
    transition: transform var(--duration-fast) var(--ease-out);
}

input[type="radio"]:not(:where(#wpadminbar, .gw-bare, .gc-rate) *)::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform var(--duration-fast) var(--ease-out);
}

input:is([type="checkbox"], [type="radio"]):not([role="switch"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *):checked {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

input:is([type="checkbox"], [type="radio"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *):checked::before {
    transform: scale(1);
}

input:is([type="checkbox"], [type="radio"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *):hover:not(:disabled) {
    border-color: var(--brand-primary);
}

input:is([type="checkbox"], [type="radio"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *):focus-visible {
    outline: none;
    box-shadow: var(--fc-ring);
}

input:is([type="checkbox"], [type="radio"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *):disabled {
    opacity: .5;
    cursor: not-allowed;
}

input:is([type="checkbox"], [type="radio"]):not(:where(#wpadminbar, .gw-bare, .gc-rate) *):user-invalid {
    border-color: var(--fc-error);
}

/* Switch: <input type="checkbox" role="switch"> */
input[type="checkbox"][role="switch"]:not(:where(#wpadminbar, .gw-bare) *) {
    width: 40px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfcec8;
    place-content: center start;
}

html[data-theme="dark"] input[type="checkbox"][role="switch"]:not(:where(#wpadminbar, .gw-bare) *) {
    background: #3a3938;
}

input[type="checkbox"][role="switch"]:not(:where(#wpadminbar, .gw-bare) *)::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
    transform: none;
    clip-path: none;
    transition: transform var(--duration-ui) var(--ease-out);
}

input[type="checkbox"][role="switch"]:not(:where(#wpadminbar, .gw-bare) *):checked {
    background: var(--brand-primary);
}

input[type="checkbox"][role="switch"]:not(:where(#wpadminbar, .gw-bare) *):checked::before {
    transform: translateX(16px);
}

/* Custom select (assets/forms.js) */
.gw-select {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.gw-select > select.gw-native {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.gw-select-trigger {
    display: block;
}

.gw-select-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gw-select-trigger.is-placeholder .gw-select-value {
    color: var(--fc-placeholder);
}

.gw-select.is-open > .gw-select-trigger {
    background-image: var(--fc-chevron);
}

.gw-select.is-disabled > .gw-select-trigger {
    cursor: not-allowed;
}

.gw-select-pop {
    position: fixed;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-width: calc(100vw - 16px);
    max-height: min(360px, calc(100vh - 24px));
    padding: 6px;
    border: 1px solid var(--fc-pop-border);
    border-radius: 16px;
    color: var(--color-ink);
    background: var(--fc-pop-bg);
    box-shadow: var(--fc-pop-shadow);
    font-family: var(--font-body);
    font-size: 15px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 160ms var(--ease-out);
}

.gw-select-pop.is-up {
    transform: translateY(4px);
}

.gw-select-pop.is-shown {
    opacity: 1;
    transform: none;
}

.gw-select-pop[hidden] {
    display: none;
}

.gw-select-search {
    position: relative;
    flex: 0 0 auto;
    margin: 0 0 6px;
}

.gw-select-search .marketplace-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--color-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.gw-select-pop .gw-select-search input[type="search"] {
    min-height: var(--fc-h-sm);
    padding-left: 36px;
    border-radius: 11px;
    font-size: 14px;
}

.gw-select-list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--color-line) transparent;
}

.gw-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--color-ink);
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
}

.gw-option .marketplace-icon {
    width: 16px;
    height: 16px;
    color: var(--brand-primary);
    stroke-width: 2.4;
    visibility: hidden;
}

html[data-theme="dark"] .gw-option .marketplace-icon {
    color: var(--fc-accent-text);
}

.gw-option.is-active {
    background: var(--fc-option-hover);
}

.gw-option[aria-selected="true"] {
    color: var(--brand-primary);
    font-weight: 600;
}

html[data-theme="dark"] .gw-option[aria-selected="true"] {
    color: var(--fc-accent-text);
}

.gw-option[aria-selected="true"] .marketplace-icon {
    visibility: visible;
}

.gw-option[aria-disabled="true"] {
    color: var(--color-muted);
    opacity: .55;
    cursor: not-allowed;
}

.gw-option-group {
    padding: 10px 12px 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
}

.gw-option-empty {
    padding: 14px 12px;
    color: var(--color-muted);
    font-size: 14px;
    text-align: center;
}

/* Home hero search: dropdown panel is always dark (popup lives on <body>). */
.gw-select-pop--hero {
    --fc-ink: #fff;
    --fc-bg: #0a0a0a;
    --fc-bg-focus: #0f0f0f;
    --fc-border: rgb(255 255 255 / 16%);
    --fc-border-hover: rgb(255 255 255 / 28%);
    --fc-placeholder: #77756f;
    --fc-pop-bg: #1a1919;
    --fc-pop-border: rgb(255 255 255 / 12%);
    --fc-pop-shadow: 0 20px 48px rgb(0 0 0 / 60%);
    --fc-option-hover: color-mix(in srgb, var(--brand-primary) 28%, #0a0a0a);
    --fc-accent-text: color-mix(in srgb, var(--brand-primary) 45%, #fff);
    --color-ink: #fff;
    --color-muted: #77756f;
    --color-line: rgb(255 255 255 / 12%);
    --color-ground: #0a0a0a;
    --color-surface: #0f0f0f;
    color: #fff;
    background: #1a1919;
    border-color: rgb(255 255 255 / 12%);
    box-shadow: 0 20px 48px rgb(0 0 0 / 60%);
    color-scheme: dark;
}

.gw-select-pop--hero .gw-option[aria-selected="true"],
.gw-select-pop--hero .gw-option .marketplace-icon {
    color: var(--fc-accent-text);
}

/* Salon booking card: slightly smaller selects. */
.gs-book-row .gw-select > button.gw-select-trigger,
.gs-book-row select {
    min-height: 42px;
    font-size: 14px;
    font-weight: 600;
}

/* Cabinet and portal forms use the shared controls; keep their label spacing. */
.portal-panel #loginform input:is([type="text"], [type="password"]),
.portal-panel .gn-register-form :is(input, .gw-select) {
    margin-top: 7px;
}

.portal-panel #loginform .login-remember input {
    margin-top: 0;
}

.gc-check input[role="switch"] {
    margin-right: 2px;
}

/* One-click demo accounts on the login pages */
.gw-demo-login {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--color-line);
}

.gw-demo-login-head h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.gw-demo-login-head p {
    margin: 4px 0 14px;
    color: var(--color-muted);
    font-size: 13px;
}

.gw-demo-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-demo-list form {
    margin: 0;
}

.gw-demo-card {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    color: var(--color-ink);
    background: var(--color-surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.gw-demo-card:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 55%, transparent);
    background: var(--color-green-soft);
}

.gw-demo-card:focus-visible {
    border-color: var(--brand-primary);
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.gw-demo-avatar {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-ink);
    background: var(--color-ground);
    box-shadow: inset 0 0 0 1px var(--color-line);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.gw-demo-avatar.is-owner {
    color: #fff;
    background: var(--brand-primary);
    box-shadow: none;
}

.gw-demo-text {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.gw-demo-text strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gw-demo-text small {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.gw-demo-role {
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 999px;
    color: var(--color-ink);
    background: var(--color-ground);
    box-shadow: inset 0 0 0 1px var(--color-line);
    font-size: 11.5px;
    font-weight: 600;
}

.gw-demo-role.is-owner {
    color: var(--brand-primary);
    background: var(--color-green-soft);
    box-shadow: none;
}

html[data-theme="dark"] .gw-demo-role.is-owner {
    color: var(--fc-accent-text);
}

.gw-demo-detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gw-demo-enter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    background: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
}

.gw-demo-card:hover .gw-demo-enter {
    background: var(--brand-primary-deep);
}

.gw-demo-enter .marketplace-icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 480px) {
    .gw-demo-enter {
        width: 34px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .gw-demo-enter .marketplace-icon {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-select-pop,
    input:is([type="checkbox"], [type="radio"])::before {
        transition: none;
    }
}

.entry-content .gw-demo-list,
.gw-demo-list {
    padding-left: 0;
}

.entry-content .gw-demo-list li,
.gw-demo-list li {
    margin: 0;
    padding: 0;
    color: inherit;
}

.gw-select-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

html[data-theme="dark"] input[type="checkbox"][role="switch"]:not(:where(#wpadminbar, .gw-bare) *):checked {
    background: var(--brand-primary);
}
