/* TripWeave 6.48 — live Naver map / journey / community. */
.tw-map-live{position:relative;min-height:245px;background:#eaf4ef;isolation:isolate}
.tw-map-live .tw-map-message{height:100%;min-height:245px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;text-align:center;padding:20px;color:#2e536c;line-height:1.5;font-size:14px}
.tw-map-message p{margin:0;font-size:13px;color:#627a8e}.tw-map-message small{display:block;font-size:12px;max-width:450px}.tw-map-message a{color:#13649a;font-weight:750;text-decoration:underline}
.tw-naver-stop-pin{display:grid;place-items:center;width:34px;height:34px;border:3px solid #fff;border-radius:50%;background:#087b83;color:#fff;font:800 15px/1 system-ui;box-shadow:0 3px 14px #112f5766}
.tw-naver-info{padding:8px 12px;min-width:120px;font-size:13px;font-weight:700;color:#162d42}
#result>.tw-inline-weather[hidden]{display:none!important}
#result>.tw-inline-weather{margin:-5px 0 18px;padding:20px;border:1px solid #dce7ec;background:#fff;border-radius:17px;box-shadow:0 5px 18px #10253b0b}
.tw-inline-weather-head{display:flex;gap:12px;justify-content:space-between;align-items:start;margin-bottom:15px}
.tw-inline-weather-head strong{font-size:19px;line-height:1.35;color:#132b46}.tw-inline-weather-head small{font-size:12px;color:#687e92;display:block;margin-top:5px}
.tw-inline-weather-head a{font-size:12px;color:#155e7c;text-decoration:underline}
.tw-inline-weather-hours{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px}
.tw-inline-weather-hours article{flex:0 0 98px;scroll-snap-align:start;border-radius:12px;background:#f0f8fa;padding:12px 9px;display:grid;justify-items:center;gap:8px;border:1px solid #e3edf1}
.tw-inline-weather-hours time{font-size:13px;color:#3e6478;font-weight:750}.tw-inline-weather-hours b{font-size:24px;color:#102d49}.tw-inline-weather-hours span{font-size:13px;color:#1b6372}.tw-inline-weather-hours small{font-size:12px;color:#526f80}.tw-inline-note{color:#627b8f;font-size:12px;margin:12px 0 0}
#tw-journey-nav{color:#187b80!important}body.tw-journey-active #tw-journey-nav{border:1px solid #82dacc!important;background:#dcf8f2!important;color:#075b63!important}
#view-journey{width:min(900px,100%);margin:0 auto;padding:14px 0 24px}
.tw-journey-page-heading{border-radius:20px;background:#13243b;color:#fff;padding:23px 26px;margin:0 0 15px;position:relative}
.tw-journey-page-heading .eyebrow{color:#8eeada}.tw-journey-page-heading h1{font-size:29px;color:#fff;margin:6px 0;font-weight:850}
.tw-journey-page-heading p{font-size:14px;color:#d3e1ea;line-height:1.65;margin:0 0 12px}
.tw-journey-page-heading button{min-height:39px;border:1px solid #ffffff55;border-radius:10px;color:#fff;background:#ffffff11;padding:7px 15px;font-size:14px}
.tw-journey-page-heading .tw-end-journey{float:right;background:#ffffff13;border-color:#e6ffff66}
#journey-dashboard dialog.dw-journey-dialog[open]{position:relative!important;inset:auto!important;display:block!important;width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;box-sizing:border-box!important;box-shadow:0 8px 27px #152b4f1e!important;border:1px solid #dfebef!important;overflow:visible!important;transform:none!important}
#journey-dashboard .dw-dialog-close{display:none!important}
#journey-dashboard .dw-journey-stage{border-radius:16px}
#journey-dashboard .dw-gps-panel{border-radius:16px}
/* Place evaluations belong at the right edge of the place overview card, never under its text. */
#result .dw-stop-overview{flex-wrap:wrap!important}
#result .dw-stop-overview>.dw-select-stop{flex:1 1 185px!important}
#result .dw-stop-overview>.tw-place-quick{margin-left:auto;flex:0 0 auto;align-self:center}
.tw-place-quick{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;margin:0}

.tw-place-quick span{font-size:12px;font-weight:700;color:#5a7589;margin-right:3px}
.tw-place-quick button{border:1px solid #dce8ee;background:#f8fafc;border-radius:9px;min-height:37px;min-width:43px;font-size:18px;display:grid;place-items:center;padding:5px 9px;cursor:pointer}
.tw-place-quick button[aria-pressed=true]{background:#def7ed;border-color:#49b7a5;box-shadow:inset 0 0 0 1px #49b7a5}
.tw-place-opinions{margin:8px 2px 12px;border:1px solid #e2ebef;border-radius:12px;overflow:hidden;background:#fff}
.tw-place-opinions>summary{padding:12px 15px;font-weight:750;color:#24556c;font-size:13px;cursor:pointer;list-style:revert;line-height:1.45}
.tw-place-opinions[open]>summary{border-bottom:1px solid #e7ecef;background:#f8fbfc}
.tw-place-opinions-body{padding:15px}.tw-community-top strong{display:block;color:#14324d;font-size:16px}.tw-community-top span{display:block;color:#70879b;font-size:12px;margin:5px 0 12px}
.tw-community-actions,.tw-community-votes{display:flex;gap:7px;flex-wrap:wrap}
.tw-community-actions button,.tw-community-votes button{border:1px solid #dae6ed;border-radius:10px;background:#f8fafb;color:#153c51;min-height:42px;padding:8px 12px;font-size:13px;font-weight:700}
.tw-community-actions button[aria-pressed=true]{background:#d9f7ed;border-color:#37bfa4;color:#085f54}.tw-community-actions button:disabled{opacity:.45}
.tw-community-online{border-top:1px solid #e9eff2;margin-top:13px;padding-top:15px;font-size:13px;color:#526e7f}
.tw-community-stats{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.tw-community-stats b{font-size:16px;color:#13283c}.tw-community-stats span{color:#167c7a;font-weight:750;font-size:14px}.tw-community-stats small{flex:1 0 100%;color:#70869b;font-size:12px}
.tw-community-comments article{padding:13px 0;border-bottom:1px solid #e7edf1}.tw-community-comments article b{font-size:13px}.tw-community-comments article time{font-size:11px;color:#8594a4}.tw-community-comments article p{font-size:14px;color:#243b52;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.tw-community-comments article button{border:0;background:transparent;color:#617d91;text-decoration:underline;padding:5px;font-size:12px}
.tw-community-empty{color:#728398;font-size:13px}.tw-community-form{display:flex;gap:8px;align-items:end;margin:15px 0}.tw-community-form label{flex:1;min-width:0;font-size:12px;color:#4b697b}.tw-community-form input{width:100%;margin-top:5px;min-height:44px;font-size:14px;border:1px solid #ccdbe4;border-radius:8px;padding:7px 10px}.tw-community-form button{min-height:44px;background:#13243b;color:white;border-radius:9px;border:0;padding:8px 12px;font-size:13px;font-weight:750;white-space:nowrap}
.tw-community-votes{margin:9px 0}.tw-community-policy,.tw-community-error{color:#74859a;font-size:12px;line-height:1.5}
@media(max-width:900px){.tw-v47-header>nav #tw-journey-nav,.tw-v47-header>nav #tw-weather-nav{display:inline-flex!important;align-items:center!important;font-size:12px!important;padding:6px 8px!important;white-space:nowrap}.tw-v47-header>nav{gap:2px!important} .tw-header-utilities .tw-header-icon{display:none!important}}
@media(max-width:640px){.tw-v47-header>nav #tw-weather-nav{display:none!important}.tw-v47-header>nav #tw-journey-nav{font-size:12px!important;max-width:104px;line-height:1.15;text-align:center;white-space:normal}.tw-v47-header .tw-header-utilities{display:none!important}.tw-inline-weather-head{display:block}.tw-inline-weather-head a{display:inline-block;margin-top:10px}.tw-journey-page-heading{padding:18px;border-radius:15px}.tw-journey-page-heading h1{font-size:24px}#view-journey{padding:8px 0}.tw-community-form{display:block}.tw-community-form button{margin-top:8px;width:100%}.tw-map-live{min-height:230px}.mobile-app-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;left:5px!important;right:5px!important;padding:4px!important}.mobile-app-nav button{padding:4px 1px!important;font-size:11px!important;letter-spacing:-.03em!important;min-width:0!important}}
@media(max-width:350px){.tw-v47-header>nav #tw-journey-nav{max-width:85px!important;font-size:11px!important}.tw-v47-header>nav #tw-weather-nav{display:none!important}.mobile-app-nav button{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.tw-inline-weather-hours{scroll-behavior:auto!important}}

/* v6.49 – ensure right-aligned reactions remain usable on small screens. */
#result .dw-stop-overview>.tw-place-quick span{font-size:13px;color:#375b73;white-space:nowrap}
#result .dw-stop-overview>.tw-place-quick button{min-width:39px;min-height:41px;padding:5px 7px;touch-action:manipulation}
#result .tw-place-opinions>summary{font-size:14px}
#result .tw-community-online{border-top:0;margin:0;padding:0}
#result .tw-community-form{margin-bottom:6px}
@media(max-width:900px){
  #result .dw-stop-overview>.tw-place-quick{flex-basis:100%;justify-content:flex-end;border-top:1px solid #edf1f5;padding-top:7px;margin-top:2px}
  #result .dw-stop-overview>.tw-place-quick button{min-height:43px;min-width:45px}
}
@media(max-width:350px){
  #result .dw-stop-overview>.tw-place-quick{gap:4px}
  #result .dw-stop-overview>.tw-place-quick span{font-size:12px}
  #result .dw-stop-overview>.tw-place-quick button{min-width:40px}
}

/* One visually coherent actions column at the card's right edge. */
#result .dw-stop-overview>.tw-place-side{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px;margin-left:auto;min-width:0;align-self:stretch}
#result .dw-stop-overview>.tw-place-side>.tw-place-quick{display:flex;align-items:center;gap:7px;margin:0}
#result .dw-stop-overview>.tw-place-side>.dw-stop-controls{position:static!important;inset:auto!important;margin:0!important;display:flex!important;align-items:center;justify-content:flex-end;width:auto!important;min-height:28px}
#result .dw-stop-overview>.tw-place-side>.dw-stop-controls button{min-height:30px!important}
@media(max-width:1050px){#result .dw-stop-overview>.tw-place-side{flex-basis:100%;flex-direction:row;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid #edf1f5;padding-top:8px}#result .dw-stop-overview>.tw-place-side>.dw-stop-controls{min-height:39px}}
@media(max-width:640px){#result .dw-stop-overview>.tw-place-side{justify-content:flex-end;gap:7px}#result .dw-stop-overview>.tw-place-side>.tw-place-quick{gap:5px}#result .dw-stop-overview>.tw-place-side>.tw-place-quick span{font-size:12px}#result .dw-stop-overview>.tw-place-side>.tw-place-quick button{min-width:40px;min-height:42px}}

/* v6.50: editable community draft stays visible even when D1 is not configured. */
.tw-community .tw-community-form{display:flex;flex-direction:column;gap:8px;margin-top:12px;}
.tw-community .tw-community-form textarea{box-sizing:border-box;width:100%;min-height:78px;resize:vertical;border:1px solid #c8d6e1;border-radius:12px;padding:12px 14px;font:inherit;font-size:15px;line-height:1.55;background:#fff;color:#14243b;}
.tw-community .tw-community-form textarea:focus-visible{outline:3px solid #86d7d1;outline-offset:1px;}
.tw-community .tw-community-compose-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.tw-community .tw-community-compose-actions button{min-height:44px;padding:9px 18px;background:#13243b;color:white;border:0;border-radius:10px;font-weight:650;cursor:pointer;}
.tw-community .tw-community-draft-state{font-size:13px;color:#496176;}
.tw-community .tw-community-offline{background:#f3f8fb;border:1px solid #dbe8ef;border-radius:12px;padding:12px 14px;}
.tw-community .tw-community-offline p{margin:6px 0;font-size:14px;}
.tw-community .tw-community-policy{display:block;margin-top:7px;color:#496176;line-height:1.5;}

/* v6.51: inactive or ended journeys must not advertise a live journey tab.
   Placed after responsive !important nav display overrides. */
body .tw-v47-header > nav #tw-journey-nav[hidden], body .mobile-app-nav [data-mobile-tab="journey"][hidden] { display: none !important; }
/* Reflow five bottom navigation actions when the journey has not begun or has ended. */
@media (max-width:640px) {
 body:not(.tw-journey-active) .mobile-app-nav { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
}

/* v6.52 · compact map recovery + account login wayfinding */
.tw-mini-fallback{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:10px;padding:17px;min-height:245px;text-align:center;color:#17344e;background:#eef6f4;border-radius:14px}
.tw-mini-fallback strong{font-size:15px}.tw-mini-fallback p{margin:0;color:#4e6879;font-size:13px;overflow-wrap:anywhere}
.tw-mini-fallback-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;align-items:center}
.tw-mini-fallback-actions button,.tw-mini-fallback-actions a,.tw-community-login-open{padding:9px 13px;border:1px solid #bed5e2;background:#fff;color:#17344e;border-radius:10px;cursor:pointer;font-size:13px;font-weight:600;text-decoration:none}
.tw-mini-fallback-stops{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0;padding:0;list-style:none;counter-reset:route}
.tw-mini-fallback-stops li{max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;border:1px solid #d7e6e8;border-radius:30px;padding:4px 10px;font-size:12px}
.tw-mini-static-image{width:100%;max-height:320px;object-fit:contain;border-radius:10px}
.tw-community-login-help{margin-top:9px;border:1px solid #dbe6f2;background:#f4f8fd;padding:12px;border-radius:12px}
.tw-community-login-help[hidden]{display:none}.tw-community-login-help p{margin:0 0 8px;font-size:13px;color:#28445d}

/* v6.55: shared live-journey place feedback and five-comment pages. */
.tw-comment-pages{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:14px 0 3px}
.tw-comment-pages button{min-width:42px;min-height:44px;padding:7px 12px;border:1px solid #cbdbe5;border-radius:10px;background:#fff;color:#15364e;font-size:14px;font-weight:700;cursor:pointer}
.tw-comment-pages button[aria-current="page"]{background:#13243b;border-color:#13243b;color:#fff}
.tw-comment-pages button:disabled{opacity:.4;cursor:not-allowed}
.tw-comment-count{text-align:center;color:#667a8c;font-size:13px;margin:5px 0 10px}
.tw-community .tw-community-form textarea{height:auto;min-height:130px;max-height:220px;line-height:1.55;resize:vertical}
.dw-journey-feedback{margin:16px 0;padding:18px 20px;border:1px solid #dbe8ef;background:#f8fbfd;border-radius:17px;min-width:0}
.dw-journey-feedback-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}
.dw-journey-feedback-head strong{display:block;font-size:17px;color:#142d44;line-height:1.35}
.dw-journey-feedback-head small{display:block;font-size:13px;color:#60778c;margin-top:4px}
.dw-journey-feedback-head label{display:grid;gap:5px;color:#425c70;font-size:12px;font-weight:700;min-width:190px;max-width:100%}
.dw-journey-place-select{max-width:100%;min-height:44px;border:1px solid #bdd1dd;background:#fff;color:#17334a;border-radius:10px;padding:8px 12px;font-size:15px;font-weight:600}
.tw-journey-vote-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tw-journey-vote-bar strong{font-size:15px;color:#17354e;margin-right:auto}
.tw-journey-vote-bar button{display:grid;place-items:center;min-width:48px;min-height:46px;border:1px solid #d5e3eb;background:#fff;border-radius:12px;font-size:21px;cursor:pointer}
.tw-journey-vote-bar button[aria-pressed="true"]{border-color:#0f9c94;background:#daf7ef;box-shadow:inset 0 0 0 1px #0f9c94}
.tw-journey-vote-bar button:focus-visible,.dw-journey-place-select:focus-visible,.tw-comment-pages button:focus-visible{outline:3px solid #20aeb6;outline-offset:2px}
.tw-journey-vote-bar button:disabled{opacity:.5}
.tw-journey-comments{margin-top:13px;border:1px solid #d8e6ee;border-radius:12px;background:#fff;overflow:hidden}
.tw-journey-comments>summary{padding:14px 16px;font-size:15px;font-weight:750;color:#1a4761;cursor:pointer;min-height:48px;box-sizing:border-box}
.tw-journey-comments[open]>summary{border-bottom:1px solid #e1ebf0}
.tw-journey-comments-body{padding:15px}
@media(max-width:640px){.dw-journey-feedback{padding:15px 13px;margin-top:14px}.dw-journey-feedback-head{display:block}.dw-journey-feedback-head label{margin-top:12px;max-width:none;width:100%}.dw-journey-place-select{width:100%;box-sizing:border-box}.tw-journey-vote-bar strong{flex-basis:100%;margin-bottom:2px}.tw-journey-vote-bar button{flex:1}.tw-journey-comments-body{padding:12px}.tw-comment-pages button{min-width:40px}}
