/*
Theme Name: TKLake Child
Theme URI: https://tenkillerlake.com
Description: Custom WordPress child theme for tenkillerlake.com — combines Homey listing CPT, WP Rentals real-time pricing engine, and the brokenbow.com design system. Built to be the testing ground for the new tkl/brokenbow shared theme.
Author: brokenbow.com
Version: 1.0.0
Template: homey
Text Domain: tklake-child
*/

/* ════════════════════════════════════════════════════════════════════════
   TKLake — design system inherited from brokenbow.com prototypes
   Airbnb/VRBO-style. Consumer language: Instant Book, Live pricing, Guest Favorite.
   ════════════════════════════════════════════════════════════════════════ */
:root{
  --navy:#00365A;
  --navy-d:#002847;
  --cyan:#2BA8E0;
  --ink:#1F2937;
  --muted:#6B7280;
  --line:#E5E7EB;
  --soft:#F7F8FA;
  --gold:#F59E0B;
  --green:#047857;
  --radius:14px;
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  line-height:1.5;
  background:#fff;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* Header */
.tkl-header{
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:#fff;
  z-index:40;
}
.tkl-header .hdr{display:flex;align-items:center;justify-content:space-between;height:72px}
.tkl-logo{font-size:22px;font-weight:800;color:var(--navy);letter-spacing:-.5px}
.tkl-logo span{color:var(--cyan)}
nav.tkl-main{display:flex;gap:28px;font-size:15px;font-weight:500}
nav.tkl-main a:hover{color:var(--navy)}
nav.tkl-main a.on{color:var(--navy);font-weight:700}
.hdr-right{display:flex;gap:14px;align-items:center}
.phone{font-weight:700;color:var(--navy);font-size:15px}

/* Buttons */
.btn{
  display:inline-block;
  background:var(--navy);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:13px 20px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s;
  text-align:center;
}
.btn:hover{background:var(--navy-d)}
.btn.block{display:block;width:100%}
.star{color:var(--gold)}
.pill{background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:3px 11px;font-size:13px;font-weight:600}

/* Badges */
.badge-fav{
  position:absolute;
  top:12px;
  left:12px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
  font-weight:700;
  padding:5px 11px;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  display:flex;align-items:center;gap:5px;
}
.badge-insta{
  display:inline-flex;align-items:center;gap:5px;
  font-size:11px;font-weight:700;
  color:var(--green);
  background:#ECFDF5;
  border:1px solid #A7F3D0;
  border-radius:999px;
  padding:2px 8px;
  vertical-align:middle;
}
.badge-vrbo{
  display:inline-flex;align-items:center;gap:5px;
  font-size:11px;font-weight:700;
  color:#1668E3;
  background:#EFF6FF;
  border:1px solid #BFDBFE;
  border-radius:999px;
  padding:2px 8px;
}

/* Hero */
.tkl-hero{
  position:relative;
  height:560px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:#fff;
}
.tkl-hero::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(rgba(0,20,10,.35),rgba(0,20,10,.55)),url('https://cdn.tenkillerlake.com/hero.jpg') center/cover;
  z-index:-1;
}
.tkl-hero h1{font-size:48px;font-weight:800;letter-spacing:-1px;max-width:900px;text-shadow:0 2px 20px rgba(0,0,0,.4)}
.tkl-hero p{font-size:19px;margin-top:8px;text-shadow:0 2px 12px rgba(0,0,0,.5)}

/* Home search widget */
.hwidget{
  background:#fff;border-radius:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
  padding:14px;max-width:560px;width:92%;margin-top:30px;color:var(--ink);
}
.hwidget .row{display:flex;gap:8px}
.hwidget .box{flex:1;border:1px solid var(--line);border-radius:10px;padding:11px 14px;text-align:left;cursor:pointer}
.hwidget .box .l{font-size:11px;font-weight:700;color:var(--navy)}
.hwidget .box .v{font-size:14px;color:var(--muted);margin-top:2px}
.hwidget .adv{margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:11px 14px;text-align:center;font-size:14px;font-weight:600;cursor:pointer}

/* Sections */
.sec{padding:46px 0}
.sec h2{font-size:26px;font-weight:800;letter-spacing:-.4px;margin-bottom:4px}
.sec .lead{color:var(--muted);margin-bottom:22px}

