/* ===== Ctkoot shared PUBLIC header/footer component =====
   Self-contained (literal colours, no CSS-var dependency) so it renders
   identically on every public page regardless of that page's own styles. */

.ckh-scope a{text-decoration:none;color:inherit}

/* topbar */
.topbar{background:#c12e36;color:#fbd9db;font-size:13px}
.topbar .container-x{display:flex;justify-content:space-between;align-items:center;height:36px}
.topbar a{color:#fff;font-weight:600;text-decoration:none}

/* header */
.site-header{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:50}
.site-header .container-x{display:flex;align-items:center;gap:14px;height:64px}
.site-header .brand img{height:42px}
.main-nav{display:flex;gap:22px;margin-left:8px}
.main-nav a{font-weight:600;color:#374151;font-size:15px;text-decoration:none}
.main-nav a:hover,.main-nav a.active{color:#d84e55}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}
.btn-teal{background:#d84e55;color:#fff;border:none;padding:9px 16px;border-radius:9px;font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.btn-teal:hover{background:#c12e36;color:#fff}
.btn-ghost{color:#374151;font-weight:600;font-size:14px;text-decoration:none}
.hamburger{display:none;background:none;border:0;font-size:26px;color:#1f2937}
.mobile-menu{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 14px 26px rgba(17,24,39,.14);z-index:60}
.mobile-menu.open{display:block}
.mobile-menu a{display:flex;align-items:center;gap:10px;padding:13px 18px;font-weight:600;color:#374151;border-bottom:1px solid #f1f3f5;text-decoration:none}
.mobile-menu .post-ad{background:#d84e55;color:#fff;margin:12px 16px;border-radius:9px;justify-content:center}

/* suggest dropdown (shared by header + mobile search) */
.suggest{position:absolute;top:50px;left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 4px 18px rgba(17,24,39,.08);max-height:260px;overflow:auto;display:none;z-index:60}
.suggest a{display:block;padding:10px 14px;color:#1f2937;font-size:14px;text-decoration:none}
.suggest a:hover{background:#fdebec;color:#c12e36}

/* desktop header search (reveals on scroll) */
.header-search{position:relative;flex:1;max-width:440px;margin-left:8px;display:flex;align-items:center;gap:8px;height:42px;padding:0 6px 0 12px;border:1px solid #e5e7eb;border-radius:9px;background:#fff;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .3s ease,transform .3s ease}
.header-search>i{color:#d84e55;font-size:17px;flex-shrink:0}
.header-search button i{color:#fff;font-size:16px}
.header-search input{border:0;outline:0;flex:1;min-width:0;height:100%;font-size:14px;background:transparent}
.header-search button{border:0;background:#d84e55;color:#fff;width:34px;height:34px;border-radius:7px;flex-shrink:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.header-search button:hover{background:#c12e36}
.header-search .suggest{top:46px}
.site-header.is-scrolled{box-shadow:0 2px 12px rgba(0,0,0,.08)}
.site-header.is-scrolled .header-search{opacity:1;transform:translateY(0);pointer-events:auto}
@media(max-width:992px){.header-search{display:none!important}}

/* mobile sticky search + bottom nav */
.mob-search{display:none}
.mob-search .field{position:relative;display:flex;align-items:center;gap:10px;border:1.5px solid #d84e55;border-radius:10px;padding:0 14px;height:46px;background:#fff}
.mob-search .field i{color:#d84e55;font-size:18px;flex-shrink:0}
.mob-search input{border:0;outline:0;flex:1;min-width:0;height:100%;font-size:14px;background:transparent}
.mob-search .suggest{top:48px}
.bottom-bar{display:none}
@media(max-width:992px){.main-nav,.header-actions .btn-ghost{display:none}.hamburger{display:flex;align-items:center}}
@media(max-width:768px){
  .site-header{position:relative;top:auto}
  .mob-search{display:block;position:fixed;left:0;right:0;top:0;z-index:45;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 4px 12px rgba(0,0,0,.08);padding:8px 12px;transform:translateY(-100%);transition:transform .3s ease}
  .mob-search.show{transform:translateY(0)}
  .bottom-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -3px 14px rgba(0,0,0,.07);height:60px;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom,0);transform:translateY(0);transition:transform .3s ease}
  .bottom-bar.is-hidden{transform:translateY(calc(100% + 20px))}
  .bb-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#6b7280;text-decoration:none}
  .bb-tab i{font-size:19px}
  .bb-tab span{font-size:10.5px;font-weight:600}
  .bb-tab:active,.bb-tab:hover{color:#c12e36}
  .bb-cta i{background:#d84e55;color:#fff;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;margin-top:-22px;box-shadow:0 4px 12px rgba(216,78,85,.4);border:3px solid #fff}
  .bb-cta span{color:#c12e36}
  body{padding-bottom:62px}
}

/* ===== shared footer (namespaced .ckfoot — isolated from any page footer CSS) ===== */
.ckfoot{background:linear-gradient(160deg,#c12e36,#7a1820);color:#f3c9cc;padding:40px 0 0;border-top:4px solid #e0727a}
.ckfoot .container-x{max-width:1180px;margin:0 auto;padding:0 16px}
.ckfoot .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:30px}
.ckfoot h4{color:#fff;font-size:15px;margin:0 0 14px;padding-bottom:8px;position:relative}
.ckfoot h4::after{content:"";position:absolute;left:0;bottom:0;width:30px;height:2px;background:#e0727a}
.ckfoot a{display:block;color:#f3c9cc;padding:5px 0;font-size:14px;text-decoration:none}
.ckfoot a:hover{color:#fff}
.ckfoot .foot-social{display:flex;gap:10px;margin-top:14px}
.ckfoot .foot-social a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;color:#fff;font-size:17px;padding:0}
.ckfoot .foot-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:34px;padding:16px 0;font-size:13px;color:#f3c9cc;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ckfoot .back-top{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);color:#fff;border:0;padding:9px 16px;border-radius:30px;font-weight:700;font-size:13px;cursor:pointer;opacity:0;transform:translateY(8px);transition:.3s}
.ckfoot .back-top.show{opacity:1;transform:none}
.ckfoot .back-top:hover{background:#fff;color:#c12e36}
.ckfoot .back-top i{font-size:15px}
@media(max-width:768px){
  .ckfoot .cols{grid-template-columns:1fr;gap:16px;text-align:center}
  .ckfoot .cols>div:nth-child(3),.ckfoot .cols>div:nth-child(4){display:none}
  .ckfoot .cols>div:first-child p{margin-left:auto;margin-right:auto}
  .ckfoot .foot-social{justify-content:center}
  .ckfoot h4::after{left:50%;transform:translateX(-50%)}
}
@media(max-width:600px){.ckfoot .foot-bottom{justify-content:center;text-align:center}}
