/* ==========================================================================
   GHome · "Warm Home" theme
   cream paper · espresso · terracotta · lamp-light gold
   Loaded LAST (injected by the Worker) so it overrides every earlier sheet.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --espresso: #2b1f17;
  --espresso-2: #3d2b1e;
  --cream: #fff4e2;
  --sand: #f3e4c8;
  --glow: #f6b93b;
  --gh-ease: cubic-bezier(.2, .7, .2, 1);
  --gh-hero: url("/ghome-hero.svg?v=20261107-warm");
}

:root:not([data-theme="dark"]),
:root:not([data-theme="dark"]) body.home-page {
  color-scheme: light;
  --page: #faf5ec;
  --page-soft: #fdf9f2;
  --surface: #fffdf8;
  --surface-raised: #fffdf8;
  --surface-soft: #f6efe2;
  --ink: #2a2018;
  --ink-soft: #4a3b2e;
  --muted: #7a6857;
  --line: #ebe0cd;
  --line-strong: #dccbb0;
  --brand: #b4502a;
  --brand-bright: #a84823;
  --brand-deep: #7f3417;
  --brand-soft: #fbe8da;
  --on-primary: #ffffff;
  --on-brand: #ffffff;
  --gold: #c98a1b;
  --gold-soft: #fbf0d6;
  --success: #3f7a4f;
  --success-soft: #e7f2e6;
  --danger: #b4343a;
  --danger-soft: #fbeaea;
  --shadow-sm: 0 4px 16px rgba(80, 45, 20, .07);
  --shadow-md: 0 12px 34px rgba(80, 45, 20, .12);
  --shadow-lg: 0 24px 60px rgba(80, 45, 20, .18);
}

:root[data-theme="dark"],
:root[data-theme="dark"] body.home-page {
  color-scheme: dark;
  --page: #17110d;
  --page-soft: #1b140f;
  --surface: #221913;
  --surface-raised: #2a1f17;
  --surface-soft: #2c2018;
  --ink: #f6ece0;
  --ink-soft: #dccbb8;
  --muted: #b9a590;
  --line: #3a2b20;
  --line-strong: #4f3b2b;
  --brand: #ee8a5e;
  --brand-bright: #f2976d;
  --brand-deep: #f6b08c;
  --brand-soft: #3d2517;
  --on-primary: #2a1208;
  --on-brand: #2a1208;
  --gold: #e8b04a;
  --gold-soft: #3a2c14;
  --success: #7bc28c;
  --success-soft: #1f3324;
  --danger: #ef8a8f;
  --danger-soft: #3d2023;
  --shadow-sm: 0 8px 26px rgba(0, 0, 0, .25);
  --shadow-md: 0 20px 54px rgba(0, 0, 0, .35);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, .5);
}

html, body.home-page, body.home-page[data-catalog] { background: var(--page); }
::selection { background: #f4c9a8; color: #2a1208; }
:focus-visible { outline-color: var(--brand); }

/* ---------- 2. Buttons ---------- */
:root .primary,
:root .gh-search-submit,
:root .dashboard-welcome-actions .primary {
  background: linear-gradient(180deg, #c35d33, #b4502a);
  color: #fff;
  border: 1px solid #a24621;
  box-shadow: 0 8px 20px rgba(180, 80, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
  font-weight: 800;
}
:root .primary:hover:not(:disabled),
:root .gh-search-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #b9532a, #9f451f);
  color: #fff; border-color: #8d3b19;
  box-shadow: 0 12px 26px rgba(180, 80, 42, .36);
  transform: translateY(-1px);
}
:root[data-theme="dark"] .primary,
:root[data-theme="dark"] .dashboard-welcome-actions .primary {
  background: linear-gradient(180deg, #f39a70, #ee8a5e); color: #2a1208; border-color: #f39a70;
  box-shadow: 0 10px 26px rgba(238, 138, 94, .22);
}
:root[data-theme="dark"] .primary:hover:not(:disabled) { background: linear-gradient(180deg, #f7ac88, #f39a70); color: #2a1208; }
:root .primary:disabled { opacity: .55; box-shadow: none; }

.plain, .secondary-button, .filter-button { border-color: var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; }
.plain:hover:not(:disabled), .secondary-button:hover:not(:disabled), .filter-button:hover:not(:disabled) {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep);
}
.text-button { color: var(--brand-bright); font-weight: 750; }

/* ---------- 3. Header + custom logo ---------- */
.site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); box-shadow: 0 8px 28px -22px rgba(80, 45, 20, .7); }
body.home-page .site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); }
.brand-logo { gap: 10px; }
.brand-symbol, :root[data-theme="dark"] .brand-symbol {
  width: 40px; height: 40px; border-radius: 12px; background: none; box-shadow: 0 6px 14px -4px rgba(160, 70, 33, .55);
  display: block; padding: 0; overflow: hidden;
}
.brand-symbol svg { width: 100%; height: 100%; display: block; stroke: none; }
.brand-name { font-size: 24px; font-weight: 850; letter-spacing: -.015em; color: var(--ink); line-height: 1; text-transform: none; }
.brand-name b { color: var(--brand); font-weight: 850; }
.brand-wordmark i { color: var(--brand); }

