/* "Plan your trip" — custom tour planner (assets/th-planner.js). Uses the th-ui tokens. */

/* ---------- page hero (Bricks section .thp-hero) ---------- */
@keyframes thp-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.thp-hero{position:relative;overflow:hidden;padding:200px 40px 170px;background:#0F1E29;color:#fff}
.thp-hero__img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none;object-fit:cover;z-index:0;transform-origin:50% 40%;animation:thp-kb 32s ease-in-out infinite alternate}
@keyframes thp-kb{from{transform:scale(1.05)}to{transform:scale(1.16) translate3d(0,-1.5%,0)}}
.thp-hero__scrim{position:absolute;inset:0;z-index:1;background:radial-gradient(900px 460px at 85% 100%,rgba(0,183,169,.32),transparent 70%),linear-gradient(180deg,rgba(9,20,28,.6) 0%,rgba(9,20,28,.3) 45%,rgba(9,20,28,.92) 100%)}
.thp-hero__inner{position:relative;z-index:2;max-width:1240px;width:100%;margin:0 auto;row-gap:0}
.thp-hero__eyebrow{display:inline-block;width:fit-content;padding:8px 18px;border-radius:30px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font:500 11px/1 'IBM Plex Mono',monospace;letter-spacing:.3em;text-transform:uppercase;color:#fff;animation:thp-rise .9s cubic-bezier(.22,.7,.25,1) .05s both}
.thp-hero__title{margin:18px 0 16px;font:400 clamp(56px,9vw,132px)/.9 Anton,sans-serif;text-transform:uppercase;color:transparent;background:linear-gradient(180deg,#fff 45%,rgba(255,255,255,.45) 98%);-webkit-background-clip:text;background-clip:text;animation:thp-rise 1s cubic-bezier(.22,.7,.25,1) .15s both}
.thp-hero__lead{max-width:58ch;margin:0;font-size:19px;line-height:1.55;color:rgba(255,255,255,.9);animation:thp-rise 1s cubic-bezier(.22,.7,.25,1) .3s both}
.thp-hero__facts{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;animation:thp-rise 1s cubic-bezier(.22,.7,.25,1) .42s both}
.thp-hero__fact{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:12px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);font:600 13.5px Archivo,sans-serif;color:#fff}
.thp-hero__fact::before{content:'';width:7px;height:7px;border-radius:50%;background:#2AD4C0;box-shadow:0 0 0 4px rgba(42,212,192,.2)}
.thp-wrap{padding:0 40px 120px;background-color:var(--surface,#E8E9EC);background-image:repeating-linear-gradient(0deg,rgba(30,52,71,.028) 0 1px,transparent 1px 44px),repeating-linear-gradient(90deg,rgba(30,52,71,.028) 0 1px,transparent 1px 44px)}
.thp-wrap > .brxe-container{max-width:1240px;width:100%}

/* ---------- layout ---------- */
.thp{position:relative;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:28px;align-items:start;width:100%;margin-top:-110px;font-family:Archivo,system-ui,sans-serif;color:var(--thui-ink)}
.thp__side{position:sticky;top:118px}
.thp.is-done{grid-template-columns:minmax(0,1fr) 400px}

/* ---------- step rail ---------- */
.thp-steps{--p:0;position:relative;display:flex;justify-content:space-between;margin:0 0 16px;padding:14px 18px;list-style:none;border-radius:18px;background:rgba(15,30,41,.82);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 20px 50px rgba(15,30,41,.25)}
.thp-steps::before,.thp-steps::after{content:'';position:absolute;left:44px;right:44px;top:31px;height:2px;border-radius:2px;background:rgba(255,255,255,.14)}
.thp-steps::after{right:auto;width:calc((100% - 88px) * var(--p));background:linear-gradient(90deg,#00B7C2,#2AD4C0);transition:width .5s cubic-bezier(.2,.8,.3,1)}
.thp-steps li{position:relative;z-index:1;flex:1;display:flex;justify-content:center;margin:0;padding:0}
.thp-steps button{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:none;padding:0;cursor:default;color:rgba(255,255,255,.55);font:600 11.5px Archivo,sans-serif;letter-spacing:.02em}
.thp-steps li.is-reach button{cursor:pointer}
.thp-steps__n{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#1E3447;border:2px solid rgba(255,255,255,.16);color:rgba(255,255,255,.75);font:800 13px Archivo,sans-serif;transition:background .3s,border-color .3s,box-shadow .3s,color .3s}
.thp-steps li.is-done .thp-steps__n{background:#00505C;border-color:#2AD4C0;color:#fff}
.thp-steps li.is-current .thp-steps__n{background:var(--thui-grad);border-color:transparent;color:#fff;box-shadow:0 0 0 5px rgba(42,212,192,.22),0 10px 22px -6px rgba(0,183,169,.9)}
.thp-steps li.is-current button,.thp-steps li.is-done button{color:#fff}
.thp-steps li.is-reach button:hover .thp-steps__n{border-color:#2AD4C0}

/* ---------- panel ---------- */
.thp-panel{position:relative;border-radius:24px;background:#fff;border:1px solid rgba(30,52,71,.07);box-shadow:0 40px 90px rgba(15,30,41,.16);overflow:hidden}
.thp-panel::before{content:'';position:absolute;left:28px;right:28px;top:0;height:3px;border-radius:0 0 3px 3px;background:var(--thui-grad)}
.thp-panel.is-shake{animation:thp-shake .4s ease}
@keyframes thp-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.thp-panel__head{padding:34px 36px 6px}
.thp-panel__eyebrow{display:inline-flex;align-items:center;gap:8px;font:500 11px/1 'IBM Plex Mono',monospace;letter-spacing:.2em;text-transform:uppercase;color:var(--thui-teal)}
.thp-panel__eyebrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.thp-panel__title{margin:12px 0 8px;font:800 clamp(26px,3vw,34px)/1.12 Archivo,sans-serif;letter-spacing:-.02em;color:var(--thui-ink)}
.thp-panel__lead{margin:0;max-width:62ch;font:400 16px/1.6 'Source Sans 3','Source Sans Pro',Archivo,sans-serif;color:#4A5A66}
.thp-panel__body{padding:22px 36px 8px}
.thp-panel__body.is-in{animation:thp-in .45s cubic-bezier(.2,.8,.3,1) both}
@keyframes thp-in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.thp-panel__err{margin:6px 36px 0;padding:12px 16px;border-radius:12px;background:#FFF1EE;border:1px solid #F7CFC5;color:#9A3412;font:600 14px Archivo,sans-serif}
.thp-panel__err[hidden]{display:none}
.thp-panel__foot{display:flex;align-items:center;gap:14px;margin-top:18px;padding:18px 36px;border-top:1px solid #EEF1F3;background:#FAFBFC}
.thp-back{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 16px;border:1.5px solid var(--thui-line);border-radius:12px;background:#fff;color:var(--thui-ink);font:700 14px Archivo,sans-serif;cursor:pointer;transition:border-color .2s}
.thp-back:hover{border-color:var(--thui-accent)}
.thp-back svg,.thp-next svg,.thp-done svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.thp-save{flex:1;text-align:center;font:500 12.5px Archivo,sans-serif;color:#94A3AD}
.thp-next{height:50px;padding:0 24px;font-size:15px}
.thp-next--send{padding:0 28px;box-shadow:0 18px 34px -12px rgba(0,183,169,.95)}
.thp-next.is-busy{pointer-events:none;opacity:.85}
.thp-spin{width:16px;height:16px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:thp-spin .8s linear infinite}
@keyframes thp-spin{to{transform:rotate(360deg)}}

/* ---------- building blocks ---------- */
.thp-sec{margin:22px 0 4px}
.thp-sec__t{margin:0 0 12px;font:500 10.5px/1 'IBM Plex Mono',monospace;letter-spacing:.22em;text-transform:uppercase;color:var(--thui-muted)}
.thp-sec__t span{margin-left:6px;letter-spacing:.08em;text-transform:none;font-family:Archivo,sans-serif;font-size:12px;color:#A3B0B8}
.thp-chips{display:flex;flex-wrap:wrap;gap:9px}
.thp-chips .thui-chip{height:40px;padding:0 16px;font-size:13.5px}
.thp-note{margin:4px 0 16px;padding:14px 16px;border-radius:14px;background:#F0F8F8;color:var(--thui-teal);font:600 14.5px Archivo,sans-serif}
.thp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}
.thp-field{display:flex;flex-direction:column;gap:8px;margin:16px 0 0}
.thp-field__l{font:500 10.5px/1 'IBM Plex Mono',monospace;letter-spacing:.2em;text-transform:uppercase;color:var(--thui-muted)}
.thp-field__h{font:500 12.5px Archivo,sans-serif;color:#94A3AD}
.thp .thp-input{width:100%;min-height:50px;padding:13px 16px!important;border-radius:14px!important;border:1.5px solid var(--thui-line)!important;background:#F7F9FA!important;color:var(--thui-ink);font:600 15px Archivo,sans-serif;box-shadow:none!important;transition:border-color .2s,box-shadow .2s,background-color .2s;resize:vertical}
.thp .thp-input::placeholder{color:#A3B0B8;font-weight:500}
.thp .thp-input:hover{border-color:rgba(0,183,194,.5)!important;background:#fff!important}
.thp .thp-input:focus{outline:0;border-color:var(--thui-accent)!important;background:#fff!important;box-shadow:var(--thui-ring)!important}
.thp-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

/* cards */
.thp-cards{display:grid;gap:12px}
.thp-cards--3{grid-template-columns:repeat(3,1fr)}
.thp-cards--4{grid-template-columns:repeat(4,1fr)}
.thp-cards--5{grid-template-columns:repeat(5,1fr)}
.thp-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:132px;padding:16px 16px 15px;border-radius:16px;border:1.5px solid var(--thui-line);background:#fff;text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .25s,transform .25s,background .2s}
.thp-card:hover{border-color:rgba(0,183,194,.55);transform:translateY(-2px);box-shadow:0 14px 30px -14px rgba(15,30,41,.3)}
.thp-card__ico{width:40px;height:40px;margin-bottom:4px;border-radius:12px;display:grid;place-items:center;background:#EEF6F6;color:var(--thui-teal);transition:background .25s,color .25s}
.thp-card__ico svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.thp-card__t{font:800 15px Archivo,sans-serif;color:var(--thui-ink)}
.thp-card__s{font:500 12.5px/1.45 Archivo,sans-serif;color:var(--thui-muted)}
.thp-card__tick{position:absolute;top:12px;right:12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--thui-grad);transform:scale(0);transition:transform .25s cubic-bezier(.3,1.5,.5,1)}
.thp-card__tick svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.thp-card.is-on{border-color:transparent;background:linear-gradient(#fff,#fff) padding-box,var(--thui-grad) border-box;border:2px solid transparent;box-shadow:0 18px 36px -18px rgba(0,123,140,.7)}
.thp-card.is-on .thp-card__ico{background:var(--thui-grad);color:#fff}
.thp-card.is-on .thp-card__tick{transform:scale(1)}

/* regions */
.thp-regions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.thp-regions__h{grid-column:1/-1;margin:10px 0 -2px;font:500 10.5px/1 'IBM Plex Mono',monospace;letter-spacing:.22em;text-transform:uppercase;color:var(--thui-muted)}
.thp-region{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:150px;padding:0;border:0;border-radius:16px;overflow:hidden;background:#1E3447;text-align:left;cursor:pointer;isolation:isolate;box-shadow:0 0 0 0 rgba(0,183,169,0);transition:transform .3s cubic-bezier(.2,.8,.3,1),box-shadow .3s}
.thp-region__img{position:absolute;inset:0;z-index:-2;background:#2B4457 center/cover no-repeat;transition:transform .6s cubic-bezier(.2,.8,.3,1),filter .4s}
.thp-region::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(9,20,28,0) 25%,rgba(9,20,28,.88) 100%)}
.thp-region:hover{transform:translateY(-3px)}
.thp-region:hover .thp-region__img{transform:scale(1.07)}
.thp-region__txt{display:flex;flex-direction:column;gap:3px;padding:14px 14px 13px;color:#fff}
.thp-region__txt strong{font:800 15.5px Archivo,sans-serif;text-shadow:0 1px 10px rgba(0,0,0,.35)}
.thp-region__txt span{font:500 12px/1.35 Archivo,sans-serif;color:rgba(255,255,255,.82);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.thp-region__tick{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:2px solid rgba(255,255,255,.75);background:rgba(15,30,41,.25);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:background .25s,border-color .25s}
.thp-region__tick svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .2s}
.thp-region__n{position:absolute;top:10px;left:10px;min-width:26px;height:26px;padding:0 8px;border-radius:999px;display:grid;place-items:center;background:#fff;color:var(--thui-teal);font:800 12.5px Archivo,sans-serif;transform:scale(0);transition:transform .3s cubic-bezier(.3,1.5,.5,1)}
.thp-region.is-on{box-shadow:0 0 0 3px #fff,0 0 0 5.5px #00B7A9,0 20px 40px -16px rgba(0,123,140,.9)}
.thp-region.is-on .thp-region__tick{background:var(--thui-grad);border-color:transparent}
.thp-region.is-on .thp-region__tick svg{opacity:1}
.thp-region.is-on .thp-region__n{transform:scale(1)}
.thp-where-extra{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:end;margin-top:22px;padding-top:20px;border-top:1px dashed var(--thui-line)}
.thp-where-extra .thp-field{margin:0}

/* toggle */
.thp-toggle{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;border:1.5px solid var(--thui-line);background:#fff;text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.thp-toggle:hover{border-color:rgba(0,183,194,.55)}
.thp-toggle > span:last-child{display:flex;flex-direction:column;gap:3px}
.thp-toggle strong{font:800 14.5px Archivo,sans-serif;color:var(--thui-ink)}
.thp-toggle > span:last-child > span{font:500 12.5px/1.4 Archivo,sans-serif;color:var(--thui-muted)}
.thp-toggle__sw{flex:0 0 auto;position:relative;width:44px;height:26px;border-radius:999px;background:#D5DCE0;transition:background .25s}
.thp-toggle__sw::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,30,41,.25);transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.thp-toggle.is-on{border-color:rgba(0,183,169,.55);background:#F3FBFA}
.thp-toggle.is-on .thp-toggle__sw{background:var(--thui-grad)}
.thp-toggle.is-on .thp-toggle__sw::after{transform:translateX(18px)}
.thp-toggle--sm{padding:8px 12px;border-radius:12px}

/* when */
.thp-seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:5px;border-radius:14px;background:var(--thui-soft)}
.thp-seg button{height:40px;padding:0 16px;border:0;border-radius:10px;background:none;color:var(--thui-muted);font:700 13.5px Archivo,sans-serif;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.thp-seg button:hover{color:var(--thui-ink)}
.thp-seg button.is-on{background:#fff;color:var(--thui-teal);box-shadow:0 6px 16px -6px rgba(15,30,41,.25)}
.thp-when{margin-top:18px}
.thp-cal{display:inline-block;max-width:100%;border-radius:20px;border:1.5px solid var(--thui-line);background:#fff}
.thp-cal .thui-cal{padding:18px}
.thp-when__len{display:flex;align-items:center;gap:8px;min-height:24px;margin:14px 0 0;font:600 14.5px Archivo,sans-serif;color:var(--thui-muted)}
.thp-when__len strong{color:var(--thui-teal)}
.thp-when__len svg{width:18px;height:18px;fill:none;stroke:var(--thui-teal);stroke-width:2;stroke-linecap:round}
.thp-months{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.thp-month{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 6px;border-radius:14px;border:1.5px solid var(--thui-line);background:#fff;cursor:pointer;transition:border-color .2s,transform .2s,background .2s}
.thp-month strong{font:800 16px Archivo,sans-serif;color:var(--thui-ink)}
.thp-month span{font:600 12px Archivo,sans-serif;color:var(--thui-muted)}
.thp-month:hover{border-color:rgba(0,183,194,.55);transform:translateY(-2px)}
.thp-month.is-on{background:var(--thui-grad);border-color:transparent;box-shadow:0 14px 26px -12px rgba(0,183,169,.9)}
.thp-month.is-on strong,.thp-month.is-on span{color:#fff}

/* stepper */
.thp-box{border-radius:18px;border:1.5px solid var(--thui-line);padding:4px 18px}
.thp-stepper{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.thp-box .thp-stepper + .thp-stepper{border-top:1px solid #EEF1F3}
.thp-when .thp-stepper{margin-top:16px;padding:14px 18px;border-radius:16px;border:1.5px solid var(--thui-line)}
.thp-stepper__l{font:800 15.5px Archivo,sans-serif}
.thp-stepper__s{font:500 12.5px Archivo,sans-serif;color:var(--thui-muted)}
.thp-stepper__c{display:flex;align-items:center;gap:10px}
.thp-stepper__c button{width:40px;height:40px;border-radius:12px;border:0;background:#E3F5F4;color:var(--thui-teal);font:700 20px/1 Archivo,sans-serif;cursor:pointer;transition:background .2s,transform .15s}
.thp-stepper__c button:hover:not(:disabled){background:#CDEEEC}
.thp-stepper__c button:active:not(:disabled){transform:scale(.92)}
.thp-stepper__c button:disabled{opacity:.35;cursor:default}
.thp-stepper__c output{min-width:30px;text-align:center;font:800 18px Archivo,sans-serif}
.thp-kids{padding:0 0 12px}
.thp-kids:empty{display:none}
.thp-kids__l{margin:2px 0 10px;font:500 10.5px/1 'IBM Plex Mono',monospace;letter-spacing:.2em;text-transform:uppercase;color:var(--thui-muted)}
.thp-kids__row{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.thp-sel{max-width:420px}

/* budget */
.thp-budget{padding:20px 22px 16px;border-radius:18px;background:linear-gradient(135deg,#F3FBFA,#fff 60%);border:1.5px solid #D6EFEC;transition:opacity .25s}
.thp-budget__top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.thp-budget__l{font:500 10.5px/1 'IBM Plex Mono',monospace;letter-spacing:.2em;text-transform:uppercase;color:var(--thui-muted)}
.thp-budget__v{margin-top:8px;font:400 clamp(26px,3vw,34px)/1 Anton,sans-serif;letter-spacing:.01em;color:var(--thui-ink)}
.thp-budget.is-off .thp-range,.thp-budget.is-off .thp-range__ends{opacity:.35}
.thp-range{position:relative;height:36px;margin-top:16px}
.thp-range__track{position:absolute;left:0;right:0;top:50%;height:6px;margin-top:-3px;border-radius:6px;background:#DCE4E8}
.thp-range__fill{position:absolute;top:0;bottom:0;border-radius:6px;background:var(--thui-grad)}
.thp-range input{position:absolute;inset:0;width:100%;height:100%;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.thp-range input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:26px;height:26px;border-radius:50%;background:#fff;border:3px solid #00A3A8;box-shadow:0 6px 14px rgba(15,30,41,.25);cursor:grab}
.thp-range input::-moz-range-thumb{pointer-events:auto;width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid #00A3A8;box-shadow:0 6px 14px rgba(15,30,41,.25);cursor:grab}
.thp-range input::-webkit-slider-runnable-track{background:none}
.thp-range__ends{display:flex;justify-content:space-between;font:600 12px Archivo,sans-serif;color:var(--thui-muted)}

/* contact */
.thp-consent{display:flex;align-items:flex-start;gap:12px;margin-top:20px;padding:0;border:0;background:none;text-align:left;font:500 14px/1.5 Archivo,sans-serif;color:#4A5A66;cursor:pointer}
.thp-consent__box{flex:0 0 auto;width:22px;height:22px;margin-top:1px;border-radius:7px;border:1.8px solid #C3CCD2;display:grid;place-items:center;transition:background .2s,border-color .2s}
.thp-consent__box svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.thp-consent.is-on .thp-consent__box{background:var(--thui-grad);border-color:transparent}
.thp-consent.is-on .thp-consent__box svg{opacity:1}
.thp-review{margin-top:24px;padding:18px 20px 8px;border-radius:18px;background:var(--thui-soft)}
.thp-review__t{font:800 15px Archivo,sans-serif;margin-bottom:6px}
.thp-review .thp-sum li{padding:10px 0}

/* ---------- side: map + summary ---------- */
.thp-side{border-radius:24px;overflow:hidden;background:#fff;border:1px solid rgba(30,52,71,.07);box-shadow:0 40px 90px rgba(15,30,41,.16)}
.thp-map{position:relative;height:330px;background:#DCE6EA}
.thp-map__el{position:absolute;inset:0;z-index:0}
.thp-map .leaflet-tile-pane{filter:saturate(.62) contrast(.96) brightness(1.03) hue-rotate(-6deg)}
.thp-map .leaflet-container{font-family:Archivo,sans-serif;background:#DCE6EA}
.thp-map .leaflet-control-attribution{font-size:10px;background:rgba(255,255,255,.75);border-radius:8px 0 0 0}
.thp-map .leaflet-control-zoom{border:0!important;border-radius:12px!important;overflow:hidden;box-shadow:0 8px 20px rgba(15,30,41,.18)!important}
.thp-map .leaflet-control-zoom a{width:34px;height:34px;line-height:34px;color:var(--thui-ink);border:0}
.thp-map__badge{position:absolute;left:12px;top:12px;z-index:500;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:rgba(15,30,41,.82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;font:700 12.5px Archivo,sans-serif;pointer-events:none}
.thp-map__badge svg{width:15px;height:15px;fill:none;stroke:#2AD4C0;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.thp-map__off{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--thui-muted);font:600 13px Archivo,sans-serif;text-align:center;padding:20px}
.thp-map__off svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8}
.thp-pin{background:none;border:0}
.thp-pin span{display:block;width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid #1E3447;box-shadow:0 3px 10px rgba(15,30,41,.35);transition:transform .2s}
.thp-pin:hover span{transform:scale(1.25)}
.thp-pin.is-far span{border-color:#7A6AD8}
.thp-pin.is-on span{position:relative;width:34px;height:34px;border:0;border-radius:50% 50% 50% 6px;transform:rotate(-45deg);background:var(--thui-grad);box-shadow:0 10px 20px -6px rgba(0,123,140,.9),0 0 0 4px rgba(255,255,255,.9);display:grid;place-items:center;color:#fff;font:800 13px Archivo,sans-serif;animation:thp-drop .45s cubic-bezier(.3,1.5,.5,1) both}
@keyframes thp-drop{from{transform:rotate(-45deg) translateY(-14px) scale(.6);opacity:0}to{transform:rotate(-45deg);opacity:1}}
.thp-pin b{display:block;font:inherit}
.thp-pin.is-on b{transform:rotate(45deg)}
.thp-tip{border:0;border-radius:10px;padding:6px 10px;background:#16242F;color:#fff;font:700 12.5px Archivo,sans-serif;box-shadow:0 8px 20px rgba(15,30,41,.3)}
.thp-tip::before{border-top-color:#16242F!important}
.thp-side__sum{padding:20px 22px 10px}
.thp-side__t{font:800 17px Archivo,sans-serif;margin-bottom:4px}
.thp-sum{margin:0;padding:0;list-style:none}
.thp-sum li{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid #EEF1F3;margin:0}
.thp-sum li:first-child{border-top:0}
.thp-sum__i{flex:0 0 auto;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#EEF6F6;color:var(--thui-teal)}
.thp-sum__i svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.thp-sum__b{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.thp-sum__k{font:500 10px/1.2 'IBM Plex Mono',monospace;letter-spacing:.2em;text-transform:uppercase;color:var(--thui-muted)}
.thp-sum__v{font:700 14px/1.4 Archivo,sans-serif;color:var(--thui-ink);overflow-wrap:anywhere}
.thp-sum li.is-empty .thp-sum__v{color:#B6C1C8;font-weight:600}
.thp-sum li.is-empty .thp-sum__i{background:var(--thui-soft);color:#A3B0B8}
.thp-sum__e{flex:0 0 auto;align-self:center;padding:5px 10px;border:0;border-radius:8px;background:none;color:var(--thui-teal);font:700 12.5px Archivo,sans-serif;cursor:pointer}
.thp-sum__e:hover{background:#EEF6F6}

/* ---------- done ---------- */
.thp-done{position:relative;padding:48px 44px 44px;border-radius:24px;background:#fff;box-shadow:0 40px 90px rgba(15,30,41,.16);overflow:hidden;animation:thp-in .5s cubic-bezier(.2,.8,.3,1) both}
.thp-done::before{content:'';position:absolute;inset:0 0 auto 0;height:180px;background:radial-gradient(600px 180px at 20% 0,rgba(0,183,169,.16),transparent 70%);pointer-events:none}
.thp-done__badge{position:relative;width:76px;height:76px;margin-bottom:20px;border-radius:24px;display:grid;place-items:center;background:var(--thui-grad);box-shadow:0 20px 40px -14px rgba(0,183,169,.95);animation:thp-pop .6s cubic-bezier(.3,1.6,.5,1) .1s both}
.thp-done__badge svg{width:38px!important;height:38px!important;stroke:#fff!important;stroke-width:3!important;stroke-dasharray:30;stroke-dashoffset:30;animation:thp-tick .5s ease .45s forwards}
@keyframes thp-pop{from{transform:scale(.4) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}
@keyframes thp-tick{to{stroke-dashoffset:0}}
.thp-done h2{position:relative;margin:12px 0 10px;font:800 clamp(28px,3.4vw,40px)/1.1 Archivo,sans-serif;letter-spacing:-.02em}
.thp-done p{position:relative;max-width:60ch;margin:0;font:400 17px/1.6 'Source Sans 3',Archivo,sans-serif;color:#4A5A66}
.thp-next-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:30px 0;padding:0;list-style:none;counter-reset:s}
.thp-next-steps li{position:relative;margin:0;padding:18px 16px 16px;border-radius:16px;background:var(--thui-soft);counter-increment:s;display:flex;flex-direction:column;gap:5px}
.thp-next-steps li::before{content:counter(s);width:28px;height:28px;margin-bottom:6px;border-radius:9px;display:grid;place-items:center;background:#fff;color:var(--thui-teal);font:800 13px Archivo,sans-serif}
.thp-next-steps strong{font:800 15px Archivo,sans-serif}
.thp-next-steps span{font:500 13px/1.45 Archivo,sans-serif;color:var(--thui-muted)}
.thp-done__cta{display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.thp-done__cta .thui-btn{height:50px;padding:0 22px;text-decoration:none}
.thp-link{color:var(--thui-teal);font:700 14.5px Archivo,sans-serif;text-decoration:underline;text-underline-offset:4px}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .thp{grid-template-columns:minmax(0,1fr) 340px}
  .thp-cards--5{grid-template-columns:repeat(3,1fr)}
  .thp-regions{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:991px){
  .thp,.thp.is-done{grid-template-columns:minmax(0,1fr)}
  .thp__side{position:relative;top:0;order:-1}
  .thp-side{display:flex;flex-direction:column}
  .thp-map{height:250px}
  .thp-side__sum{display:none}
  .thp-cards--4{grid-template-columns:repeat(2,1fr)}
  .thp-months{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:767px){
  .thp-hero{padding:150px 20px 140px}
  .thp-wrap{padding:0 12px 80px}
  .thp{margin-top:-90px;gap:16px}
  .thp-steps{padding:12px 6px}
  .thp-steps::before,.thp-steps::after{left:28px;right:28px;top:28px}
  .thp-steps::after{width:calc((100% - 56px) * var(--p))}
  .thp-steps__l{display:none}
  .thp-steps__n{width:30px;height:30px;font-size:12px}
  .thp-panel__head{padding:26px 20px 4px}
  .thp-panel__body{padding:18px 20px 6px}
  .thp-panel__err{margin:6px 20px 0}
  .thp-panel__foot{padding:14px 20px;flex-wrap:wrap}
  .thp-save{display:none}
  .thp-next{flex:1;justify-content:center}
  .thp-cards--3,.thp-cards--5{grid-template-columns:1fr 1fr}
  .thp-card{min-height:0}
  .thp-regions{grid-template-columns:1fr 1fr;gap:10px}
  .thp-region{min-height:128px}
  .thp-grid2,.thp-where-extra{grid-template-columns:1fr}
  .thp-months{grid-template-columns:repeat(3,1fr)}
  .thp-cal{display:block}
  .thp-next-steps{grid-template-columns:1fr}
  .thp-done{padding:34px 22px}
}

/* ---------- where: search + dropdown + route builder ---------- */
.thp-where{display:flex;flex-direction:column;gap:16px}
.thp-search{position:relative;display:flex;align-items:center;gap:12px;height:60px;padding:0 16px 0 20px;border-radius:18px;border:1.5px solid var(--thui-line);background:#F7F9FA;cursor:text;transition:border-color .2s,box-shadow .2s,background-color .2s}
.thp-search:hover{border-color:rgba(0,183,194,.55);background:#fff}
.thp-search.is-open,.thp-search:focus-within{border-color:var(--thui-accent);background:#fff;box-shadow:var(--thui-ring)}
.thp-search > svg{width:21px;height:21px;flex:0 0 auto;fill:none;stroke:var(--thui-teal);stroke-width:2.2;stroke-linecap:round}
.thp .thp-search input{flex:1;min-width:0;height:100%;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;outline:0;font:600 16px Archivo,sans-serif;color:var(--thui-ink)}
.thp-search input::placeholder{color:#94A3AD;font-weight:500}
.thp-search__hint{flex:0 0 auto;padding:5px 10px;border-radius:999px;background:#E3F5F4;color:var(--thui-teal);font:700 12px Archivo,sans-serif}
.thp-search.is-open .thui-sel__chev{transform:rotate(180deg)}
.thp-combos{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.thp-combos__l{margin-right:4px;font:500 10.5px/1 "IBM Plex Mono",monospace;letter-spacing:.2em;text-transform:uppercase;color:var(--thui-muted)}
.thp-combo{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px 0 14px;border-radius:999px;border:1.5px dashed #BFE3E0;background:#F3FBFA;color:var(--thui-teal);font:700 13px Archivo,sans-serif;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.thp-combo small{padding:2px 7px;border-radius:999px;background:#fff;color:var(--thui-muted);font:700 11px Archivo,sans-serif}
.thp-combo:hover{border-style:solid;border-color:var(--thui-accent);background:#fff;transform:translateY(-1px)}

.thp-dd-pop{border-radius:20px}
.thp-dd{display:flex;flex-direction:column;max-width:calc(100vw - 24px)}
.thui-pop--sheet .thp-dd{width:100%!important;max-width:none}
.thp-dd__filters{display:flex;gap:6px;padding:12px 12px 10px;overflow-x:auto;border-bottom:1px solid #EEF1F3;scrollbar-width:none}
.thp-dd__filters::-webkit-scrollbar{display:none}
.thp-dd__filters .thui-chip{height:32px;padding:0 12px;font-size:12.5px;flex:0 0 auto}
.thp-dd__list{max-height:min(460px,60vh);overflow:auto;padding:6px 8px 10px;overscroll-behavior:contain}
.thp-dd__group{position:sticky;top:-6px;z-index:1;display:flex;align-items:center;gap:10px;margin:8px -8px 2px;padding:9px 16px;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-bottom:1px solid #F1F4F5}
.thp-dd__gimg{width:28px;height:28px;border-radius:8px;background:#2B4457 center/cover;flex:0 0 auto}
.thp-dd__gname{flex:1;font:800 13.5px Archivo,sans-serif}
.thp-dd__gmeta{font:600 11.5px Archivo,sans-serif;color:var(--thui-muted)}
.thp-dd__opt{display:flex;align-items:center;gap:12px;padding:10px 10px;border-radius:12px;cursor:pointer;transition:background .12s}
.thp-dd__opt:hover,.thp-dd__opt.is-active{background:#F0F8F8}
.thp-dd__opt.is-region strong{color:var(--thui-teal)}
.thp-dd__type{flex:0 0 auto;width:74px;padding:4px 0;border-radius:8px;text-align:center;font:700 10.5px Archivo,sans-serif;letter-spacing:.04em;text-transform:uppercase;background:#EEF1F3;color:#5A6A75}
.thp-dd__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.thp-dd__txt strong{font:700 14.5px Archivo,sans-serif;color:var(--thui-ink)}
.thp-dd__txt strong mark{background:#FFF2B8;color:inherit;border-radius:3px;padding:0 1px}
.thp-dd__txt > span{font:500 12.5px/1.35 Archivo,sans-serif;color:var(--thui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thp-dd__add{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 11px;border-radius:999px;border:1.5px solid var(--thui-line);font:700 12px Archivo,sans-serif;color:var(--thui-ink);transition:background .2s,border-color .2s,color .2s}
.thp-dd__add b{font-size:16px;line-height:1}
.thp-dd__add em{font-style:normal}
.thp-dd__add svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.thp-dd__opt:hover .thp-dd__add{border-color:var(--thui-accent);color:var(--thui-teal)}
.thp-dd__opt.is-on .thp-dd__add{background:var(--thui-grad);border-color:transparent;color:#fff}
.thp-dd__empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 16px;text-align:center;font:500 13.5px Archivo,sans-serif;color:var(--thui-muted)}
.thp-dd__empty strong{color:var(--thui-ink);font-size:15px}
/* type colours (dropdown tags + map dots) */
.thp-t--lake{--tc:#0E86C9}
.thp-t--valley,.thp-t--meadow,.thp-t--forest,.thp-t--plateau{--tc:#2E9A66}
.thp-t--peak,.thp-t--pass,.thp-t--glacier,.thp-t--trek{--tc:#5B5BD6}
.thp-t--city,.thp-t--fort,.thp-t--landmark,.thp-t--viewpoint{--tc:#C2702A}
.thp-t--region{--tc:#007B8C}
.thp-dd__type[class*="thp-t--"]{background:color-mix(in srgb,var(--tc) 12%,#fff);color:var(--tc)}

.thp-route{border-radius:20px;border:1.5px solid var(--thui-line);background:#fff;overflow:hidden}
.thp-route__head{display:flex;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(135deg,#F3FBFA,#fff 70%);border-bottom:1px solid #EEF1F3}
.thp-route__head > div{flex:1;display:flex;flex-direction:column;gap:3px}
.thp-route__head strong{font:800 16px Archivo,sans-serif}
.thp-route__head span{font:600 13px Archivo,sans-serif;color:var(--thui-muted)}
.thp-route__best{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:10px;border:1.5px solid #BFE3E0;background:#fff;color:var(--thui-teal);font:700 12.5px Archivo,sans-serif;cursor:pointer}
.thp-route__best svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.thp-route__best:hover{border-color:var(--thui-accent)}
.thp-route__empty{display:flex;align-items:center;gap:12px;padding:22px 18px;color:var(--thui-muted);font:500 14px Archivo,sans-serif}
.thp-route__empty svg{width:26px;height:26px;flex:0 0 auto;fill:none;stroke:#A3B0B8;stroke-width:1.8}
.thp-stops{margin:0;padding:8px 10px 10px;list-style:none}
.thp-stop{display:flex;align-items:center;gap:12px;margin:0;padding:10px 8px;border-radius:14px;transition:background .15s;animation:thp-in .35s cubic-bezier(.2,.8,.3,1) both}
.thp-stop:hover{background:#F6FAFA}
.thp-stop__n{flex:0 0 auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--thui-grad);color:#fff;font:800 12.5px Archivo,sans-serif;box-shadow:0 6px 14px -6px rgba(0,123,140,.9)}
.thp-stop__img{flex:0 0 auto;width:46px;height:46px;border-radius:12px;background:#2B4457 center/cover}
.thp-stop__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.thp-stop__txt strong{font:800 14.5px Archivo,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thp-stop__txt span{font:600 12px Archivo,sans-serif;color:var(--thui-muted)}
.thp-stop__nights{flex:0 0 auto;display:flex;align-items:center;gap:4px;padding:3px;border-radius:11px;background:var(--thui-soft)}
.thp-stop__nights button{width:28px;height:28px;border:0;border-radius:8px;background:#fff;color:var(--thui-teal);font:800 15px/1 Archivo,sans-serif;cursor:pointer;box-shadow:0 1px 3px rgba(15,30,41,.1)}
.thp-stop__nights output{min-width:70px;text-align:center;font:700 12.5px Archivo,sans-serif}
.thp-stop__ctl{flex:0 0 auto;display:flex;gap:2px}
.thp-stop__ctl button{width:30px;height:30px;border:0;border-radius:9px;background:none;display:grid;place-items:center;color:var(--thui-muted);cursor:pointer}
.thp-stop__ctl button:hover:not(:disabled){background:#EEF1F3;color:var(--thui-ink)}
.thp-stop__ctl button:disabled{opacity:.3;cursor:default}
.thp-stop__ctl svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.thp-leg{margin:0;padding:0 0 0 22px;list-style:none}
.thp-leg span{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-left:2px dashed #BFE3E0;font:600 12px Archivo,sans-serif;color:var(--thui-muted)}
.thp-leg svg{width:14px;height:14px;fill:none;stroke:var(--thui-teal);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* map: small coloured dots for every place, pulsing ring on preview */
.thp-pin:not(.is-on) span{width:14px!important;height:14px!important;border:3px solid var(--tc,#1E3447)!important}
.thp-pulse{pointer-events:none}
.thp-pulse span{display:block;width:44px;height:44px;border-radius:50%;border:3px solid #00B7C2;background:rgba(0,183,194,.18);animation:thp-pulse 1.2s ease-out infinite}
@keyframes thp-pulse{from{transform:scale(.4);opacity:1}to{transform:scale(1.25);opacity:0}}
.thp-tip strong{display:block;font:800 12.5px Archivo,sans-serif}
.thp-tip span{display:block;font:500 11px Archivo,sans-serif;opacity:.75}

@media (max-width:767px){
  .thp-search{height:54px;padding:0 12px 0 14px}
  .thp-search__hint{display:none}
  .thp-stop{flex-wrap:wrap;row-gap:8px}
  .thp-stop__txt{flex:1 1 calc(100% - 100px)}
  .thp-stop__nights{margin-left:40px}
  .thp-stop__ctl{margin-left:auto}
  .thp-dd__type{width:62px;font-size:9.5px}
}
