/* Tour route map — see functions/route_map.php */
.kt-route-map{--ktm-navy:#14212B;--ktm-teal:#005271;--ktm-yellow:#FFD400;--ktm-bg:#f6f6f6;--ktm-line:#e6e8ea;--ktm-muted:#5d6b75;
  position:relative;display:grid;grid-template-columns:360px minmax(0,1fr);height:700px;margin:0 0 3rem;background:#fff;border-radius:15px;overflow:hidden;
  box-shadow:0 4px 24px rgba(20,33,43,.08);font-family:inherit;font-size:15px;line-height:1.55;color:var(--ktm-navy);text-align:left}
.kt-route-map *,.kt-route-map *::before,.kt-route-map *::after{box-sizing:border-box}
.kt-route-map:fullscreen{height:100vh;border-radius:0}
.kt-route-map button{font:inherit;color:inherit;cursor:pointer;margin:0;text-transform:none;letter-spacing:normal;line-height:1.3;box-shadow:none;min-height:0;height:auto;width:auto}
.kt-route-map [hidden]{display:none!important}
.kt-route-map ul.ktm-list{list-style:none;margin:6px 0 0;padding:0}
.kt-route-map ul.ktm-list li{margin:0;padding:0}
.kt-route-map ul.ktm-list li::before{content:none}