body.home-page .home-nav-row { border-top: 1px solid var(--line); }
body.home-page .home-nav-row .main-nav { gap: 4px; }
body.home-page .home-nav-row .main-nav a,
body.home-page .home-nav-row .home-nav-contact {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-soft); font-size: 13px; font-weight: 650; text-decoration: none; transition: background .16s, color .16s;
}
body.home-page .home-nav-row a:hover { background: var(--brand-soft); color: var(--brand-deep); text-decoration: none; }
body.home-page .home-nav-row a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-deep); }
body.home-page .home-nav-row .home-nav-contact { border: 1px solid var(--line-strong); }
body.home-page .home-nav-row { padding-block: 5px; }

body.home-page .header-add#add {
  background: linear-gradient(180deg, #c35d33, #b4502a); color: #fff; border: 1px solid #a24621;
  box-shadow: 0 8px 18px rgba(180, 80, 42, .28); font-weight: 800; border-radius: 12px;
}
body.home-page .header-add#add:hover { background: linear-gradient(180deg, #b9532a, #9f451f); border-color: #8d3b19; }
:root[data-theme="dark"] body.home-page .header-add#add { background: linear-gradient(180deg, #f39a70, #ee8a5e); color: #2a1208; border-color: #f39a70; }
.auth-login:hover, .header-text-button:hover { background: var(--brand-soft); color: var(--brand-deep); }
.auth-register { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.auth-register:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.account-avatar { background: var(--espresso-2); color: var(--cream); }
:root[data-theme="dark"] .account-avatar { background: var(--brand); color: #2a1208; }
.theme-toggle, #language { border-color: var(--line-strong); background: var(--surface); }

/* ---------- 4. Hero: dusk city, lit windows ---------- */
body.home-page > main { margin-top: 0; }

.gh-hero { position: relative; width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: clamp(34px, 5vw, 64px) 0 clamp(64px, 8vw, 118px); isolation: isolate; }
.gh-hero:has(.catalog-standard-intro) { padding-bottom: clamp(40px, 5vw, 70px); }
.gh-hero-art {
  position: absolute; inset: 0; z-index: -1; background: #2a1c2c var(--gh-hero) center bottom / cover no-repeat;
  border-radius: 0 0 clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px);
  box-shadow: 0 30px 50px -34px rgba(60, 25, 10, .75);
}
.gh-hero-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(24, 12, 14, .55), rgba(24, 12, 14, .12) 62%, transparent); }
.gh-hero > :not(.gh-hero-art) { position: relative; width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.gh-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: auto !important; margin: 0 0 14px !important; margin-inline-start: max(24px, calc((100% - 1240px) / 2)) !important;
  padding: 6px 13px; border-radius: 999px; background: rgba(255, 244, 226, .14); border: 1px solid rgba(255, 244, 226, .3); color: var(--cream);
  font-size: 12px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px);
}
.gh-hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px 2px rgba(246, 185, 59, .75); }
.gh-hero .home-search-heading, .gh-hero .catalog-standard-intro h1 {
  position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
  margin: 0 auto; padding: 0; color: var(--cream); font-weight: 850; letter-spacing: -.02em; line-height: 1.18; text-shadow: 0 2px 24px rgba(20, 8, 6, .45);
}
.gh-hero .home-search-heading { font-size: clamp(30px, 4.6vw, 54px); max-width: min(1240px, calc(100% - 48px)); }
.gh-hero-sub { margin: 12px auto 0 !important; color: rgba(255, 244, 226, .86); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.7; max-width: min(1240px, calc(100% - 48px)) !important; text-shadow: 0 1px 14px rgba(20, 8, 6, .5); }
.gh-hero .catalog-standard-intro { padding: 0; background: none; border: 0; border-radius: 0; margin-bottom: 4px; }
.gh-hero .catalog-standard-intro h1 { font-size: clamp(26px, 3.6vw, 42px); margin: 0 0 6px; }
.gh-hero .catalog-standard-intro p { color: rgba(255, 244, 226, .85); font-size: 14px; margin: 0; }
.gh-hero .catalog-standard-intro .eyebrow { color: var(--glow); font-weight: 800; letter-spacing: .14em; }
.gh-hero .catalog-tier-links a { color: var(--cream); border-color: rgba(255, 244, 226, .35); background: rgba(255, 244, 226, .1); }

