:root {
    --hg-green: #3a4e18;
    --hg-green-2: #4a6b2a;
    --hg-ink: #1a1a1a;
    --hg-muted: #717171;
    --hg-line: #e5e7eb;
    --hg-soft: #f7f7f7;
    --hg-price: #a16207;
    --hg-sidebar: 80px;
}

* { box-sizing: border-box; }
html, body.hg-body { margin: 0; padding: 0; }
.hg-body {
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--hg-ink);
    background: #fff;
    min-height: 100vh;
}

.hg-top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
}
.hg-top-row {
    height: 74px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px 0;
}
.hg-search {
    flex: 1;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    color: #717171;
}
.hg-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #717171;
}
.hg-search input::placeholder { color: #717171; }
.hg-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #222;
    cursor: pointer;
    flex: 0 0 48px;
}
.hg-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--hg-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9e7c4, #8aa35a);
    border: 0;
}
.hg-cities {
    display: flex;
    gap: 12px;
    padding: 8px 28px 14px;
}
.hg-city {
    height: 43px;
    padding: 0 18px 0 12px;
    border-radius: 999px;
    border: 1px solid #ececec;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 650;
    color: #222;
    cursor: pointer;
}
.hg-city.active { border-color: #eadfca; background: #fffdf8; }
.hg-ci { width: 18px; height: 18px; border-radius: 6px; display: inline-block; position: relative; }
.hg-ci.wave { background: #e8f3ff; }
.hg-ci.wave:after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 5px; border-bottom: 2px solid #3b82f6; border-radius: 0 0 8px 8px; }
.hg-ci.bldg { background: #f3e8ff; }
.hg-ci.bldg:after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 10px; height: 10px; background: linear-gradient(#a855f7,#a855f7) 0 4px/4px 6px no-repeat, linear-gradient(#a855f7,#a855f7) 6px 0/4px 10px no-repeat; }
.hg-ci.home { background: #fff1e8; }
.hg-ci.home:after { content: ""; position: absolute; left: 4px; top: 4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid #ea580c; }
.hg-ci.home:before { content: ""; position: absolute; left: 6px; bottom: 3px; width: 6px; height: 5px; background: #ea580c; }

.hg-shell { display: block; }
.hg-page { margin-left: var(--hg-sidebar); min-width: 0; }
.hg-side {
    width: var(--hg-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 128px 0 24px;
    background: #fff;
    z-index: 30;
}
.hg-side a {
    width: 64px;
    text-decoration: none;
    color: #8b909a;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}
.hg-side a i {
    width: 36px; height: 36px; margin: 0 auto 4px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-style: normal;
}
.hg-side a.on { color: var(--hg-green); }
.hg-side a.on i.sq { background: #eef3e4; }
.hg-side a.acct { margin-top: auto; flex-shrink: 0; }
.hg-side a.acct i.dot { background: var(--hg-green); border-radius: 50%; }
.hg-side a span { display: block; }

.hg-main { width: 100%; padding: 0 24px 40px; min-width: 0; }

.hg-ai {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    background: radial-gradient(circle at 92% 15%, rgba(117,153,78,.18), rgba(0,0,0,0) 34%), linear-gradient(135deg, #f7fbf3, #fff 72%);
    border: 1px solid #cbdcb9;
    border-radius: 18px;
    padding: 18px 20px;
    margin: 0 0 18px;
    min-height: 99px;
}
.hg-ai-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--hg-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 7px 16px rgba(58,78,24,.18);
}
.hg-ai-eye {
    display: block;
    color: var(--hg-green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .72px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.hg-ai h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.34px; }
.hg-ai p { margin: 2px 0 0; color: #b0b0b0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-ai-btn {
    height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 0;
    background: var(--hg-green);
    color: #fff;
    font-weight: 750;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.hg-section { margin-bottom: 28px; }
.hg-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.hg-section-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.hg-main .hg-section-head .hg-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid #c8102e;
    border-radius: 999px;
    background: #c8102e;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.hg-main .hg-section-head .hg-section-link:hover {
    background: #a50d25;
    border-color: #a50d25;
    color: #fff;
    text-decoration: none;
}
.hg-arrows { display: flex; gap: 10px; }
.hg-arrows button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    color: #444;
    font-size: 18px;
    line-height: 1;
}
.hg-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.hg-row::-webkit-scrollbar { display: none; }

.hg-card { width: 220px; flex: 0 0 220px; }
.hg-photo {
    position: relative;
    height: 209px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
.hg-photo img, .hg-card > img {
    width: 100%;
    height: 209px;
    object-fit: cover;
    display: block;
}
.hg-rent, .hg-heart, .hg-new { position: absolute; }
.hg-rent {
    top: 8px; left: 8px;
    height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(0,0,0,.08);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.hg-heart {
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: #1c1c1c;
}
button.hg-heart {
    z-index: 2;
    border: 0;
    padding: 0;
    background: #fff;
    color: #1c1c1c;
    cursor: pointer;
}
button.hg-heart svg { display: block; pointer-events: none; }
button.hg-heart.is-on,
button.hg-heart.is-on svg { color: #c8102e; fill: #c8102e; }
.saved-grid { flex-wrap: wrap; overflow: visible; }
.hg-new {
    left: 8px; bottom: 8px;
    height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,80,160,.88);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hg-card-body { padding: 8px 0 0; }
.hg-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
}
.hg-card-top--listing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
}
.hg-card-top--listing b {
    display: block;
    min-width: 0;
}
.hg-card-top--listing .hg-time {
    align-self: flex-end;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}
.hg-card-sub {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}
.hg-card-top b { font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-ph {
    height: 209px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    font-size: 14px;
    font-weight: 600;
}
.hg-time {
    color: #717171;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    justify-self: end;
    line-height: 1.2;
}
.hg-addr { margin: 2px 0 6px; color: #717171; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-tags { display: flex; gap: 6px; align-items: center; min-height: 22px; }
.hg-tag {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.hg-tag img { width: 14px; height: 14px; border-radius: 3px; object-fit: cover; }
.hg-tag.chotot { background: #fff8e1; color: #8b6914; }
.hg-tag.ai { background: #333; color: #fff; }
.hg-tag.fb { background: rgba(24,119,242,.12); color: #1877f2; }
.hg-score { font-size: 11px; font-weight: 600; color: #555; background: #f5f5f5; border-radius: 999px; padding: 2px 8px; }
.hg-price { margin-top: 6px; font-weight: 700; font-size: 15px; color: #222; }
.hg-price span { font-weight: 400; font-size: 13px; color: #717171; }

/* Chợ Tốt–style listing cards (homepage rentals) */
.hg-row--market {
    gap: 12px;
    align-items: flex-start;
}
.hg-card--market {
    width: 200px;
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.hg-section--rentals .hg-row--market { gap: 14px; padding-bottom: 4px; }
.hg-section--rentals .hg-card--market:hover { transform: translateY(-2px); }
.hg-section--rentals .hg-card--market:focus-visible {
    outline: 2px solid #c8102e;
    outline-offset: 2px;
    border-radius: 12px;
}
body.hg-body .hg-card--market .hg-photo {
    height: 200px;
    border-radius: 12px;
    box-shadow: none;
}
body.hg-body .hg-card--market .hg-photo img {
    height: 200px;
}
.hg-card--market .hg-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
    pointer-events: none;
    z-index: 0;
}
.hg-card--market .hg-heart {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: 0;
    z-index: 2;
}
.hg-card--market button.hg-heart.is-on,
.hg-card--market button.hg-heart.is-on svg {
    color: #c8102e;
    fill: #c8102e;
}
.hg-photo-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding: 10px 10px 8px;
    box-sizing: border-box;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    pointer-events: none;
}
.hg-photo-time {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.hg-photo-count {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.hg-photo-count svg { display: block; flex-shrink: 0; }
.hg-card--market .hg-card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 0;
    text-align: left;
}
.hg-market-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    white-space: normal;
}
.hg-market-meta {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: #8a8a8a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.hg-market-meta__property {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hg-market-meta__listing {
    flex: 0 0 auto;
    max-width: 46%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hg-price--market {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #c8102e;
    letter-spacing: -0.02em;
}
.hg-section--rentals .hg-market-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1c1c1c;
}
.hg-section--rentals .hg-market-meta { margin-top: 4px; font-size: 12px; color: #8c8c8c; }
.hg-section--rentals .hg-price--market { margin-top: 8px; font-size: 17px; }

.hg-row--news {
    gap: 12px;
    align-items: flex-start;
}

/* Featured projects: market shell + project body */
.hg-card--market-project .hg-card-body {
    align-items: flex-start;
}
.hg-card--market-project .hg-project-badge {
    display: inline-block;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
    margin: 0 0 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.hg-project-badge--s1 { background: #ede9fe; color: #5b21b6; }
.hg-project-badge--s2 { background: #d1fae5; color: #047857; }
.hg-project-badge--s3 { background: #ffedd5; color: #c2410c; }
.hg-card--market-project .hg-project-scale {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #374151;
}
.hg-card--market-project .hg-project-loc {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: #8a8a8a;
}
.hg-photo--broker .hg-photo__initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c8102e;
    color: #fff;
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
}

/* Homepage — Top môi giới: avatar tròn, không khung vuông xám */
body.hg-body .hg-card--broker-top .hg-photo {
    width: 168px;
    height: 168px;
    margin: 0 auto;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}
body.hg-body .hg-card--broker-top .hg-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
body.hg-body .hg-card--broker-top .hg-photo::after {
    display: none;
    content: none;
}
body.hg-body .hg-card--broker-top .hg-photo--broker .hg-photo__initial {
    border-radius: 50%;
}
.hg-news-card {
    width: 220px;
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: inherit;
}
body.hg-body .hg-news-card__photo {
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8e8e8;
    box-shadow: none;
}
.hg-news-card__photo img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.hg-news-card__date {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #8a8a8a;
}
.hg-news-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
}

.hg-about {
    background: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 8px 0 28px;
}
.hg-about-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--hg-green);
}
.hg-about h3 { margin: 0; font-size: 17px; font-weight: 700; color: #222; }
.hg-about p { margin: 0; color: #717171; font-size: 15px; font-weight: 600; line-height: 24px; }
.hg-about strong { color: #222; font-weight: 700; }

.hg-tip-list { display: flex; flex-direction: column; gap: 10px; }
.hg-tip { display: flex; align-items: flex-start; gap: 10px; color: #596d1a; }
.hg-tip svg { flex: 0 0 18px; margin-top: 2px; }
.hg-tip span { color: #222; font-size: 14px; font-weight: 600; line-height: 1.55; }
.hg-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hg-feature svg { display: block; margin-bottom: 12px; color: var(--hg-green); }
.hg-feature strong { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #222; }
.hg-feature p { margin: 0; color: #717171; font-size: 13px; font-weight: 600; line-height: 1.5; }

.hg-foot {
    margin: 28px -24px 0;
    border-top: 1px solid #ebebeb;
    color: #222;
}
.hg-explore { background: #f7f7f7; padding: 36px 32px; }
.hg-explore h3 { margin: 0 0 20px; font-size: 14px; font-weight: 600; }
.hg-seo, .hg-foot-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.hg-seo h4, .hg-foot-main h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.hg-seo a, .hg-foot-main a, .hg-foot-main p {
    display: block;
    color: #717171;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}
.hg-foot-main { padding: 36px 32px; }
.hg-foot-main a { font-size: 14px; margin-bottom: 8px; }
.hg-foot-main p { line-height: 1.55; }
.hg-store {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 8px;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 500;
}
.hg-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    color: #717171;
    font-size: 13px;
    font-weight: 600;
}
.hg-legal-left { display: flex; align-items: center; gap: 10px; }
.hg-legal-left img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.hg-legal nav { display: flex; align-items: center; gap: 8px; }
.hg-legal a { color: #717171; text-decoration: none; }

@media (max-width: 860px) {
    .hg-feature-grid, .hg-seo, .hg-foot-main { grid-template-columns: 1fr 1fr; }
    .hg-side { display: none; }
    .hg-page { margin-left: 0; }
    .hg-main { width: 100%; padding-right: 16px; }
}
@media (max-width: 720px) {
    .hg-logo { min-width: auto; }
    .hg-logo img { height: 40px; }
    .hg-feature-grid, .hg-seo, .hg-foot-main, .hg-legal { grid-template-columns: 1fr; display: grid; }
    .hg-top-row { gap: 8px; padding-right: 10px; }
}

.sm-overlay[hidden] { display: none !important; }
.sm-overlay { position: fixed; inset: 0; z-index: 1000; background: #00000080; backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
.sm-modal { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 85vh; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px #00000026; }
.sm-header { display: flex; align-items: center; justify-content: center; position: relative; padding: 16px 20px; border-bottom: 1px solid #ebebeb; min-height: 56px; box-sizing: border-box; }
.sm-header__title { font-size: 16px; font-weight: 800; color: #222; }
.sm-header__close { position: absolute; left: 16px; top: 0; bottom: 0; margin: auto 0; width: 32px; height: 32px; border-radius: 50%; border: none; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #222; }
.sm-header__close:hover { background: #f7f7f7; }
.sm-body { flex: 1; overflow-y: auto; }
.sm-selected { padding: 12px 20px; border-bottom: 1px solid #ebebeb; height: 82px; box-sizing: border-box; }
.sm-selected__title { font-size: 13px; font-weight: 700; color: #222; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; line-height: 20px; }
.sm-selected__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #222; color: #fff; font-size: 11px; font-weight: 700; }
.sm-selected__count[hidden], .hg-badge[hidden] { display: none !important; }
.sm-selected__scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sm-selected__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #222; border-radius: 24px; background: #fff; font-size: 12px; font-weight: 500; color: #222; cursor: pointer; font-family: inherit; white-space: nowrap; }
.sm-selected__chip--empty { border-color: transparent; color: #b0b0b0; font-weight: 400; cursor: default; padding-left: 0; }
.sm-section { padding: 12px 20px; border-bottom: 1px solid #ebebeb; }
.sm-section__title { font-size: 15px; font-weight: 700; color: #222; margin: 0 0 12px; }
.sm-label { display: block; font-size: 11px; font-weight: 600; color: #717171; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.sm-dropdown-row { display: flex; gap: 10px; }
.sm-dropdown { position: relative; flex: 1; min-width: 0; }
.sm-dropdown__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 10px; background: #fff; font-size: 13px; font-family: inherit; color: #717171; cursor: pointer; gap: 6px; text-align: left; font-weight: 600; }
.sm-dropdown__btn--active { border-color: #222; color: #222; background: #f7f7f7; }
.sm-dropdown__btn:disabled { color: #c4c4c4; background: #fafafa; cursor: default; border-color: #eee; }
.sm-dropdown__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sm-dropdown__popup { position: absolute; top: calc(100% + 4px); left: 0; right: 0; min-width: 160px; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 8px 24px #0000001f; z-index: 20; padding: 4px; }
.sm-dropdown__item { display: block; width: 100%; padding: 9px 12px; border: none; border-radius: 8px; background: none; font-size: 13px; font-family: inherit; color: #222; cursor: pointer; text-align: left; font-weight: 600; }
.sm-dropdown__item:hover, .sm-dropdown__item--active { background: #f0f0f0; }
.sm-slider__display { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.sm-slider__val { font-size: 18px; font-weight: 700; color: #222; }
.sm-slider__sep { color: #b0b0b0; }
.sm-slider__track-wrap { position: relative; height: 36px; margin-inline: 12px; }
.sm-slider__track { position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 2px; background: #e0e0e0; }
.sm-slider__fill { position: absolute; top: 16px; height: 4px; border-radius: 2px; background: #222; }
.sm-range { position: absolute; left: 0; width: 100%; top: 8px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 20px; }
.sm-range::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #222; box-shadow: 0 1px 4px #0000001f; cursor: grab; }
.sm-range::-moz-range-thumb { pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #222; cursor: grab; }
.sm-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid #ebebeb; background: #fff; }
.sm-footer__clear { border: 0; background: none; font-size: 14px; font-weight: 600; color: #222; text-decoration: underline; cursor: pointer; font-family: inherit; padding: 8px 4px; }
.sm-footer__search { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 8px; background: #222; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sm-footer__search:hover { background: #000; }
.sm-slider__inputs { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; }
.sm-slider__input-field { flex: 1; }
.sm-slider__input-sep { color: #717171; padding-bottom: 10px; }
.sm-slider__input { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 13px; font-family: inherit; color: #222; background: #fff; box-sizing: border-box; font-weight: 600; }
.sm-slider__input:focus { border-color: #222; outline: none; }
.sm-slider__input::placeholder { color: #b0b0b0; font-weight: 500; }
.sm-input-wrap { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 12px; background: #fff; }
.sm-input-wrap:focus-within { border-color: #222; }
.sm-input-wrap svg { flex-shrink: 0; color: #717171; }
.sm-input { background: none; border: none; outline: none; font-size: 14px; color: #222; width: 100%; font-family: inherit; }
.sm-input::placeholder { color: #b0b0b0; }
.sm-checkbox { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; border: 2px solid #ccc; background: #fff; flex-shrink: 0; }
.sm-checkbox--checked { background: #222; border-color: #222; }
.sm-dropdown__item--row { display: flex; align-items: center; gap: 8px; }
.sm-dropdown__item--single { justify-content: space-between; }
.sm-dropdown__item--clear { color: #717171; font-weight: 500; border-bottom: 1px solid #ebebeb; border-radius: 8px 8px 0 0; margin-bottom: 2px; }
.sm-dropdown__item--disabled { color: #ccc; cursor: default; pointer-events: none; }
.sm-selected__chip--source img, .sm-source-ico { height: 14px; width: 14px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.sm-section:last-child { border-bottom: none; }
@media (max-width: 640px) {
    .sm-overlay { align-items: flex-end; }
    .sm-modal { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
    .sm-footer__search { flex: 1; margin-left: 16px; }
    .sm-dropdown-row { flex-wrap: wrap; }
}
