/* ROADTRIP · Travel Preferences V2
   Scoped to the AI wizard preferences step, no global skin, planner or admin overrides. */
#wizardBody.rtpw-active{align-items:flex-start;justify-content:center;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:26px 34px 36px;scrollbar-color:#cbd5e4 transparent;scrollbar-width:thin}
#wizardBody .rtpw{width:min(790px,100%);max-width:790px;color:#192841;padding:0;margin:0;box-sizing:border-box}
#wizardBody .rtpw *,#wizardBody .rtpw *::before,#wizardBody .rtpw *::after{box-sizing:border-box}
.wizard-main:has(#wizardBody.rtpw-active){height:calc(100dvh - 110px);min-height:620px}
.wizard-main:has(#wizardBody.rtpw-active) .wizard-head{flex:0 0 auto}
.wizard-main:has(#wizardBody.rtpw-active) .wizard-foot{flex:0 0 auto;box-shadow:0 -8px 24px rgba(28,48,90,.025)}
#wizardBody .rtpw .rtpw-intro{margin:4px 0 23px}
#wizardBody .rtpw .rtpw-kicker{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:99px;background:#eff3ff;color:#4962d7;font-size:10px;font-weight:900;letter-spacing:.09em;line-height:1.2}
#wizardBody .rtpw .rtpw-kicker svg{width:14px;height:14px;stroke-width:2.2}
#wizardBody .rtpw h3{font-size:clamp(23px,2.2vw,31px);margin:12px 0 7px;line-height:1.3;letter-spacing:-.055em;color:#162544;font-weight:900;word-break:keep-all}
#wizardBody .rtpw .rtpw-intro p{color:#687893;font-size:13px;line-height:1.7;margin:0;letter-spacing:-.012em}
#wizardBody .rtpw .rtpw-intro p b{color:#3856cf}
#wizardBody .rtpw-section{padding:18px 20px 19px;margin:12px 0;border:1px solid #e7ebf4;border-radius:20px;background:#fff;box-shadow:0 4px 15px rgba(21,41,77,.025)}
#wizardBody .rtpw-section-head{display:flex;align-items:flex-start;gap:11px;margin:0 0 13px}
#wizardBody .rtpw-section-number{height:25px;min-width:25px;display:grid;place-items:center;background:#eef3ff;border-radius:9px;color:#526cd6;font-weight:950;font-size:10px;letter-spacing:.01em}
#wizardBody .rtpw-section-head h4{font-size:16px;line-height:1.5;letter-spacing:-.036em;color:#1a2945;font-weight:900;margin:-2px 0 1px}
#wizardBody .rtpw-section-head p{font-size:11px;color:#8491a4;margin:0;line-height:1.5}
#wizardBody .rtpw-option-group{border:0;min-width:0;padding:0;margin:0}
#wizardBody .rtpw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#wizardBody .rtpw-choice{position:relative;display:flex;min-width:0;align-items:center;gap:10px;cursor:pointer;border:1.5px solid #e3e9f3;background:#fff;border-radius:14px;padding:11px 12px;margin:0;min-height:67px;transition:background-color .17s ease,border-color .17s ease,box-shadow .17s ease,transform .17s ease;user-select:none;-webkit-tap-highlight-color:transparent}
#wizardBody .rtpw-choice:hover{border-color:#bac9f8;background:#f8faff;transform:translateY(-1px)}
#wizardBody .rtpw-choice.is-selected{border-color:#657bff;background:linear-gradient(135deg,#f2f5ff 0%,#f8f6ff 100%);box-shadow:0 0 0 1px rgba(91,111,244,.12),0 5px 15px rgba(45,70,150,.045)}
#wizardBody .rtpw-choice:has(input:focus-visible){outline:3px solid #8095ff;outline-offset:2px}
#wizardBody .rtpw-choice input[type=radio]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;margin:0}
#wizardBody .rtpw-choice-icon{flex:0 0 34px;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#f1f4f9;color:#5c6f8c}
#wizardBody .rtpw-choice-icon svg{height:18px;width:18px;stroke-width:1.9}
#wizardBody .rtpw-choice.is-selected .rtpw-choice-icon{color:#5066ef;background:#e1e8ff}
#wizardBody .rtpw-choice-copy{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
#wizardBody .rtpw-choice-copy strong{font-size:13px;font-weight:850;line-height:1.25;color:#263550;white-space:normal;word-break:keep-all}
#wizardBody .rtpw-choice-copy small{font-size:10px;color:#8390a5;line-height:1.3;word-break:keep-all}
#wizardBody .rtpw-choice.is-selected .rtpw-choice-copy strong{color:#3a50d0}
#wizardBody .rtpw-choice-check{display:grid;flex:0 0 18px;place-items:center;border:1px solid #cfd8e7;color:transparent;width:18px;height:18px;border-radius:50%;background:#fff}
#wizardBody .rtpw-choice-check svg{width:12px;height:12px;stroke-width:3}
#wizardBody .rtpw-choice.is-selected .rtpw-choice-check{color:#fff;border-color:#5168f2;background:#5168f2}
#wizardBody .rtpw-companion-layout{display:grid;grid-template-columns:minmax(0,1fr) 137px;gap:12px;align-items:stretch}
#wizardBody .rtpw-companion-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#wizardBody .rtpw-companion-options .rtpw-choice{flex-direction:column;gap:6px;min-height:90px;padding:12px 5px 9px;text-align:center;justify-content:center}
#wizardBody .rtpw-companion-options .rtpw-choice-icon{width:32px;height:32px;flex:0 0 32px;border-radius:11px}
#wizardBody .rtpw-companion-options .rtpw-choice-copy{flex:0 0 auto;align-items:center}
#wizardBody .rtpw-companion-options .rtpw-choice-copy strong{font-size:11px;white-space:nowrap}
#wizardBody .rtpw-companion-options .rtpw-choice-check{position:absolute;top:7px;right:8px;width:16px;height:16px}
#wizardBody .rtpw-people-panel{border:1px solid #e2e8f3;border-radius:14px;background:#f8faff;display:flex;flex-direction:column;justify-content:space-between;gap:6px;align-items:stretch;padding:12px 9px}
#wizardBody .rtpw-input-label{color:#647591;font-size:11px;font-weight:800;text-align:center}
#wizardBody .rtpw-counter{display:flex;justify-content:center;align-items:center;gap:4px}
#wizardBody .rtpw-counter button{flex:0 0 27px;display:grid;place-items:center;height:27px;width:27px;padding:0;border:1px solid #dee6f5;background:#fff;color:#4d61c5;border-radius:9px;cursor:pointer}
#wizardBody .rtpw-counter button:hover{background:#edf2ff;border-color:#9baafa}
#wizardBody .rtpw-counter button svg{width:14px;height:14px}
#wizardBody .rtpw-counter input{appearance:textfield;-moz-appearance:textfield;width:30px;min-width:0;margin:0;border:0;background:transparent;color:#1e3058;text-align:right;font-size:21px;font-weight:900;outline-offset:2px}
#wizardBody .rtpw-counter input::-webkit-inner-spin-button,#wizardBody .rtpw-counter input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#wizardBody .rtpw-unit{color:#52647e;font-size:11px;font-weight:750}
#wizardBody .rtpw-purpose-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#wizardBody .rtpw-pace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#wizardBody .rtpw-transport-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#wizardBody .rtpw-transport-grid .rtpw-choice{min-height:55px;padding:10px 12px}
#wizardBody .rtpw-transport-grid .rtpw-choice-icon{width:29px;height:29px;flex-basis:29px}
#wizardBody .rtpw-transport-grid .rtpw-choice-copy strong{font-size:12px}
#wizardBody .rtpw-time-row{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);gap:9px;align-items:center;margin-top:13px}
#wizardBody .rtpw-time-field{display:flex;flex-direction:column;gap:7px;padding:12px 14px 10px;border:1px solid #e3e9f3;border-radius:13px;background:#f9fbff;min-width:0}
#wizardBody .rtpw-time-field>span{display:flex;gap:7px;align-items:center;font-size:11px;color:#687990;font-weight:850}
#wizardBody .rtpw-time-field>span svg{width:15px;height:15px;color:#5470d0}
#wizardBody .rtpw-time-field input[type=time]{width:100%;min-width:0;max-width:100%;height:31px;padding:0;border:0;outline:0;color:#1c2d51;background:transparent;font-family:inherit;font-size:20px;line-height:1.3;font-weight:800;letter-spacing:-.02em;accent-color:#526ef5}
#wizardBody .rtpw-time-field:focus-within{border-color:#7487ff;box-shadow:0 0 0 3px #e9edff}
#wizardBody .rtpw-time-line{display:grid;place-items:center;color:#9fa9be}
#wizardBody .rtpw-time-line svg{width:18px;height:18px}
#wizardBody .rtpw-tip{display:flex;align-items:flex-start;gap:9px;background:#f4f7fe;border:1px solid #e7edfa;border-radius:13px;padding:12px 14px;color:#677b9d;margin:16px 0 4px}
#wizardBody .rtpw-tip>svg{width:16px;height:16px;flex:0 0 16px;margin-top:2px;color:#6881d2}
#wizardBody .rtpw-tip p{font-size:11px;line-height:1.6;margin:0}
#wizardBody .rtpw-tip b{color:#42567c}
@media(max-width:1300px){#wizardBody.rtpw-active{padding:23px 22px 30px}#wizardBody .rtpw-purpose-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#wizardBody .rtpw-companion-layout{grid-template-columns:1fr}#wizardBody .rtpw-people-panel{flex-direction:row;justify-content:space-between;align-items:center;padding:9px 13px;gap:10px}}
@media(max-width:760px){
 .wizard-main:has(#wizardBody.rtpw-active){height:auto;min-height:calc(100dvh - 56px);border-radius:0}
 #wizardBody.rtpw-active{max-height:none;overflow:visible;padding:22px 17px 122px;align-items:flex-start}
 #wizardBody .rtpw h3{font-size:25px;line-height:1.26}
 #wizardBody .rtpw .rtpw-intro p{font-size:12px}
 #wizardBody .rtpw-section{padding:16px 13px;margin:10px 0;border-radius:17px}
 #wizardBody .rtpw-section-head{margin-bottom:12px}
 #wizardBody .rtpw-section-head h4{font-size:15px}
 #wizardBody .rtpw-section-head p{font-size:11px}
 #wizardBody .rtpw-companion-options{gap:6px}
 #wizardBody .rtpw-companion-options .rtpw-choice{min-height:80px;padding:10px 3px 8px}
 #wizardBody .rtpw-companion-options .rtpw-choice-copy strong{font-size:10px;white-space:normal}
 #wizardBody .rtpw-choice-icon{flex-basis:30px;width:30px;height:30px}
 #wizardBody .rtpw-choice{padding:10px 9px;gap:8px;min-height:62px;border-radius:12px}
 #wizardBody .rtpw-purpose-grid,#wizardBody .rtpw-pace-grid{gap:7px}
 #wizardBody .rtpw-choice-copy strong{font-size:12px}
 #wizardBody .rtpw-choice-copy small{font-size:10px}
 #wizardBody .rtpw-transport-grid{gap:6px}
 #wizardBody .rtpw-transport-grid .rtpw-choice{flex-direction:column;justify-content:center;gap:4px;min-height:76px;padding:7px 4px}
 #wizardBody .rtpw-transport-grid .rtpw-choice-check{position:absolute;right:5px;top:6px;width:13px;height:13px}
 #wizardBody .rtpw-transport-grid .rtpw-choice-copy strong{font-size:10px}
 #wizardBody .rtpw-time-field{padding:11px 10px 9px}
 #wizardBody .rtpw-time-field input[type=time]{font-size:18px}
}
@media(max-width:380px){#wizardBody .rtpw-companion-options{grid-template-columns:repeat(2,minmax(0,1fr))}#wizardBody .rtpw-companion-options .rtpw-choice{min-height:64px;flex-direction:row;justify-content:center;padding:8px 5px}#wizardBody .rtpw-purpose-grid,#wizardBody .rtpw-pace-grid{grid-template-columns:1fr}#wizardBody .rtpw-transport-grid .rtpw-choice-copy strong{font-size:9px}}
@media(prefers-reduced-motion:reduce){#wizardBody .rtpw-choice{transition:none}#wizardBody .rtpw-choice:hover{transform:none}}

/* ROADTRIP 2026.11.11 / 국가만 표시하는 초간결 통합 여행지 선택 */
#wizardBody .rt-country-question{max-width:760px}
#wizardBody .rt-country-question h3{margin:15px 0 6px}
#wizardBody .rt-country-question .question-desc{margin-bottom:17px}
#wizardBody .rt-unified-search{display:flex;align-items:center;gap:10px;height:56px;border:1px solid #d9e2f0;border-radius:16px;padding:0 15px;background:#fff;box-shadow:0 4px 16px rgba(22,40,83,.045);transition:border-color .15s,box-shadow .15s}
#wizardBody .rt-unified-search:focus-within{border-color:#667fed;box-shadow:0 0 0 4px rgba(102,127,237,.10)}
#wizardBody .rt-unified-search>svg{width:19px;height:19px;color:#677792;flex:0 0 19px}
#wizardBody .rt-unified-search input{flex:1;min-width:0;width:100%;border:0;box-shadow:none;outline:0;background:transparent;font-family:inherit;font-size:15px;font-weight:600;color:#24334f}
#wizardBody .rt-unified-search input::placeholder{color:#97a2b4;font-weight:500}
#wizardBody .rt-unified-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
#wizardBody .rt-unified-search button{display:grid;place-items:center;width:30px;height:30px;background:#f0f3f8;color:#586982;border:0;border-radius:9px;cursor:pointer}
#wizardBody .rt-unified-search button[hidden]{display:none!important}
#wizardBody .rt-unified-search button svg{height:15px;width:15px}
#wizardBody .rt-country-list-title{font-size:13px;font-weight:900;color:#293954;margin:20px 0 11px;display:flex;justify-content:space-between;gap:12px;align-items:center}
#wizardBody .rt-country-list-title small{font-size:11px;font-weight:600;color:#92a0b3}
#wizardBody .rt-country-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
#wizardBody .rt-country-tile{width:100%;min-width:0;aspect-ratio:1/1;border:1px solid #e2e8f1;border-radius:15px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;cursor:pointer;padding:8px 3px;transition:background .16s,border-color .16s,box-shadow .16s;box-shadow:0 2px 10px rgba(23,37,66,.02)}
#wizardBody .rt-country-tile:hover{border-color:#91a3ed;background:#f7f9ff}
#wizardBody .rt-country-tile:focus-visible{outline:3px solid #8797ff;outline-offset:2px}
#wizardBody .rt-country-tile.active{border-color:#6079e9;background:#f5f7ff;box-shadow:0 0 0 1px rgba(89,112,225,.11)}
#wizardBody .rt-country-flag{width:60px;height:44px;display:flex;align-items:center;justify-content:center}#wizardBody .rt-country-flag-img{display:block;width:52px!important;height:36px!important;max-width:100%;object-fit:contain;border-radius:5px;filter:drop-shadow(0 1px 2px rgba(30,47,75,.12));background:#fff}#wizardBody .rt-country-no-flag{font-size:26px}
#wizardBody .rt-country-name{font-size:12px;line-height:1.25;letter-spacing:-.025em;font-weight:800;color:#35435d;text-align:center;word-break:keep-all;overflow-wrap:anywhere}
#wizardBody .rt-unified-results{display:flex;flex-direction:column;gap:7px;margin:12px 0 6px}
#wizardBody .rt-unified-results.hidden,#wizardBody #rtCountryOnlyGrid.hidden{display:none!important}
#wizardBody .rt-place-result-row{width:100%;min-width:0;display:flex;align-items:center;text-align:left;gap:13px;border:1px solid #e2e8f2;background:#fff;border-radius:13px;padding:13px 14px;cursor:pointer}
#wizardBody .rt-place-result-row:hover{border-color:#8095ee;background:#f6f8ff}
#wizardBody .rt-result-flag{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:34px}#wizardBody .rt-result-flag .rt-country-flag-img{width:38px!important;height:28px!important}
#wizardBody .rt-result-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
#wizardBody .rt-result-copy strong{font-size:14px;color:#1b2b48;line-height:1.3}
#wizardBody .rt-result-copy small{font-size:11px;color:#71819a;line-height:1.35}
#wizardBody .rt-place-result-row>svg{width:16px;height:16px;color:#8b9ab1;flex:0 0 16px}
#wizardBody .rt-empty-search{font-size:12px;color:#7e8ba0;margin:0;padding:18px;text-align:center;border-radius:12px;background:#f6f8fc}
#wizardBody .rt-region-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#wizardBody .rt-region-tile{border:1px solid #e4e9f1;background:#fff;border-radius:14px;padding:12px;text-align:left;display:flex;gap:9px;align-items:center;cursor:pointer;min-width:0}
#wizardBody .rt-region-tile:hover{border-color:#8da0ed;background:#f6f8ff}
#wizardBody .rt-region-symbol{width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#edf2ff;color:#647bd8;display:grid;place-items:center}
#wizardBody .rt-region-symbol svg{width:16px;height:16px}
#wizardBody .rt-region-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
#wizardBody .rt-region-info b{font-size:13px;line-height:1.25;color:#243553}
#wizardBody .rt-region-info small{font-size:10px;line-height:1.35;color:#8693a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wizardBody .rt-region-tile>svg{width:16px;height:16px;flex:0 0 16px;color:#94a1b4}
@media(max-width:980px){#wizardBody .rt-country-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){#wizardBody .rt-country-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#wizardBody .rt-country-tile{border-radius:14px;gap:6px}#wizardBody .rt-country-flag{width:54px;height:40px}#wizardBody .rt-country-flag-img{width:50px!important;height:35px!important}#wizardBody .rt-country-name{font-size:11px}#wizardBody .rt-unified-search{height:52px;padding:0 13px}#wizardBody .rt-country-list-title{margin-top:16px}}
@media(max-width:390px){#wizardBody .rt-country-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#wizardBody .rt-region-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#wizardBody .rt-country-tile{transition:none}}

/* ============================================================
   ROADTRIP 2026-11-11 - circular flat country flags
   * A square viewport is cropped from the centre of each flag.
   * For ordinary landscape flags, object-fit: cover fits the HEIGHT
     to the circle and crops only the left/right sides.
   * Do not modify image sources, country IDs, sorting or selection.
   ============================================================ */
#wizardBody .rt-country-flag {
  position:relative;
  width:52px;
  height:52px;
  min-width:52px;
  flex:0 0 52px;
  padding:0;
  overflow:hidden;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 1px rgba(42,59,90,.17), 0 3px 9px rgba(30,47,75,.10);
}
#wizardBody .rt-country-flag > img.rt-country-flag-img {
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  min-width:0;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:50% 50%!important;
  filter:none!important;
  box-shadow:none!important;
  background:#fff;
}
/* Search-result icons use the same circular treatment, at a smaller size. */
#wizardBody .rt-result-flag {height:42px}
#wizardBody .rt-result-flag > img.rt-country-flag-img {
  display:block;
  width:36px!important;
  height:36px!important;
  max-width:none!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:50% 50%!important;
  filter:none!important;
  background:#fff;
  box-shadow:0 0 0 1px rgba(42,59,90,.17), 0 2px 6px rgba(30,47,75,.09);
}
/* Non-landscape flag: fit the tall original without cutting the emblem. */
#wizardBody .rt-country-flag-img[src*="/np.png"] {object-fit:contain!important}
@media(max-width:760px) {
  #wizardBody .rt-country-flag {
    width:48px;
    height:48px;
    min-width:48px;
    flex-basis:48px;
  }
}
@media(max-width:390px) {
  #wizardBody .rt-country-flag {
    width:44px;
    height:44px;
    min-width:44px;
    flex-basis:44px;
  }
}


/* ==========================================================
  ROADTRIP PLANNER | UI POLISH 2026-11-11
  Visual-only. Existing event handlers, IDs, states and DOM remain.
  Loaded last via planner_wizard_v2.css. No hiding of actions/data.
  ========================================================== */
:root{
  --rtu-ink:#142743;--rtu-muted:#73839c;--rtu-soft:#f5f8fd;
  --rtu-border:#e2e9f3;--rtu-blue:#3c66ec;
  --rtu-ring:0 0 0 3px rgba(60,102,236,.14);
  --rtu-shadow:0 5px 24px rgba(21,46,85,.045);
}
html,body{background:#f6f8fc;color:var(--rtu-ink)}
.rt-main{max-width:1600px;padding:18px 20px 30px}
.rt-top{background:rgba(255,255,255,.97)!important;border-bottom:1px solid var(--rtu-border)!important;box-shadow:none!important}
.rt-save{border-radius:12px!important;background:#4669ef!important;box-shadow:0 4px 12px rgba(59,100,221,.15)!important}
.rt-save:hover{background:#345be1!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #5779ef;outline-offset:2px}
/* Opening selection - quieter, more readable */
.mode-screen{border-radius:24px;box-shadow:var(--rtu-shadow);border-color:var(--rtu-border)}
.mode-choice{background:#fff;padding:clamp(28px,4vw,58px)}
.mode-choice h2{font-size:clamp(23px,2.2vw,30px);letter-spacing:-.045em;line-height:1.35}
.mode-choice>p{line-height:1.65;font-size:14px;margin:10px 0 25px}
.mode-list{gap:10px}
.mode-card{border-color:var(--rtu-border);border-radius:18px;box-shadow:none;min-height:104px;padding:16px 18px;transition:background .15s,border-color .15s,transform .15s}
.mode-card.manual,.mode-card.ai{background:#fff}
.mode-card:hover{transform:translateY(-1px);box-shadow:var(--rtu-shadow)}
.mode-card .mode-title{font-size:16px;letter-spacing:-.03em}
.mode-card .mode-desc{font-size:12px;line-height:1.55}
.mode-card .mode-icon{border-radius:15px}
/* Wizard - unified information hierarchy */
.wizard-screen{grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:15px}
.wizard-side{padding:32px 26px;border-radius:22px;background:linear-gradient(155deg,#17315a 0%,#294c88 75%,#4864bf 100%);box-shadow:none}
.wizard-side h2{font-size:27px;line-height:1.3;letter-spacing:-.04em}
.wizard-main{border-radius:22px;box-shadow:var(--rtu-shadow);border-color:var(--rtu-border)}
.wizard-head{padding:17px 24px;border-bottom:1px solid var(--rtu-border)}
.wizard-body{padding:30px clamp(20px,4vw,50px)}
.question{width:min(760px,100%)}
.question-bubble{padding:7px 11px;border-radius:99px;background:#edf2ff;font-size:11px;color:#4362c9}
.question h3{font-size:clamp(25px,2.5vw,32px);line-height:1.35;letter-spacing:-.045em;margin:15px 0 8px}
.question-desc{font-size:13px;line-height:1.65;margin-bottom:20px}
.choice-grid,.interest-grid,.date-grid{gap:11px}
.choice-btn,.interest-btn{box-shadow:none;border-radius:15px}
.choice-btn.active,.interest-btn.active{box-shadow:var(--rtu-ring)}
.wizard-foot{border-top:1px solid var(--rtu-border);box-shadow:none!important}
.wizard-foot button{border-radius:12px}
#wizardBody .rt-unified-search{height:54px;border-radius:14px;box-shadow:none;border-color:#d8e2f0}
#wizardBody .rt-country-grid{gap:10px}
#wizardBody .rt-country-tile{border-radius:15px;box-shadow:none;gap:6px;border-color:#e4eaf3}
#wizardBody .rt-country-tile:hover{box-shadow:var(--rtu-shadow)}
#wizardBody .rt-country-tile.active{background:#f3f6ff;border-color:#7691ef;box-shadow:var(--rtu-ring)}
#wizardBody .rt-region-list{gap:9px}
#wizardBody .rt-region-tile{border-radius:13px;min-height:64px;padding:12px 14px}
#wizardBody .rt-region-tile:hover{background:#f6f8ff}
#wizardBody .rtpw-section{box-shadow:none;border-color:var(--rtu-border);border-radius:16px}
#wizardBody .rtpw-choice{box-shadow:none}
#wizardBody .rtpw-choice.is-selected{background:#f4f7ff;border-color:#6685ee;box-shadow:0 0 0 1px rgba(65,102,228,.10)}
#wizardBody .rtpw-choice:hover{transform:none}
#wizardBody .rtpw-time-field{background:#fff;border-radius:12px}
/* Editing screen - time line first */
.planner-screen{grid-template-columns:minmax(205px,235px) minmax(0,1fr) minmax(292px,340px);gap:13px;align-items:start}
.planner-screen>.panel{min-width:0;border:1px solid var(--rtu-border);border-radius:18px;box-shadow:var(--rtu-shadow)}
.panel-head{padding:16px 17px;font-size:14px;border-bottom:1px solid #edf1f6}
.panel-body{padding:16px}
.summary-panel .panel-body{padding:12px 13px 16px}
.trip-summary{display:grid;gap:0}
.trip-summary .summary-chip{border-radius:0;background:transparent;padding:10px 3px;border-bottom:1px solid #edf1f6;font-size:11px;color:var(--rtu-muted);line-height:1.4}
.trip-summary .summary-chip:last-child{border:0}
.trip-summary .summary-chip b{display:block;margin-top:4px;color:#203452;font-size:13px;font-weight:800;line-height:1.4;word-break:keep-all}
.summary-panel #editTrip{width:100%;border-radius:11px!important;min-height:42px;margin-top:11px!important;background:#eef2fa!important;color:#273a5e}
.schedule-panel .panel-body{padding:14px 16px 22px}
.schedule-panel .panel-head{font-size:15px}
#headerAddPlace{background:#edf2ff!important;color:#3858d3!important;border-radius:11px!important;min-height:38px;padding:8px 12px!important}
#headerAddPlace:hover{background:#e3ecff!important}
/* Day tab stays horizontal; scroll never wraps */
#dayTabs.day-tabs{gap:8px;padding:4px 2px 10px;margin:0 0 7px;overscroll-behavior-x:contain}
#dayTabs .day-tab{min-width:115px!important;min-height:51px!important;border-radius:12px!important;background:#f1f5fa!important;border:1px solid transparent!important;color:#20324c!important;box-shadow:none!important;font-weight:800;padding:10px 11px!important}
#dayTabs .day-tab small{color:#7b889d!important}
#dayTabs .day-tab.active{background:#3b66ed!important;border-color:#3b66ed!important;color:#fff!important;box-shadow:0 4px 13px rgba(49,91,220,.14)!important}
#dayTabs .day-tab.active small{color:#eaf0ff!important}
/* Actions: compact, scrollable rather than two-three lines of controls */
.rtps-toolbar{padding:5px 0 12px}
.rtps-toolbar-top{margin-bottom:8px;gap:8px;font-size:11px}
.rtps-tools{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;gap:6px;padding:4px 1px 9px;scrollbar-width:thin;scrollbar-color:#dce4f3 transparent}
.rtps-tools .rtps-btn{flex:0 0 auto;white-space:nowrap;min-height:37px;padding:8px 11px;font-size:11px;font-weight:750;background:#fff;border:1px solid #dfe7f4;border-radius:10px}
.rtps-tools .rtps-btn:hover{background:#f5f8ff}
.rtps-day-summary{border-radius:12px;border:1px solid #e7edf8;background:#f6f8fe;padding:11px 13px;margin-top:7px;line-height:1.55}
/* One status, visually quiet: not another big CTA */
.planner-generation-notice{background:#f8faff;border:1px solid #dfe8f7;border-radius:12px;padding:12px 13px;margin:10px 0 12px;box-shadow:none}
.planner-generation-head strong{font-size:12px;color:#263d64}
.planner-generation-head p{font-size:11px;color:#6d7f9d}
.planner-generation-symbol{width:29px;height:29px;flex:0 0 29px;border-radius:9px}
.planner-generation-notice details{margin-top:8px;padding-top:8px}
/* Schedule items - breathing room, clearly separated time/title/actions */
.timeline{min-height:180px}
.timeline .item{border-bottom:1px solid #edf1f7;padding:15px 2px;gap:10px;min-width:0}
.timeline .item:last-child{border-bottom:0}
.timeline .item-time{font-size:14px;letter-spacing:-.02em;color:#345eec;line-height:1.35;font-weight:800;font-variant-numeric:tabular-nums}
.timeline .item-end-time{font-size:10px;font-weight:600;color:#8793a6;line-height:1.3;margin-top:4px}
.timeline .item-title{color:#1e304a;font-weight:850;font-size:14px;line-height:1.45;letter-spacing:-.03em;word-break:keep-all;overflow-wrap:anywhere}
.timeline .item-meta{font-size:11px;color:#7888a2;line-height:1.55;margin-top:4px}
.timeline .rtps-item-more{border-radius:10px;background:#f6f8fc;border:1px solid #e5ebf6}
.meal-pick-link{border-radius:9px;background:#f5f8ff;border-color:#e0e9fc;color:#4264cd;box-shadow:none}
/* Map & place finder should read as one panel */
.map-only-panel #plannerMap{border-radius:0}
.map-only-panel .panel-body{padding:14px 14px 17px}
.route-map-strip{gap:8px;padding:11px 11px 12px;background:#fff}
.route-strip-item{border-radius:13px;border-color:#e2e9f2;box-shadow:none}
.route-strip-item:hover{transform:none;box-shadow:var(--rtu-shadow)}
.route-strip-item.active{background:#f4f7ff;border-color:#8ca3f6}
.route-strip-thumb{border-radius:9px}
.place-preview-wrap{border-radius:13px;overflow:hidden;border-color:#e6edf6}
.place-preview-head{padding:10px 11px;font-size:12px}
.type-row{gap:6px;padding:3px 0 10px;scrollbar-width:thin;scrollbar-color:#e1e7f1 transparent}
.type-chip{min-height:35px;padding:7px 12px;background:#f8fafc;border:1px solid #e3eaf4;font-size:11px;border-radius:99px}
.type-chip.active{background:#20385e;color:#fff;border-color:#20385e}
.place-search-row{gap:8px}
.place-search-row .input{border:1px solid #dce6f4;border-radius:11px;background:#fff;height:43px}
.place-search-icon-btn{border-radius:11px}
.places .place{border-radius:12px}
/* Add/edit and detail modal: polished controls, keep all actions */
.add-modal-card,.meal-pick-card,.place-detail-card,.planner-overflow-card{box-shadow:0 20px 70px rgba(15,31,59,.16);border-radius:20px}
.add-form-field input,.add-form-field select,.add-form-field textarea{border-radius:11px}
.rtps-dialog{border-radius:18px}
/* Responsive: prevent desktop three-column squeezing at tablet widths */
@media(min-width:901px) and (max-width:1279px){
  .planner-screen{grid-template-columns:215px minmax(0,1fr)}
  .planner-screen>.map-panel{grid-column:1/-1}
  .wizard-screen{grid-template-columns:260px minmax(0,1fr)}
  .map-only-panel #plannerMap{height:310px}
}
/* Phone: single strong work area, compact cards, clear bottom nav */
@media(max-width:900px){
  html,body{background:#fff}
  .rt-main{max-width:none;padding:0 0 calc(79px + env(safe-area-inset-bottom))}
  .wizard-screen{display:block}
  .wizard-main{border:0;border-radius:0;box-shadow:none;min-height:calc(100dvh - 59px)}
  .wizard-head{padding:13px 16px}
  .wizard-body{padding:23px 17px 110px}
  .question h3{font-size:clamp(24px,6vw,29px);margin:13px 0 7px}
  .question-desc{font-size:12px;margin-bottom:17px;line-height:1.6}
  .wizard-foot{box-shadow:none!important;padding:12px 15px calc(12px + env(safe-area-inset-bottom))}
  .mode-screen{background:#fff;border:0;border-radius:0}
  .mode-choice{background:#fff;padding:24px 19px}
  .mode-card{min-height:100px;padding:16px;border-radius:17px}
  .planner-screen{display:block;min-width:0;padding:0 0 8px}
  .planner-screen>.panel{border:none;border-radius:0;box-shadow:none;background:#fff}
  .planner-screen>.schedule-panel .panel-head{padding:13px 16px}
  .planner-screen>.schedule-panel .panel-body{padding:9px 16px 20px}
  .summary-panel .summary-toggle{background:#fff;min-height:45px;padding:11px 17px;border-bottom:1px solid #edf1f6;color:#30445e}
  .summary-panel .panel-body{padding:3px 16px 12px}
  .trip-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
  .trip-summary .summary-chip{min-width:0}
  .rtps-toolbar{padding:4px 0 7px}
  .rtps-toolbar-top{font-size:11px}
  .rtps-tools{gap:6px;margin:0 -16px;padding:4px 16px 9px;scrollbar-width:none}
  .rtps-tools::-webkit-scrollbar{display:none}
  .rtps-tools .rtps-btn{min-height:36px;font-size:11px;padding:7px 10px;flex:0 0 auto}
  .rtps-day-summary{padding:10px 12px;font-size:11px;margin-top:4px}
  #dayTabs.day-tabs{margin-right:-16px;margin-left:-16px;padding:5px 16px 12px;gap:7px}
  #dayTabs .day-tab{min-width:116px!important;min-height:47px!important;padding:9px 10px!important;border-radius:11px!important}
  .planner-generation-notice{padding:11px 12px;margin:7px 0 10px}
  .planner-generation-head p{line-height:1.5}
  .timeline .item{grid-template-columns:56px minmax(0,1fr) 34px!important;gap:9px!important;margin:0 0 9px!important;padding:12px 10px!important;border:1px solid #e8edf5!important;border-radius:13px!important;background:#fff;box-shadow:0 2px 9px rgba(22,40,80,.025)}
  .timeline .item .item-title{font-size:13px;line-height:1.5}
  .timeline .item .item-meta{font-size:11px;line-height:1.55}
  .timeline .item .item-time{font-size:12px;white-space:nowrap}
  .timeline .item .item-end-time{font-size:10px}
  .timeline .item .rtps-item-more{width:34px;height:34px}
  .schedule-guide{border:1px solid #e5ebf5;border-radius:13px;background:#f9fbff;margin:6px 0 12px;padding:13px 14px;box-shadow:none}
  .schedule-guide-icon{border-radius:11px;width:36px;height:36px;flex:0 0 36px}
  .schedule-guide-copy b{font-size:14px}
  .schedule-guide-copy p{font-size:11px}
  .map-only-panel .panel-body{padding:12px 15px 20px}
  .route-map-strip{padding:10px 12px}
  .mobile-nav{background:rgba(255,255,255,.98)!important;border-top:1px solid #e5ebf4;box-shadow:0 -4px 15px rgba(25,45,78,.035)!important;padding-bottom:env(safe-area-inset-bottom)}
  .mobile-nav button{min-width:0;min-height:48px;border-radius:10px;color:#657993}
  .mobile-nav button.active{background:#eef3ff!important;color:#355ce0!important}
  .mobile-nav button.active svg{stroke:#355ce0!important}
  .add-modal-card,.meal-pick-card{border-radius:20px 20px 0 0}
  .rtps-dialog.rtps-actions-sheet{border-radius:20px 20px 0 0}
}
@media(max-width:380px){
  #wizardBody .rt-country-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  #wizardBody .rt-country-name{font-size:10px}
  #wizardBody .rt-country-tile{padding:7px 2px}
  #wizardBody .rt-country-flag{width:42px!important;height:42px!important;min-width:42px!important;flex-basis:42px!important}
  .timeline .item{grid-template-columns:52px minmax(0,1fr) 32px!important;gap:8px!important;padding:11px 8px!important}
  .trip-summary{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.mode-card,.rt-country-tile,.route-strip-item{transition:none!important}}
/* Keep the requested four-flag grid at ordinary mobile widths. */
@media (min-width:351px) and (max-width:900px){
 #wizardBody .rt-country-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px}
}
@media (max-width:350px){
 #wizardBody .rt-country-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* ROADTRIP / 2026-11-11 Wizard legibility refinements. */
#wizardBody .rt-unified-search input{font-size:16px!important}
#wizardBody .rt-result-copy strong{font-size:16px!important}
#wizardBody .rt-result-copy small{font-size:13px!important}
#wizardBody .rt-region-info b{font-size:15px!important}
#wizardBody .rt-region-info small{font-size:12px!important}
#wizardBody .rt-country-name{font-size:12px!important;line-height:1.3!important}
#wizardBody .rt-country-list-title{font-size:15px!important}
#wizardBody .rt-country-list-title small{font-size:12px!important}
#wizardBody .rtpw-section-head h4{font-size:17px!important}
#wizardBody .rtpw-section-head p,#wizardBody .rtpw-choice-copy small{font-size:13px!important;line-height:1.5}
#wizardBody .rtpw-choice-copy strong{font-size:15px!important}
#wizardBody .rtpw-input-label{font-size:14px!important}
#wizardBody .rtpw-time-field input{font-size:16px!important}
#wizardBody .rtpw-tip{font-size:13px!important;line-height:1.55}
@media(max-width:900px){
 #wizardBody .question-desc,.question-desc{font-size:14px!important;line-height:1.6!important}
 #wizardBody .rt-region-tile{min-height:70px}
 #wizardBody .rt-country-tile{min-height:94px;aspect-ratio:auto}
 #wizardBody .rt-country-grid{gap:8px}
 #wizardBody .rt-country-name{font-size:12px!important}
 .wizard-foot button{font-size:16px!important;min-height:48px}
}
