/* ═══════════════════════════════════════════
   RESET & ROOT
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --rk: #1A7A5E; --rk-l: #E8F5F0; --rk-d: #0F5240; --rk-hover: #156B51;
  --am: #F5A623; --am-l: #FFF9ED; --am-d: #8B5E00;
  --rd: #E5484D; --rd-l: #FFEBEC;
  --bg: #F4F6F9; --surf: #FFFFFF;
  --bdr: #E8ECF1; --bdr2: #D1D9E0;
  --t1: #0D1117; --t2: #4A5568; --t3: #9AA5B4;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --sh: 0 2px 12px rgba(0,0,0,.07);
  --sh-md: 0 4px 24px rgba(0,0,0,.10);
  --sh-lg: 0 8px 40px rgba(0,0,0,.14);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--t1); min-height: 100vh; }

.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--t3); }

/* ════════════════ NAVBAR ════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr); height: 60px;
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
}
.nav-logo {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  color: var(--rk); letter-spacing: -.5px; cursor: pointer; flex-shrink: 0;
}
.nav-logo span { color: var(--t1); font-weight: 300; }
.nav-search {
  flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px solid var(--bdr); border-radius: 30px;
  padding: 7px 16px; transition: border-color .2s;
}
.nav-search:focus-within { border-color: var(--rk); }
.nav-search input { border: none; outline: none; background: transparent; font-size: 13px; flex: 1; color: var(--t1); font-family: var(--font-body); }
.nav-search input::placeholder { color: var(--t3); }
.nav-search-ico { width: 15px; height: 15px; stroke: var(--t3); fill: none; stroke-width: 2; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--t2); padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; transition: all .15s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: var(--rk-l); color: var(--rk); }
.nav-btns { display: flex; gap: 8px; }
.btn-ghost { padding: 8px 16px; border: 1.5px solid var(--bdr2); border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: var(--t1); cursor: pointer; background: var(--surf); transition: all .15s; font-family: var(--font-body); }
.btn-ghost:hover { border-color: var(--rk); color: var(--rk); background: var(--rk-l); }
.btn-sell { padding: 8px 18px; border: none; border-radius: var(--r-md); font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; background: var(--am); font-family: var(--font-body); box-shadow: 0 2px 8px rgba(245,166,35,.35); transition: all .15s; }
.btn-sell:hover { background: var(--am-d); transform: translateY(-1px); }

/* ════════════════ PAGE ════════════════ */
.page { padding-top: 60px; }
.page.active { display: block; }

/* ════════════════ HERO ════════════════ */
.hero {
  background: linear-gradient(135deg, var(--rk-d) 0%, var(--rk) 50%, #2AA67A 100%);
  padding: 60px 24px 52px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; letter-spacing: .4px; position: relative; }
.hero h1 { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.8px; margin-bottom: 14px; position: relative; }
.hero h1 em { font-style: normal; color: var(--am); }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto 32px; line-height: 1.65; position: relative; }

.hero-search-wrap { max-width: 620px; margin: 0 auto; position: relative; }
.hero-search-tabs { display: flex; background: rgba(255,255,255,.15); border-radius: 12px 12px 0 0; overflow: hidden; width: fit-content; }
.hst { padding: 8px 20px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); cursor: pointer; transition: all .2s; }
.hst.on-room { background: var(--surf); color: var(--rk); border-radius: 10px 10px 0 0; }
.hst.on-prod { background: var(--am); color: #fff; border-radius: 10px 10px 0 0; }
.hero-search-box { background: var(--surf); border-radius: 0 16px 16px 16px; padding: 6px 6px 6px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--sh-lg); }
.hero-search-box input { flex: 1; border: none; outline: none; font-size: 14px; font-family: var(--font-body); color: var(--t1); }
.hero-search-box input::placeholder { color: var(--t3); }
.hero-search-btn { padding: 11px 24px; border: none; border-radius: var(--r-md); font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: all .15s; }
.hsb-room { background: var(--rk); box-shadow: 0 2px 8px rgba(26,122,94,.35); }
.hsb-room:hover { background: var(--rk-d); }
.hsb-prod { background: var(--am); box-shadow: 0 2px 8px rgba(245,166,35,.35); }
.hsb-prod:hover { background: var(--am-d); }

/* ════════════════ STATS ════════════════ */
.stats-bar { background: var(--surf); border-bottom: 1px solid var(--bdr); padding: 14px 24px; display: flex; justify-content: center; gap: 56px; }
.stat-it { text-align: center; }
.stat-v { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--rk); }
.stat-l { font-size: 12px; color: var(--t2); margin-top: 2px; font-weight: 500; }

