/* Dependency-free Arvira UI foundation. Mirrors the Figma token contract. */
:root { --ui-content-max: 1440px; --ui-touch-target: 44px; --ui-focus-ring: 0 0 0 3px rgba(83,73,221,.22); --ui-panel: #fff; }
body.arvira-figma-shell { min-width: 320px; background: var(--arvira-bg-muted); }
.arvira-figma-shell :where(a,button,input,select,textarea,[tabindex]) { min-height: var(--ui-touch-target); }
.arvira-figma-shell :where(button,input,select,textarea,a,[tabindex]):focus-visible { outline: 3px solid var(--arvira-purple); outline-offset: 2px; box-shadow: var(--ui-focus-ring); }
.arvira-figma-shell :where(input,select,textarea) { border: 1px solid var(--arvira-border); border-radius: var(--arvira-radius-md); background: #fff; color: var(--arvira-text); padding: 10px 12px; }
.arvira-figma-shell :where(input,select,textarea)::placeholder { color: var(--arvira-text-muted); }
.arvira-figma-shell :where(input,select,textarea):disabled,.arvira-figma-shell :where(button,a)[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.figma-wrapper { display: flex; min-height: 100vh; flex-direction: column; }
.figma-page-body { display: block; direction: rtl; width: min(100%,var(--ui-content-max)); margin: 0 auto; flex: 1; }
.figma-filter-panel { min-height: calc(100vh - var(--arvira-top-nav-height)); background: #fff; border-inline-start: 1px solid var(--arvira-border); }
.figma-filter-panel-inner { position: sticky; top: var(--arvira-space-4); max-height: calc(100vh - var(--arvira-space-8)); overflow: auto; padding: var(--arvira-space-6) var(--arvira-space-4); }
.figma-main-content { min-width: 0; padding: var(--arvira-space-6) clamp(var(--arvira-space-4),4vw,var(--arvira-page-gutter)); }
.figma-top-nav { position: sticky; top: 0; z-index: var(--arvira-z-sticky); padding: 14px clamp(16px,4vw,100px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--arvira-border); backdrop-filter: blur(14px); }
.figma-top-nav-inner { width: min(100%,var(--ui-content-max)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--arvira-space-6); }
.figma-top-nav-links,.figma-top-nav-start,.figma-top-nav-actions { display: flex; align-items: center; gap: var(--arvira-space-4); }
.figma-nav-link { display: inline-flex; align-items: center; min-height: var(--ui-touch-target); padding: 8px 14px; color: var(--arvira-text-light); border-radius: var(--arvira-radius-pill); }
.figma-nav-link:hover,.figma-nav-link.active { color: var(--arvira-purple); background: rgba(83,73,221,.08); }
.figma-mobile-header { display: none; position: sticky; top: 0; z-index: var(--arvira-z-sticky); align-items: center; justify-content: space-between; min-height: 64px; padding: 8px var(--arvira-space-4); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--arvira-border); backdrop-filter: blur(12px); }
.figma-mobile-header :where(a,button) { display: inline-flex; align-items: center; justify-content: center; width: var(--ui-touch-target); min-height: var(--ui-touch-target); }
.figma-bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--arvira-z-fixed); padding: 32px 10px calc(6px + env(safe-area-inset-bottom, 0px)); background: transparent; border-top: none; box-shadow: none; backdrop-filter: none; overflow: visible; pointer-events: none; }
.figma-bottom-nav-bar { pointer-events: auto; direction: ltr; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: end; gap: 2px; width: min(100%,560px); margin: 0 auto; min-height: 72px; padding: 10px 6px 8px; background: #fff; border-radius: 10px; box-shadow: var(--arvira-shadow-nav); overflow: visible; }
.figma-bottom-link { display: grid; justify-items: center; align-content: end; gap: 4px; min-height: 0; padding: 4px 2px; color: var(--arvira-text); font-size: 12px; }
.figma-bottom-link.active,.figma-bottom-link:hover { color: var(--arvira-pink); }
.figma-bottom-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; font-size: 18px; line-height: 1; }
.figma-bottom-icon img { width: 22px; height: 22px; object-fit: contain; }
.figma-bottom-label { font-size: clamp(10px, 2.6vw, 12px); line-height: 1.2; white-space: nowrap; direction: rtl; }
.figma-bottom-link--center { position: relative; overflow: visible; }
.figma-bottom-fab { position: relative; top: auto; display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin: -28px auto 0; border: 0; border-radius: 50%; background: #e968d6; box-shadow: 0 4px 14px rgba(233,104,214,.35); color: #fff; font-size: 26px; }
.figma-bottom-fab img, .figma-bottom-fab i { width: 28px; height: 28px; color: #fff; filter: none; }
.figma-bottom-link--center.active .figma-bottom-label { color: #e968d6; font-weight: 600; }
.active-filters-bar { display: none; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--arvira-space-4); padding: 8px 12px; border: 1px solid var(--arvira-border); border-radius: var(--arvira-radius-md); background: #fff; }
.active-filters-bar.visible { display: flex; }
.filter-chip,.status-badge,.service-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 4px 10px; border-radius: var(--arvira-radius-pill); background: rgba(83,73,221,.09); color: var(--arvira-purple); font-size: 13px; }
.status-badge.open { background: rgba(0,184,77,.1); color: #087d39; } .status-badge.closed { background: rgba(255,0,4,.08); color: #b20a0c; }
.chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 24px; min-height: 24px; border-radius: 50%; } .chip-remove:hover { background: rgba(83,73,221,.12); }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: clamp(32px,8vw,96px) 20px; text-align: center; border: 1px dashed var(--arvira-border); border-radius: var(--arvira-radius-md); background: #fff; }
.empty-state p { max-width: 40ch; color: var(--arvira-text-light); }
.btn-reserve,.btn-primary,.detail-submit-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ui-touch-target); padding: 10px 18px; border-radius: var(--arvira-radius-md); background: linear-gradient(135deg,var(--arvira-purple),#6b61ec); color: #fff; font-weight: var(--arvira-font-weight-semibold); box-shadow: 0 8px 18px rgba(83,73,221,.18); }
.btn-reserve:hover,.btn-primary:hover,.detail-submit-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.alert-message { display: flex; align-items: flex-start; gap: 8px; margin-bottom: var(--arvira-space-4); padding: 12px 14px; border-radius: var(--arvira-radius-md); font-size: 14px; }
.alert-success { background: rgba(0,184,77,.1); color: #087d39; } .alert-danger { background: rgba(255,0,4,.08); color: #a6080b; }
.marketplace-page { max-width: 1120px; margin: 0 auto; }
.marketplace-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }
.marketplace-heading h1 { margin:4px 0; font-size:clamp(24px,4vw,38px); }
.marketplace-heading p,.marketplace-heading .eyebrow { color:var(--arvira-text-light); }
.eyebrow { font-size:13px; font-weight:600; color:var(--arvira-purple) !important; }
.marketplace-search { display:grid; gap:8px; margin-bottom:24px; padding:16px; border:1px solid var(--arvira-border); border-radius:var(--arvira-radius-md); background:#fff; }
.marketplace-search > div { display:flex; gap:8px; } .marketplace-search input { flex:1; }
.product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.product-card { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--arvira-border); border-radius:var(--arvira-radius-md); background:#fff; }
.product-card-media { display:grid; place-items:center; aspect-ratio:1/1; background:var(--arvira-bg-muted); color:var(--arvira-text-muted); }
.product-card-media img { width:100%; height:100%; object-fit:cover; }
.product-card-body { display:grid; gap:8px; padding:14px; } .product-card-body h2 { font-size:16px; }
.product-salon { color:var(--arvira-text-muted); font-size:12px; } .product-card-body strong { color:var(--arvira-purple); }
.cart-card { padding:20px; border:1px solid var(--arvira-border); border-radius:var(--arvira-radius-md); background:#fff; }
.cart-salon { color:var(--arvira-purple); font-weight:600; } .cart-row,.cart-total { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--arvira-border); }
.cart-row div { display:grid; gap:4px; } .cart-row span,.cart-note { color:var(--arvira-text-light); font-size:13px; } .cart-row button { color:#b20a0c; }
.cart-total { border-bottom:0; font-size:17px; }
.d-none { display: none !important; } .d-flex { display: flex !important; } .mb-0 { margin-bottom: 0 !important; } .text-muted { color: var(--arvira-text-muted) !important; }
@media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-block { display: block !important; } }
@media (max-width: 991.98px) {
    .d-lg-block { display: none !important; } .d-lg-none { display: flex !important; }
    .figma-page-body { display: block; width: 100%; }
    .figma-filter-panel { position: fixed; top: 0; right: 0; left: auto; bottom: 0; z-index: var(--arvira-z-modal); width: min(88vw,360px); min-height: 100vh; height: 100%; transform: translateX(110%); transition: transform var(--arvira-transition-normal) ease; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
    .figma-filter-panel.is-open { transform: translateX(0); } .figma-filter-panel-inner { position: static; max-height: 100vh; padding-top: 76px; }
    .mobile-sidebar-overlay { position: fixed; inset: 0; z-index: calc(var(--arvira-z-modal) - 1); background: rgba(20,18,48,.36); } .mobile-sidebar-overlay:not([hidden]) { display: block; }
    .figma-main-content { padding: var(--arvira-space-4) var(--arvira-page-gutter-mobile) calc(var(--arvira-bottom-nav-height) + var(--arvira-space-6)); }
    .salon-grid { display: flex; flex-direction: column; grid-template-columns: none !important; }
}
@media (max-width: 620px) { .salon-grid { grid-template-columns: 1fr !important; } .figma-main-content { padding-inline: 12px; } }
@media (max-width: 900px) { .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .marketplace-heading { flex-direction:column; } .marketplace-search > div { flex-direction:column; } .product-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.figma-mobile-header .figma-mobile-brand,
.figma-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    justify-content: flex-start;
}
.figma-mobile-brand img { width: 40px; height: 44px; object-fit: contain; flex-shrink: 0; }
.figma-mobile-wordmark { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; white-space: nowrap; }
.figma-mobile-name { font-size: 18px; font-weight: 700; }
.figma-mobile-tagline { font-size: 11px; color: #8a8a8a; }
.figma-mobile-header-spacer {
    width: var(--ui-touch-target);
    height: var(--ui-touch-target);
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Home listing (Figma 58:2) — scoped so marketplace chrome stays intact
   ------------------------------------------------------------------ */
@font-face {
    font-family: "Muslimah";
    src: url("../assets/font/Muslimah.Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

body.arvira-figma-shell.figma-home-page .figma-top-nav {
    position: relative;
    top: auto;
    z-index: 200;
    padding: clamp(12px, 2.4vw, 36px) clamp(16px, 6.94vw, 100px) 0;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    pointer-events: none;
}

body.arvira-figma-shell.figma-home-page .figma-top-nav-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 1240px;
    height: 84px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(138, 138, 138, 0.15);
}

body.arvira-figma-shell.figma-home-page .figma-logo,
body.arvira-figma-shell.figma-home-page a.figma-logo {
    display: flex;
    width: 50px;
    height: 55px;
    min-height: 0;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
}

body.arvira-figma-shell.figma-home-page .figma-logo img {
    width: 50px;
    height: 55px;
    max-width: 50px;
    object-fit: contain;
}

body.arvira-figma-shell.figma-home-page .figma-top-nav-actions {
    gap: 12px;
}

body.arvira-figma-shell.figma-home-page .figma-header-icon {
    width: 26px;
    height: 26px;
}

body.arvira-figma-shell.figma-home-page .figma-top-nav-links {
    gap: 16px;
}

body.arvira-figma-shell.figma-home-page .figma-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0 0 6px;
    border-radius: 0;
    background: transparent;
    color: #1e1e1e;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

body.arvira-figma-shell.figma-home-page .figma-nav-link:hover {
    color: #e968d6;
    background: transparent;
}

body.arvira-figma-shell.figma-home-page .figma-nav-link.active,
body.arvira-figma-shell.figma-home-page .figma-nav-link.active:hover {
    color: #e968d6;
    font-weight: 600;
    background: transparent;
}

body.arvira-figma-shell.figma-home-page .figma-nav-link.active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 4px;
    border-radius: 10px;
    background: #e968d6;
}

body.arvira-figma-shell.figma-home-page .figma-main-content {
    min-width: 0;
    padding: 0;
}

body.arvira-figma-shell.figma-home-page .salon-name {
    font-family: "Muslimah", Tahoma, sans-serif;
    font-weight: 300;
    font-size: 24px;
}

body.arvira-figma-shell.figma-home-page .figma-filter-card {
    width: 291px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(138, 138, 138, 0.05);
    padding: 16px 20px 18px;
    margin-bottom: 16px;
}

body.arvira-figma-shell.figma-home-page .figma-filter-card .accordion-header {
    min-height: 0;
    margin-bottom: 12px;
    padding: 0;
    font-size: 20px;
    font-weight: 400;
    color: #1e1e1e;
    background: transparent;
}

body.arvira-figma-shell.figma-home-page .figma-filter-card .accordion-content,
body.arvira-figma-shell.figma-home-page .figma-filter-card .accordion-content {
    display: block;
    padding: 0;
}

body.arvira-figma-shell.figma-home-page .figma-filter-panel .filter-select {
    width: 100%;
    height: 43px;
    min-height: 43px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid #1e1e1e;
    border-radius: 5px;
    background: #fff;
    font-size: 15px;
    appearance: none;
}

body.arvira-figma-shell.figma-home-page .figma-filter-panel .filter-toggle {
    direction: ltr;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 0;
    background: transparent;
    font-size: 15px;
}

body.arvira-figma-shell.figma-home-page .figma-filter-panel .toggle-text {
    direction: rtl;
}

body.arvira-figma-shell.figma-home-page .figma-filter-panel .toggle-track {
    width: 48px;
    height: 24px;
    border-radius: 100px;
    background: #f6f6f6;
    box-shadow: 0 0 25px rgba(138, 138, 138, 0.05);
}

body.arvira-figma-shell.figma-home-page .figma-filter-panel .toggle-thumb {
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #8a8a8a;
}

body.arvira-figma-shell.figma-home-page .figma-filter-panel .filter-option {
    min-height: 0;
    padding: 6px 0;
    font-size: 15px;
}

body.arvira-figma-shell.figma-home-page .figma-bottom-nav {
    padding: 18px 12px calc(8px + env(safe-area-inset-bottom, 0px));
}

body.arvira-figma-shell.figma-home-page .figma-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

body.arvira-figma-shell.figma-home-page .figma-map-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 291px;
    min-height: 50px;
    height: 50px;
    padding: 0 20px;
    background: #5349dd;
    color: #fff !important;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(138, 138, 138, 0.05);
    font-size: 20px;
    font-weight: 400;
    white-space: nowrap;
}

body.arvira-figma-shell.figma-home-page .figma-map-cta-icon {
    width: 20px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body.arvira-figma-shell.figma-home-page .figma-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
}

body.arvira-figma-shell.figma-home-page .figma-filter-chips .filter-chip,
body.arvira-figma-shell.figma-home-page .figma-filter-chips .filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    height: 36px;
    padding: 6px 14px;
    background: #fff;
    color: #1e1e1e;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(138, 138, 138, 0.05);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

body.arvira-figma-shell.figma-home-page .figma-filter-chips .filter-chip.active,
body.arvira-figma-shell.figma-home-page .figma-filter-chips .filter-tag.active {
    background: #00b84d;
    color: #fff;
    font-weight: 700;
}

body.arvira-figma-shell.figma-home-page .figma-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0;
    text-decoration: none;
    color: #1e1e1e;
}

body.arvira-figma-shell.figma-home-page .figma-mobile-brand img {
    width: 40px;
    height: 44px;
    object-fit: contain;
}

body.arvira-figma-shell.figma-home-page .figma-mobile-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

body.arvira-figma-shell.figma-home-page .figma-mobile-name {
    font-size: 18px;
    font-weight: 700;
}

body.arvira-figma-shell.figma-home-page .figma-mobile-tagline {
    font-size: 11px;
    font-weight: 400;
    color: #8a8a8a;
}

body.arvira-figma-shell.figma-home-page .salon-card-media img,
body.arvira-figma-shell.figma-home-page .salon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    body.arvira-figma-shell.figma-home-page .figma-page-body {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        width: min(1240px, calc(100% - 200px));
        margin: 0 auto;
        padding: 24px 0 48px;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-panel {
        display: flex;
        width: 291px;
        flex-shrink: 0;
        min-height: 0;
        background: transparent;
        border: none;
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow: visible;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-panel-inner {
        width: 100%;
        padding: 0;
        position: static;
        max-height: none;
        overflow: visible;
    }

    body.arvira-figma-shell.figma-home-page .figma-main-content {
        flex: 1;
        min-width: 0;
        padding: 0;
    }
}

@media (max-width: 991.98px) {
    body.arvira-figma-shell.figma-home-page .figma-page-body {
        display: block;
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 16px 0 150px;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-bar {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

    body.arvira-figma-shell.figma-home-page .figma-map-cta {
        display: inline-flex !important;
        min-width: 139px;
        min-height: 30px;
        height: 30px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 5px;
        gap: 8px;
    }

    body.arvira-figma-shell.figma-home-page .figma-map-cta-icon {
        width: 8px;
        height: 10px;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-chips .filter-chip,
    body.arvira-figma-shell.figma-home-page .figma-filter-chips .filter-tag {
        min-height: 25px;
        height: 25px;
        padding: 4px 8px;
        font-size: 10px;
    }

    body.arvira-figma-shell.figma-home-page .figma-page-body {
        width: calc(100% - 40px);
        padding: 16px 0 150px;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-panel,
    body.arvira-figma-shell.figma-home-page .figma-filter-panel:not(.is-open) {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: min(88vw, 360px) !important;
        height: 100% !important;
        max-height: none !important;
        transform: translateX(110%) !important;
        pointer-events: none;
        visibility: hidden;
        background: #fff !important;
        z-index: 450;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-panel.is-open {
        transform: translateX(0) !important;
        pointer-events: auto;
        visibility: visible;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-card {
        width: 100%;
    }

    body.arvira-figma-shell.figma-home-page .salon-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 14px;
    }

    body.arvira-figma-shell.figma-home-page .salon-card,
    body.arvira-figma-shell.figma-home-page .salon-card-link {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: 130px;
        min-height: 130px;
        max-height: 130px;
        overflow: hidden;
    }

    body.arvira-figma-shell.figma-home-page .salon-card-media {
        width: 130px;
        height: 130px;
        flex-shrink: 0;
    }

    .figma-bottom-fab {
        width: min(70px, 18vw);
        height: min(70px, 18vw);
        margin-top: -28px;
        top: auto;
    }

    .figma-main-content {
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }
}

.arvira-figma-shell .figma-bottom-fab {
    position: relative !important;
    top: auto !important;
    left: auto;
    transform: none;
}

@media (max-width: 380px) {
    .figma-bottom-fab {
        width: 56px;
        height: 56px;
        margin-top: -14px;
        font-size: 22px;
    }

    .figma-bottom-label {
        font-size: 10px;
    }

    .figma-bottom-nav-bar {
        min-height: 64px;
        padding: 8px 4px 6px;
    }
}

/* ------------------------------------------------------------------
   Mobile Figma shell (<992px): home filter stays off-canvas
   ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    html,
    body.arvira-figma-shell {
        overflow-x: hidden;
    }

    body.arvira-figma-shell .figma-page-body {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.arvira-figma-shell.figma-home-page .figma-page-body {
        display: block !important;
        grid-template-columns: none !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 16px 0 150px !important;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-panel,
    body.arvira-figma-shell.figma-home-page .figma-filter-panel:not(.is-open) {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: min(88vw, 360px) !important;
        height: 100% !important;
        max-height: none !important;
        transform: translateX(110%) !important;
        pointer-events: none !important;
        visibility: hidden;
        z-index: 1050 !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: column;
        overflow: auto;
    }

    body.arvira-figma-shell.figma-home-page .figma-filter-panel.is-open {
        transform: translateX(0) !important;
        pointer-events: auto !important;
        visibility: visible;
    }

    body.arvira-figma-shell.figma-home-page .figma-map-cta {
        display: inline-flex !important;
    }

    body.arvira-figma-shell.figma-home-page .salon-card-body {
        padding: 10px 12px;
        gap: 4px;
        overflow: hidden;
    }

    body.arvira-figma-shell.figma-home-page .salon-name {
        font-size: 16px;
        line-height: 1.2;
    }
}

/* ------------------------------------------------------------------
   Line details (Figma 58:888) — single column, no filter gutter
   ------------------------------------------------------------------ */
body.arvira-figma-shell.figma-line-page .figma-page-body {
    display: block;
    grid-template-columns: none;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

body.arvira-figma-shell.figma-line-page .figma-main-content {
    padding: 0 0 calc(var(--arvira-bottom-nav-height, 90px) + 24px);
}

body.arvira-figma-shell.figma-line-page .page-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.arvira-figma-shell.figma-line-page .detail-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 32px;
    background: #fff;
}

body.arvira-figma-shell.figma-line-page .detail-hero {
    margin: 0;
}

body.arvira-figma-shell.figma-line-page .detail-hero-media {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f6f6f6;
}

body.arvira-figma-shell.figma-line-page .detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.arvira-figma-shell.figma-line-page .detail-hero-scrim {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 40%, #fff 100%);
    pointer-events: none;
}

body.arvira-figma-shell.figma-line-page .detail-hero-caption {
    position: absolute;
    right: 20px;
    left: 20px;
    bottom: 16px;
    z-index: 1;
    text-align: right;
}

body.arvira-figma-shell.figma-line-page .detail-profile-name {
    font-family: "Muslimah", Tahoma, sans-serif;
    font-weight: 300;
    font-size: 24px;
    line-height: 1.3;
    color: #1e1e1e;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

body.arvira-figma-shell.figma-line-page .detail-badge-new {
    background: #5349dd;
    color: #fff;
    font-family: Italiana, serif;
    font-size: 12px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 2.5px;
}

body.arvira-figma-shell.figma-line-page .detail-hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.arvira-figma-shell.figma-line-page .detail-hero-fav {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1e1e1e;
}

body.arvira-figma-shell.figma-line-page .detail-hero-info {
    padding: 8px 20px 16px;
}

body.arvira-figma-shell.figma-line-page .detail-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #1e1e1e;
    background: transparent;
}

body.arvira-figma-shell.figma-line-page .detail-meta-row img,
body.arvira-figma-shell.figma-line-page .detail-meta-row i {
    width: 14px;
    color: #5349dd;
    margin-top: 2px;
    flex-shrink: 0;
}

body.arvira-figma-shell.figma-line-page .detail-status-badge {
    padding: 2px 8px;
    border-radius: 2.5px;
    font-size: 12px;
}

body.arvira-figma-shell.figma-line-page .detail-status-badge.open {
    background: #cbc8ff;
    color: #00b84d;
}

body.arvira-figma-shell.figma-line-page .detail-status-badge.closed {
    background: rgba(255, 0, 4, 0.08);
    color: #ff0004;
}

body.arvira-figma-shell.figma-line-page .detail-meta-row--notes {
    flex-direction: column;
    gap: 4px;
}

body.arvira-figma-shell.figma-line-page .detail-meta-label {
    color: #5349dd;
    font-size: 13px;
}

body.arvira-figma-shell.figma-line-page .detail-meta-row--notes p {
    margin: 0;
    line-height: 1.6;
    color: #1e1e1e;
}

body.arvira-figma-shell.figma-line-page .detail-booking {
    background: #f6f6f6;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 20px 24px;
    margin: 0;
}

body.arvira-figma-shell.figma-line-page .detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.arvira-figma-shell.figma-line-page .detail-section-title {
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0 4px;
    color: #1e1e1e;
}

body.arvira-figma-shell.figma-line-page .detail-section-head .detail-section-title {
    margin-top: 0;
}

body.arvira-figma-shell.figma-line-page .detail-clear-services {
    border: 0;
    background: transparent;
    color: #ff0004;
    font-size: 12px;
    min-height: 32px;
    padding: 0;
}

body.arvira-figma-shell.figma-line-page .detail-section-description {
    font-size: 12px;
    color: #1e1e1e;
    margin-bottom: 10px;
}

body.arvira-figma-shell.figma-line-page .detail-service-select {
    display: none !important;
}

body.arvira-figma-shell.figma-line-page .detail-service-list {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

body.arvira-figma-shell.figma-line-page .detail-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 25px;
    height: auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 2.5px;
    background: #fff;
    box-shadow: 0 0 12px rgba(138, 138, 138, 0.08);
    color: #1e1e1e;
    font-size: 12px;
    text-align: right;
    cursor: pointer;
}

body.arvira-figma-shell.figma-line-page .detail-service-row.is-selected {
    background: #5349dd;
    color: #fff;
}

body.arvira-figma-shell.figma-line-page .detail-date-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

body.arvira-figma-shell.figma-line-page .detail-date-chips::-webkit-scrollbar {
    display: none;
}

body.arvira-figma-shell.figma-line-page .detail-date-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 10px;
    border: 0;
    border-radius: 2.5px;
    background: transparent;
    color: #8a8a8a;
    font-size: 12px;
    white-space: nowrap;
}

body.arvira-figma-shell.figma-line-page .detail-date-chip.is-selected {
    color: #5349dd;
    font-weight: 600;
}

body.arvira-figma-shell.figma-line-page .detail-time-grid {
    display: block;
    margin: 0 0 12px;
}

body.arvira-figma-shell.figma-line-page .detail-time-grid:has(.detail-time-slot) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

body.arvira-figma-shell.figma-line-page .detail-time-slot {
    min-height: 36px;
    padding: 6px 8px;
    background: #fff;
    border: 0;
    border-radius: 2.5px;
    box-shadow: 0 0 12px rgba(138, 138, 138, 0.08);
    font-size: 12px;
}

body.arvira-figma-shell.figma-line-page .detail-time-slot.selected {
    background: #5349dd;
    color: #fff;
}

body.arvira-figma-shell.figma-line-page .detail-notes-textarea {
    min-height: 59px;
    border: 0;
    border-radius: 2.5px;
    background: #fff;
    box-shadow: none;
    margin-bottom: 16px;
}

body.arvira-figma-shell.figma-line-page .detail-submit-btn {
    width: 100%;
    min-height: 30px;
    height: 44px;
    border: 0;
    border-radius: 2.5px;
    background: #e968d6;
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

body.arvira-figma-shell.figma-line-page .detail-submit-btn:hover {
    filter: brightness(1.04);
    transform: none;
    box-shadow: none;
}

body.arvira-figma-shell.figma-line-page .detail-comments-card {
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    padding: 16px 20px 24px;
    margin: 0;
}

body.arvira-figma-shell.figma-line-page .detail-comments-title {
    font-size: 14px;
    font-weight: 500;
}

body.arvira-figma-shell.figma-line-page .detail-comment {
    background: #f6f6f6;
    border-radius: 10px;
    padding: 12px 16px;
}

@media (min-width: 992px) {
    body.arvira-figma-shell.figma-line-page .figma-page-body {
        width: min(1240px, calc(100% - 200px));
        padding: 24px 0 48px;
    }

    body.arvira-figma-shell.figma-line-page .figma-main-content {
        padding: 0;
    }

    body.arvira-figma-shell.figma-line-page .detail-page {
        max-width: 924px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 0 25px rgba(138, 138, 138, 0.05);
    }

    body.arvira-figma-shell.figma-line-page .detail-hero-media {
        height: 400px;
    }

    body.arvira-figma-shell.figma-line-page .detail-profile-name {
        font-size: 32px;
    }

    body.arvira-figma-shell.figma-line-page .detail-hero-info,
    body.arvira-figma-shell.figma-line-page .detail-booking,
    body.arvira-figma-shell.figma-line-page .detail-comments-card {
        padding-inline: 32px;
    }

    body.arvira-figma-shell.figma-line-page .detail-service-row {
        min-height: 44px;
        font-size: 14px;
    }

    body.arvira-figma-shell.figma-line-page .detail-submit-btn {
        font-size: 16px;
        height: 50px;
    }
}

@media (max-width: 991.98px) {
    body.arvira-figma-shell.figma-line-page .figma-main-content {
        padding: 0 0 calc(150px + env(safe-area-inset-bottom, 0px));
    }

    body.arvira-figma-shell.figma-line-page .detail-page {
        max-width: none;
    }

    body.arvira-figma-shell.figma-line-page .figma-bottom-fab {
        width: 70px;
        height: 70px;
        margin-top: -28px;
    }
}

/* ------------------------------------------------------------------
   Map page — full-width map + sidebar list
   ------------------------------------------------------------------ */
body.arvira-figma-shell.figma-map-page .figma-page-body {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

body.arvira-figma-shell.figma-map-page .figma-main-content {
    padding: 12px 16px calc(var(--arvira-bottom-nav-height, 90px) + 24px);
}

body.arvira-figma-shell.figma-map-page .page-content {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    body.arvira-figma-shell.figma-map-page .figma-main-content {
        padding: 8px 12px calc(150px + env(safe-area-inset-bottom, 0px));
    }

    body.arvira-figma-shell.figma-map-page .map-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    body.arvira-figma-shell.figma-map-page .map-location-btn {
        justify-content: center;
        width: 100%;
    }
}