.gh-hero #search-area { margin-top: clamp(20px, 3vw, 32px); }
.gh-hero #search-area.gh-search-ready { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }

/* search pill */
.gh-hero .gh-search-fields { background: var(--surface); border: 2px solid var(--cream); border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(20, 8, 6, .65); }
:root[data-theme="dark"] .gh-hero .gh-search-fields { border-color: var(--line-strong); }
.gh-hero .gh-search-segment:hover, .gh-hero .gh-search-segment[aria-expanded="true"] { background: var(--brand-soft); color: var(--brand-deep); }
.gh-hero .gh-search-strip .gh-filter-trigger {
  background: rgba(255, 244, 226, .14); border: 1px solid rgba(255, 244, 226, .4); color: var(--cream); border-radius: 16px; backdrop-filter: blur(6px);
}
.gh-hero .gh-search-strip .gh-filter-trigger:is(:hover, [aria-expanded="true"]) { background: var(--cream); color: var(--espresso); }
.gh-hero .gh-search-strip .gh-search-submit { border-radius: 16px; font-size: 15px; }

/* quick types: glass chips */
.gh-hero #search-area.gh-search-ready > .quick-types { margin-top: 18px; gap: 12px; }
.gh-hero #search-area .quick-types > :is(button, a) {
  min-height: 58px; border: 1px solid rgba(255, 244, 226, .28); border-radius: 16px; background: rgba(36, 20, 14, .38); color: var(--cream);
  backdrop-filter: blur(8px); font-weight: 700; transition: background .18s var(--gh-ease), transform .18s var(--gh-ease), color .18s;
}
.gh-hero #search-area .quick-types > :is(button, a):hover, .gh-hero #search-area .quick-types > .selected {
  background: var(--cream); color: var(--espresso); border-color: var(--cream); transform: translateY(-2px);
}
.gh-hero #search-area .quick-types svg { stroke: #f6c58b; stroke-width: 1.7; }
.gh-hero #search-area .quick-types > :is(button, a):hover svg, .gh-hero #search-area .quick-types > .selected svg { stroke: var(--brand); }

/* fallback before search.js upgrades the form */
.gh-hero .search-panel { background: var(--surface); border-color: var(--line-strong); }
.search-tabs button.selected, .search-tabs button:hover { color: var(--brand-deep); }
.search-tabs button::after { background: var(--brand); }

body.home-page .home-search-actions { margin-top: 20px; }
body.home-page .market-shortcuts > :is(a, button) { border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-weight: 650; }
body.home-page .market-shortcuts > :is(a, button):hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }

