@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root{
 --bg:#f5f6f2;--surface:#fff;--surface-2:#eef2ef;--text:#17211d;--muted:#68746e;
 --line:#d9dfdb;--line-strong:#c6d0ca;--blue:#286f8e;--blue-soft:#e7f1f5;
 --green:#6f982c;--green-soft:#edf5df;--danger:#c7434f;
 --r-sm:8px;--r-md:12px;--r-lg:18px;
 --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;
 --shadow:0 12px 34px rgba(22,35,29,.10)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Inter,Arial,sans-serif}
button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid rgba(40,111,142,.28);outline-offset:2px}
.site-header{background:rgba(245,246,242,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100;backdrop-filter:blur(10px)}
.header-inner{max-width:1320px;height:72px;margin:auto;padding:0 var(--s5);display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.brand img{width:42px;height:42px;border-radius:11px}.brand b{font-size:22px;line-height:1;display:block}.brand span{font-size:11px;color:var(--muted);display:block;margin-top:4px}
.weather{display:flex;align-items:center;gap:9px;color:inherit;text-decoration:none;padding:7px 10px;border-radius:var(--r-md)}.weather:hover{background:var(--surface-2)}.weather>span:first-child svg{width:24px;height:24px;display:block}.weather>strong{font-size:22px}.weather>span:last-child{display:flex;flex-direction:column}.weather b{font-size:11px}.weather small{font-size:10px;color:var(--muted)}
.page{max-width:1320px;margin:auto;padding:var(--s6) var(--s5) var(--s7)}
.catalog-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:var(--s5)}.catalog-head h1{font-size:31px;line-height:1.12;margin:0;letter-spacing:-.035em}.intro{margin:7px 0 0;color:var(--muted);font-size:13px}.route-count{font-weight:600;color:#46534d;margin-bottom:3px}
.discovery{display:grid;grid-template-columns:270px 1fr auto;gap:var(--s3);align-items:center;margin-bottom:var(--s5)}.search{height:44px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);display:flex;align-items:center;padding:0 12px;gap:8px}.search:focus-within{border-color:#8bb1c2}.search svg{width:17px;height:17px;fill:none;stroke:var(--muted);stroke-width:1.8}.search input{border:0;outline:0;background:none;width:100%;min-width:0}.quick-cats{display:flex;gap:7px}.quick-cats button{height:38px;border:1px solid var(--line);background:transparent;border-radius:999px;padding:0 14px}.quick-cats button:hover{background:var(--surface)}.quick-cats button.active{background:var(--text);color:white;border-color:var(--text)}
.filter-trigger{display:none;height:42px;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-md);align-items:center;gap:7px;padding:0 12px;position:relative}.filter-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.filter-trigger i{display:none;width:7px;height:7px;border-radius:50%;background:var(--blue);position:absolute;right:5px;top:5px}
.catalog-layout{display:grid;grid-template-columns:208px minmax(0,1fr);gap:var(--s5);align-items:start}.filters{position:sticky;top:96px}.filter-head{display:none}.filter-section{padding:0 0 var(--s4);margin:0 0 var(--s4);border-bottom:1px solid var(--line)}.filter-label{font-size:11px;font-weight:700;color:#56635d;display:block;margin-bottom:7px}.region{font-weight:600}.filters select{width:100%;height:39px;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-sm);padding:0 9px}.verified-filter{width:100%;border:0;background:var(--green-soft);border-radius:var(--r-md);padding:10px;text-align:left;display:flex;gap:9px;align-items:flex-start}.verified-filter>span{width:22px;height:22px;display:grid;place-items:center;background:#d9ecb8;color:#486b14;border-radius:50%;font-weight:700}.verified-filter div{display:flex;flex-direction:column}.verified-filter b{font-size:11px;color:#3f5d16}.verified-filter small{font-size:9px;line-height:1.35;color:#68794e;margin-top:2px}.verified-filter.active{box-shadow:none;}.reset{display:none;margin-top:var(--s3);border:0;background:none;padding:6px 0;color:var(--blue);font-size:12px;font-weight:600}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s4)}.card{min-width:0;background:var(--surface);border-radius:var(--r-lg);overflow:hidden;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.card:hover{transform:translateY(-2px);box-shadow:none;}.cover{aspect-ratio:16/10;position:relative;background:#dfe6e1;overflow:hidden}.cover img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}.card:hover .cover img{transform:scale(1.015)}
.verified{position:absolute;left:12px;top:12px;background:var(--green-soft);color:#45651a;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:700;box-shadow:none;}.iconbtn{position:absolute;right:10px;top:10px;width:36px;height:36px;border:0;background:rgba(255,255,255,.93);border-radius:50%;display:grid;place-items:center;box-shadow:none;}.iconbtn svg{width:18px;height:18px}.heart.on{color:var(--danger);background:#fff0f1}.completed{position:absolute;right:10px;bottom:10px;background:rgba(23,33,29,.84);color:white;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:600;display:flex;gap:4px;align-items:center}.completed svg{width:13px;height:13px}
.body{padding:14px 14px 13px}.body h3{font-size:18px;line-height:1.24;letter-spacing:-.015em;margin:0;min-height:44px}.area{font-size:11px;color:var(--muted);margin-top:3px}.difficulty{margin-top:10px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600}.difficulty i{display:flex;gap:3px}.difficulty i span{width:12px;height:3px;border-radius:3px;background:#d8dfdb}.difficulty i span.on{background:var(--blue)}
.card-metrics{display:flex;align-items:center;gap:0;margin-top:10px;font-size:11px;color:#45524c;white-space:nowrap}.card-metrics span{display:flex;align-items:center}.card-metrics span+span:before{content:"";color:#9ba69f;margin:0 7px}.card-metrics b{font-weight:600}.tags{display:flex;gap:5px;overflow:hidden;margin-top:11px;white-space:nowrap}.tag{font-size:9px;background:var(--surface-2);color:#65736c;border-radius:999px;padding:3px 7px}.tag.technical{background:#fff0e7;color:#9b4b24}.card.passed .cover img{filter:saturate(.7) brightness(.82)}
.drawer{display:none;position:fixed;inset:0;background:rgba(14,24,19,.44);z-index:300}.drawer.show{display:block}.sheet{position:absolute;right:0;top:0;bottom:0;width:min(760px,100%);background:var(--bg);overflow:auto;overscroll-behavior:contain}.sheethead{height:58px;position:sticky;top:0;z-index:20;background:rgba(245,246,242,.96);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 18px}.sheethead span{font-size:12px;font-weight:600;color:var(--muted)}.sheethead button{width:38px;height:38px;border:0;background:var(--surface);border-radius:50%;font-size:23px}.detail{padding:20px 22px 38px}.detail-sub{font-size:12px;color:var(--muted);margin-bottom:3px}.detail h2{font-size:28px;line-height:1.16;letter-spacing:-.03em;margin:0 0 8px}.detailtags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}
.detail-difficulty{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:12px;font-weight:600}.gallery{aspect-ratio:16/9;border-radius:var(--r-lg);overflow:hidden;position:relative;background:#dfe6e1}.gallerytrack{display:flex;width:100%;height:100%;transition:transform .25s ease}.gallerytrack img{width:100%;height:100%;flex:0 0 100%;object-fit:cover;cursor:zoom-in}.gprev,.gnext{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.93);font-size:24px}.gprev{left:12px}.gnext{right:12px}

.actions{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.btn{min-height:40px;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-md);padding:0 12px;display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none;font-size:11px;font-weight:600}.btn svg{width:16px;height:16px}.btn.gpx{background:var(--green-soft);border-color:#d4e6b8;color:#3f6115}.btn.fav.on{color:var(--danger)}.btn.passed.on{background:var(--text);color:white;border-color:var(--text)}
.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:4px 0 20px}.stat{padding:0 10px}.stat:first-child{padding-left:0}.stat+.stat{border-left:1px solid var(--line)}.stat span{display:block;font-size:9px;color:var(--muted);margin-bottom:3px}.stat b{font-size:13px}.box{padding:0;margin:20px 0}.box h4{font-size:12px;margin:0 0 7px}.routeinfo{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.ri{display:grid;grid-template-columns:100px 1fr;gap:12px;padding:10px 0}.ri+.ri{border-top:1px solid var(--line)}.ri b{font-size:10px;color:var(--muted)}.ri span{font-size:12px}.preview iframe{width:100%;height:350px;border:0;border-radius:var(--r-md)}.profile{height:170px;background:var(--surface);border-radius:var(--r-md);overflow:hidden}.gpxmap{height:350px;border-radius:var(--r-md);overflow:hidden}.source-note{font-size:10px;color:var(--muted);margin-top:5px}.notice,.warning{padding:11px 13px;border-radius:var(--r-md);font-size:11px;margin-top:14px}.notice{background:var(--blue-soft);color:#3c5f6f}.warning{background:#fff0e7;color:#7d421f}
.verified-note{background:var(--green-soft);padding:12px 13px;border-radius:var(--r-md);font-size:11px;color:#52683a;margin-top:18px}.verified-note b{display:block;color:#3f6115;margin-bottom:2px}
.fab{position:fixed;right:18px;bottom:18px;z-index:120;border:0;background:var(--text);color:white;border-radius:999px;height:42px;padding:0 15px;box-shadow:none;}.fab span{background:#ffffff20;padding:2px 6px;border-radius:999px;margin-left:4px}.favpanel{display:none;position:fixed;right:18px;bottom:68px;width:320px;max-height:55vh;overflow:auto;background:var(--surface);border-radius:var(--r-lg);box-shadow:none;z-index:130;padding:14px}.favpanel.show{display:block}.frow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.frow button{border:0;background:var(--surface-2);border-radius:8px;padding:5px 8px}.lightbox{display:none;position:fixed;inset:0;background:#0b100de8;z-index:500;place-items:center}.lightbox.show{display:grid}.lightbox img{max-width:94vw;max-height:92vh}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,18px);background:#17211d;color:white;padding:9px 13px;border-radius:999px;font-size:11px;opacity:0;pointer-events:none;transition:.18s;z-index:600}.toast.show{opacity:1;transform:translate(-50%,0)}
.filter-backdrop{display:none}.route-open{overflow:hidden}
@media(max-width:1100px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){
 .header-inner{height:62px;padding:0 14px}.brand img{width:36px;height:36px}.brand b{font-size:19px}.brand span{display:none}.weather{padding:5px}.weather>span:last-child small{display:none}.weather>strong{font-size:19px}
 .page{padding:20px 12px 40px}.catalog-head{margin-bottom:16px}.catalog-head h1{font-size:26px}.intro{font-size:12px}.route-count{display:none}
 .discovery{grid-template-columns:1fr auto;margin-bottom:14px;gap:8px}.search{grid-column:1/2}.filter-trigger{display:flex;grid-column:2/3}.filter-trigger span{display:none}.filter-trigger{width:44px;padding:0;justify-content:center}.quick-cats{grid-column:1/3;grid-row:2;overflow-x:auto;padding-bottom:2px}.quick-cats button{flex:0 0 auto}
 .catalog-layout{display:block}.filters{position:fixed;z-index:410;left:10px;right:10px;bottom:10px;top:auto;background:var(--surface);padding:14px;border-radius:18px;box-shadow:none;max-height:82vh;overflow:auto;transform:translateY(calc(100% + 30px));transition:transform .2s}.filters.mobile-open{transform:translateY(0)}.filter-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.filter-head>div{display:flex;align-items:baseline;gap:8px}.filter-head span{font-size:10px;color:var(--muted)}.filter-head button{border:0;background:var(--surface-2);width:34px;height:34px;border-radius:50%;font-size:20px}.filter-backdrop{display:block;position:fixed;inset:0;background:#10181366;z-index:400;opacity:0;pointer-events:none;transition:.18s}.filter-backdrop.show{opacity:1;pointer-events:auto}.filters-open{overflow:hidden}
 .grid{grid-template-columns:1fr;gap:12px}.card{border-radius:16px}.cover{aspect-ratio:16/9}.body{padding:13px}.body h3{min-height:0;font-size:18px}.card-metrics{font-size:11px}
 .sheet{width:100%}.sheethead{height:54px}.detail{padding:14px 12px 28px}.detail h2{font-size:24px}.gallery{border-radius:14px}.stats{grid-template-columns:repeat(3,1fr);row-gap:12px}.stat{padding:0 8px}.stat:nth-child(4){border-left:0;padding-left:0}.stat:nth-child(n+4){padding-top:10px;border-top:1px solid var(--line)}.preview iframe,.gpxmap{height:300px}.fab{right:12px;bottom:12px}.favpanel{left:12px;right:12px;width:auto;bottom:62px}
}
@media(max-width:390px){.card-metrics span+span:before{margin:0 5px}.card-metrics{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.page{padding-top:24px!important}
.catalog-layout{
  grid-template-columns:208px minmax(0,1fr)!important;
  gap:24px!important;
  align-items:start!important
}
.content-column{min-width:0}
.catalog-head{
  margin:0 0 16px!important;
  min-height:0!important
}
.catalog-head h1{font-size:30px!important}
.intro{margin-top:5px!important}
.discovery{
  grid-template-columns:270px 1fr auto!important;
  margin-bottom:16px!important;
  gap:10px!important
}
.filters{top:88px!important}

.difficulty,.detail-difficulty{gap:0!important}
.difficulty .difficulty-value,
.detail-difficulty .difficulty-value{font-weight:600}
.difficulty .difficulty-score,
.detail-difficulty .difficulty-score{
  color:var(--muted);
  font-weight:500
}

.card-metrics{margin-top:8px!important}
.card-metrics .metric-duration{font-weight:700;color:var(--text)}
.card-metrics .metric-secondary{color:#53615a}

.tag{
  background:#e3e9e5!important;
  color:#4d5e55!important
}

.detail h2{font-size:25px!important}

.image-fallback{
  width:100%;height:100%;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:8px;
  background:#e8ede9;
  color:#707d76;
  font-size:11px;
  text-align:center;
  padding:20px
}
.image-fallback svg{
  width:34px;height:34px;
  fill:none;stroke:#87948d;stroke-width:1.5
}

@media(max-width:780px){
 .page{padding-top:16px!important}
 .catalog-layout{display:block!important}
 .catalog-head{margin-bottom:12px!important}
 .discovery{margin-bottom:12px!important}
 .detail h2{font-size:22px!important}
}

.catalog-layout{
  grid-template-columns:196px minmax(0,1fr)!important;
}
.body h3{
  font-weight:600!important;
}
.tag{
  color:#43544b!important;
}

@media(max-width:780px){
 .catalog-layout{display:block!important}
}

.card{display:flex;flex-direction:column}
.body{display:flex;flex-direction:column;flex:1}
.body h3{
  min-height:0!important;
  margin:0!important;
}
.area{
  margin-top:5px!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:400!important;
  color:var(--muted)!important;
}
.difficulty{
  margin-top:12px!important;
}
.card-metrics{
  margin-top:7px!important;
}
.tags{
  margin-top:auto!important;
  padding-top:10px!important;
}
@media(max-width:780px){
 .area{margin-top:4px!important;font-size:12px!important}
 .difficulty{margin-top:11px!important}
 .tags{padding-top:9px!important}
}

.card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.body{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.identity{
  flex:0 0 auto;
}
.body h3{
  min-height:0!important;
  margin:0!important;
}
.area{
  margin-top:5px!important;
  font-size:12px!important;
  line-height:1.35!important;
  color:var(--muted)!important;
}
.scan-block{
  margin-top:auto;
  padding-top:12px;
}
.scan-block .difficulty{
  margin-top:0!important;
}
.scan-block .tags{
  margin-top:11px!important;
}

@media(max-width:780px){
  .scan-block{padding-top:11px}
}

.scan-block{
  margin-top:auto!important;
  padding-top:16px!important;
}
.scan-block .difficulty{
  margin-top:0!important;
}
.scan-block .card-metrics{
  margin-top:7px!important;
}
.scan-block .tags{
  margin-top:8px!important;
}
@media(max-width:780px){
  .scan-block{padding-top:14px!important}
}

.route-title-link{color:inherit;text-decoration:none}
.route-title-link:hover{color:inherit;text-decoration:none}

.header-tools{display:flex;align-items:center;gap:12px}
.lang-switch{display:flex;align-items:center;gap:2px}
.lang-switch a{min-width:32px;line-height:30px;padding:0 7px;text-align:center;text-decoration:none;color:var(--muted);font-size:12px;border-radius:8px}
.lang-switch a.active{background:#e9efe9;color:var(--text);font-weight:600}
.mobile-weather{display:none;color:inherit;text-decoration:none;width:34px;height:34px;align-items:center;justify-content:center;border-radius:9px}
.mobile-weather:hover{background:var(--surface-2)}
.mobile-weather svg{width:22px;height:22px;display:block}

.content-column{display:flex;flex-direction:column;min-width:0}
.catalog-head{order:1!important;display:block!important;min-height:0!important;margin:0 0 13px!important}

.catalog-head h1{margin:0!important}

.intro{margin-top:5px!important}

.view-switch{order:2;display:flex;align-items:center;gap:5px;width:max-content;padding:0;margin:0 0 12px;border:0;background:transparent}
.view-switch button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:600;border-radius:9px;padding:8px 11px;cursor:pointer}
.view-switch button:hover{background:#f0f3ef;color:var(--text)}
.view-switch button.active{background:#e7ede7;color:var(--text)}

.discovery{order:3!important;grid-template-columns:minmax(320px,420px) max-content auto!important;justify-content:start!important;gap:10px!important;margin-bottom:16px!important}
.search{border-color:#d9dfda!important;box-shadow:none;}
.quick-cats{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.quick-cats button{height:38px!important;border:0!important;background:transparent!important;box-shadow:none;border-radius:9px!important;padding:0 12px!important;color:var(--muted)!important}
.quick-cats button:hover{background:#f0f3ef!important;color:var(--text)!important}
.quick-cats button.active{background:#e4ebe4!important;color:var(--text)!important}

.grid{order:4;scroll-margin-top:84px}
.map-view{order:5;margin-top:22px;min-width:0;scroll-margin-top:84px}
.content-column.map-priority .map-view{order:4;margin-top:0;margin-bottom:18px}
.content-column.map-priority .grid{order:5}

.map-stage{position:relative;min-width:0}
.all-routes-map{height:min(68vh,720px);min-height:520px;border:0;border-radius:16px;overflow:hidden;background:#e9eee9}
.map-toolbar{position:absolute;z-index:500;top:12px;right:12px;display:flex;align-items:center;gap:10px;margin:0;padding:5px 7px;border:0;border-radius:11px;background:rgba(248,250,247,.94);box-shadow:none;backdrop-filter:blur(5px)}
.map-mode{display:flex;align-items:center;gap:2px;padding:0;border:0;background:transparent}
.map-mode button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;border-radius:8px;padding:7px 9px;cursor:pointer}
.map-mode button:hover{background:#f0f3ef;color:var(--text)}
.map-mode button.active{background:#e4ebe4;color:var(--text)}
.map-all-tracks{margin:0;padding-left:9px;border-left:1px solid rgba(58,76,65,.12);font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}
.map-view.tracks-loading:after{content:"";position:absolute;inset:0;pointer-events:none}

.route-pin-wrap,.route-cluster-wrap{background:transparent!important;border:0!important}
.route-map-marker{width:34px;height:36px;border-radius:17px 17px 17px 6px;transform:rotate(-45deg);background:#236f9e;border:2px solid rgba(255,255,255,.96);box-shadow:none;display:grid;place-items:center}
.route-map-marker svg{width:19px;height:19px;transform:rotate(45deg);fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.route-cluster{height:34px;min-width:70px;padding:0 10px;border-radius:17px;display:flex;align-items:center;justify-content:center;gap:5px;background:#355d49;color:#fff;box-shadow:none;font-size:12px;font-weight:700;white-space:nowrap}
.route-cluster span{font-size:10px;font-weight:600;opacity:.9}
.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large,.marker-cluster-small div,.marker-cluster-medium div,.marker-cluster-large div{background:transparent!important}
.route-map-popup{width:220px}
.route-map-popup img{display:block;width:100%;height:112px;object-fit:cover;border-radius:9px;margin-bottom:8px}
.route-map-popup b{display:block;font-size:14px;line-height:1.25;margin-bottom:3px}
.route-map-popup small{display:block;color:#65736b;line-height:1.4}
.route-map-popup button{margin-top:8px;width:100%;border:0;border-radius:8px;background:#eaf1e8;color:#294e38;font-weight:600;padding:8px;cursor:pointer}
.leaflet-popup-content-wrapper{border-radius:12px;box-shadow:none;}
.leaflet-popup-content{margin:10px}
.leaflet-control-attribution{font-size:9px!important;line-height:1.25!important;color:#68746d!important;background:rgba(248,250,247,.88)!important}
.leaflet-control-attribution a{color:#586a61!important}

.drawer{z-index:1300!important}
.drawer.show{background:rgba(18,26,21,.32)!important}
.leaflet-top,.leaflet-bottom{z-index:400}

.difficulty-score{margin-left:8px!important}
.card-metrics{gap:12px!important}
.card-metrics span+span:before{content:none!important;display:none!important}

.download-icon{width:15px!important;height:15px!important}

.actions .btn{white-space:nowrap}

.site-footer{max-width:1320px;margin:0 auto;padding:4px 24px 36px;color:var(--muted);font-size:12px}
.site-footer p{margin:0 0 4px}
.site-footer small{font-size:10px;color:#87928c}
.contact-link{border:0;background:transparent;padding:0;color:var(--blue);font-weight:600;cursor:pointer}
.contact-link:hover{text-decoration:underline}

@media(max-width:780px){
  .header-tools{gap:5px}
  .weather{display:none!important}
  .mobile-weather{display:flex}
  .lang-switch a{min-width:30px;padding:0 6px}

  .view-switch{gap:4px;margin-bottom:10px}
  .view-switch button{padding:7px 9px}
  .discovery{grid-template-columns:1fr auto!important;gap:8px!important;margin-bottom:12px!important}
  .quick-cats{grid-column:1/3;grid-row:2;gap:4px;overflow-x:auto;padding-bottom:2px;flex-wrap:nowrap}
  .quick-cats button{flex:0 0 auto;padding:0 10px!important}
  .map-view{margin-top:16px;scroll-margin-top:70px}
  .content-column.map-priority .map-view{margin-bottom:14px}
  .all-routes-map{height:62vh;min-height:440px;border-radius:12px}
  .map-toolbar{top:9px;right:9px;gap:7px;padding:4px 5px}
  .map-mode button{padding:7px 8px}
  .map-all-tracks{font-size:10px;padding-left:7px}
  .actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}
  .actions .btn{width:100%;justify-content:center;min-width:0;padding:0 8px}
  .download-full{display:none}
  
  .site-footer{padding:4px 14px 82px;font-size:11px}
}

@media(max-width:390px){
  .map-toolbar{left:8px;right:8px;justify-content:space-between}
  .map-all-tracks{max-width:130px;white-space:normal;line-height:1.2}
}

.catalog-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:24px!important;
}
.catalog-head>div:first-child{min-width:0}
.catalog-head .route-count{
  flex:0 0 auto;
  margin:0 0 3px!important;
  font-size:12px!important;
  font-weight:600!important;
  color:#6b7770!important;
}

.hikes8-basemap{
  filter:saturate(.72) brightness(1.035) contrast(.92);
}
.leaflet-tile-pane{background:#edf0ea}

.route-map-marker{
  background:#3f5d4d!important;
  box-shadow:none;
}

@media(max-width:780px){
  .leaflet-pane{z-index:200}
  .leaflet-top,.leaflet-bottom{z-index:300!important}
  .map-toolbar{z-index:320!important}
  .filter-backdrop{z-index:1500!important}
  .filters{
    z-index:1600!important;
  }
  .drawer{z-index:1800!important}
  .lightbox{z-index:2100!important}
  body.filters-open .map-stage{
    pointer-events:none!important;
  }
  body.filters-open .map-toolbar{
    opacity:.45;
  }
}

.feedback-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:2200;
  background:rgba(18,26,21,.38);
  padding:20px;
  align-items:center;
  justify-content:center;
}
.feedback-modal.show{display:flex}
.feedback-open{overflow:hidden}
.feedback-sheet{
  width:min(520px,100%);
  max-height:min(760px,calc(100vh - 40px));
  overflow:auto;
  background:var(--bg);
  border-radius:18px;
  padding:20px;
  box-shadow:none;
}
.feedback-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.feedback-head>div{display:flex;flex-direction:column;gap:4px}
.feedback-head b{font-size:19px;font-weight:650}
.feedback-head span{font-size:12px;line-height:1.45;color:var(--muted)}
.feedback-head button{
  width:34px;height:34px;flex:0 0 auto;
  border:0;background:var(--surface-2);border-radius:50%;
  font-size:20px;cursor:pointer
}
.feedback-sheet form{display:grid;gap:14px}
.feedback-sheet label{display:grid;gap:6px}
.feedback-sheet label>span{font-size:12px;font-weight:600;color:#4c5b53}
.feedback-sheet label small{font-size:10px;font-weight:400;color:var(--muted)}
.feedback-sheet select,
.feedback-sheet input[type=email],
.feedback-sheet input[type=file],
.feedback-sheet textarea{
  width:100%;
  border:0;
  background:var(--surface);
  border-radius:11px;
  padding:10px 12px;
  font:inherit;
  color:var(--text);
  outline:1px solid transparent;
}
.feedback-sheet textarea{min-height:128px;resize:vertical;line-height:1.45}
.feedback-sheet select:focus,
.feedback-sheet input:focus,
.feedback-sheet textarea:focus{outline-color:#8aa99a}
.feedback-consent{
  display:flex!important;
  grid-template-columns:auto 1fr;
  align-items:flex-start;
  gap:8px!important;
}
.feedback-consent input{margin-top:2px}
.feedback-consent span{font-weight:400!important;line-height:1.4}
.feedback-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.feedback-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:40px;
  margin-top:2px;
}
.feedback-actions>span{
  font-size:11px;
  line-height:1.35;
  color:var(--muted);
}
.feedback-actions button{
  flex:0 0 auto;
  border:0;
  background:var(--text);
  color:#fff;
  border-radius:10px;
  min-height:40px;
  padding:0 16px;
  font-weight:600;
  cursor:pointer;
}
.feedback-actions button:disabled{opacity:.5;cursor:default}

@media(max-width:780px){
  .catalog-head{align-items:flex-start!important}
  .catalog-head .route-count{display:none!important}
  .feedback-modal{align-items:flex-end;padding:0}
  .feedback-sheet{
    width:100%;
    max-height:88vh;
    border-radius:18px 18px 0 0;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom));
  }
}

.route-map-marker{background:#b85f35!important}
.routeinfo .overnight{grid-column:1/-1}
@media(max-width:780px){.map-toolbar{display:flex!important;visibility:visible!important;opacity:1!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important}.map-mode{display:flex!important}.map-all-tracks{display:flex!important}.map-all-tracks[hidden]{display:none!important}}

.route-cluster{background:#b85f35!important;box-shadow:none;}

@media(min-width:781px){
  .site-footer{
    box-sizing:border-box;
    padding-left:calc(24px + 208px + var(--s5))!important;
  }
}

.map-view{display:block!important}

.feedback-file input[type=file]{
  position:absolute!important;
  inline-size:1px!important;
  block-size:1px!important;
  opacity:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.feedback-file-button{
  display:flex!important;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:8px 10px;
  border-radius:11px;
  background:var(--surface);
  cursor:pointer;
  color:var(--text)!important;
  font-weight:400!important;
}
.feedback-file-button:hover{background:var(--surface-2)}
.feedback-file-button:focus-visible{outline:2px solid #8aa99a;outline-offset:2px}
.feedback-file-button svg{
  width:22px;height:22px;flex:0 0 auto;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.feedback-file-button b{font-size:12px;font-weight:650}
.feedback-file-button small{margin-left:auto;font-size:10px!important;color:var(--muted)!important;font-weight:400!important}

@media(max-width:780px){
  .map-toolbar{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-width:none!important;
    flex-wrap:wrap;
    justify-content:space-between;
    pointer-events:auto;
  }
  .map-mode{display:flex!important}
  .map-mode button{display:block!important}
  .map-all-tracks:not([hidden]){display:flex!important}
  .site-footer{padding-left:14px!important}
}

@media(min-width:781px){
  :root{
    --catalog-prelude-height:113px;
    --catalog-discovery-band:60px;
  }
  .filters{
    position:sticky!important;
    top:88px!important;
  }
  .sidebar-prelude{
    display:block;
    height:var(--catalog-prelude-height);
  }
  .filter-region{
    min-height:var(--catalog-discovery-band);
    box-sizing:border-box;
    padding-bottom:16px!important;
    margin-bottom:16px!important;
  }
  .filter-routes{
    margin-top:0!important;
  }

  .discovery{
    grid-template-columns:minmax(320px,420px) max-content minmax(180px,1fr)!important;
    gap:10px!important;
    align-items:center!important;
    margin-bottom:16px!important;
  }
  .search{grid-column:1}
  .quick-cats{
    grid-column:2;
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:nowrap!important;
  }
  .discovery-meta{
    grid-column:3;
    justify-self:end;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
    min-width:0;
  }
  .discovery-meta .route-count{
    display:block!important;
    margin:0 2px 0 0!important;
    font-size:11px!important;
    line-height:1.2;
    font-weight:600!important;
    color:#6b7770!important;
    white-space:nowrap;
  }
  .verified-inline{
    width:auto!important;
    min-height:0;
    margin:0!important;
    padding:5px 8px!important;
    gap:6px!important;
    border-radius:10px!important;
    align-items:center!important;
    flex:0 0 auto;
  }
  .verified-inline>span{
    width:18px!important;
    height:18px!important;
    flex:0 0 18px;
    font-size:11px;
  }
  .verified-inline b{
    font-size:10px!important;
    line-height:1.1!important;
  }
  .verified-inline small{
    font-size:8px!important;
    line-height:1.15!important;
    white-space:nowrap;
  }
}

.filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.filter-row{
  display:flex;
  width:100%;
  margin-bottom:7px;
}
.filter-row-multi{margin-top:7px;margin-bottom:0}
.filter-chip{
  min-height:31px;
  border:0;
  background:transparent;
  color:#5f6c65;
  border-radius:9px;
  padding:6px 9px;
  font:inherit;
  font-size:11px;
  line-height:1.15;
  cursor:pointer;
  transition:background .14s ease,color .14s ease;
}
.filter-chip:hover{background:#f0f3ef;color:var(--text)}
.filter-chip.active{background:#e7ede7;color:var(--text);font-weight:600}
.filter-chip-action{
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.filter-card-icon{
  width:14px;
  height:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 14px;
  line-height:0;
}
.filter-card-icon svg{
  width:14px;
  height:14px;
  display:block;
}
.filter-chip-action>span:last-child{
  line-height:14px;
}
.reset{
  display:none;
  margin:0;
  padding:4px 0;
  border:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:11px;
  font-weight:500;
  text-align:left;
  cursor:pointer;
}
.reset:hover{color:var(--text)}

.empty-state{
  grid-column:1/-1;
  min-height:240px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:42px 20px;
  color:var(--muted);
}
.empty-state strong{font-size:15px;font-weight:600;color:#49564f}
.empty-state span{font-size:12px;margin-top:5px}

@media(max-width:780px){
  .sidebar-prelude{display:none}
  .filter-chips{gap:7px}
  .filter-chip{min-height:34px;padding:7px 10px;font-size:12px}
  .filter-chips-actions .filter-chip{flex:1 1 auto;justify-content:center}
  .filter-card-icon{width:15px;height:15px;flex-basis:15px}
  .filter-card-icon svg{width:15px;height:15px}
  .filter-row{margin-bottom:8px}
  .filter-row-multi{margin-top:8px}
  .discovery-meta{
    grid-column:1/3;
    grid-row:3;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    margin-top:2px;
  }
  .discovery-meta .route-count{
    display:block!important;
    margin:0!important;
    font-size:11px;
    color:var(--muted);
  }
  .verified-inline{
    width:auto!important;
    padding:6px 8px!important;
    margin:0!important;
  }
  .empty-state{min-height:180px;padding:30px 16px}
}

@media(min-width:781px){

  .view-switch{
    display:flex!important;
    align-items:center!important;
    width:100%;
  }
  .view-switch>.route-count{
    display:block!important;
    margin-left:auto!important;
    margin-right:2px!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:600!important;
    color:#6b7770!important;
    white-space:nowrap;
  }

  .discovery{
    grid-template-columns:minmax(320px,420px) max-content minmax(180px,1fr)!important;
    align-items:center!important;
  }
  .discovery-meta{
    grid-column:3!important;
    justify-self:end!important;
    align-self:center!important;
    display:block!important;
    margin:0!important;
  }
  .verified-inline{
    width:max-content!important;
    max-width:100%;
    margin:0!important;
  }

  .filters>.reset{
    margin-top:8px!important;
    margin-bottom:0!important;
    align-self:flex-start;
  }
}

.filters .filter-section:has(#duration){margin-bottom:0!important}

@media(max-width:780px){
  .view-switch>.route-count{
    display:block!important;
    margin-left:auto!important;
    font-size:11px!important;
    color:var(--muted)!important;
  }
  .discovery-meta{
    display:flex!important;
    width:100%;
    align-items:flex-end!important;
    margin-top:4px!important;
  }
}

.mobile-filter-resetbar{display:none}

@media(max-width:780px){

  .discovery-meta{
    grid-column:2!important;
    grid-row:2!important;
    width:auto!important;
    justify-self:end!important;
    align-self:center!important;
    margin:0!important;
    display:flex!important;
  }
  .verified-inline{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    padding:0!important;
    border-radius:10px!important;
    display:grid!important;
    place-items:center!important;
  }
  .verified-inline>span{
    width:24px!important;
    height:24px!important;
    margin:0!important;
  }
  .verified-inline>div{display:none!important}

  .filter-chips-actions{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:5px!important;
  }
  .filter-chips-actions .filter-chip{
    flex:0 0 auto!important;
    width:auto!important;
    justify-content:flex-start!important;
    margin:0!important;
  }

  .filters.mobile-open{
    padding-bottom:calc(94px + env(safe-area-inset-bottom))!important;
  }
  .mobile-filter-resetbar.show{
    display:block!important;
    position:sticky;
    bottom:calc(-18px - env(safe-area-inset-bottom));
    z-index:8;
    margin:16px -18px calc(-18px - env(safe-area-inset-bottom));
    padding:10px 18px calc(10px + env(safe-area-inset-bottom));
    background:linear-gradient(to bottom,rgba(255,255,255,.86),#fff 28%);
    border-top:1px solid var(--line);
  }
  .mobile-filter-resetbar button{
    width:100%;
    min-height:46px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface-2);
    color:var(--text);
    font:inherit;
    font-size:13px;
    font-weight:600;
  }
.map-stage{position:relative!important}
  .map-toolbar{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:absolute!important;
    z-index:650!important;
    top:10px!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-width:none!important;
    justify-content:space-between!important;
    pointer-events:auto!important;
    background:rgba(248,250,247,.96)!important;
  }
  .map-mode{display:flex!important}
  .map-mode button{display:block!important}
  .map-all-tracks:not([hidden]){display:flex!important}
}

@media(max-width:780px){
  .view-switch{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
  }
  .view-switch>.route-count{
    margin-left:auto!important;
    margin-right:0!important;
    align-self:center!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }

  .filter-chips-actions{
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:22px!important;
  }
  .filter-chips-actions .filter-chip{
    flex:0 0 auto!important;
    width:auto!important;
  }

  .verified-inline{
    width:auto!important;
    min-width:0!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 9px!important;
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    border-radius:10px!important;
  }
  .verified-inline>span{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
  }
  .verified-inline>div{display:block!important;line-height:1!important}
  .verified-inline b{
    display:block!important;
    font-size:10px!important;
    line-height:1!important;
    text-transform:uppercase;
  }
  .verified-inline small{display:none!important}

  .actions .btn.fav.on{
    color:var(--danger)!important;
    background:#fff0f1!important;
    border-color:#f1d9dc!important;
  }
  .actions .btn.fav.on svg{
    color:var(--danger)!important;
    fill:var(--danger)!important;
  }
}

/* brand */
.brand{
  display:flex;
  align-items:center;
  padding-top:12px;
  padding-bottom:12px;
}
.brand img{
  width:172px;
  height:auto;
  max-height:56px;
  object-fit:contain;
  object-position:left center;
  border-radius:0;
}

/* mobile */
@media(max-width:780px){
  .brand{
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
  .brand img{
    width:138px!important;
    height:auto!important;
    max-height:46px!important;
    border-radius:0!important;
  }

  .view-switch{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
  }
  .view-switch>.route-count{
    margin-left:auto!important;
    margin-right:0!important;
    align-self:center!important;
    white-space:nowrap!important;
  }

  /* Search and filter control share the same row and exact height. */
  .discovery{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    column-gap:12px!important;
    width:100%!important;
    align-items:stretch!important;
  }
  .discovery>.search{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
  }
  .discovery>.filter-trigger{
    display:flex!important;
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:stretch!important;
    width:auto!important;
    min-width:56px!important;
    height:auto!important;
    padding:0 15px!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:16px!important;
    box-sizing:border-box!important;
  }
  .discovery>.quick-cats{
    grid-column:1/3!important;
    grid-row:2!important;
  }
  .discovery>.discovery-meta{
    grid-column:1/3!important;
    justify-self:end!important;
  }

  .filter-chips-actions{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:22px!important;
  }
  .filter-chips-actions .filter-chip{
    flex:0 0 auto!important;
    width:auto!important;
  }

  .verified-inline{
    width:auto!important;
    min-width:0!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 9px!important;
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    border-radius:10px!important;
  }
  .verified-inline>span{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
  }
  .verified-inline>div{display:block!important}
  .verified-inline b{
    display:block!important;
    font-size:10px!important;
    line-height:1!important;
    text-transform:uppercase;
  }
  .verified-inline small{display:none!important}

  .actions .btn.fav.on{
    color:var(--danger)!important;
    background:#fff0f1!important;
    border-color:#f1d9dc!important;
  }
  .actions .btn.fav.on svg{
    color:var(--danger)!important;
    fill:var(--danger)!important;
  }

  /* Keep icon and label together; center the group so the check cannot drift away. */
}

@media(max-width:780px){
  .actions .btn.passed{
    display:grid!important;
    grid-template-columns:1fr auto 1fr!important;
    align-items:center!important;
    justify-items:stretch!important;
    column-gap:10px!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .actions .btn.passed>svg{
    position:static!important;
    grid-column:1!important;
    justify-self:end!important;
    margin:0!important;
    transform:none!important;
  }
  .actions .btn.passed>span{
    position:static!important;
    grid-column:2!important;
    justify-self:center!important;
    width:auto!important;
    margin:0!important;
    transform:none!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}