/* ════════════════ SECTIONS ════════════════ */
.section { padding: 44px 24px; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--surf); }
.section-alt .section { max-width: none; }
.section-hdr { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--t1); letter-spacing: -.4px; }
.section-sub { font-size: 13px; color: var(--t2); margin-top: 4px; }
.see-all { font-size: 13px; font-weight: 600; color: var(--rk); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.see-all:hover { text-decoration: underline; }
.see-all svg { width: 13px; height: 13px; stroke: var(--rk); fill: none; stroke-width: 2.5; }

.type-toggle { display: flex; background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r-md); padding: 3px; width: fit-content; margin-bottom: 20px; }
.tt-btn { padding: 8px 22px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--t2); cursor: pointer; transition: all .2s; }
.tt-room { background: var(--rk); color: #fff; box-shadow: 0 1px 4px rgba(26,122,94,.3); }
.tt-prod { background: var(--am); color: #fff; box-shadow: 0 1px 4px rgba(245,166,35,.3); }

/* ════════════════ 3‑LEVEL STICKY CATEGORY NAV ════════════════ */
.cat-nav-wrap {
  background: var(--surf);
  border-bottom: 1px solid var(--bdr);
  position: sticky; top: 60px; z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cn-l1 {
  border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center;
  padding: 0 24px; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.cn-l1::-webkit-scrollbar { display: none; }
.cn-l1-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 22px; font-size: 14px; font-weight: 700;
  color: var(--t3); cursor: pointer; border-bottom: 3px solid transparent;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
}
.cn-l1-btn:hover { color: var(--t2); }
.cn-l1-btn.active-room { color: var(--rk); border-bottom-color: var(--rk); }
.cn-l1-btn.active-prod { color: var(--am); border-bottom-color: var(--am); }
.cn-l1-btn .l1-ico { font-size: 18px; }
.cn-l1-sep { width: 1px; height: 24px; background: var(--bdr); margin: 0 4px; flex-shrink: 0; }

.cn-l2 {
  border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center;
  padding: 0 16px; gap: 0; overflow-x: auto; scrollbar-width: none;
  background: var(--surf);
}
.cn-l2::-webkit-scrollbar { display: none; }
.cn-l2-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 14px; min-width: 72px; flex-shrink: 0;
  font-size: 11px; font-weight: 600; color: var(--t3); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .2s; text-align: center;
}
.cn-l2-btn:hover { color: var(--t2); background: var(--bg); }
.cn-l2-btn.active-room { color: var(--rk); border-bottom-color: var(--rk); background: var(--rk-l); }
.cn-l2-btn.active-prod { color: var(--am-d); border-bottom-color: var(--am); background: var(--am-l); }
.cn-l2-btn .l2-ico { font-size: 20px; }

.cn-l3 { background: var(--bg); border-top: 1px solid var(--bdr); }
.cn-l3-row {
  display: flex; align-items: center; gap: 0;
  padding: 0 20px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--bdr); background: var(--surf);
}
.cn-l3-row::-webkit-scrollbar { display: none; }
.cn-l3-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 14px; font-size: 12px; font-weight: 600;
  color: var(--t2); cursor: pointer; white-space: nowrap; flex-shrink: 0;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.cn-l3-btn:hover { color: var(--rk); background: var(--rk-l); }
.cn-l3-btn.active-room { color: var(--rk); border-bottom-color: var(--rk); background: var(--rk-l); }
.cn-l3-btn:hover.prod-s { color: var(--am-d); background: var(--am-l); }
.cn-l3-btn.active-prod { color: var(--am-d); border-bottom-color: var(--am); background: var(--am-l); }
.cn-l3-btn .l3-ico { font-size: 14px; }

.cn-l3b {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 20px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg);
}
.cn-l3b::-webkit-scrollbar { display: none; }
.cn-l3b-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; flex-shrink: 0;
  font-size: 11px; font-weight: 500; color: var(--t2);
  border: 1px solid var(--bdr); background: var(--surf);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.cn-l3b-chip:hover { border-color: var(--rk); color: var(--rk); background: var(--rk-l); }
.cn-l3b-chip.active-r { border-color: var(--rk); color: var(--rk-d); background: var(--rk-l); font-weight: 700; }
.cn-l3b-chip.prod-ss:hover { border-color: var(--am); color: var(--am-d); background: var(--am-l); }
.cn-l3b-chip.active-p { border-color: var(--am); color: var(--am-d); background: var(--am-l); font-weight: 700; }
.cn-l3b-chip .l3b-ico { font-size: 13px; }

