/* ViraWise social collaboration v1 — readable, responsive, accessible */
.v9-theme-button,.v9-ghost-btn,.v9-nav-link,.v9-mobile-discover{
  border:1px solid #d9e6e7;background:#f3faf8;color:#13576a;
  border-radius:12px;font-size:12px;font-weight:800;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:10px 12px;min-height:39px;white-space:nowrap;
}
.v9-theme-button{width:40px;padding:0;font-size:16px}
.v9-mobile-discover{display:none}
#search-view .v9-nav-link{background:transparent;border:0;padding:11px 13px}
#search-view .v9-nav-link:hover{background:#def2eb}
#profile-modal .v9-profile-social{border:1px solid #d6eae6;background:#eef9f5;border-radius:16px;padding:16px;margin:0 0 15px}
#profile-modal .v9-profile-social p{font-size:12px;color:#426272;line-height:1.55;margin:7px 0 12px}
#profile-modal .v9-profile-social-actions{display:flex;gap:9px;flex-wrap:wrap}
#profile-modal .v9-profile-social-actions button{background:#fff;color:#1c5764;border:1px solid #c7e2dc;border-radius:10px;padding:10px 12px;font-weight:800;font-size:12px}
.v9-social-overlay{position:fixed;inset:0;z-index:1000;background:rgba(4,18,29,.72);backdrop-filter:blur(11px);padding:clamp(8px,2vw,25px);align-items:center;justify-content:center;display:flex}
.v9-social-overlay.hidden,.v9-social-page.hidden,.v9-active-room.hidden{display:none!important}
.v9-social-shell{background:#f8fbfc;color:#163b4d;border:1px solid #bcdadf;border-radius:24px;width:min(1100px,100%);height:min(92dvh,870px);overflow-y:auto;box-shadow:0 35px 100px rgba(0,12,29,.38)}
.v9-social-header{position:sticky;top:0;z-index:5;background:rgba(248,251,252,.97);backdrop-filter:blur(12px);border-bottom:1px solid #dae7ec;padding:18px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.v9-social-brand,.v9-social-header-actions{display:flex;align-items:center;gap:12px}
.v9-social-logo{width:45px;height:45px;display:grid;place-items:center;background:#daf4ec;color:#067f78;border-radius:15px}
.v9-social-brand small,.v9-eyebrow{font-size:10px;color:#0d8b80;letter-spacing:.1em;font-weight:900}
.v9-social-brand h2{font-size:20px;font-weight:900;letter-spacing:-.04em;color:#193d4c;margin:0}
.v9-social-tabs{display:flex;gap:9px;padding:14px 24px 4px;overflow-x:auto}
.v9-social-tabs button{border:1px solid #dce9eb;border-radius:12px;background:#fff;color:#476575;min-width:max-content;font-size:12px;font-weight:850;padding:12px 16px;cursor:pointer}
.v9-social-tabs button[aria-selected="true"]{background:#0e776e;color:#fff;border-color:#0e776e}
.v9-social-status{margin:8px 24px 0;min-height:18px;font-size:12px;color:#476675;line-height:1.5}
.v9-social-status[data-error="true"]{color:#a73b2a}
.v9-social-page{padding:20px 24px 36px}
.v9-social-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}
.v9-social-intro h3{font-size:clamp(22px,2.7vw,30px);font-weight:900;letter-spacing:-.045em;color:#173c51;margin:4px 0}
.v9-social-intro p{font-size:13px;color:#597383;line-height:1.6;max-width:630px}
.v9-primary-btn,.v9-secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;border:0;border-radius:11px;font-size:12px;font-weight:850;min-height:41px;padding:11px 16px;white-space:nowrap}
.v9-primary-btn{background:#0b8275;color:#fff}
.v9-primary-btn:hover{background:#09675f}
.v9-secondary-btn{background:#e5f4f0;color:#0b665d;border:1px solid #bee0d7}
.v9-secondary-btn:hover{background:#d0eee7}
.v9-filter-row{display:flex;align-items:center;gap:9px;margin-bottom:18px}
.v9-filter-row label{font-size:11px;font-weight:850;white-space:nowrap}
.v9-filter-row input,.v9-inline-form input,.v9-stack input,.v9-stack select{width:100%;background:#fff;color:#1a384c;border:1px solid #cddfe6;border-radius:10px;padding:11px 12px;font-size:13px;min-width:0}
.v9-filter-row input{flex:1}
.v9-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.v9-post-card,.v9-room-row,.v9-work-card{border:1px solid #d8e8ed;border-radius:17px;background:#fff;padding:17px;box-shadow:0 6px 21px rgba(22,64,81,.04)}
.v9-post-card h4{font-size:17px;font-weight:850;margin:5px 0;color:#1b4150;overflow-wrap:anywhere}
.v9-post-card p{font-size:12px;color:#547181;line-height:1.65;margin:8px 0;overflow-wrap:anywhere}
.v9-post-city{color:#088777;font-weight:900;font-size:11px}
.v9-post-author{display:flex;align-items:center;gap:7px;font-size:11px;color:#597080;margin:8px 0}
.v9-post-author img{width:27px;height:27px;object-fit:cover;border-radius:50%;border:1px solid #d9e7e9}
.v9-post-steps{font-size:11px;color:#527283;line-height:1.55;padding:9px 0;border-top:1px dashed #e1e9ef}
.v9-post-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.v9-post-actions button{font-size:11px;padding:9px 11px;border-radius:9px;cursor:pointer;font-weight:800}
.v9-post-actions button:focus-visible,.v9-primary-btn:focus-visible,.v9-secondary-btn:focus-visible,.v9-social-tabs button:focus-visible{outline:3px solid #4ad3ad;outline-offset:2px}
.v9-room-create{display:grid;gap:12px;background:#edf7f5;border:1px solid #d3e7e3;padding:17px;border-radius:17px;margin-bottom:19px}
.v9-inline-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.v9-inline-form label,.v9-stack label{display:grid;gap:6px;font-size:11px;color:#486675;font-weight:800;flex:1;min-width:145px}
.v9-inline-form .v9-grow{flex:1 1 300px}
.v9-room-list{display:grid;gap:9px;margin:12px 0}
.v9-room-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v9-room-row strong{font-size:14px;color:#22485a}
.v9-room-row small{display:block;color:#597383;margin-top:4px}
.v9-room-head{border-top:1px solid #d8e7e9;padding-top:20px;display:flex;justify-content:space-between;align-items:center;gap:15px}
.v9-room-head h3{font-size:23px;font-weight:900;color:#183f52}
.v9-room-head span{font-size:12px;color:#4c7783}
.v9-room-summary{display:flex;gap:15px;flex-wrap:wrap;margin:13px 0 18px;font-size:12px;font-weight:800;color:#336472}
.v9-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.v9-work-card h4{font-size:18px;font-weight:900;color:#203f4f;margin-bottom:14px}
.v9-work-card h4 small{display:block;color:#5d7887;font-size:11px;font-weight:500;margin-top:4px}
.v9-stack{display:grid;gap:10px}
.v9-record-list{display:grid;gap:8px;margin-top:14px}
.v9-record{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;background:#f5fafb;border:1px solid #e0edf0;border-radius:11px}
.v9-record-text{font-size:12px;color:#274659;min-width:0;overflow-wrap:anywhere}
.v9-record-text small{display:block;font-size:10px;color:#708391;margin-top:3px}
.v9-record button{background:#fceee9;color:#9e4338;border:1px solid #f1d6cb;padding:6px 9px;border-radius:8px;font-size:11px;font-weight:800}
#v9-share-room{margin-top:17px}
.v9-profile-editor{display:flex;gap:18px;align-items:center;border:1px solid #dbe8ec;background:#fff;border-radius:15px;padding:16px;margin-bottom:25px}
.v9-profile-editor img{width:90px;height:90px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #97d8c7}
.v9-profile-editor h4{font-weight:900;color:#173f52;font-size:17px}
.v9-profile-editor p{font-size:11px;color:#617888;margin:5px 0 10px}
.v9-profile-editor input{display:block;font-size:11px;max-width:100%;margin-bottom:10px}
.v9-social-shell :is(input,select,button):disabled{opacity:.48;cursor:not-allowed}
@media(max-width:1000px){.v9-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){#search-view .v9-nav-link{display:none}.v9-mobile-discover{display:inline-flex}}
@media(max-width:640px){
 .v9-social-overlay{padding:0}.v9-social-shell{border-radius:0;height:100dvh;max-height:none}
 .v9-social-header{padding:13px 15px}.v9-social-brand h2{font-size:17px}
 .v9-social-tabs{padding:11px 13px 3px;gap:5px}.v9-social-tabs button{padding:10px;font-size:11px}
 .v9-social-page{padding:14px 13px 30px}
 .v9-social-intro{align-items:flex-start;flex-direction:column;gap:10px}
 .v9-post-grid,.v9-work-grid{grid-template-columns:1fr}
 .v9-inline-form{flex-direction:column;align-items:stretch}
 .v9-room-row,.v9-room-head{align-items:flex-start;flex-direction:column}
 .v9-profile-editor{align-items:flex-start}.v9-profile-editor img{width:65px;height:65px}
 .v9-filter-row{flex-wrap:wrap}.v9-filter-row input{flex-basis:70%}
}
html[data-theme="dark"]{color-scheme:dark!important}
html[data-theme="dark"] body{background:#071621!important;background-image:linear-gradient(150deg,#071621,#0e2635)!important;color:#ecf9fa!important}
html[data-theme="dark"] :is(#search-view,#results-view){background:#081824!important;color:#ecf9fa!important}
html[data-theme="dark"] #search-view > nav,html[data-theme="dark"] #results-view > nav{background:#0a1d2b!important;border-color:#244656!important}
html[data-theme="dark"] :is(#search-view,#results-view) .glass-card{background:#102a39!important;border-color:#2b5362!important;box-shadow:0 8px 26px rgba(0,0,0,.16)!important}
html[data-theme="dark"] :is(#search-view,#results-view) .glass-card :is(h1,h2,h3,h4,p,span,label,strong,small){color:#e5f3f6!important}
html[data-theme="dark"] :is(#search-view,#results-view) .glass-card input{background:#0a2130!important;color:#fff!important;border-color:#3a6672!important}
html[data-theme="dark"] :is(#search-view,#results-view) .glass-card input::placeholder{color:#b5c7d0!important}
html[data-theme="dark"] #search-view .v6-main-links{background:#102d39!important;border-color:#28545c!important}
html[data-theme="dark"] #search-view .v6-main-links :is(a,button){color:#e1f4f6!important}
html[data-theme="dark"] #search-view .v6-main-links :is(a,button):hover{background:#174a4d!important}
html[data-theme="dark"] .v9-theme-button,html[data-theme="dark"] .v9-mobile-discover{background:#173342!important;color:#d5f3ea;border-color:#2c5b67}
html[data-theme="dark"] #results-view .v7-pack-item{background:#16323b!important;border-color:#345b61!important}
html[data-theme="dark"] #results-view .v7-pack-text{color:#e7f7f8!important}
html[data-theme="dark"] #results-view .v7-pack-heading :is(h3,p){color:#e1f3f5!important}
html[data-theme="dark"] #results-view .v7-map-message{background:#143844!important;color:#e1f5fa!important;border-color:#30636b!important}
html[data-theme="dark"] #profile-modal .v4-profile-panel{background:#0e2634!important;color:#e7f8f8!important}
html[data-theme="dark"] #profile-modal :is(.v4-profile-summary,.v4-profile-main,.v4-profile-side,.v5-next-trip,.v5-notes-card,.v5-prep-card,.v9-profile-social,.v4-profile-recent,.v4-profile-actions){background:#142e3d!important;color:#e7f9f9!important;border-color:#325361!important}
html[data-theme="dark"] #profile-modal :is(h2,h3,h4,p,span,strong,small,label){color:#e2f4f4!important}
html[data-theme="dark"] #profile-modal :is(input,textarea){background:#0a2431!important;color:#fff!important;border-color:#39616e!important}
html[data-theme="dark"] #profile-modal .v5-check-list label{background:#183441!important;color:#f0fafa!important;border-color:#375b67!important}
html[data-theme="dark"] #profile-modal .v9-profile-social-actions button{background:#244354!important;color:#e5fbfb!important;border-color:#436576!important}
html[data-theme="dark"] .v9-social-shell{background:#0b2331;color:#eef9f9;border-color:#3a6270}
html[data-theme="dark"] .v9-social-header{background:#102936;border-color:#355667}
html[data-theme="dark"] .v9-social-shell :is(h2,h3,h4,strong){color:#f3fbfc}
html[data-theme="dark"] .v9-social-shell :is(p,small,label,.v9-record-text){color:#cedfe6}
html[data-theme="dark"] .v9-social-shell :is(.v9-room-create,.v9-post-card,.v9-room-row,.v9-work-card,.v9-profile-editor,.v9-record){background:#123441;border-color:#3c6471;color:#f0f8f8}
html[data-theme="dark"] .v9-social-shell :is(input,select){background:#092333;color:#fff;border-color:#416976}
html[data-theme="dark"] .v9-social-tabs button{background:#193747;color:#e0f2f2;border-color:#3b6170}
html[data-theme="dark"] .v9-social-tabs button[aria-selected="true"]{background:#168d7e;color:#fff}
html[data-theme="dark"] .v9-ghost-btn,html[data-theme="dark"] .v9-secondary-btn{background:#214452;color:#e6f9f9;border-color:#3b6471}
html[data-theme="dark"] .v9-social-brand h2,html[data-theme="dark"] .v9-social-intro h3{color:#f1f9fa!important}
html[data-theme="dark"] .v9-profile-editor input{background:transparent}
/* Override the light design's explicit ink colours on dark surfaces. */
html[data-theme="dark"] #search-view .v2-hero-content > h1,
html[data-theme="dark"] #search-view .v2-hero-content > h1 span:first-child{color:#f0f8fc!important}
html[data-theme="dark"] #search-view .v2-hero-content > h1 span:last-child{background-image:linear-gradient(105deg,#63efd0,#80c7ff)!important}
html[data-theme="dark"] #search-view .v2-lead,
html[data-theme="dark"] #search-view :is(.v2-presets-label,.v2-proofline,#auth-status-text){color:#c5dbe6!important}
html[data-theme="dark"] :is(#brand-logo,#brand-logo-results){color:#e7faf7!important}
html[data-theme="dark"] #search-view .lang-switcher,
html[data-theme="dark"] #global-nav-actions :where(button,a){color:#ecf7fb!important}
html[data-theme="dark"] #search-view .lang-switcher option{background:#102a39;color:#ecf7fb}
html[data-theme="dark"] .v9-social-status{color:#cedfe6}
html[data-theme="dark"] .v9-social-status[data-error="true"]{color:#ffb4a3}
.v9-profile-editor > div{min-width:0;flex:1}
@media(max-width:640px){.v9-profile-editor{flex-wrap:wrap}.v9-profile-editor > div{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.v9-social-overlay{backdrop-filter:none}}

/* Optional traveler preferences are visually integrated below the route form. */
#search-view .v9-preferences {
 display:flex;gap:13px;align-items:center;justify-content:center;
 max-width:880px;margin:-7px auto 20px;padding:12px 16px;
 background:#f0f9f6;border:1px solid #d2e8df;border-radius:16px;
 flex-wrap:wrap;position:relative;z-index:45;
}
#search-view .v9-preferences>div {flex:1 1 205px;text-align:left}
#search-view .v9-preferences>div i {color:#087f78;margin-right:7px}
#search-view .v9-preferences strong {font-size:12px;color:#1b4b59}
#search-view .v9-preferences small {display:block;font-size:10px;color:#57727c;line-height:1.45;margin-top:4px}
#search-view .v9-preferences label {display:grid;gap:5px;flex:1 1 140px;text-align:left;font-size:10px;font-weight:800;color:#38616c}
#search-view .v9-preferences select {width:100%;background:#fff!important;color:#194350!important;border:1px solid #c9e0d8!important;border-radius:10px;padding:10px 11px;font-weight:750;font-size:12px}
#results-view .v9-personal-tip {background:#e5f5ed;color:#16564c;border:1px solid #bde0ce;border-radius:14px;padding:13px 16px;font-size:13px;font-weight:700;line-height:1.55}
#results-view .v9-personal-tip.hidden {display:none!important}
html[data-theme="dark"] #search-view .v9-preferences {background:#112e3c;border-color:#2e5962}
html[data-theme="dark"] #search-view .v9-preferences :is(strong,small,label) {color:#e1f7f6}
html[data-theme="dark"] #search-view .v9-preferences select {background:#0c2432!important;color:#f0fafa!important;border-color:#34636c!important}
html[data-theme="dark"] #results-view .v9-personal-tip {background:#134435;color:#e3faed;border-color:#2b755b}
@media(max-width:650px){
 #search-view .v9-preferences {align-items:stretch;justify-content:flex-start;gap:9px;margin-top:-4px}
 #search-view .v9-preferences>div {flex-basis:100%}
 #search-view .v9-preferences label {flex-basis:calc(50% - 6px)}
}