.kt-route-map .ktm-panel{min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--ktm-line);background:#fff}
.kt-route-map .ktm-head{padding:20px 22px 12px;background:var(--ktm-navy);color:#fff}
.kt-route-map .ktm-eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ktm-yellow);font-weight:500}
.kt-route-map .ktm-totals{display:flex;gap:18px;flex-wrap:wrap;margin-top:8px;font-size:12.5px;color:rgba(255,255,255,.7)}
.kt-route-map .ktm-totals b{display:block;font-size:19px;color:#fff;font-weight:500;line-height:1.3}
.kt-route-map .ktm-chips{display:flex;gap:6px;padding:12px 22px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--ktm-line);position:relative;flex:none}
.kt-route-map .ktm-chips::-webkit-scrollbar{display:none}
.kt-route-map .ktm-chip{flex:none;border:1px solid var(--ktm-line);background:#fff;border-radius:7px;padding:6px 11px;font-size:13.5px;font-weight:500;transition:background .15s,border-color .15s}
.kt-route-map .ktm-chip:hover{border-color:var(--ktm-teal);color:var(--ktm-teal)}
.kt-route-map .ktm-chip[aria-pressed=true]{background:var(--ktm-yellow);border-color:var(--ktm-yellow);color:#000}

.kt-route-map .ktm-detail{overflow-y:auto;padding:18px 22px 24px;flex:1;min-height:0}
.kt-route-map .ktm-detail p{margin:0 0 12px;font-size:15px;line-height:1.6}
.kt-route-map .ktm-hint{font-size:13.5px!important;color:var(--ktm-muted)}
.kt-route-map .ktm-dnum{font-size:12px;color:var(--ktm-teal);font-weight:500;letter-spacing:.06em;text-transform:uppercase}
.kt-route-map .ktm-title{font-size:20px;font-weight:500;line-height:1.3;margin:4px 0 14px;color:var(--ktm-navy)}
.kt-route-map .ktm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.kt-route-map .ktm-stat{background:var(--ktm-bg);border-radius:10px;padding:9px 11px}
.kt-route-map .ktm-stat span{display:block;font-size:11px;color:var(--ktm-muted);text-transform:uppercase;letter-spacing:.04em;line-height:1.3}
.kt-route-map .ktm-stat b{font-size:15.5px;font-weight:500}
.kt-route-map .ktm-text img{max-width:100%;height:auto;border-radius:10px}
.kt-route-map .ktm-text ul,.kt-route-map .ktm-text ol{padding-left:1.2em;margin:0 0 12px}
.kt-route-map .ktm-stay{display:flex;gap:10px;align-items:center;border-top:1px solid var(--ktm-line);padding-top:12px;margin-top:4px;font-size:14.5px;line-height:1.4}
.kt-route-map .ktm-stay .ktm-ico{width:30px;height:30px;color:var(--ktm-teal)}
.kt-route-map .ktm-stay small{display:block;font-size:12px;color:var(--ktm-muted)}
.kt-route-map .ktm-stay b{font-weight:500}
.kt-route-map .ktm-nav{display:flex;justify-content:space-between;gap:8px;margin-top:18px}
.kt-route-map .ktm-nav button{border:0;background:var(--ktm-yellow);color:#000;border-radius:7px;padding:0 16px;height:40px;font-size:15px;transition:background .15s,color .15s}
.kt-route-map .ktm-nav button:hover{background:var(--ktm-teal);color:#fff}
.kt-route-map .ktm-nav button:disabled{visibility:hidden}
.kt-route-map .ktm-list button{width:100%;display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;text-align:left;border:0;background:none;padding:8px 6px;border-radius:10px}
.kt-route-map .ktm-list button:hover{background:var(--ktm-bg)}
.kt-route-map .ktm-n{width:26px;height:26px;border-radius:50%;background:var(--ktm-navy);color:#fff;font-size:12px;font-weight:500;display:grid;place-items:center}
.kt-route-map .ktm-t{font-size:14.5px;line-height:1.3}
.kt-route-map .ktm-k{font-size:13px;color:var(--ktm-muted);white-space:nowrap}

.kt-route-map .ktm-mapwrap{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0}
.kt-route-map .ktm-map{flex:1;min-height:0;background:#e3e8e6}
.kt-route-map .ktm-layers{position:absolute;top:12px;right:12px;z-index:500;display:flex;background:#fff;border-radius:7px;box-shadow:0 2px 10px rgba(20,33,43,.18);padding:3px}
.kt-route-map .ktm-layers:empty{display:none}
.kt-route-map .ktm-layers button{border:0;background:none;padding:6px 11px;font-size:13px;border-radius:5px}
.kt-route-map .ktm-layers button[aria-pressed=true]{background:var(--ktm-navy);color:#fff}
.kt-route-map .ktm-fs{position:absolute;top:12px;left:56px;z-index:500;width:34px;height:34px;border:0;border-radius:7px;background:#fff;box-shadow:0 2px 10px rgba(20,33,43,.18);display:grid;place-items:center;padding:0}
.kt-route-map .ktm-touch{position:absolute;inset:0;z-index:600;display:none;place-items:center;background:rgba(20,33,43,.35);color:#fff;font-size:15px;font-weight:500;text-align:center;padding:20px}
.kt-route-map .ktm-touch span{background:rgba(20,33,43,.85);padding:10px 16px;border-radius:7px}
.kt-route-map .ktm-profile{position:relative;height:150px;background:#fff;border-top:1px solid var(--ktm-line);flex:none}
.kt-route-map .ktm-profile canvas{position:absolute;inset:0;width:100%!important;height:100%!important;cursor:crosshair;max-width:none}
.kt-route-map .ktm-ptip{position:absolute;top:8px;pointer-events:none;background:var(--ktm-navy);color:#fff;font-size:12px;padding:4px 8px;border-radius:5px;white-space:nowrap;transform:translateX(-50%);opacity:0;transition:opacity .1s}

.kt-route-map .ktm-pinw{position:relative;width:36px;height:36px}
.kt-route-map .ktm-pin{width:36px;height:36px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--ktm-navy);border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.35);display:grid;place-items:center;color:#fff}
.kt-route-map .ktm-pin .ktm-ico{transform:rotate(45deg);width:22px;height:22px}
.kt-route-map .ktm-pin.on{background:var(--ktm-yellow);color:var(--ktm-navy)}
.kt-route-map .ktm-pinn{position:absolute;left:24px;top:-8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#fff;color:var(--ktm-navy);font-size:10.5px;font-weight:700;line-height:18px;text-align:center;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.3)}
/* accommodation icons (your own artwork, used as masks so colour follows currentColor) */
.kt-route-map .ktm-ico{display:inline-block;width:1em;height:1em;background:currentColor;-webkit-mask:url(../img/stay/guesthouse.svg) center/contain no-repeat;mask:url(../img/stay/guesthouse.svg) center/contain no-repeat;flex:none}
.kt-route-map .ktm-ico-hotel{-webkit-mask-image:url(../img/stay/hotel.svg);mask-image:url(../img/stay/hotel.svg)}
.kt-route-map .ktm-ico-yurt{-webkit-mask-image:url(../img/stay/yurt.svg);mask-image:url(../img/stay/yurt.svg)}
.kt-route-map .ktm-poi{width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid var(--ktm-teal);display:grid;place-items:center;box-shadow:0 1px 5px rgba(0,0,0,.3);color:var(--ktm-teal)}
.kt-route-map .ktm-poi svg{width:13px;height:13px}
.kt-route-map .ktm-dot{width:14px;height:14px;border-radius:50%;background:var(--ktm-yellow);border:3px solid var(--ktm-navy)}
.kt-route-map .leaflet-container{font-family:inherit}
.kt-route-map .leaflet-popup-content-wrapper{border-radius:12px}
.kt-route-map .leaflet-popup-content{margin:12px 14px;font-size:14px;line-height:1.5;color:var(--ktm-navy);min-width:200px}
.kt-route-map .leaflet-control-attribution{font-size:10px}
.kt-route-map .leaflet-bar a{color:var(--ktm-navy)}
.kt-route-map .ktm-pk{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ktm-teal);font-weight:500}
.kt-route-map .ktm-pt{font-size:16px;font-weight:500;margin:2px 0 4px;line-height:1.3}
.kt-route-map .ktm-px{color:var(--ktm-muted)}

/* narrow layout: class set by JS from the map's own width (works inside col-sm-9) */
.kt-route-map.ktm-narrow{grid-template-columns:minmax(0,1fr);height:auto}
.kt-route-map.ktm-narrow .ktm-mapwrap{order:1;height:440px}
.kt-route-map.ktm-narrow .ktm-panel{order:2;border-right:0}
.kt-route-map.ktm-narrow .ktm-profile{height:100px}
.kt-route-map.ktm-narrow .ktm-head{padding:14px 16px 10px}
.kt-route-map.ktm-narrow .ktm-totals b{font-size:16px}
.kt-route-map.ktm-narrow .ktm-chips{padding:10px 16px}
.kt-route-map.ktm-narrow .ktm-detail{overflow:visible;padding:14px 16px 20px}
.kt-route-map.ktm-narrow .ktm-layers button{padding:5px 8px;font-size:12px}
@media (pointer:coarse){
  .kt-route-map .ktm-touch{display:grid}
}
.kt-route-map.ktm-narrow .ktm-totals{gap:12px}
.kt-route-map .ktm-legend{position:absolute;left:12px;bottom:162px;z-index:500;display:flex;gap:12px;background:rgba(255,255,255,.92);border-radius:7px;padding:6px 10px;font-size:12.5px;box-shadow:0 2px 10px rgba(20,33,43,.15);pointer-events:none}
.kt-route-map .ktm-legend span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.kt-route-map .ktm-legend .ktm-ico{width:18px;height:18px;color:var(--ktm-teal)}
.kt-route-map:not(:has(.ktm-profile)) .ktm-legend{bottom:22px}
.kt-route-map.ktm-narrow .ktm-legend{bottom:112px;gap:8px;font-size:11.5px;padding:4px 8px}