/* ════════════════ LISTING CARDS ════════════════ */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.lcard { background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r-xl); overflow: hidden; cursor: pointer; transition: all .2s; }
.lcard:hover { border-color: var(--bdr2); box-shadow: var(--sh-md); transform: translateY(-2px); }
.lc-img { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.lc-badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.lc-b-room { background: var(--rk); color: #fff; }
.lc-b-prod { background: var(--am); color: #fff; }
.lc-b-used { background: #E6F1FB; color: #0C447C; }
.lc-b-new { background: #EEEDFE; color: #3C3489; }
.lc-save { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; background: rgba(255,255,255,.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bdr); transition: all .2s; }
.lc-save:hover { background: var(--rk-l); border-color: var(--rk); }
.lc-save svg { width: 13px; height: 13px; stroke: var(--t2); fill: none; stroke-width: 2; }
.lc-body { padding: 14px; }
.lc-pr-room { font-size: 17px; font-weight: 800; color: var(--rk); font-family: var(--font-head); }
.lc-pr-prod { font-size: 17px; font-weight: 800; color: var(--am-d); font-family: var(--font-head); }
.lc-og { font-size: 11px; color: var(--t3); text-decoration: line-through; margin-left: 5px; }
.lc-title { font-size: 13px; font-weight: 600; color: var(--t1); margin: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-loc { font-size: 11px; color: var(--t2); display: flex; align-items: center; gap: 3px; }
.lc-loc svg { width: 10px; height: 10px; stroke: var(--am); fill: none; stroke-width: 2; flex-shrink: 0; }
.lc-pills { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.lc-pill { font-size: 10px; color: var(--t2); background: var(--bg); border: 1px solid var(--bdr); padding: 2px 7px; border-radius: 5px; }

/* ════════════════ CITIES ════════════════ */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.city-card { border-radius: var(--r-lg); height: 100px; cursor: pointer; position: relative; overflow: hidden; transition: transform .2s; }
.city-card:hover { transform: scale(1.03); }
.city-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.7)); }
.city-content { position: absolute; bottom: 12px; left: 12px; }
.city-name { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #fff; }
.city-ct { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 1px; }

/* ════════════════ HOW IT WORKS ════════════════ */
.hiw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.hiw-card { text-align: center; padding: 28px 16px; }
.hiw-num { width: 44px; height: 44px; border-radius: 50%; background: var(--rk-l); color: var(--rk); font-family: var(--font-head); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.hiw-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.hiw-desc { font-size: 13px; color: var(--t2); line-height: 1.65; }

/* ════════════════ OFFERS ════════════════ */
.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-panel { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--bdr); box-shadow: var(--sh); }
.op-hdr { padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.op-hdr-r { background: var(--rk); }
.op-hdr-p { background: var(--am); }
.op-h-tag { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 2px; }
.op-h-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: #fff; }
.op-h-ct { font-size: 10px; color: rgba(255,255,255,.65); margin-top: 2px; }
.op-view { font-size: 11px; font-weight: 600; color: #fff; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); padding: 5px 12px; border-radius: 20px; cursor: pointer; white-space: nowrap; }
.op-body { background: var(--surf); padding: 12px; }
.op-cards { display: flex; gap: 8px; }
.op-mini { flex: 1; background: var(--bg); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--bdr); cursor: pointer; transition: border-color .2s; }
.op-mini:hover { border-color: var(--rk); }
.op-mini-img { height: 70px; display: flex; align-items: center; justify-content: center; font-size: 28px; position: relative; }
.op-mini-badge { position: absolute; top: 5px; left: 5px; font-size: 8px; font-weight: 700; padding: 2px 7px; border-radius: 20px; color: #fff; display: flex; align-items: center; gap: 2px; }
.op-mb-r { background: var(--rk); }
.op-mb-p { background: var(--am); }
.op-mini-info { padding: 7px 8px; }
.op-og { font-size: 8px; color: var(--t3); text-decoration: line-through; }
.op-pr-r { font-size: 12px; font-weight: 700; color: var(--rk); }
.op-pr-p { font-size: 12px; font-weight: 700; color: var(--am-d); }
.op-name { font-size: 9px; font-weight: 500; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-save-r { display: inline-block; background: var(--rk-l); color: var(--rk-d); font-size: 8px; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-top: 2px; }
.op-save-p { display: inline-block; background: var(--am-l); color: var(--am-d); font-size: 8px; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-top: 2px; }
.op-urgency { font-size: 8px; color: var(--rd); font-weight: 600; display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.op-urg-dot { width: 5px; height: 5px; background: var(--rd); border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.2} }
.countdown { display: flex; align-items: center; gap: 4px; padding: 7px 0 2px; }
.ctr-l { font-size: 9px; color: var(--t2); font-weight: 500; }
.ctr-c { background: var(--t1); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; min-width: 22px; text-align: center; }
.ctr-s { font-size: 9px; font-weight: 700; color: var(--t2); }
.op-footer { background: var(--bg); border-top: 1px solid var(--bdr); padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.op-ft { font-size: 10px; color: var(--t2); }
.op-fb-r { font-size: 10px; font-weight: 700; padding: 5px 14px; border-radius: 20px; border: none; cursor: pointer; background: var(--rk); color: #fff; }
.op-fb-p { font-size: 10px; font-weight: 700; padding: 5px 14px; border-radius: 20px; border: none; cursor: pointer; background: var(--am); color: #fff; }

/* ════════════════ FOOTER ════════════════ */
.footer { background: #0D1117; padding: 52px 24px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-brand span { font-weight: 300; color: rgba(255,255,255,.4); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: 16px; }
.footer-ci { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.footer-ci svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.35); fill: none; stroke-width: 2; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .6px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 8px; cursor: pointer; transition: color .15s; }
.footer-link:hover { color: rgba(255,255,255,.8); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: 20px; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }

/* ════════════════ TOAST ════════════════ */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: var(--t1); color: #fff; padding: 12px 20px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; box-shadow: var(--sh-lg); transform: translateY(80px); opacity: 0; transition: all .3s; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { gap: 24px; flex-wrap: wrap; }
  .offers-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}