/* Categories grid */
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:8px}
.cat{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:1/1;cursor:pointer}
.cat img{width:100%;height:100%;object-fit:cover}
.cat span{position:absolute;left:14px;bottom:12px;color:#fff;font-weight:800;font-size:17px;text-shadow:0 2px 8px rgba(0,0,0,.6)}

/* Search bar (top of cabins/search pages) */
.searchbar{
  display:flex;align-items:center;
  border:1px solid var(--line);border-radius:999px;
  box-shadow:0 2px 10px rgba(0,0,0,.07);
  max-width:780px;margin:22px auto 6px;background:#fff;overflow:hidden;
}
.searchbar .seg{padding:12px 22px;cursor:pointer;flex:1}
.searchbar .seg+.seg{border-left:1px solid var(--line)}
.searchbar .seg .l{font-size:11px;font-weight:700}
.searchbar .seg .v{font-size:14px;color:var(--muted)}
.searchbar .go{
  background:var(--navy);color:#fff;border:none;
  width:52px;height:52px;border-radius:999px;margin:5px;
  font-size:18px;cursor:pointer;flex:none;
}

/* Filter pills */
.filters{
  display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
  margin:0 -24px;padding:14px 24px 12px;
  position:sticky;top:72px;background:#fff;z-index:30;
  border-bottom:1px solid var(--line);
}
.filters .f{
  border:1px solid var(--line);border-radius:999px;
  padding:7px 15px;font-size:13px;font-weight:600;
  cursor:pointer;background:#fff;white-space:nowrap;
}
.filters .f:hover{border-color:var(--ink)}
.filters .f.on{background:var(--navy);color:#fff;border-color:var(--navy)}

/* Results / grid */
.res-head{
  display:flex;justify-content:space-between;align-items:baseline;
  margin:26px 0 16px;flex-wrap:wrap;gap:8px;
}
.res-head h1{font-size:24px;font-weight:800;letter-spacing:-.3px}
.res-head .cnt{font-size:14px;color:var(--muted)}

.grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:26px 22px;padding-bottom:50px;
}

/* Cabin card */
.card{cursor:pointer;display:flex;flex-direction:column}
.card .ph{
  position:relative;border-radius:14px;overflow:hidden;
  aspect-ratio:20/15;background:var(--soft);
}
.card .ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.card:hover .ph img{transform:scale(1.04)}
.card .heart{
  position:absolute;top:10px;right:10px;
  width:34px;height:34px;border-radius:999px;
  background:rgba(255,255,255,.92);
  display:grid;place-items:center;font-size:15px;
}
.card .body{padding:11px 2px 0}
.card .toprow{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.card .name{font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .rate{font-size:13px;font-weight:700;white-space:nowrap}
.card .sub{font-size:13px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .facts{font-size:13px;color:var(--muted);margin-top:6px}
.card .price{margin-top:8px;font-size:15px}
.card .price b{font-weight:800}

/* Footer */
.tkl-footer{
  border-top:1px solid var(--line);padding:34px 0;margin-top:30px;
  font-size:13px;color:var(--muted);
}
.tkl-footer .fcols{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px}

/* VRBO affiliate section */
.vrbo-banner{
  background:linear-gradient(90deg,#EFF6FF,#FFF);
  border:1px solid #BFDBFE;border-radius:14px;
  padding:16px 20px;margin:14px 0;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.vrbo-banner .label{font-weight:700;color:#1668E3;font-size:14px}
.vrbo-banner .label small{display:block;font-weight:500;color:var(--muted);font-size:12px;margin-top:2px}
.vrbo-banner .btn{background:#1668E3;padding:10px 16px;font-size:14px}
.vrbo-banner .btn:hover{background:#0E50B5}

/* Responsive */
@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.tkl-hero h1{font-size:32px}.cats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){
  .grid{grid-template-columns:1fr}
  nav.tkl-main{display:none}
  .filters{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .filters::-webkit-scrollbar{display:none}
  .searchbar{flex-wrap:nowrap;margin:14px auto 4px}
  .searchbar .seg{padding:9px 12px}
  .searchbar .seg .v{font-size:12px}
  .searchbar .go{width:42px;height:42px;font-size:15px}
}
