:root{
  --green:#5fbd12;
  --green-dark:#4da50b;
  --orange:#ff8100;
  --orange-dark:#e86f00;
  --blue:#229ed1;
  --ink:#263642;
  --muted:#6f7a82;
  --line:#e1e5e8;
  --soft:#f3f4f5;
  --drawer:#8b98a3;
  --desktop-blue:#4c9dc5;
  --shadow:0 12px 34px rgba(26,48,62,.14);
  --radius:5px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:#202a31;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased}
body.drawer-visible{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
main{min-height:40vh}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ui-icon{width:24px;height:24px;display:block}

/* ---------- Standard header ---------- */
.site-header{height:86px;background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:30}
.header-inner{width:min(1180px,calc(100% - 42px));height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand-logo{width:172px;flex:0 0 auto}
.brand-logo img{width:100%;height:auto}
.desktop-header-nav{display:flex;align-items:center;justify-content:flex-end;gap:34px;color:#3a464e;font-size:16px}
.desktop-header-nav a:not(.header-post-btn):hover{color:#000}
.header-post-btn,.hero-nav-post{display:inline-flex;align-items:center;justify-content:center;background:var(--orange);color:#fff!important;border:1px solid #c96500;border-radius:4px;font-weight:700;box-shadow:inset 0 1px rgba(255,255,255,.25);transition:.15s ease}
.header-post-btn{min-width:154px;padding:14px 19px;font-size:17px}
.header-post-btn:hover,.hero-nav-post:hover{background:var(--orange-dark);transform:translateY(-1px)}
.mobile-header-actions{display:none}

/* ---------- Drawer ---------- */
.drawer{position:fixed;inset:0 auto 0 0;width:min(74vw,330px);background:var(--drawer);color:#fff;z-index:1000;transform:translateX(-105%);transition:transform .24s ease;overflow-y:auto;box-shadow:8px 0 24px rgba(0,0,0,.25)}
.drawer.is-open{transform:translateX(0)}
.drawer-top{height:69px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:8px 12px 8px 16px;position:sticky;top:0;z-index:2}
.drawer-logo{width:128px}
.drawer-close{border:0;background:transparent;color:#222;padding:8px}
.drawer-close .ui-icon{width:30px;height:30px;stroke-width:1.5}
.drawer-nav a{display:block;padding:13px 20px;border-bottom:1px solid rgba(255,255,255,.06);font-size:14px;color:#fff}
.drawer-nav a:hover{background:rgba(255,255,255,.08)}
.drawer-nav .drawer-post{padding:15px 20px;background:var(--orange);text-align:center;font-weight:700;font-size:16px}
.drawer-shade{position:fixed;inset:0;background:rgba(20,30,35,.42);z-index:999;opacity:0;visibility:hidden;transition:.2s}
.drawer-shade.is-open{opacity:1;visibility:visible}

/* ---------- Alerts ---------- */
.flash,.error{max-width:760px;margin:18px auto 0;padding:13px 16px;border-radius:4px;border:1px solid transparent}
.flash.success{background:#eaf8df;border-color:#b8e593;color:#356c10}
.flash.error,.error{background:#fff0f0;border-color:#efb6b6;color:#9a3030}

/* ---------- Home shared ---------- */
.announcement{min-height:53px;background:#fff0df;display:flex;align-items:center;justify-content:center;gap:6px;padding:12px 18px;color:#262626;text-align:center;font-size:18px}
.announcement a{text-decoration:underline;font-weight:700}
.mobile-home-hero{display:none}
.desktop-home-hero{height:550px;position:relative;background:url('hero-desktop.jpg?v=31') center 58%/cover no-repeat;color:#fff;overflow:hidden}
.desktop-hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(28,50,62,.55),rgba(24,49,65,.20) 44%,rgba(13,31,41,.55))}
.desktop-hero-content{width:min(1180px,calc(100% - 48px));height:100%;margin:0 auto;position:relative;z-index:2;display:flex;flex-direction:column}
.desktop-hero-nav{height:100px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.desktop-hero-logo{width:180px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.desktop-hero-links{display:flex;align-items:center;gap:42px;font-size:17px;text-shadow:0 1px 2px rgba(0,0,0,.65)}
.hero-nav-post{padding:14px 23px;text-shadow:none;box-shadow:0 2px 5px rgba(0,0,0,.24)}
.desktop-search-area{margin:auto 0 48px;text-align:center}
.desktop-search-area h1{font-size:42px;line-height:1.1;margin:0 0 8px;font-weight:600;text-shadow:0 2px 3px rgba(0,0,0,.62);letter-spacing:.02em}
.desktop-search-box{min-height:102px;padding:20px;background:rgba(92,169,205,.92);display:grid;grid-template-columns:155px 1fr 1fr 170px;gap:18px;align-items:center;box-shadow:0 8px 22px rgba(0,0,0,.24);text-align:left}
.search-prompt{font-size:18px;font-weight:700;line-height:1.05}
.desktop-search-box select{width:100%;height:54px;border:1px solid rgba(36,77,96,.65);background:#fff;color:#3a4650;padding:0 44px 0 17px;border-radius:3px;appearance:auto}
.desktop-search-box button{height:54px;border:1px solid #ca6800;border-radius:3px;background:var(--orange);color:#fff;font-weight:700;box-shadow:inset 0 1px rgba(255,255,255,.28)}
.desktop-search-box button:hover{background:var(--orange-dark)}
.desktop-category-tabs{height:72px;background:rgba(83,163,201,.96);display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid rgba(255,255,255,.35)}
.desktop-category-tabs a{display:flex;align-items:center;justify-content:center;color:#fff;border-right:1px solid rgba(22,93,127,.42);font-size:17px;text-shadow:0 1px 1px rgba(0,0,0,.34)}
.desktop-category-tabs a:hover{background:rgba(255,255,255,.1)}
.mobile-category-list{display:none}
.desktop-post-strip{background:#3e91bf;color:#fff;padding:28px 24px}
.desktop-post-strip>div{width:min(1160px,100%);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:30px}
.desktop-post-strip h2{margin:0;font-size:34px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.32)}
.desktop-post-strip a{width:310px;max-width:42%;padding:18px 30px;background:linear-gradient(#ffad41,#ff8b13);border:1px solid #d56e00;border-radius:4px;color:#fff;text-align:center;font-size:26px;font-weight:700;box-shadow:inset 0 1px rgba(255,255,255,.35)}
.desktop-community-section{width:min(1160px,calc(100% - 50px));margin:0 auto;padding:38px 0 55px;display:grid;grid-template-columns:1.15fr .85fr;gap:80px}
.desktop-community-section h2{font-size:20px;margin:0 0 5px;color:#162c39}
.desktop-community-section p{margin:0 0 30px;line-height:1.55;color:#263a45}
.community{text-align:center}
.community h2{font-size:28px;font-weight:400;margin-bottom:26px}
.social-icons{display:flex;justify-content:center;align-items:center;gap:15px}
.social-icons a{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:25px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.social-icons .facebook{background:#234ba3}.social-icons .x-social{background:#030303}.social-icons .instagram{background:linear-gradient(145deg,#ec6c6c,#bf3ba9)}.social-icons .tiktok{background:#111}.social-icons .youtube{background:#d82424;font-size:19px}
.mobile-regions{display:none}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line);background:#fff;color:#4d5961}
.footer-inner{width:min(1180px,calc(100% - 42px));margin:0 auto;padding:34px 0 24px}
.footer-groups{display:grid;grid-template-columns:1fr 2.2fr .8fr;gap:45px}
.footer-groups h3{margin:0 0 13px;color:#263942;font-size:20px}
.footer-links{display:flex;flex-wrap:wrap;gap:6px 0}
.footer-links a{font-size:14px;line-height:1.6}
.footer-links a:not(:last-child)::after{content:'|';margin:0 9px;color:#7c858b}
.footer-links a:hover{text-decoration:underline}
.copyright{font-size:13px;text-align:center;margin:34px 0 0;color:#626d74;line-height:1.35}
.copyright span{font-size:12px}
.home-footer .footer-groups{grid-template-columns:170px 1.5fr 1fr}

/* ---------- Auth pages ---------- */
.auth-page{min-height:790px;background:#f7f9fa;padding:135px 24px 170px;display:flex;align-items:flex-start;justify-content:center}
.auth-card{width:570px;max-width:100%;background:#fff;border:1px solid #d9dfe2;border-radius:5px;box-shadow:0 6px 22px rgba(35,54,67,.06);padding:48px 52px 43px}
.auth-card h1{font-size:30px;font-weight:500;color:#22343f;margin:0 0 32px}
.form{display:grid;gap:22px}
.form label{display:grid;gap:8px;color:#33424b;font-size:17px}
.form input,.form select,.form textarea{width:100%;border:1px solid #aab8c0;border-radius:4px;background:#fff;padding:13px 14px;color:#1f2d35;outline:0;transition:border-color .15s,box-shadow .15s}
.form input{height:56px}
.form textarea{min-height:150px;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{border-color:#58aeca;box-shadow:0 0 0 3px rgba(48,164,204,.13)}
.password-field{display:block;position:relative}
.password-field input{padding-right:54px}
.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:46px;height:46px;border:0;background:transparent;color:#72818a;display:grid;place-items:center}
.password-toggle .ui-icon{width:22px;height:22px}
.password-toggle.is-active{color:#1b8db6}
.text-link{color:#168db9;text-decoration:underline;text-underline-offset:2px}
.primary-button,.green-btn{min-height:56px;border:1px solid #48a50b;border-radius:4px;background:linear-gradient(#64c817,#55b80b);color:#fff;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-size:17px;padding:13px 22px;font-weight:400;box-shadow:inset 0 1px rgba(255,255,255,.25)}
.primary-button:hover,.green-btn:hover{background:var(--green-dark)}
.primary-button.compact{min-height:46px;padding:10px 22px}
.create-account-link{display:block;text-align:center;color:#168db9;text-decoration:underline;font-weight:600;font-size:17px;margin:27px 0 22px}
.auth-divider{height:1px;background:#dde2e5}
.support-line{text-align:left;margin:28px 0 0;font-size:17px}
.auth-intro{color:#53636c;margin:-18px 0 25px}
.progress{height:7px;background:#e6e9eb;border-radius:10px;margin:0 0 32px;overflow:hidden}
.progress span{display:block;width:28%;height:100%;background:var(--green);border-radius:10px}
.check-row{grid-template-columns:22px 1fr!important;gap:10px!important;align-items:start}
.check-row input{width:18px!important;height:18px!important;margin-top:3px}

/* ---------- General content/forms ---------- */
.content-shell,.auth-content,.account,.listing-page,.ad-detail,.content-page{width:min(980px,calc(100% - 40px));margin:0 auto;padding:58px 0 80px}
.content-card{max-width:720px;margin:0 auto;padding:35px;border:1px solid var(--line);border-radius:5px;background:#fff}
.content-shell h1,.auth-content h1,.account h1,.listing-page h1,.ad-detail h1,.content-page h1{font-size:34px;color:#233743;font-weight:500;margin:0 0 28px}
.auth-content{max-width:720px}
.auth-content .form,.account .form{max-width:720px}
.outline-btn{display:block;border:1px solid var(--green);color:var(--green-dark);background:#fff;border-radius:4px;padding:13px 18px;text-align:center;margin:12px 0}
.blue{color:#168db9;text-decoration:underline}
.account>p{color:#67737b}
.my-ad,.admin-ad{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}
.my-ad small,.admin-ad small{display:block;color:#6b767d;margin-top:4px}
.status{padding:5px 10px;border-radius:20px;text-transform:capitalize;font-size:13px}.status.pending{background:#fff0bd}.status.approved{background:#d7f5cc}.status.rejected{background:#ffd3d3}
.admin-ad form{display:flex;gap:7px}.admin-ad button{padding:8px 11px;border:1px solid #bac4c9;background:#fff;border-radius:3px}

/* ---------- Listings/ad detail ---------- */
.listing-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.eyebrow{color:#6c7b84;text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin:0 0 6px}
.listing-head h1{margin:0}
.listing-search{display:grid;grid-template-columns:1.5fr 1fr 130px;gap:10px;background:#f1f4f5;padding:15px;margin-bottom:30px}
.listing-search input,.listing-search select{height:48px;border:1px solid #b5c0c6;padding:0 13px;background:#fff}
.listing-search button{border:1px solid #ce6800;background:var(--orange);color:#fff;font-weight:700}
.ad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ad-card{border:1px solid var(--line);background:#fff;border-radius:4px;overflow:hidden;transition:.15s;box-shadow:0 3px 12px rgba(33,52,63,.05)}
.ad-card:hover{transform:translateY(-2px);box-shadow:0 7px 20px rgba(33,52,63,.11)}
.ad-card img,.ad-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;background:#edf0f1}
.ad-placeholder{display:grid;place-items:center;color:#9ba5ab}.ad-placeholder .ui-icon{width:52px;height:52px}
.ad-card-body{padding:15px}.ad-card-body small{color:#728089}.ad-card-body h2{font-size:18px;margin:7px 0 12px}.ad-card-body strong{color:var(--green-dark);font-size:22px}
.empty-state{text-align:center;padding:70px 20px;border:1px dashed #cbd2d6;background:#fafbfb}.empty-state .ui-icon{width:50px;height:50px;margin:0 auto;color:#8d989e}.empty-state h2{margin:16px 0 5px}.empty-state p{margin:0;color:#758189}
.ad-detail{max-width:780px}.detail-img{width:100%;max-height:520px;object-fit:cover;border-radius:4px}.price{font-size:34px;color:var(--green-dark);font-weight:700}.safety{background:#fff2cf;padding:14px;border-radius:4px}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .desktop-header-nav{gap:17px;font-size:14px}.header-post-btn{min-width:auto;padding:12px 14px}
  .desktop-hero-links{gap:20px;font-size:15px}
  .desktop-search-box{grid-template-columns:120px 1fr 1fr 130px}
  .desktop-community-section{gap:35px}
  .footer-groups{grid-template-columns:1fr 1.5fr .8fr;gap:25px}
  .ad-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:700px){
  body{font-size:13px}
  .site-header{height:65px;position:relative}
  .header-inner{width:100%;padding:0 10px;gap:8px}
  .brand-logo{width:116px}
  .desktop-header-nav{display:none}
  .mobile-header-actions{display:flex;align-items:stretch;margin-left:auto;height:100%}
  .mobile-header-actions>a,.mobile-header-actions>button{width:53px;border:0;background:transparent;color:#31414a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0}
  .mobile-header-actions .ui-icon{width:19px;height:19px;stroke-width:1.6}
  .mobile-header-actions small{font-size:7px;line-height:1;white-space:nowrap}
  .drawer{width:74vw;max-width:300px}
  .drawer-top{height:65px}.drawer-logo{width:112px}.drawer-nav a{padding:11px 18px;font-size:12px}.drawer-nav .drawer-post{padding:13px;font-size:14px}
  .announcement{min-height:47px;padding:8px 12px;display:block;font-size:12px;line-height:1.25;text-align:left}
  .announcement span{font-size:17px;margin-right:5px}
  .mobile-home-hero{display:block;position:relative;width:100%;overflow:hidden;background:#c8d5d9}
  .mobile-home-hero img{width:100%;height:auto}
  .hero-hotspot{position:absolute;z-index:3;background:transparent;border:0}
  .hero-hotspot-menu{left:0;top:0;width:26%;height:42%}
  .hero-hotspot-search{right:0;top:0;width:24%;height:42%}
  .hero-hotspot-post{left:34%;top:55%;width:32%;height:28%}
  .desktop-home-hero,.desktop-category-tabs,.desktop-post-strip,.desktop-community-section{display:none}
  .mobile-category-list{display:block;border-top:1px solid var(--line)}
  .category-accordion{border-bottom:1px solid var(--line)}
  .category-toggle{width:100%;min-height:48px;border:0;background:#fff;display:grid;grid-template-columns:40px 1fr 32px;align-items:center;padding:0 8px 0 6px;color:#4a555b;text-align:left}
  .category-symbol{display:grid;place-items:center;color:#727c81}.category-symbol .ui-icon{width:19px;height:19px;stroke-width:1.5}.adult-mark{font-size:12px;color:#4b555a}
  .category-name{font-size:13px}
  .category-plus{width:18px;height:18px;border:1px solid #7f898e;border-radius:50%;display:grid;place-items:center;font-size:15px;line-height:1;color:#626d72}
  .category-panel{display:none;background:#f0f0f0;border-top:1px solid #e0e2e3}
  .category-accordion.is-open .category-panel{display:block}
  .category-panel a{display:block;min-height:41px;padding:12px 16px 10px;border-bottom:1px solid #fff;color:#434d53;font-size:12px}
  .category-panel h3{margin:0;padding:14px 16px 6px;font-size:12px;color:#2f393e}
  .mobile-regions{display:block}
  .mobile-regions h2{margin:0;background:#f3f3f3;padding:11px 15px;font-size:13px;font-weight:400;color:#4c565b}
  .mobile-regions>a{display:block;min-height:41px;padding:12px 15px;border-bottom:1px solid #eee;font-size:12px;color:#4a555b}
  .mobile-regions .social-icons{padding:28px 0 18px;gap:8px}
  .mobile-regions .social-icons a{width:27px;height:27px;font-size:14px}
  .mobile-regions .social-icons .youtube{font-size:10px}
  .mobile-home-copy{text-align:center;margin:0 auto;padding:0 23px 24px;color:#747b80;font-size:7px;line-height:1.3;max-width:420px}
  .home-footer{display:none}

  .auth-page{min-height:0;background:#fff;padding:35px 26px 40px;display:block}
  .auth-card{width:100%;padding:0;border:0;box-shadow:none}
  .auth-card h1{font-size:20px;margin:0 0 25px}
  .form{gap:16px}
  .form label{font-size:12px;gap:6px}
  .form input{height:41px;padding:8px 10px;border-color:#ccd3d7}
  .form select{height:43px;padding:8px 10px}
  .password-field input{padding-right:42px}
  .password-toggle{width:39px;height:39px}.password-toggle .ui-icon{width:17px;height:17px}
  .primary-button,.green-btn{min-height:41px;padding:9px 16px;font-size:12px;border-radius:3px}
  .create-account-link{font-size:12px;margin:17px 0 19px}
  .support-line{font-size:11px;margin:19px 0 0;text-align:center}
  .auth-divider{margin:0}
  .auth-intro{font-size:11px;margin:-14px 0 18px;max-width:320px}
  .progress{height:5px;margin-bottom:26px}
  .register-card>p{font-size:11px}
  .error,.flash{margin:12px 20px 0;padding:10px 12px;font-size:12px}

  .site-footer{border-top:1px solid var(--line)}
  .footer-inner{width:100%;padding:27px 26px 17px}
  .footer-groups{display:block}
  .footer-groups section{margin-bottom:25px}
  .footer-groups h3{font-size:14px;margin:0 0 13px;color:#303d44}
  .footer-links{display:block}
  .footer-links a{display:block;font-size:11px;color:#6b747a;margin:0 0 15px}
  .footer-links a::after{display:none!important}
  .copyright{text-align:left;margin:26px 0 0;font-size:8px;line-height:1.3}.copyright span{font-size:8px}

  .content-shell,.auth-content,.account,.listing-page,.ad-detail,.content-page{width:calc(100% - 32px);padding:34px 0 50px}
  .content-card{padding:22px}
  .content-shell h1,.auth-content h1,.account h1,.listing-page h1,.ad-detail h1,.content-page h1{font-size:24px}
  .listing-head{align-items:flex-start}.listing-head .primary-button{display:none}
  .listing-search{grid-template-columns:1fr;padding:10px}.listing-search input,.listing-search select,.listing-search button{height:43px}
  .ad-grid{grid-template-columns:1fr}.ad-card{display:grid;grid-template-columns:115px 1fr}.ad-card img,.ad-placeholder{aspect-ratio:1/1;height:100%}.ad-card-body h2{font-size:16px}.ad-card-body strong{font-size:19px}
  .my-ad,.admin-ad{align-items:flex-start}.admin-ad{display:block}.admin-ad form{margin-top:10px}
}

@media (max-width:380px){
  .brand-logo{width:103px}
  .mobile-header-actions>a,.mobile-header-actions>button{width:47px}
  .mobile-header-actions small{font-size:6px}
  .auth-page{padding-left:20px;padding-right:20px}
}