/* ---------- 5. Section headings, carousel controls ---------- */
body.home-page .promotion-section .section-heading h2 { font-weight: 850; color: var(--ink); }
body.home-page .promotion-section .section-heading h2::before { width: 6px; height: 26px; border-radius: 4px; background: var(--brand); }
body.home-page .vip-section .section-heading h2::before { background: var(--glow); }
body.home-page .premium-section .section-heading h2::before { background: var(--espresso-2); }
:root[data-theme="dark"] body.home-page .premium-section .section-heading h2::before { background: var(--brand); }
.section-label { color: var(--brand-bright); font-weight: 800; }
.section-label b { background: var(--glow); color: #3a2600; border-radius: 6px; padding: 2px 7px; }
body.home-page .promotion-section .catalog-see-all {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--brand-deep); padding: 8px 14px; border-radius: 999px; font-weight: 750; font-size: 12px; min-height: 38px;
}
body.home-page .promotion-section .catalog-see-all:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.carousel-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--brand-deep); transition: background .16s, color .16s; }
.carousel-controls button:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 6. Listing cards ---------- */
body.home-page .card, .card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden;
  transition: transform .22s var(--gh-ease), box-shadow .22s var(--gh-ease), border-color .22s;
}
body.home-page .card:hover, .card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 38px -18px rgba(80, 45, 20, .45); }
body.home-page .card.tier-vip { border-color: #ecc77e; box-shadow: 0 0 0 1px rgba(246, 185, 59, .25); }
body.home-page .card.tier-premium { border-color: var(--line-strong); }
body.home-page .card .card-photo { aspect-ratio: 4 / 3; background: var(--surface-soft); }
body.home-page .card .card-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(30, 15, 8, .45)); }
body.home-page .card .card-photo > * { z-index: 1; }
body.home-page .card .badge { background: rgba(43, 31, 23, .8); color: var(--cream); border-radius: 9px; font-weight: 750; backdrop-filter: blur(6px); box-shadow: none; }
body.home-page .card.tier-vip .badge { background: linear-gradient(180deg, #f7c04e, #eba72a); color: #3a2600; }
body.home-page .card.tier-premium .badge { background: linear-gradient(180deg, #c35d33, #a8481f); color: #fff; }
body.home-page .card .photo-count { background: rgba(43, 31, 23, .7); color: #fff; border-radius: 8px; }
body.home-page .card .heart { background: rgba(255, 253, 248, .95); color: #4a3b2e; box-shadow: 0 4px 12px rgba(30, 15, 8, .25); }
body.home-page .card .heart:hover, body.home-page .card .heart.saved { color: #d23f4f; background: #fff; }
.card-gallery-arrow { background: rgba(255, 253, 248, .94); color: #2a2018; }
.card-gallery-arrow:hover { background: var(--brand); color: #fff; }
body.home-page .card .price { color: var(--ink); font-weight: 850; letter-spacing: -.01em; }
body.home-page .card .card-title { color: var(--ink); font-weight: 650; }
body.home-page .card .card-title:hover { color: var(--brand-bright); }
body.home-page .card .location { color: var(--brand-bright); font-weight: 600; }
body.home-page .card .specs span { color: var(--ink-soft); }
body.home-page .card .card-footer { border-color: var(--line); }
.listing-currency button { border-color: var(--line-strong); }
.listing-currency button[aria-pressed="true"] { background: var(--espresso-2); border-color: var(--espresso-2); color: var(--cream); font-weight: 800; }
:root[data-theme="dark"] .listing-currency button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #2a1208; }

.promotion-empty { background: var(--gold-soft); border: 1.5px dashed var(--line-strong); border-radius: 16px; color: var(--ink-soft); }
.promotion-empty b { color: var(--brand-deep); }
/* OPTIONAL — hide VIP/PREMIUM blocks while they are empty (uncomment):
body.home-page .promotion-section:has(> .promotion-empty:not([hidden])) { display: none; }
*/

.view-switch { background: var(--surface-soft); border: 1px solid var(--line-strong); }
.view-switch button.selected { background: var(--espresso-2); color: var(--cream); font-weight: 800; box-shadow: none; }
:root[data-theme="dark"] .view-switch button.selected { background: var(--brand); color: #2a1208; }
.listing-pagination button { border-color: var(--line-strong); }
.listing-pagination button:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.load-more { background: var(--surface); border: 1px solid var(--brand); color: var(--brand-deep); font-weight: 800; }
.load-more:hover:not(:disabled) { background: var(--brand); color: #fff; }
.catalog-nav { border-color: var(--line-strong); background: var(--surface); }
.catalog-nav a[aria-current="page"] { background: var(--espresso-2); border-color: var(--espresso-2); color: var(--cream); }
.catalog-nav a:hover { color: var(--brand-deep); }
.catalog-nav a[aria-current="page"] b { background: rgba(255, 244, 226, .18); border-color: transparent; }
.catalog-bottom-link { background: linear-gradient(120deg, var(--brand-soft), var(--surface) 75%); border-color: var(--line-strong); border-radius: 18px; }
.catalog-bottom-link p { color: var(--ink-soft); }

/* ---------- 7. NEW home blocks (injected) ---------- */
.gh-sec { margin: clamp(34px, 4.4vw, 54px) 0; }
.gh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.gh-sec-head h2 { display: flex; align-items: center; gap: 11px; margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 850; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.gh-sec-head h2::before { content: ""; width: 6px; height: 26px; border-radius: 4px; background: var(--brand); flex: none; }
.gh-sec-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.gh-sec-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--brand-deep); font-size: 12px; font-weight: 750; }
.gh-sec-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.gh-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gh-cat { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: transform .22s var(--gh-ease), box-shadow .22s var(--gh-ease), border-color .22s; }
.gh-cat::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: var(--brand-soft); opacity: .8; transition: transform .35s var(--gh-ease); }
.gh-cat:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 18px 34px -18px rgba(160, 70, 33, .5); }
.gh-cat:hover::after { transform: scale(1.5); }
.gh-cat i { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--espresso-2); color: var(--glow); }
.gh-cat svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gh-cat strong { position: relative; z-index: 1; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.gh-cat small { position: relative; z-index: 1; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gh-cat b { position: relative; z-index: 1; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-bright); font-size: 12px; font-weight: 800; }
:root[data-theme="dark"] .gh-cat i { background: var(--brand-soft); color: var(--brand-bright); }

.gh-cities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gh-city { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 92px; padding: 16px 16px 14px; border-radius: 18px; color: var(--cream); overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); transition: transform .22s var(--gh-ease), box-shadow .22s var(--gh-ease); }
.gh-city::before { content: ""; position: absolute; inset: 0; background: radial-gradient(160px 80px at 85% 0, rgba(255, 220, 160, .35), transparent 70%); }
.gh-city::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; opacity: .22; background: var(--city-skyline) bottom / 220px 34px repeat-x; }
.gh-city:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(40, 18, 8, .7); color: #fff; }
.gh-city strong { position: relative; z-index: 1; font-size: 16px; font-weight: 800; line-height: 1.3; }
.gh-city span { position: relative; z-index: 1; font-size: 18px; opacity: .85; transition: transform .2s; }
.gh-city:hover span { transform: translateX(3px); }
.gh-city:nth-child(5n+1) { --c1: #8c3f22; --c2: #c9693c; }
.gh-city:nth-child(5n+2) { --c1: #5a3b2e; --c2: #a56a47; }
.gh-city:nth-child(5n+3) { --c1: #7a3a3a; --c2: #c07a55; }
.gh-city:nth-child(5n+4) { --c1: #4a3328; --c2: #8c5c3d; }
.gh-city:nth-child(5n) { --c1: #9a5a2a; --c2: #d6954f; }
.gh-city { --city-skyline: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='34' viewBox='0 0 220 34'%3E%3Cpath fill='%23fff' d='M0 34V18h12v-6h10v10h10V8h14v26h8V16h12v-8h12v26h10V20h14v-6h10v20h12V12h12v22h10V18h14v16z'/%3E%3C/svg%3E"); }

.gh-band { position: relative; padding: clamp(26px, 3.4vw, 42px); border-radius: 28px; color: var(--cream); overflow: hidden; background: linear-gradient(115deg, #2b1f17 35%, #4a2e22); box-shadow: var(--shadow-md); }
.gh-band::before { content: ""; position: absolute; inset: 0; background: var(--gh-hero) right bottom / cover no-repeat; opacity: .28; }
.gh-band > * { position: relative; }
.gh-band h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 850; letter-spacing: -.02em; color: var(--cream); }
.gh-band > p { margin: 0 0 24px; max-width: 620px; color: rgba(255, 244, 226, .78); font-size: 14px; line-height: 1.7; }
.gh-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gh-feat { padding: 18px; border: 1px solid rgba(255, 244, 226, .16); border-radius: 18px; background: rgba(43, 31, 23, .72); }
.gh-feat i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 13px; background: rgba(246, 185, 59, .16); color: var(--glow); }
.gh-feat svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gh-feat strong { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 800; color: var(--cream); }
.gh-feat span { display: block; font-size: 12.5px; line-height: 1.65; color: rgba(255, 244, 226, .75); }

.gh-tools-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.gh-tools { align-content: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gh-tool { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .22s var(--gh-ease), border-color .22s, box-shadow .22s; }
.gh-tool:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 16px 30px -18px rgba(160, 70, 33, .5); }
.gh-tool i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.gh-tool svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gh-tool strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.gh-tool span { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.gh-calc { padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(160deg, var(--surface), var(--surface-soft)); box-shadow: var(--shadow-sm); }
.gh-calc h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px; font-weight: 850; color: var(--ink); }
.gh-calc h3 svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gh-calc > p { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.gh-calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gh-calc label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.gh-calc label.wide { grid-column: 1 / -1; }
.gh-calc input, .gh-calc select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; }
.gh-calc-out { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--espresso-2); color: var(--cream); display: grid; gap: 10px; }
.gh-calc-out .big small { display: block; font-size: 12px; opacity: .75; margin-bottom: 2px; }
.gh-calc-out .big strong { font-size: clamp(26px, 3vw, 34px); font-weight: 850; color: var(--glow); letter-spacing: -.02em; }
.gh-calc-out .row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding-top: 10px; border-top: 1px solid rgba(255, 244, 226, .16); }
.gh-calc-out .row b { font-weight: 800; }
.gh-calc small.note { display: block; margin-top: 10px; font-size: 11px; line-height: 1.6; color: var(--muted); }

.gh-pop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface-soft); }
.gh-pop h3 { margin: 0 0 12px; font-size: 14px; font-weight: 850; color: var(--ink); letter-spacing: .01em; }
.gh-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gh-pop a { display: block; padding: 5px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; transition: color .15s, transform .15s; }
.gh-pop a:hover { color: var(--brand-bright); transform: translateX(3px); }

/* ---------- 8. Sell banner + footer ---------- */
body.home-page .sell-banner-between, .sell-banner {
  position: relative; overflow: hidden; border: 0; color: var(--cream); box-shadow: var(--shadow-md);
  background: linear-gradient(100deg, #2b1f17 38%, rgba(43, 31, 23, .55)), var(--gh-hero) right bottom / cover no-repeat, #2b1f17;
}
.sell-banner .section-label { color: var(--glow); }
.sell-banner h2 { color: var(--cream); font-weight: 850; }
.sell-banner p { color: rgba(255, 244, 226, .8); }
.sell-banner .primary { background: linear-gradient(180deg, #f7c04e, #eba72a); color: #3a2600; border-color: #eba72a; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
.sell-banner .primary:hover:not(:disabled) { background: #fff4e2; color: #2b1f17; border-color: #fff4e2; }

.site-footer { background: #241913; border-top: 4px solid var(--brand); color: #e8d9c4; margin-top: 56px; }
:root[data-theme="dark"] .site-footer { background: #130d09; }
.site-footer .brand-name, .site-footer .brand-logo { color: var(--cream); }
.site-footer .brand-name b { color: #f08a5d; }
.site-footer .footer-brand p, .site-footer .footer-column, .site-footer .footer-shell > small { color: #bfa88e; }
.site-footer .footer-column strong, .site-footer .footer-column strong a { color: var(--cream); }
.site-footer .footer-column a, .site-footer .footer-column button { color: #e8d9c4; transition: color .15s; }
.site-footer .footer-column a:hover, .site-footer .footer-column button:hover { color: var(--glow); }
.site-footer .footer-shell > small { border-top-color: rgba(255, 244, 226, .14); }
.site-footer .contact-method { border-color: rgba(255, 244, 226, .18); background: rgba(255, 244, 226, .06); color: var(--cream); }
.site-footer .contact-method:hover { background: rgba(246, 185, 59, .14); border-color: var(--glow); color: var(--glow); }
.site-footer .contact-method-icon { color: var(--glow); }
.site-footer .contact-method-copy span, .site-footer .footer-contact .contact-method--phone .contact-method-copy > span { color: #f5e8d3; }
.site-footer .footer-contact .contact-method--phone { background: none; border: 0; }

/* ---------- 9. Mobile bottom nav, dialogs, inputs ---------- */
.mobile-bottom-nav { background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 30px -18px rgba(80, 45, 20, .6); }
.mobile-bottom-nav [aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }
.mobile-bottom-nav > .mobile-nav-add, :root[data-theme="dark"] .mobile-bottom-nav > .mobile-nav-add { background: linear-gradient(180deg, #c35d33, #b4502a); color: #fff; font-weight: 800; }
:root[data-theme="dark"] .mobile-bottom-nav > .mobile-nav-add { background: linear-gradient(180deg, #f39a70, #ee8a5e); color: #2a1208; }
.gh-search-eyebrow { color: var(--brand-bright); }
.gh-search-dialog::backdrop, .market-dialog::backdrop { background: rgba(35, 18, 8, .55); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 80, 42, .2); outline: none; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--brand); }
.account-panel a:hover, .account-panel button:hover { background: var(--brand-soft); }
.account-panel .account-links svg { stroke: var(--brand-bright); }

/* ---------- 10. Other pages (dashboard, listing, admin, hub) ---------- */
:root:not([data-theme="dark"]) .dashboard-welcome, :root:not([data-theme="dark"]) .info-hero { background: linear-gradient(135deg, var(--sand), var(--surface) 70%); border-color: var(--line-strong); }
.profile-avatar { background: var(--espresso-2); color: var(--cream); }
.admin-page .admin-nav button.selected, :root:not([data-theme="dark"]) .admin-page .admin-nav button.selected { background: var(--brand-soft); color: var(--brand-deep); }
.hub-button.primary, .hub-button:not(.secondary):not(.plain) { background: linear-gradient(180deg, #c35d33, #b4502a); color: #fff; }
.dashboard-metrics strong { color: var(--brand-deep); }
:root[data-theme="dark"] .dashboard-metrics strong { color: var(--brand); }
.monthly-offer { background: var(--gold-soft); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1100px) {
  .gh-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gh-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gh-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-tools-wrap { grid-template-columns: 1fr; }
  .gh-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .gh-hero { padding: 26px 0 24px; }
  .gh-hero > :not(.gh-hero-art) { width: calc(100% - 28px); }
  .gh-hero-eyebrow { margin-inline-start: 14px !important; }
  .gh-hero .home-search-heading, .gh-hero-sub { max-width: calc(100% - 28px) !important; }
  .gh-hero #search-area.gh-search-ready > .quick-types { margin-top: 14px; gap: 8px; }
  .gh-hero #search-area .quick-types > :is(button, a) { min-height: 52px; }
  body.home-page .card:hover { transform: none; }
}
@media (max-width: 600px) {
  .gh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gh-cat { padding: 16px 14px; border-radius: 16px; }
  .gh-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gh-city { min-height: 76px; padding: 12px; border-radius: 15px; }
  .gh-city strong { font-size: 14px; }
  .gh-feats { grid-template-columns: 1fr; }
  .gh-tools { grid-template-columns: 1fr; }
  .gh-pop { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 20px 16px; }
  .gh-calc-grid { grid-template-columns: 1fr; }
  .gh-band { border-radius: 22px; }
}
@media (hover: none) {
  body.home-page .card:hover, .gh-cat:hover, .gh-tool:hover, .gh-city:hover { transform: none; }
  .gh-hero #search-area .quick-types > :is(button, a):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
