*{box-sizing:border-box}
:root{
  --navy:#0b2740;--navy-2:#123a59;--navy-3:#1b4f72;--accent:#1d7899;--accent-soft:#e8f3f7;
  --bg:#f3f6f8;--surface:#fff;--surface-2:#f8fafb;--text:#172b3a;--muted:#677b89;
  --line:#dce4e9;--line-strong:#c8d3da;--success:#27764c;--success-bg:#eaf6ef;
  --warning:#8a6418;--warning-bg:#fff7df;--danger:#a23a46;--danger-bg:#fcebed;--purple:#66558e;--purple-bg:#f1edf8;
  --shadow:0 8px 24px rgba(20,45,63,.07);--shadow-lg:0 24px 70px rgba(7,31,49,.16);
}
html{color-scheme:light;background:var(--bg)}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:100vh}
.side{position:sticky;top:0;height:100vh;padding:24px 18px 18px;background:var(--navy);color:#fff;border-right:1px solid #0a2237;display:flex;flex-direction:column;z-index:20}
.side-head{position:relative}.brand{display:grid;gap:2px;padding:5px 10px 25px;border-bottom:1px solid rgba(255,255,255,.11);margin-bottom:18px;overflow:hidden}.brand img{display:block;width:100px!important;height:66px!important;max-width:100px!important;max-height:66px!important;object-fit:contain!important;object-position:left center;margin:0 0 8px!important}.brand span,.eyebrow{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800}.brand span{color:#8fc4d7}.brand strong{font-size:1.12rem;letter-spacing:.01em;color:#fff}.eyebrow{color:#638299;margin:0 0 5px}
.side nav{display:grid;gap:4px}.side nav a{display:flex;align-items:center;min-height:42px;padding:10px 13px;border-radius:6px;color:#c4d1da;font-weight:650;font-size:.86rem;transition:background .15s,color .15s}.side nav a:hover{background:rgba(255,255,255,.07);color:#fff}.side nav a.active{background:#fff;color:var(--navy);box-shadow:0 3px 10px rgba(0,0,0,.12)}
.userbox{margin-top:auto;padding:17px 10px 4px;border-top:1px solid rgba(255,255,255,.11);display:grid;gap:2px}.userbox small{color:#9fc8d8;font-size:.7rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.userbox strong{font-size:.86rem}.userbox span{color:#aabcc8;font-size:.73rem}.userbox form{margin:0}.userbox button{margin-top:12px;padding:0;border:0;background:transparent;color:#d4e0e7;font-size:.76rem;font-weight:700;cursor:pointer;text-align:left}.userbox button:hover{color:#fff}
.main{min-width:0;padding:28px clamp(22px,3.6vw,54px) 58px}.top{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:20px;margin-bottom:24px;border-bottom:1px solid var(--line)}.top-title{display:flex;align-items:flex-start;gap:14px;min-width:0}.top h1{margin:0;color:var(--navy);font-size:clamp(1.65rem,3vw,2.3rem);line-height:1.12;font-weight:650;letter-spacing:-.025em}.view{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:var(--navy);font-size:.78rem;font-weight:700;white-space:nowrap}.view:hover{border-color:#94a9b6;background:#f8fafb}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stats-3{grid-template-columns:repeat(3,minmax(0,1fr))}.stat,.card{border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:var(--shadow)}.stat{padding:19px 20px}.stat span{display:block;color:var(--muted);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.stat strong{display:block;margin-top:7px;color:var(--navy);font-size:1.9rem;font-weight:650;letter-spacing:-.03em}.card{padding:23px 24px;margin-bottom:18px}.card h2{margin:0 0 16px;color:var(--navy);font-size:1.12rem;font-weight:700}.card h3{color:var(--navy)}.card-copy,.quick p,.resource p,.hero-card p{color:var(--muted);line-height:1.6}
.hero-card{display:flex;align-items:center;justify-content:space-between;gap:28px;border-top:4px solid var(--navy);box-shadow:var(--shadow);background:#fff}.hero-card h2{font-size:1.55rem;margin:4px 0 7px}.hero-card p{max-width:720px;margin-bottom:0}.partner-code{min-width:165px;padding:14px 17px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);text-align:left}.partner-code span{display:block;color:var(--muted);font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.partner-code strong{display:block;margin-top:4px;color:var(--navy);font-size:1rem;letter-spacing:.03em}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quick{position:relative;min-height:150px;transition:transform .15s,box-shadow .15s,border-color .15s}.quick:hover{transform:translateY(-2px);border-color:#b8c8d2;box-shadow:0 12px 30px rgba(20,45,63,.1)}.quick h3{font-size:1rem;margin:13px 0 6px}.quick p{margin:0}.quick-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:1.05rem;font-weight:700}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.section-head>a{color:var(--accent);font-weight:750;font-size:.77rem}.section-head>a:hover{text-decoration:underline}
.form{display:grid;gap:15px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form label{display:grid;gap:6px;color:#31495a;font-weight:700;font-size:.78rem}.form input,.form select,.form textarea{width:100%;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s}.form input,.form select{height:43px;padding:9px 11px}.form textarea{padding:10px 11px;resize:vertical;min-height:94px}.form input::placeholder,.form textarea::placeholder{color:#9aa8b2}.form input:focus,.form select:focus,.form textarea:focus{border-color:#5a94ac;box-shadow:0 0 0 3px rgba(29,120,153,.11)}.form select option,.form select optgroup{background:#fff!important;color:#172b3a!important}.form select option:checked{background:#e9f2f6!important;color:#172b3a!important}.form.compact{min-width:210px;gap:7px}
.btn{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-height:40px;border:1px solid var(--navy);border-radius:6px;padding:9px 15px;color:#fff;background:var(--navy);font-weight:750;font-size:.8rem;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.btn:hover{background:var(--navy-2);border-color:var(--navy-2);box-shadow:0 4px 12px rgba(11,39,64,.14)}.btn.secondary{background:#fff;color:var(--navy);border-color:var(--line-strong)}.btn.secondary:hover{background:#f4f7f8;border-color:#a9bbc6}.btn.danger{background:#fff;color:var(--danger);border-color:#dfb8be}.btn.danger:hover{background:var(--danger-bg);border-color:#d49ba4}.btn.small{min-height:33px;padding:6px 10px;font-size:.72rem}.btn.disabled,.btn[aria-disabled="true"]{background:#f2f5f7!important;color:#9aa9b2!important;border-color:#d9e1e6!important;box-shadow:none!important;cursor:not-allowed;pointer-events:none}.actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.alert{margin-bottom:18px;padding:12px 14px;border:1px solid var(--line);border-left-width:4px;border-radius:6px;background:#fff;color:#405665}.alert.success{border-left-color:var(--success);background:var(--success-bg);color:#245d3f}.alert.error{border-left-color:var(--danger);background:var(--danger-bg);color:#7f313b}.note{font-size:.72rem;color:var(--muted);line-height:1.55}
.wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:760px}.table th,.table td{padding:12px 11px;border-bottom:1px solid #e7ecef;text-align:left;vertical-align:middle}.table th{background:#f7f9fa;color:#647885;font-size:.66rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.table tbody tr:hover{background:#fafcfd}.table td{color:#344b5b}.table strong{color:#1d3545}.table small{color:#7a8d99}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#eef2f4;color:#526775;font-size:.68rem;font-weight:800;text-transform:capitalize}.badge.approved,.badge.completed,.badge.booked,.badge.active{background:var(--success-bg);color:var(--success)}.badge.declined,.badge.cancelled,.badge.lost,.badge.closed,.badge.paused,.badge.expired{background:var(--danger-bg);color:var(--danger)}.badge.pending,.badge.processing,.badge.quoted{background:var(--warning-bg);color:var(--warning)}.badge.new,.badge.contacted,.badge.technical_error,.badge.tokenization_error{background:var(--accent-soft);color:#256d89}.badge.prospect{background:var(--purple-bg);color:var(--purple)}
.tour{display:grid;grid-template-columns:minmax(180px,2fr) 90px 120px 120px 145px 145px 75px 110px 75px auto;gap:9px;align-items:end;margin-bottom:10px}.check{display:flex!important;align-items:center;gap:8px;height:43px}.check input{width:auto!important;height:auto!important}.payment-events-table pre{max-width:480px;max-height:230px;overflow:auto;white-space:pre-wrap;color:#344b5b;background:#f5f7f8;padding:10px;border-radius:6px;border:1px solid var(--line)}.payment-events-table details summary{cursor:pointer;color:var(--accent);font-weight:700}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.resource{display:flex;flex-direction:column;min-height:220px}.resource p{flex:1}.resource-top,.resource-actions{display:flex;align-items:center;justify-content:space-between;gap:9px}.resource-actions{justify-content:flex-start;flex-wrap:wrap}.resource-type,.language{font-size:.64rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--accent)}.language{color:#6d6087}.profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px}.profile-summary dl{display:grid;grid-template-columns:120px 1fr;gap:12px 16px}.profile-summary dt{color:var(--muted);font-size:.74rem}.profile-summary dd{margin:0;font-weight:700;color:#294254}.partner-list{display:grid;gap:14px}.partner-card{box-shadow:none}.partner-card h2{margin:9px 0 4px}.partner-meta{color:var(--muted);margin:0}.partner-numbers{display:flex;gap:8px;flex-wrap:wrap}.partner-numbers span{padding:6px 9px;border-radius:999px;background:#f0f4f6;color:#5e7280;font-size:.7rem}.partner-card details{margin-top:14px}.partner-card summary{cursor:pointer;color:var(--accent);font-weight:750;font-size:.8rem}.edit-panel{margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}hr{border:0;border-top:1px solid var(--line);margin:8px 0}code{color:#245e77;background:#edf4f6;padding:2px 5px;border-radius:4px}
.menu-toggle,.menu-close,.menu-backdrop{display:none}

/* Login: premium travel-trade extranet */
.login{min-height:100vh;background:linear-gradient(110deg,var(--navy) 0%,#103651 53%,#eef3f6 53%,#f6f8fa 100%)}.login-shell{width:min(1140px,calc(100% - 44px));min-height:100vh;margin:auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(370px,430px);gap:85px;align-items:center}.login-intro{padding:58px 0;color:#fff}.login-logo{width:132px!important;height:88px!important;max-width:132px!important;max-height:88px!important;object-fit:contain!important;display:block;margin:0 0 26px!important}.login-intro .eyebrow{color:#9ec6d6}.login-intro h1{max-width:620px;margin:9px 0 20px;color:#fff;font-size:clamp(2.5rem,4.6vw,4.6rem);line-height:1.02;font-weight:550;letter-spacing:-.04em}.login-intro>p:not(.eyebrow){max-width:620px;color:#c8d8e2;font-size:1rem;line-height:1.7}.login-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}.login-points span{border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 11px;color:#d7e4eb;background:rgba(255,255,255,.045);font-size:.72rem}.login-card{width:100%;padding:34px 34px 31px;border:1px solid #d6e0e6;border-radius:10px;background:#fff;color:var(--text);box-shadow:var(--shadow-lg)}.login-card .eyebrow{color:#668296}.login-card h2{margin:6px 0 7px;color:var(--navy);font-size:1.75rem;font-weight:650}.login-card>p:not(.eyebrow):not(.note){color:var(--muted);line-height:1.55;margin-top:0;margin-bottom:22px}.login-card .btn{width:100%;margin-top:3px}.login-card .note{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}

@media(max-width:980px){
  .app{display:block}.side{position:fixed;z-index:1002;left:0;top:0;bottom:0;width:min(310px,88vw);height:100dvh;padding:18px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:20px 0 55px rgba(0,0,0,.28);overflow-y:auto}.side nav{grid-template-columns:1fr!important;display:grid;gap:4px}.side nav a{width:100%}.side-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.menu-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:rgba(255,255,255,.06);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}.menu-toggle{display:grid;flex:0 0 40px;width:40px;height:40px;place-content:center;gap:4px;border:1px solid var(--line-strong);border-radius:6px;background:#fff;cursor:pointer}.menu-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:var(--navy)}.menu-backdrop{position:fixed;z-index:1001;inset:0;background:rgba(5,20,32,.5);backdrop-filter:blur(2px)}body.menu-open{overflow:hidden}body.menu-open .side{transform:translateX(0)}body.menu-open .menu-backdrop{display:block}.main{width:100%;padding:22px clamp(14px,3vw,30px) 45px}.userbox{margin-top:28px}.stats{grid-template-columns:repeat(2,1fr)}.quick-grid,.resource-grid{grid-template-columns:1fr 1fr}.profile-grid{grid-template-columns:1fr}
  .login{background:linear-gradient(180deg,var(--navy) 0%,#103651 48%,#eef3f6 48%,#f6f8fa 100%)}.login-shell{grid-template-columns:1fr;gap:22px;padding:40px 0 54px;align-content:center}.login-intro{padding:0 6px 18px}.login-intro h1{font-size:clamp(2.2rem,7vw,3.7rem);max-width:700px}.login-card{max-width:560px;justify-self:center}
}
@media(max-width:650px){
  .main{padding:17px 12px 36px}.top{align-items:flex-start;gap:12px}.top h1{font-size:1.65rem}.view{display:none}.stats,.stats-3,.grid,.quick-grid,.resource-grid{grid-template-columns:1fr}.card{padding:18px 16px}.hero-card{align-items:flex-start;flex-direction:column}.partner-code{width:100%}.tour{grid-template-columns:1fr 1fr}.tour>*:first-child{grid-column:1/-1}.profile-summary dl{grid-template-columns:1fr;gap:3px}.profile-summary dd{margin-bottom:10px}.section-head{flex-direction:column}.partner-numbers{margin-top:8px}.login-shell{width:min(100% - 26px,560px);padding:25px 0 36px}.login-intro{padding:0 2px 8px}.login-logo{width:112px!important;height:75px!important;max-width:112px!important;max-height:75px!important;margin-bottom:14px!important}.login-intro h1{font-size:clamp(2rem,10vw,2.9rem);margin:7px 0 14px}.login-intro>p:not(.eyebrow){font-size:.92rem}.login-points{margin-top:17px}.login-card{padding:25px 21px}.brand img{width:96px!important;height:64px!important;max-width:96px!important;max-height:64px!important}
}

/* v5 multilingual portal + login text safety */
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.language-switcher{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line-strong);border-radius:7px;background:#fff}.language-switcher a{padding:6px 8px;border-radius:5px;color:#637986;font-size:.69rem;font-weight:750;line-height:1;transition:background .15s,color .15s}.language-switcher a:hover{background:#f0f4f6;color:var(--navy)}.language-switcher a.active{background:var(--navy);color:#fff}.login-language{position:fixed;z-index:4;top:24px;right:28px}.login-switcher{box-shadow:0 5px 18px rgba(7,31,49,.08)}
.login{position:relative;overflow-x:hidden;background:#f3f6f8}.login::before{content:"";position:fixed;z-index:0;inset:0 auto 0 0;width:57%;background:linear-gradient(135deg,var(--navy) 0%,#103651 100%)}.login-shell{position:relative;z-index:1;grid-template-columns:minmax(0,1fr) minmax(370px,430px);gap:72px}.login-intro{min-width:0;max-width:600px;padding-right:34px;overflow:visible}.login-intro h1,.login-intro>p:not(.eyebrow){max-width:540px;overflow-wrap:anywhere}.login-card{min-width:0}
@media(max-width:980px){.top-actions{gap:7px}.login::before{inset:0 0 auto 0;width:100%;height:51%;}.login-language{top:15px;right:16px}.login-intro{max-width:none;padding-right:8px}.login-intro h1,.login-intro>p:not(.eyebrow){max-width:700px}}
@media(max-width:650px){.top-actions .language-switcher{display:none}.login-language{position:absolute;top:12px;right:13px}.login-switcher a{padding:5px 6px;font-size:.63rem}.login-shell{padding-top:62px}.login::before{height:53%}}
.side-language{display:none}
@media(max-width:980px){.side-language{display:inline-flex;margin:18px 10px 0;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16)}.side-language a{color:#c9d8e1}.side-language a:hover{background:rgba(255,255,255,.08);color:#fff}.side-language a.active{background:#fff;color:var(--navy)}}
.inline-details{position:relative}.inline-details>summary{list-style:none}.inline-details>summary::-webkit-details-marker{display:none}.inline-details[open]{width:100%;flex-basis:100%}.edit-user-form{margin-top:10px;padding:14px;border:1px solid var(--line);border-radius:7px;background:#f9fbfc;min-width:min(620px,78vw)}.partner-delete-form{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}

/* Unified create/edit user form */
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:8px}.section-heading h2{margin-top:0}.form label small{display:block;margin-top:6px;color:var(--muted);font-weight:500;line-height:1.45}@media(max-width:650px){.section-heading{flex-direction:column;align-items:stretch}.section-heading .btn{align-self:flex-start}}

/* Asynchronous tour management */
.tour{position:relative}
.tour-status{grid-column:1/-1;min-height:0;font-size:.82rem;font-weight:700;color:#557080;margin-top:-3px}
.tour-status:empty{display:none}
.tour-status.success{color:#167454}
.tour-status.error{color:#b53838}
.tour.is-saving{opacity:.68}
.tour.is-saving button{cursor:wait}
.tour-saved-flash{animation:tourSavedFlash .9s ease}
@keyframes tourSavedFlash{0%{box-shadow:0 0 0 2px rgba(25,153,126,.32)}100%{box-shadow:0 0 0 0 rgba(25,153,126,0)}}

.tour-price-state{grid-column:1/-1;font-size:.8rem;color:#607787;margin-top:-2px}.tour-price-state.active{color:#167454;font-weight:700}.special-price-field input:not(:placeholder-shown){font-weight:700}
/* Operations booking calendar */
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}.calendar-toolbar h2{margin:2px 0 0}.calendar-card{padding:14px}.ops-calendar{display:grid;grid-template-columns:repeat(7,minmax(105px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:8px;overflow:hidden}.dow{padding:9px 10px;background:#eef3f6;color:#667b89;font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.ops-day{min-height:105px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:5px}.ops-day:hover{background:#f5f9fb}.ops-day.outside{background:#f7f9fa;color:#8c9aa3}.ops-day.selected{box-shadow:inset 0 0 0 2px var(--accent);position:relative;z-index:1}.ops-day.blocked{background:#fcebed;color:#8b3440}.ops-day.special{background:#fff7df;color:#74591d}.ops-day-num{font-size:1rem;font-weight:800;color:var(--navy)}.ops-day strong{font-size:.72rem}.ops-day small{margin-top:auto;color:var(--muted);font-size:.69rem}.ops-day.has-bookings{background:#eef9fb;box-shadow:inset 0 0 0 1px rgba(0,157,181,.28)}.ops-day.has-bookings:hover{background:#e4f5f8}.ops-day.has-bookings.blocked{background:#fcebed}.ops-day.has-bookings.special{background:#fff7df}.calendar-booking-count{margin-top:auto;display:flex;align-items:center;gap:6px;color:var(--navy);font-size:.78rem;line-height:1.1}.calendar-booking-count strong{font-size:.78rem;font-weight:900}.calendar-booking-icon{font-size:1rem;line-height:1;filter:saturate(.9)}.day-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.65fr);gap:18px}.booking-entry{border:1px solid var(--line);border-radius:8px;margin-bottom:10px;background:#fff}.booking-entry>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 15px;cursor:pointer;list-style:none}.booking-entry>summary::-webkit-details-marker{display:none}.booking-entry>summary span:first-child{display:grid;gap:3px}.booking-entry>summary small{color:var(--muted)}.booking-entry[open]>summary{border-bottom:1px solid var(--line);background:#f8fafb}.booking-edit{padding:16px}.delete-row{padding:0 16px 16px}.booking-entry.legacy{border-left:4px solid #9aaab4}#specialPriceFields{display:grid;gap:12px;padding:13px;border:1px solid var(--line);border-radius:7px;background:#f8fafb}#specialPriceFields[hidden]{display:none}
@media(max-width:1100px){.ops-calendar{grid-template-columns:repeat(7,minmax(85px,1fr));}.day-grid{grid-template-columns:1fr}.ops-day{min-height:90px}}
@media(max-width:760px){.calendar-toolbar{align-items:flex-start;flex-direction:column}.calendar-card{overflow:auto}.ops-calendar{min-width:720px}.booking-entry>summary{align-items:flex-start}.booking-edit .grid{grid-template-columns:1fr}}

.special-day-customer-fields{display:grid;gap:12px;padding:13px;border:1px solid #d8e4e9;border-radius:7px;background:#fffdf5}.special-day-customer-fields>.check{margin-top:0}.special-day-customer-fields input[type=checkbox]{width:auto;height:auto}


/* Payment Issues: keep the newest attempts visible and make long lists scrollable */
.payment-events-note{margin:-4px 0 13px;color:var(--muted);font-size:.76rem}
.payment-events-wrap{max-height:68vh;overflow:auto;border:1px solid var(--line);border-radius:7px;scrollbar-gutter:stable}
.payment-events-wrap .payment-events-table{margin:0}
.payment-events-wrap .payment-events-table thead th{position:sticky;top:0;z-index:3;background:#f7f9fa;box-shadow:0 1px 0 var(--line)}
.payment-events-wrap:focus{outline:2px solid rgba(29,120,153,.28);outline-offset:2px}
@media(max-width:760px){.payment-events-wrap{max-height:72vh}}

/* Agency logo upload */
.agency-logo-upload{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:16px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:8px;background:#f8fafb}.agency-logo-preview{height:118px;display:grid;place-items:center;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff}.agency-logo-preview img{display:block;max-width:100%;max-height:94px;width:auto;height:auto;object-fit:contain}.agency-logo-remove{grid-column:2;margin-top:-5px;justify-self:start}.agency-logo-upload input[type=file]{max-width:100%}@media(max-width:650px){.agency-logo-upload{grid-template-columns:1fr}.agency-logo-preview{height:104px}.agency-logo-remove{grid-column:1}}

/* Header action consistency */
.top-logout-form{margin:0;display:flex;align-items:center}.top-logout-form .top-logout{white-space:nowrap}
.trade-models{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.trade-model{border:1px solid rgba(110,185,211,.25);background:rgba(10,46,73,.55);border-radius:14px;padding:18px}.trade-model strong{display:block;font-size:16px;margin-bottom:6px;color:#000}.trade-model p{color:#17232d;line-height:1.55;margin:0 0 12px}.policy-box{margin-top:22px;border-left:3px solid #25d9e6;background:rgba(37,217,230,.07);padding:16px 18px;border-radius:10px}.policy-box strong{color:#000}.policy-box p{margin:6px 0 0;color:var(--text);line-height:1.6}@media(max-width:760px){.trade-models{grid-template-columns:1fr}}

/* Sidebar identity beside the Boat Happens logo */
.side-head{position:relative;padding:2px 7px 16px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:18px}
.brand-account{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;column-gap:12px;min-width:0}
.brand-logo{display:flex;align-items:center;justify-content:flex-start;align-self:stretch}
.brand-logo img{display:block;width:88px!important;height:62px!important;max-width:88px!important;max-height:62px!important;object-fit:contain!important;object-position:left center;margin:0!important}
.brand-user{min-width:0;border-left:1px solid rgba(255,255,255,.15);padding-left:12px}
.brand-user-row{min-width:0;padding:6px 0 7px;border-bottom:1px solid rgba(255,255,255,.1);line-height:1.18}
.brand-user-row:last-child{border-bottom:0;padding-bottom:4px}
.brand-user-row small{display:block;margin-bottom:2px;color:#8fc4d7;font-size:.57rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.brand-user-row strong,.brand-user-row span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-user-row strong{color:#fff;font-size:.76rem;font-weight:750}
.brand-user-row span{color:#b7c7d1;font-size:.66rem;font-weight:500}
.brand-user-name{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;column-gap:7px;padding-top:4px}
.brand-user-name>div{min-width:0}
.brand-user-icon{display:grid!important;place-items:center;width:20px;height:20px;overflow:visible!important;color:#a8d3e0}
.brand-user-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.brand-title{display:grid;gap:1px;margin-top:10px;width:max-content;max-width:100%}
.brand-title span{color:#8fc4d7;font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800}
.brand-title strong{color:#fff;font-size:1rem;letter-spacing:.01em}
.userbox{display:none!important}
.alert.warning{border-left-color:var(--warning);background:var(--warning-bg);color:#725317}
.security-signout-warning{font-weight:650}
@media(max-width:980px){
  .side-head{display:block;padding-right:45px}
  .menu-close{position:absolute;right:0;top:2px}
}
@media(max-width:650px){
  .brand-account{grid-template-columns:82px minmax(0,1fr);column-gap:10px}
  .brand-logo img{width:82px!important;height:58px!important;max-width:82px!important;max-height:58px!important}
  .brand-user{padding-left:10px}.brand-user-row{padding:5px 0 6px}.brand-user-row small{font-size:.54rem}.brand-user-row strong{font-size:.72rem}.brand-user-row span{font-size:.63rem}
}

/* Admin security settings */
.settings-grid{display:grid;grid-template-columns:minmax(240px,420px);gap:18px;margin-top:8px}.settings-grid label{display:grid;gap:8px;font-weight:700}.settings-grid label small{font-weight:400;color:var(--muted,#6c7a89);line-height:1.45}.admin-setting-notice{margin:22px 0 0}.subtle-card{margin-top:18px}.subtle-card h2{margin-top:4px}.subtle-card p:last-child{max-width:860px;line-height:1.65}

/* Trade booking form refinements */
.trade-models.single-model{grid-template-columns:minmax(0,720px)}
.fixed-field{min-height:43px;display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto;column-gap:8px;align-items:center;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:#f5f8fa;color:var(--navy)}
.fixed-field-icon{grid-row:1;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(0,157,181,.12);color:#0b7d90;font-weight:900}
.fixed-field strong{font-size:.88rem;line-height:1.2}.fixed-field small{margin:1px 0 0!important;font-size:.68rem;font-weight:500!important;color:var(--muted)}
.trade-date-time-grid{align-items:start}.trade-time-field{display:grid;gap:7px}.form-label{font-weight:700;font-size:.86rem;color:var(--text)}
.trade-time-picker{min-height:43px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px;border:1px solid var(--line);border-radius:7px;background:#f8fafb}
.trade-time-picker.has-times{background:#fff}.trade-time-hint{margin:0;padding:2px 5px;color:var(--muted);font-size:.76rem;line-height:1.35}
.trade-time-picker.is-error{border-color:#d9a2a2;background:#fff7f7}.trade-time-picker.is-error .trade-time-hint{color:#9b3434}.trade-time-picker.is-empty{background:#fbfcfd}
.trade-time-option{appearance:none;border:1px solid #bfd1da;background:#fff;color:var(--navy);border-radius:7px;padding:9px 13px;min-width:84px;font:inherit;font-size:.8rem;font-weight:800;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease}
.trade-time-option:hover{border-color:#2a9fba;background:#f1fbfd;transform:translateY(-1px)}.trade-time-option.selected{border-color:#079bb5;background:#e5f8fb;box-shadow:0 0 0 2px rgba(7,155,181,.14)}
.trade-contact-grid{align-items:start}.trade-contact-grid>label{display:grid;grid-template-rows:auto 43px auto;align-items:start}.trade-contact-grid>label>input{height:43px}
.trade-phone-input-row{height:43px;display:grid;grid-template-columns:minmax(145px,.9fr) minmax(150px,1.1fr);gap:7px}.trade-phone-input-row select,.trade-phone-input-row input{height:43px;min-width:0}
.booking-guests-row{align-items:end}.guest-options{min-height:43px;align-items:center;margin:0}.guest-options .check{margin:0}
@media(max-width:760px){.trade-contact-grid>label{grid-template-rows:auto auto auto}.trade-phone-input-row{height:auto;grid-template-columns:1fr}.trade-phone-input-row select,.trade-phone-input-row input{height:43px}.trade-time-option{min-width:78px;flex:1 1 78px}}


/* 2026-09-10: grouped admin navigation */
.side nav{gap:6px}
.side nav>.nav-primary{margin-bottom:2px}
.nav-group{border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(255,255,255,.025);overflow:hidden}
.nav-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px 12px;list-style:none;color:#d7e2e8;font-size:.78rem;font-weight:800;letter-spacing:.035em;cursor:pointer;user-select:none;transition:background .15s,color .15s}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-group>summary:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-group[open]>summary{color:#fff;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045)}
.nav-chevron{position:relative;display:block;width:8px;height:8px;flex:0 0 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}
.nav-group[open] .nav-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.nav-group-links{display:grid;gap:3px;padding:5px}
.side nav .nav-group-links a{min-height:37px;padding:8px 10px 8px 16px;border-radius:6px;font-size:.8rem;font-weight:620;color:#b8c8d2}
.side nav .nav-group-links a::before{content:"";width:4px;height:4px;margin-right:8px;border-radius:50%;background:#6f92a6;flex:0 0 4px}
.side nav .nav-group-links a:hover{background:rgba(255,255,255,.065);color:#fff}
.side nav .nav-group-links a.active{background:#fff;color:var(--navy)}
.side nav .nav-group-links a.active::before{background:var(--accent)}
@media(max-width:980px){
  .side nav{gap:7px}
  .nav-group>summary{min-height:45px;padding:11px 13px;font-size:.82rem}
  .side nav .nav-group-links a{min-height:42px;padding:10px 11px 10px 17px;font-size:.84rem}
}

/* 2026-09-10: keep every tour and its actions inside one aligned rounded frame */
#tour-list{display:grid;gap:12px;margin-bottom:14px}
.tour{grid-template-columns:minmax(180px,1.5fr) repeat(4,minmax(100px,1fr));gap:10px;align-items:end;margin:0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}
.tour>.actions{align-self:end;display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:0}
.tour>.actions .btn{width:100%;white-space:nowrap}
.tour-status,.tour-price-state{grid-column:1/-1}
.js-new-tour-form.tour{margin-top:4px;border-style:dashed;background:#fff}
.js-new-tour-form.tour>.btn{align-self:end;width:100%}
@media(max-width:1100px){
  .tour{grid-template-columns:repeat(3,minmax(0,1fr));padding:13px}
  .tour>.actions{grid-column:auto;justify-self:stretch}
  .js-new-tour-form.tour>.btn{width:100%}
}
@media(max-width:900px){
  .tour{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tour>.actions{grid-column:1/-1;justify-self:stretch}
  .tour>.actions .btn{width:100%}
  .js-new-tour-form.tour>.btn{grid-column:1/-1;width:100%}
}
@media(max-width:520px){
  .tour{grid-template-columns:1fr;padding:12px;gap:11px}
  .tour>*{grid-column:1!important}
  .tour>.actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .tour>.actions .btn{width:100%}
  .tour .check{height:auto;min-height:38px}
}

/* 2026-09-10: tour CMS status and builder */
.tour-card-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;margin-bottom:1px;border-bottom:1px solid var(--line)}
.tour-card-heading strong{min-width:0;color:var(--navy);font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tour-state{display:inline-flex;align-items:center;justify-content:center;min-width:70px;padding:5px 9px;border-radius:999px;font-size:.67rem;font-weight:850;letter-spacing:.035em;text-transform:uppercase;border:1px solid transparent}
.tour-state.active{background:#e7f7ef;color:#167454;border-color:#bfe8d3}.tour-state.inactive{background:#f1f4f6;color:#667985;border-color:#dbe3e7}.tour-state.draft{background:#eef8fb;color:#147a91;border-color:#cce8ef}
.tour-cms-note{max-width:900px;margin:5px 0 2px;line-height:1.55}
.new-tour-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:22px 0 10px;padding-top:18px;border-top:1px solid var(--line)}
.new-tour-heading h3{margin:2px 0 0;font-size:1.05rem;color:var(--navy)}
.new-tour-heading .eyebrow{font-size:.63rem}
@media(max-width:520px){.tour-card-heading{align-items:flex-start}.tour-card-heading strong{white-space:normal}.new-tour-heading{align-items:center}}

/* 2026-09-10: polished Tour CMS editor alignment after Website order field */
#tour-list{gap:14px}
#tour-list .tour{grid-template-columns:minmax(210px,1.65fr) 88px minmax(112px,.85fr) minmax(112px,.85fr) minmax(132px,.95fr) minmax(132px,.95fr) 104px;column-gap:10px;row-gap:12px;align-items:end;padding:15px 16px 14px;background:#fff}
#tour-list .tour-card-heading{grid-column:1/-1;margin:0;padding:0 0 11px;border-bottom:1px solid var(--line)}
#tour-list .tour-card-heading strong{font-size:.9rem}
#tour-list .tour>label{min-width:0;margin:0}
#tour-list .tour>label.check{height:38px;min-height:38px;align-self:center;margin:1px 0 0;padding:0 4px;font-size:.76rem;white-space:nowrap}
#tour-list .tour>label.check:nth-of-type(8){grid-column:1}
#tour-list .tour>label.check:nth-of-type(9){grid-column:2}
#tour-list .tour>.actions{grid-column:3 / span 2;align-self:center;justify-self:start;display:flex;gap:7px;width:auto;margin-top:1px}
#tour-list .tour>.actions .btn{width:auto;min-width:76px}
#tour-list .tour-price-state,#tour-list .tour-status{grid-column:1/-1;margin-top:0}
#tour-list .tour-price-state{padding-top:1px}
#tour-list .field-hint{display:block;margin-top:2px;color:var(--muted);font-size:.61rem;font-weight:500;line-height:1.25;white-space:normal}

/* New-tour builder keeps the same visual rhythm without forcing controls into odd cells. */
.js-new-tour-form.tour{grid-template-columns:minmax(210px,1.65fr) 88px minmax(112px,.85fr) minmax(112px,.85fr) minmax(132px,.95fr) minmax(132px,.95fr) 104px;column-gap:10px;row-gap:12px;align-items:end;padding:15px 16px;background:#fff}
.js-new-tour-form.tour>label{min-width:0;margin:0}
.js-new-tour-form.tour>label.check{height:38px;min-height:38px;align-self:center;margin:1px 0 0;padding:0 4px;font-size:.76rem;white-space:nowrap}
.js-new-tour-form.tour>label.check:nth-of-type(8){grid-column:1}
.js-new-tour-form.tour>label.check:nth-of-type(9){grid-column:2}
.js-new-tour-form.tour>.btn{grid-column:3;align-self:center;justify-self:start;width:auto;min-width:92px;margin-top:1px}
.js-new-tour-form.tour>.tour-status{grid-column:1/-1}

@media(max-width:1280px){
  #tour-list .tour,.js-new-tour-form.tour{grid-template-columns:minmax(190px,1.5fr) 82px repeat(2,minmax(105px,.9fr)) repeat(2,minmax(122px,1fr));}
  #tour-list .tour>label:nth-of-type(7),.js-new-tour-form.tour>label:nth-of-type(7){grid-column:1}
  #tour-list .tour>label.check:nth-of-type(8),.js-new-tour-form.tour>label.check:nth-of-type(8){grid-column:2}
  #tour-list .tour>label.check:nth-of-type(9),.js-new-tour-form.tour>label.check:nth-of-type(9){grid-column:3}
  #tour-list .tour>.actions{grid-column:4 / span 2}
  .js-new-tour-form.tour>.btn{grid-column:4}
}
@media(max-width:980px){
  #tour-list .tour,.js-new-tour-form.tour{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px;padding:14px}
  #tour-list .tour-card-heading{grid-column:1/-1}
  #tour-list .tour>label:nth-of-type(7),.js-new-tour-form.tour>label:nth-of-type(7){grid-column:auto}
  #tour-list .tour>label.check:nth-of-type(8),.js-new-tour-form.tour>label.check:nth-of-type(8){grid-column:1}
  #tour-list .tour>label.check:nth-of-type(9),.js-new-tour-form.tour>label.check:nth-of-type(9){grid-column:2}
  #tour-list .tour>.actions{grid-column:1/-1;justify-self:start}
  .js-new-tour-form.tour>.btn{grid-column:1;justify-self:start}
}
@media(max-width:560px){
  #tour-list .tour,.js-new-tour-form.tour{grid-template-columns:1fr;padding:13px;gap:10px}
  #tour-list .tour>* ,.js-new-tour-form.tour>*{grid-column:1!important}
  #tour-list .tour-card-heading{padding-bottom:10px}
  #tour-list .tour>label.check,.js-new-tour-form.tour>label.check{height:auto;min-height:34px;padding:0}
  #tour-list .tour>.actions{display:grid;grid-template-columns:1fr 1fr;width:100%;justify-self:stretch;margin-top:2px}
  #tour-list .tour>.actions .btn{width:100%}
  .js-new-tour-form.tour>.btn{width:100%;justify-self:stretch}
}


/* 2026-09-10: builder directly below Tour section intro */
.new-tour-heading{margin:14px 0 10px;padding-top:0;border-top:0}
.js-new-tour-form.tour{margin-bottom:26px}
#tour-list{padding-top:20px;border-top:1px solid var(--line)}
@media(max-width:560px){.new-tour-heading{margin-top:12px}.js-new-tour-form.tour{margin-bottom:22px}#tour-list{padding-top:17px}}


/* 2026-09-10: restore soft gray tour rows + Tour CMS content stage 2 */
#tour-list .tour{background:var(--surface-2)}
#tour-list{margin-top:8px}
.tour-content-editor{grid-column:1/-1;margin-top:3px;padding:13px 14px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.tour-content-editor-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.tour-content-editor-head>div{display:grid;gap:2px}.tour-content-editor-head strong{font-size:.88rem;color:var(--navy)}
.tour-badge-select{width:min(220px,100%);margin:0!important}.tour-badge-select select{height:38px}
.tour-language-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tour-language-panel{min-width:0;padding:12px;border:1px solid #e3e8eb;border-radius:7px;background:#fafbfc}
.tour-language-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:var(--navy);font-size:.77rem;font-weight:800}
.tour-language-title span{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:22px;padding:0 7px;border-radius:999px;background:#edf3f6;color:#617987;font-size:.62rem;letter-spacing:.05em}
.tour-language-panel label{display:block;margin:0 0 9px}.tour-language-panel label:last-child{margin-bottom:0}
.tour-language-panel textarea{width:100%;min-height:92px;resize:vertical}
.js-new-tour-form .tour-content-editor{background:#fbfcfd}
@media(max-width:760px){.tour-content-editor-head{align-items:stretch;flex-direction:column}.tour-badge-select{width:100%}.tour-language-grid{grid-template-columns:1fr}}

/* 2026-09-10: Tour CMS card layout cleanup — keep operational controls compact,
   content editor secondary, and restore the soft gray existing-tour rows. */
#tour-list{
  margin-top:22px;
  padding-top:0;
  border-top:0;
  gap:14px;
}
#tour-list .tour{
  background:#f5f7f8;
  border-color:#dce3e7;
  box-shadow:none;
}
.js-new-tour-form.tour{
  margin:0 0 26px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  border-style:solid;
}

/* Desktop: first row = the seven core fields. Second row = switches/actions. */
#tour-list .tour,
.js-new-tour-form.tour{
  grid-template-columns:minmax(205px,1.55fr) 86px minmax(108px,.85fr) minmax(108px,.85fr) minmax(125px,.95fr) minmax(125px,.95fr) 105px;
  column-gap:10px;
  row-gap:11px;
  align-items:end;
}
#tour-list .tour>label,
.js-new-tour-form.tour>label{min-width:0;margin:0}
#tour-list .tour>label.check,
.js-new-tour-form.tour>label.check{
  height:38px;
  min-height:38px;
  align-self:center;
  display:flex!important;
  align-items:center;
  gap:8px;
  margin:0;
  padding:0 4px;
  font-size:.77rem;
  white-space:nowrap;
}
#tour-list .tour>label.check:nth-of-type(8),
.js-new-tour-form.tour>label.check:nth-of-type(8){grid-column:1}
#tour-list .tour>label.check:nth-of-type(9),
.js-new-tour-form.tour>label.check:nth-of-type(9){grid-column:2}
#tour-list .tour>.actions{
  grid-column:3 / span 2;
  align-self:center;
  justify-self:start;
  display:flex;
  gap:8px;
  width:auto;
  margin:0;
}
#tour-list .tour>.actions .btn{width:auto;min-width:80px}
.js-new-tour-form.tour>.btn{
  grid-column:3;
  align-self:center;
  justify-self:start;
  width:auto;
  min-width:96px;
  margin:0;
}

/* Website-content editor always starts cleanly underneath the tour controls. */
#tour-list .tour>.tour-content-editor,
.js-new-tour-form.tour>.tour-content-editor{
  grid-column:1/-1;
  margin-top:2px;
}
#tour-list .tour>.tour-price-state,
#tour-list .tour>.tour-status,
.js-new-tour-form.tour>.tour-status{grid-column:1/-1}

@media(max-width:1280px){
  #tour-list .tour,.js-new-tour-form.tour{
    grid-template-columns:minmax(185px,1.45fr) 82px repeat(2,minmax(102px,.9fr)) repeat(2,minmax(118px,1fr));
  }
  #tour-list .tour>label:nth-of-type(7),.js-new-tour-form.tour>label:nth-of-type(7){grid-column:1}
  #tour-list .tour>label.check:nth-of-type(8),.js-new-tour-form.tour>label.check:nth-of-type(8){grid-column:2}
  #tour-list .tour>label.check:nth-of-type(9),.js-new-tour-form.tour>label.check:nth-of-type(9){grid-column:3}
  #tour-list .tour>.actions{grid-column:4 / span 2}
  .js-new-tour-form.tour>.btn{grid-column:4}
}
@media(max-width:980px){
  #tour-list{margin-top:18px}
  #tour-list .tour,.js-new-tour-form.tour{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px;padding:14px}
  #tour-list .tour>label:nth-of-type(7),.js-new-tour-form.tour>label:nth-of-type(7){grid-column:auto}
  #tour-list .tour>label.check:nth-of-type(8),.js-new-tour-form.tour>label.check:nth-of-type(8){grid-column:1}
  #tour-list .tour>label.check:nth-of-type(9),.js-new-tour-form.tour>label.check:nth-of-type(9){grid-column:2}
  #tour-list .tour>.actions{grid-column:1/-1;justify-self:start}
  .js-new-tour-form.tour>.btn{grid-column:1;justify-self:start}
}
@media(max-width:560px){
  #tour-list{margin-top:16px}
  #tour-list .tour,.js-new-tour-form.tour{grid-template-columns:1fr;padding:13px;gap:10px}
  #tour-list .tour>* ,.js-new-tour-form.tour>*{grid-column:1!important}
  #tour-list .tour>label.check,.js-new-tour-form.tour>label.check{height:auto;min-height:34px;padding:0}
  #tour-list .tour>.actions{display:grid;grid-template-columns:1fr 1fr;width:100%;justify-self:stretch}
  #tour-list .tour>.actions .btn,.js-new-tour-form.tour>.btn{width:100%;justify-self:stretch}
}

/* 2026-09-10 final structural Tour CMS layout reset.
   Explicit wrappers replace the older nth-of-type grid placement rules. */
#tour-list{display:grid!important;gap:14px!important;margin:22px 0 14px!important;padding:0!important;border:0!important}
#tour-list .tour,.js-new-tour-form.tour{
  display:block!important;
  margin:0!important;
  padding:15px 16px 14px!important;
  border:1px solid #dce3e7!important;
  border-radius:9px!important;
  box-shadow:none!important;
}
#tour-list .tour{background:#f5f7f8!important}
.js-new-tour-form.tour{background:#fff!important;margin-bottom:26px!important}
.new-tour-heading{margin:14px 0 10px!important;padding:0!important;border:0!important}

#tour-list .tour-card-heading{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin:0 0 13px!important;padding:0 0 11px!important;border-bottom:1px solid var(--line)!important
}
#tour-list .tour-card-heading strong{font-size:.9rem!important;color:var(--navy)!important}

.tour-core-grid{
  display:grid!important;
  grid-template-columns:minmax(205px,1.55fr) 86px minmax(108px,.85fr) minmax(108px,.85fr) minmax(125px,.95fr) minmax(125px,.95fr) 105px!important;
  gap:10px!important;align-items:end!important
}
.tour-core-grid>label{display:grid!important;gap:6px!important;min-width:0!important;margin:0!important;color:#31495a!important;font-weight:700!important;font-size:.78rem!important}
.tour-core-grid input{width:100%!important}
.tour-core-grid .field-hint{display:block!important;margin-top:2px!important;color:var(--muted)!important;font-size:.61rem!important;font-weight:500!important;line-height:1.25!important}

.tour-control-row{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
  min-height:42px!important;margin-top:12px!important;padding-top:11px!important;border-top:1px solid var(--line)!important
}
.tour-toggle-group{display:flex!important;align-items:center!important;gap:24px!important;flex-wrap:wrap!important}
.tour-control-row .check{display:flex!important;align-items:center!important;gap:8px!important;height:auto!important;min-height:34px!important;margin:0!important;padding:0!important;font-size:.78rem!important;white-space:nowrap!important}
.tour-control-row .actions{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;width:auto!important}
.tour-control-row .actions .btn,.tour-control-row>.tour-add-btn{width:auto!important;min-width:82px!important;margin:0!important}

.tour-content-editor{display:block!important;margin:13px 0 0!important;padding:13px 14px 14px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important}
.js-new-tour-form .tour-content-editor{background:#fbfcfd!important}
.tour-price-state,.tour-status{display:block!important;margin-top:10px!important}
.tour-status:empty{display:none!important}

@media(max-width:1280px){
  .tour-core-grid{grid-template-columns:minmax(190px,1.45fr) 82px repeat(2,minmax(105px,.9fr)) repeat(2,minmax(120px,1fr))!important}
  .tour-core-grid>label:last-child{grid-column:1!important}
}
@media(max-width:980px){
  #tour-list .tour,.js-new-tour-form.tour{padding:14px!important}
  .tour-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 12px!important}
  .tour-core-grid>label:last-child{grid-column:auto!important}
  .tour-control-row{align-items:flex-end!important}
}
@media(max-width:650px){
  #tour-list{margin-top:18px!important;gap:12px!important}
  .js-new-tour-form.tour{margin-bottom:22px!important}
  .tour-core-grid{grid-template-columns:1fr!important;gap:10px!important}
  .tour-control-row{align-items:stretch!important;flex-direction:column!important;gap:10px!important}
  .tour-toggle-group{gap:18px!important}
  .tour-control-row .actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .tour-control-row .actions .btn,.tour-control-row>.tour-add-btn{width:100%!important}
  .tour-language-grid{grid-template-columns:1fr!important}
}

/* 2026-09-13 Tour CMS editor — structured general section + language blocks */
#tour-list{display:grid!important;gap:18px!important;margin:18px 0 0!important;padding:0!important;border:0!important}
#tour-list .tour,.js-new-tour-form.tour{display:block!important;margin:0!important;padding:0!important;border:1px solid #d9e2e7!important;border-radius:10px!important;overflow:hidden!important;box-shadow:none!important}
#tour-list .tour{background:#f4f6f7!important}
.js-new-tour-form.tour{background:#fff!important;margin:0 0 28px!important}
.new-tour-heading{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin:16px 0 12px!important;padding:0!important;border:0!important}
.new-tour-heading h3,.existing-tours-heading h3{margin:2px 0 3px!important;color:var(--navy)!important;font-size:1.02rem!important}
.new-tour-heading p{margin:0!important}
.existing-tours-heading{margin:8px 0 10px;padding-top:20px;border-top:1px solid var(--line)}

.tour-card-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0!important;padding:14px 16px!important;border-bottom:1px solid #d9e2e7!important;background:#eef2f4!important}
.tour-card-heading>div{display:grid;gap:2px}.tour-card-heading strong{color:var(--navy);font-size:.92rem}.tour-card-heading small{color:var(--muted);font-size:.7rem;font-weight:500}
.tour-state{flex:0 0 auto}

.tour-general-block{margin:0!important;padding:16px!important;background:#fff!important}
#tour-list .tour .tour-general-block{background:rgba(255,255,255,.58)!important}
.tour-block-title,.tour-content-editor-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;margin:0 0 13px!important;padding:0 0 10px!important;border-bottom:1px solid var(--line)!important}
.tour-block-title>div,.tour-content-editor-head>div{display:grid;gap:2px}.tour-block-title strong,.tour-content-editor-head strong{color:var(--navy);font-size:.9rem}.tour-content-editor-head small{display:block;color:var(--muted);font-size:.69rem;font-weight:500}

.tour-core-grid{display:grid!important;grid-template-columns:minmax(180px,1.55fr) minmax(180px,1.55fr) repeat(4,minmax(112px,.9fr))!important;gap:11px 12px!important;align-items:end!important}
.tour-core-grid>label{display:grid!important;gap:6px!important;min-width:0!important;margin:0!important;color:#31495a!important;font-size:.76rem!important;font-weight:700!important}
.tour-core-grid .span-2{grid-column:span 2!important}.tour-core-grid input,.tour-core-grid select{width:100%!important}
.tour-core-grid .field-hint{display:block;color:var(--muted);font-size:.59rem;font-weight:500;line-height:1.25}

.tour-control-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin-top:14px!important;padding-top:12px!important;border-top:1px solid var(--line)!important}
.tour-toggle-group{display:flex!important;align-items:center!important;gap:24px!important;flex-wrap:wrap!important}.tour-control-row .check{display:flex!important;align-items:center!important;gap:8px!important;height:auto!important;min-height:34px!important;margin:0!important;padding:0!important;white-space:nowrap!important}
.tour-control-row .actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important;width:auto!important}.tour-control-row .actions .btn{width:auto!important;min-width:84px!important;margin:0!important}
.btn.ghost{background:#fff;color:var(--navy);border-color:var(--line-strong)}.btn.ghost:hover{background:#f3f7f9;border-color:#a6bac6}

.tour-content-editor{display:block!important;margin:0!important;padding:16px!important;border:0!important;border-top:1px solid #d9e2e7!important;border-radius:0!important;background:#fbfcfd!important}
#tour-list .tour .tour-content-editor{background:#f8fafb!important}
.tour-language-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.tour-language-panel{display:block!important;min-width:0!important;padding:14px!important;border:1px solid #dbe4e9!important;border-radius:9px!important;background:#fff!important}
.tour-language-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important;padding:0 0 10px!important;border-bottom:1px solid #e5ebee!important}.tour-language-title>div{display:grid;gap:1px}.tour-language-title strong{color:var(--navy);font-size:.86rem}.tour-language-title small{color:var(--muted);font-size:.64rem;font-weight:500}.tour-language-title>span{display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:23px;padding:0 7px;border-radius:999px;background:#edf3f6;color:#617987;font-size:.61rem;font-weight:800;letter-spacing:.06em}
.tour-language-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 12px!important}.tour-language-fields>label{display:grid!important;gap:6px!important;margin:0!important}.tour-language-fields .span-2{grid-column:1/-1!important}
.tour-feature-fields{grid-column:1/-1!important;margin:0!important;padding:11px 12px 12px!important;border:1px solid #e2e8eb!important;border-radius:7px!important;background:#fafbfc!important}.tour-feature-fields legend{padding:0 6px;color:#526b7b;font-size:.69rem;font-weight:800}.tour-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tour-feature-grid label{display:grid;gap:5px;margin:0;font-size:.7rem}
.tour-price-state,.tour-status{display:block!important;margin:0!important;padding:9px 16px 11px!important}.tour-price-state{border-top:1px solid #e2e8eb}.tour-status:empty{display:none!important}

/* Tour website preview */
body.tour-preview-open{overflow:hidden}
.tour-preview-modal[hidden]{display:none!important}.tour-preview-modal{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:28px}.tour-preview-backdrop{position:absolute;inset:0;background:rgba(6,24,38,.72);backdrop-filter:blur(5px)}.tour-preview-dialog{position:relative;z-index:1;width:min(860px,96vw);height:min(840px,91vh);display:grid;grid-template-rows:auto 1fr;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.35)}.tour-preview-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fff}.tour-preview-dialog h2{margin:1px 0 0;font-size:1.05rem;color:var(--navy)}.tour-preview-tools{display:flex;align-items:center;gap:10px}.tour-preview-tools label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.7rem;font-weight:700}.tour-preview-tools select{height:34px;border:1px solid var(--line-strong);border-radius:6px;background:#fff;padding:5px 27px 5px 9px}.tour-preview-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);font-size:1.35rem;line-height:1;cursor:pointer}.tour-preview-dialog iframe{width:100%;height:100%;border:0;background:#dce5ea}

@media(max-width:1250px){.tour-core-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.tour-core-grid .span-2{grid-column:span 2!important}}
@media(max-width:900px){.tour-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tour-language-grid{grid-template-columns:1fr!important}.tour-control-row{align-items:flex-start!important;flex-direction:column!important}.tour-control-row .actions{justify-content:flex-start!important}.tour-preview-modal{padding:14px}.tour-preview-dialog{width:100%;height:94vh}}
@media(max-width:600px){.card{padding:18px 14px}.new-tour-heading{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}.tour-card-heading{align-items:flex-start!important}.tour-core-grid{grid-template-columns:1fr!important}.tour-core-grid .span-2{grid-column:1!important}.tour-language-fields{grid-template-columns:1fr!important}.tour-language-fields .span-2{grid-column:1!important}.tour-feature-grid{grid-template-columns:1fr}.tour-toggle-group{gap:16px!important}.tour-control-row .actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.tour-control-row .actions .btn{width:100%!important}.tour-control-row .actions .js-tour-preview{grid-column:1/-1}.tour-preview-dialog>header{align-items:flex-start}.tour-preview-tools{align-items:flex-end;flex-direction:column}.tour-preview-close{position:absolute;right:12px;top:12px}.tour-preview-tools label{padding-right:42px}}

/* === Tour CMS structured editor v4 === */
#tour-list{display:grid!important;gap:22px!important;margin:18px 0 0!important}
.bh-new-tour-wrap{margin:18px 0 28px!important}
.bh-tour-editor{display:block!important;margin:0!important;padding:0!important;border:1px solid #dbe3e8!important;border-radius:12px!important;overflow:hidden!important;background:#f4f6f7!important;box-shadow:none!important}
.bh-tour-editor--new{background:#fff!important;border-style:solid!important}
.bh-tour-editor__head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;padding:16px 18px!important;border-bottom:1px solid #dbe3e8!important;background:#eef2f4!important}
.bh-tour-editor--new .bh-tour-editor__head{background:#f8fafb!important}
.bh-tour-editor__head h3{margin:2px 0 3px!important;color:var(--navy)!important;font-size:1rem!important;line-height:1.25!important}
.bh-tour-editor__head p{margin:0!important;color:var(--muted)!important;font-size:.72rem!important;line-height:1.45!important}
.bh-tour-general,.bh-tour-content{display:block!important;margin:0!important;padding:18px!important}
.bh-tour-general{background:rgba(255,255,255,.72)!important}
.bh-tour-editor--new .bh-tour-general{background:#fff!important}
.bh-tour-content{border-top:1px solid #dbe3e8!important;background:#f8fafb!important}
.bh-tour-section-title{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important;padding:0 0 10px!important;border-bottom:1px solid #e1e7eb!important}
.bh-tour-section-title h4{margin:2px 0 0!important;color:var(--navy)!important;font-size:.9rem!important}
.bh-tour-section-title p{margin:3px 0 0!important;color:var(--muted)!important;font-size:.69rem!important}
.bh-tour-general__grid{display:grid!important;grid-template-columns:minmax(240px,2fr) minmax(240px,2fr) repeat(4,minmax(118px,1fr))!important;gap:12px!important;align-items:end!important}
.bh-tour-general__grid>label{display:grid!important;gap:6px!important;min-width:0!important;margin:0!important;color:#31495a!important;font-size:.75rem!important;font-weight:750!important}
.bh-tour-general__grid input,.bh-tour-general__grid select{width:100%!important;min-width:0!important}
.bh-tour-general__grid .bh-span-2{grid-column:span 2!important}
.bh-tour-general__grid .field-hint{display:block!important;margin-top:0!important;font-size:.59rem!important;font-weight:500!important;line-height:1.25!important;color:var(--muted)!important}
.bh-tour-general__footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin-top:16px!important;padding-top:14px!important;border-top:1px solid #e1e7eb!important}
.bh-tour-toggles{display:flex!important;align-items:center!important;gap:24px!important;flex-wrap:wrap!important}
.bh-tour-toggles .check{display:flex!important;align-items:center!important;gap:8px!important;min-height:auto!important;height:auto!important;margin:0!important;padding:0!important;white-space:nowrap!important;font-size:.75rem!important}
.bh-tour-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}
.bh-tour-actions .btn{width:auto!important;min-width:88px!important;margin:0!important}
.bh-tour-languages{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.bh-tour-language{display:block!important;min-width:0!important;padding:15px!important;border:1px solid #dce5ea!important;border-radius:10px!important;background:#fff!important}
.bh-tour-language__head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin:0 0 13px!important;padding:0 0 10px!important;border-bottom:1px solid #e6ecef!important}
.bh-tour-language__head h4{margin:2px 0!important;color:var(--navy)!important;font-size:.9rem!important}
.bh-tour-language__head p{margin:0!important;color:var(--muted)!important;font-size:.65rem!important}
.bh-tour-language__code{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:34px!important;height:24px!important;padding:0 8px!important;border-radius:999px!important;background:#edf3f6!important;color:#617987!important;font-size:.61rem!important;font-weight:850!important;letter-spacing:.06em!important}
.bh-tour-language__fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.bh-tour-language__fields>label{display:grid!important;gap:6px!important;margin:0!important;min-width:0!important;font-size:.72rem!important;font-weight:700!important}
.bh-tour-language__fields .bh-span-2{grid-column:1/-1!important}
.bh-tour-language__fields textarea{resize:vertical!important;min-height:96px!important}
.bh-tour-bullets{grid-column:1/-1!important;padding:12px!important;border:1px solid #e3e9ed!important;border-radius:8px!important;background:#fafbfc!important}
.bh-tour-bullets__title{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important}
.bh-tour-bullets__title strong{color:#40596a!important;font-size:.72rem!important}.bh-tour-bullets__title span{color:var(--muted)!important;font-size:.62rem!important}
.bh-tour-bullets__grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.bh-tour-bullets__grid label{display:grid!important;gap:5px!important;margin:0!important;font-size:.68rem!important}
.existing-tours-heading{margin:30px 0 12px!important;padding-top:20px!important;border-top:1px solid var(--line)!important}
.existing-tours-heading h3{margin:2px 0 3px!important;color:var(--navy)!important;font-size:1.02rem!important}.existing-tours-heading p{margin:0!important}
.new-tour-heading{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin:0 0 12px!important;padding:0!important;border:0!important}
.new-tour-heading h3{margin:2px 0 3px!important;color:var(--navy)!important;font-size:1.02rem!important}.new-tour-heading p{margin:0!important}
.tour-price-state,.tour-status{display:block!important;margin:0!important;padding:10px 18px 12px!important}.tour-status:empty{display:none!important}.tour-price-state{border-top:1px solid #e2e8eb!important}

/* Preview dialog */
body.bh-tour-preview-open{overflow:hidden!important}
.bh-tour-preview{width:min(900px,94vw)!important;height:min(860px,92vh)!important;padding:0!important;border:0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 28px 90px rgba(0,0,0,.38)!important;overflow:hidden!important}
.bh-tour-preview::backdrop{background:rgba(5,22,35,.72)!important;backdrop-filter:blur(5px)!important}
.bh-tour-preview__shell{display:grid!important;grid-template-rows:auto 1fr!important;width:100%!important;height:100%!important}
.bh-tour-preview__head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 16px!important;border-bottom:1px solid var(--line)!important;background:#fff!important}
.bh-tour-preview__head h2{margin:1px 0 0!important;color:var(--navy)!important;font-size:1.05rem!important}
.bh-tour-preview__tools{display:flex!important;align-items:center!important;gap:10px!important}.bh-tour-preview__tools label{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;color:var(--muted)!important;font-size:.7rem!important;font-weight:700!important}.bh-tour-preview__tools select{height:34px!important;padding:5px 28px 5px 9px!important;border:1px solid var(--line-strong)!important;border-radius:6px!important;background:#fff!important}
.bh-tour-preview__close{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;padding:0!important;border:1px solid var(--line)!important;border-radius:50%!important;background:#fff!important;color:var(--navy)!important;font-size:1.35rem!important;line-height:1!important;cursor:pointer!important}
.bh-tour-preview iframe{display:block!important;width:100%!important;height:100%!important;border:0!important;background:#dce5ea!important}

@media(max-width:1280px){.bh-tour-general__grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.bh-tour-general__grid .bh-span-2{grid-column:span 2!important}}
@media(max-width:900px){.bh-tour-general__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bh-tour-languages{grid-template-columns:1fr!important}.bh-tour-general__footer{align-items:flex-start!important;flex-direction:column!important}.bh-tour-actions{justify-content:flex-start!important}.bh-tour-preview{width:96vw!important;height:94vh!important}}
@media(max-width:600px){.bh-tour-general,.bh-tour-content{padding:14px!important}.bh-tour-editor__head{padding:14px!important;align-items:flex-start!important}.bh-tour-general__grid{grid-template-columns:1fr!important}.bh-tour-general__grid .bh-span-2{grid-column:1!important}.bh-tour-language__fields{grid-template-columns:1fr!important}.bh-tour-language__fields .bh-span-2{grid-column:1!important}.bh-tour-bullets__grid{grid-template-columns:1fr!important}.bh-tour-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.bh-tour-actions .btn{width:100%!important}.bh-tour-actions .js-tour-preview{grid-column:1/-1!important}.bh-tour-bullets__title{align-items:flex-start!important;flex-direction:column!important;gap:2px!important}.bh-tour-preview__head{align-items:flex-start!important}.bh-tour-preview__tools{align-items:flex-end!important;flex-direction:column!important}.new-tour-heading{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}}

/* === Tour CMS layout reset v5: single authoritative structure === */
#tour-list{display:grid!important;gap:20px!important;margin:18px 0 0!important;padding:0!important;border:0!important}
.bh-new-tour-wrap{display:block!important;margin:18px 0 30px!important;padding:0!important}

/* Neutralize all legacy .tour grids from earlier portal versions. */
.card .bh-tour-editor.form.tour,
#tour-list .bh-tour-editor.form.tour,
.bh-new-tour-wrap .bh-tour-editor.form.tour{
  display:block!important;
  grid-template-columns:none!important;
  gap:0!important;
  align-items:initial!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #d8e1e6!important;
  border-radius:11px!important;
  background:#f4f6f7!important;
  box-shadow:0 1px 0 rgba(13,45,64,.02)!important;
}
.bh-new-tour-wrap .bh-tour-editor--new.form.tour{background:#fff!important}

.bh-tour-editor__head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0!important;
  padding:15px 18px!important;
  border:0!important;
  border-bottom:1px solid #d8e1e6!important;
  background:#edf2f4!important;
}
.bh-tour-editor--new .bh-tour-editor__head{background:#f7f9fa!important}
.bh-tour-editor__head>div{min-width:0!important}
.bh-tour-editor__head h3{margin:2px 0 2px!important;font-size:1rem!important;line-height:1.25!important;color:var(--navy)!important}
.bh-tour-editor__head p{margin:0!important;font-size:.7rem!important;line-height:1.4!important;color:var(--muted)!important}

.bh-tour-general{
  display:block!important;
  margin:0!important;
  padding:18px!important;
  background:rgba(255,255,255,.68)!important;
}
.bh-tour-editor--new .bh-tour-general{background:#fff!important}
.bh-tour-section-title{
  display:block!important;
  margin:0 0 14px!important;
  padding:0 0 10px!important;
  border:0!important;
  border-bottom:1px solid #e0e7eb!important;
}
.bh-tour-section-title h4{margin:2px 0 0!important;font-size:.88rem!important;color:var(--navy)!important}
.bh-tour-section-title p{margin:3px 0 0!important;font-size:.68rem!important;color:var(--muted)!important}

/* General data: deliberate 4-column layout. */
.card .bh-tour-editor .bh-tour-general__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:13px 14px!important;
  align-items:start!important;
  margin:0!important;
}
.card .bh-tour-editor .bh-tour-general__grid>label{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font-size:.73rem!important;
  font-weight:750!important;
  color:#31495a!important;
}
.card .bh-tour-editor .bh-tour-general__grid .bh-tour-name{grid-column:span 2!important}
.card .bh-tour-editor .bh-tour-general__grid .bh-span-2:not(.bh-tour-name){grid-column:span 2!important}
.card .bh-tour-editor .bh-tour-general__grid input,
.card .bh-tour-editor .bh-tour-general__grid select{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.card .bh-tour-editor .field-hint{display:block!important;margin:0!important;font-size:.59rem!important;font-weight:500!important;line-height:1.25!important;color:var(--muted)!important}

.bh-tour-general__footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:16px 0 0!important;
  padding:14px 0 0!important;
  border-top:1px solid #e0e7eb!important;
}
.bh-tour-toggles{display:flex!important;align-items:center!important;gap:24px!important;flex-wrap:wrap!important}
.card .bh-tour-editor .bh-tour-toggles .check{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
  height:auto!important;
  min-height:32px!important;
  margin:0!important;
  padding:0!important;
  font-size:.74rem!important;
  white-space:nowrap!important;
}
.card .bh-tour-editor .bh-tour-toggles .check input{width:auto!important;height:auto!important;margin:0!important}
.bh-tour-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}
.card .bh-tour-editor .bh-tour-actions .btn{width:auto!important;min-width:92px!important;margin:0!important}

/* Website content is always below general information. */
.bh-tour-content{
  display:block!important;
  margin:0!important;
  padding:18px!important;
  border-top:1px solid #d8e1e6!important;
  background:#f8fafb!important;
}
.bh-tour-languages{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  margin:0!important;
}
.bh-tour-language{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  padding:15px!important;
  border:1px solid #dbe4e9!important;
  border-radius:9px!important;
  background:#fff!important;
}
.bh-tour-language__head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 13px!important;
  padding:0 0 10px!important;
  border-bottom:1px solid #e5ebee!important;
}
.bh-tour-language__head h4{margin:2px 0!important;font-size:.88rem!important;color:var(--navy)!important}
.bh-tour-language__head p{margin:0!important;font-size:.64rem!important;color:var(--muted)!important}
.bh-tour-language__fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
}
.bh-tour-language__fields>label{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font-size:.71rem!important;
  font-weight:700!important;
}
.bh-tour-language__fields .bh-span-2{grid-column:1/-1!important}
.bh-tour-language__fields input,.bh-tour-language__fields textarea{width:100%!important;min-width:0!important;box-sizing:border-box!important}
.bh-tour-language__fields textarea{min-height:100px!important;resize:vertical!important}
.bh-tour-bullets{grid-column:1/-1!important;margin:0!important;padding:12px!important;border:1px solid #e2e9ed!important;border-radius:8px!important;background:#fafbfc!important}
.bh-tour-bullets__title{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:10px!important;margin:0 0 10px!important}
.bh-tour-bullets__grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.bh-tour-bullets__grid label{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;margin:0!important;font-size:.68rem!important}

.tour-price-state,.tour-status{grid-column:auto!important;margin:0!important;padding:10px 18px 12px!important}
.tour-status:empty{display:none!important}
.existing-tours-heading{margin:30px 0 12px!important;padding-top:20px!important;border-top:1px solid var(--line)!important}
.new-tour-heading{margin:0 0 12px!important;padding:0!important;border:0!important}

/* Preview: let the iframe show the actual public website card, not admin styling. */
.bh-tour-preview iframe{background:#dce5ea!important}

@media(max-width:1050px){
  .card .bh-tour-editor .bh-tour-general__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .card .bh-tour-editor .bh-tour-general__grid .bh-tour-name{grid-column:1/-1!important}
  .bh-tour-languages{grid-template-columns:1fr!important}
}
@media(max-width:650px){
  .bh-new-tour-wrap{margin-bottom:24px!important}
  .bh-tour-editor__head{align-items:flex-start!important;padding:14px!important}
  .bh-tour-general,.bh-tour-content{padding:14px!important}
  .card .bh-tour-editor .bh-tour-general__grid{grid-template-columns:1fr!important;gap:11px!important}
  .card .bh-tour-editor .bh-tour-general__grid .bh-tour-name,
  .card .bh-tour-editor .bh-tour-general__grid .bh-span-2{grid-column:1!important}
  .bh-tour-general__footer{align-items:stretch!important;flex-direction:column!important;gap:12px!important}
  .bh-tour-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .card .bh-tour-editor .bh-tour-actions .btn{width:100%!important;min-width:0!important}
  .card .bh-tour-editor .bh-tour-actions .js-tour-preview{grid-column:1/-1!important}
  .bh-tour-language{padding:13px!important}
  .bh-tour-language__fields{grid-template-columns:1fr!important}
  .bh-tour-language__fields .bh-span-2{grid-column:1!important}
  .bh-tour-bullets__grid{grid-template-columns:1fr!important}
  .bh-tour-bullets__title{align-items:flex-start!important;flex-direction:column!important;gap:2px!important}
}

/* 2026-09-13 focused rebuild: Build a new tour only */
.bh-new-tour-wrap .bh-tour-editor--new{
  display:block!important;
  background:#fff!important;
  border:1px solid #dbe3e8!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
.bh-new-tour-wrap .bh-tour-editor--new .bh-new-general-block,
.bh-new-tour-wrap .bh-tour-editor--new .bh-new-content-block{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:18px!important;
  background:#fff!important;
}
.bh-new-tour-wrap .bh-tour-editor--new .bh-new-content-block{
  border-top:1px solid #dbe3e8!important;
  background:#fbfcfd!important;
}
.bh-new-tour-wrap .bh-new-block-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  margin:0 0 14px!important;
  padding:0!important;
  border:0!important;
}
.bh-new-tour-wrap .bh-new-block-head h4{
  margin:2px 0 0!important;
  color:var(--navy)!important;
  font-size:.96rem!important;
}
.bh-new-tour-wrap .bh-new-general-row{
  display:grid!important;
  grid-template-columns:minmax(250px,2fr) repeat(8,minmax(105px,1fr))!important;
  gap:12px!important;
  align-items:end!important;
  width:100%!important;
}
.bh-new-tour-wrap .bh-new-general-row>label{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
  color:#31495a!important;
  font-size:.74rem!important;
  font-weight:750!important;
}
.bh-new-tour-wrap .bh-new-general-row input,
.bh-new-tour-wrap .bh-new-general-row select{
  width:100%!important;
  min-width:0!important;
}
.bh-new-tour-wrap .bh-new-general-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-top:16px!important;
  padding-top:14px!important;
  border-top:1px solid #e1e7eb!important;
}
.bh-new-tour-wrap .bh-new-language-split{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:0!important;
  width:100%!important;
}
.bh-new-tour-wrap .bh-new-language-col{
  min-width:0!important;
  padding:0 22px!important;
}
.bh-new-tour-wrap .bh-new-language-col:first-child{
  padding-left:0!important;
  border-right:1px solid #d9e1e6!important;
}
.bh-new-tour-wrap .bh-new-language-col:last-child{
  padding-right:0!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-tour-language{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-tour-language__head{
  margin:0 0 14px!important;
  padding:0 0 10px!important;
  border-bottom:1px solid #e7ecef!important;
  background:transparent!important;
}
@media(max-width:1180px){
  .bh-new-tour-wrap .bh-new-general-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .bh-new-tour-wrap .bh-new-general-row .bh-new-tour-name{grid-column:span 2!important}
}
@media(max-width:800px){
  .bh-new-tour-wrap .bh-new-general-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bh-new-tour-wrap .bh-new-general-row .bh-new-tour-name{grid-column:1/-1!important}
  .bh-new-tour-wrap .bh-new-language-split{grid-template-columns:1fr!important}
  .bh-new-tour-wrap .bh-new-language-col{padding:0!important}
  .bh-new-tour-wrap .bh-new-language-col:first-child{padding-bottom:20px!important;border-right:0!important;border-bottom:1px solid #d9e1e6!important}
  .bh-new-tour-wrap .bh-new-language-col:last-child{padding-top:20px!important}
  .bh-new-tour-wrap .bh-new-general-footer{align-items:flex-start!important;flex-direction:column!important}
}
@media(max-width:520px){
  .bh-new-tour-wrap .bh-tour-editor--new .bh-new-general-block,
  .bh-new-tour-wrap .bh-tour-editor--new .bh-new-content-block{padding:14px!important}
  .bh-new-tour-wrap .bh-new-general-row{grid-template-columns:1fr!important}
  .bh-new-tour-wrap .bh-new-general-row .bh-new-tour-name{grid-column:1!important}
}

/* 2026-09-13 STEP 2 — Build a new tour: authoritative layout.
   Keep this scoped to .bh-new-tour-wrap so existing tours are untouched. */
.bh-new-tour-wrap{
  width:100%!important;
  display:block!important;
  clear:both!important;
}
.bh-new-tour-wrap .bh-tour-editor--new{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  gap:0!important;
  margin:0 0 28px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #d9e2e7!important;
  border-radius:10px!important;
  background:#fff!important;
}
.bh-new-tour-wrap .bh-tour-editor--new > *{
  min-width:0!important;
  width:100%!important;
  grid-column:auto!important;
  float:none!important;
}

/* Block 1: GENERAL INFORMATION — always full width and first. */
.bh-new-tour-wrap .bh-new-general-block{
  order:1!important;
  display:block!important;
  width:100%!important;
  padding:18px 20px!important;
  margin:0!important;
  background:#fff!important;
  border:0!important;
}
.bh-new-tour-wrap .bh-new-general-block .bh-new-block-head{
  display:block!important;
  width:100%!important;
  margin:0 0 14px!important;
  padding:0 0 11px!important;
  border-bottom:1px solid #e1e7eb!important;
}
.bh-new-tour-wrap .bh-new-general-row{
  display:grid!important;
  width:100%!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:12px 14px!important;
  align-items:end!important;
}
.bh-new-tour-wrap .bh-new-general-row > label{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  gap:6px!important;
  margin:0!important;
}
.bh-new-tour-wrap .bh-new-general-row > label.bh-new-tour-name{
  grid-column:span 2!important;
}
.bh-new-tour-wrap .bh-new-general-row input,
.bh-new-tour-wrap .bh-new-general-row select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.bh-new-tour-wrap .bh-new-general-footer{
  display:flex!important;
  width:100%!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  margin:16px 0 0!important;
  padding:14px 0 0!important;
  border-top:1px solid #e1e7eb!important;
}

/* Block 2: WEBSITE CONTENT — full-width horizontal block under General Information. */
.bh-new-tour-wrap .bh-new-content-block{
  order:2!important;
  display:block!important;
  width:100%!important;
  padding:18px 20px 20px!important;
  margin:0!important;
  background:#f8fafb!important;
  border:0!important;
  border-top:1px solid #d9e2e7!important;
}
.bh-new-tour-wrap .bh-new-content-block .bh-new-block-head{
  display:block!important;
  width:100%!important;
  margin:0 0 16px!important;
  padding:0 0 11px!important;
  border-bottom:1px solid #dfe6ea!important;
}
.bh-new-tour-wrap .bh-new-language-split{
  display:grid!important;
  width:100%!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:0!important;
  align-items:start!important;
}
.bh-new-tour-wrap .bh-new-language-col{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0 24px!important;
  float:none!important;
}
.bh-new-tour-wrap .bh-new-language-col:first-child{
  padding-left:0!important;
  border-right:1px solid #d5dee4!important;
}
.bh-new-tour-wrap .bh-new-language-col:last-child{
  padding-right:0!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-tour-language{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-tour-language__fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;
  gap:12px!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-tour-language__fields > label,
.bh-new-tour-wrap .bh-new-language-col .bh-tour-bullets__grid > label{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
.bh-new-tour-wrap .bh-new-language-col input,
.bh-new-tour-wrap .bh-new-language-col textarea,
.bh-new-tour-wrap .bh-new-language-col select{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-span-2,
.bh-new-tour-wrap .bh-new-language-col .bh-tour-bullets{
  grid-column:1 / -1!important;
}
.bh-new-tour-wrap .tour-status{
  order:3!important;
  width:100%!important;
}

@media(max-width:1200px){
  .bh-new-tour-wrap .bh-new-general-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .bh-new-tour-wrap .bh-new-general-row > label.bh-new-tour-name{grid-column:span 2!important}
}
@media(max-width:850px){
  .bh-new-tour-wrap .bh-new-general-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bh-new-tour-wrap .bh-new-general-row > label.bh-new-tour-name{grid-column:1/-1!important}
  .bh-new-tour-wrap .bh-new-language-split{grid-template-columns:1fr!important}
  .bh-new-tour-wrap .bh-new-language-col{padding:0!important}
  .bh-new-tour-wrap .bh-new-language-col:first-child{padding-bottom:20px!important;border-right:0!important;border-bottom:1px solid #d5dee4!important}
  .bh-new-tour-wrap .bh-new-language-col:last-child{padding-top:20px!important}
}
@media(max-width:560px){
  .bh-new-tour-wrap .bh-new-general-block,
  .bh-new-tour-wrap .bh-new-content-block{padding:15px!important}
  .bh-new-tour-wrap .bh-new-general-row{grid-template-columns:1fr!important}
  .bh-new-tour-wrap .bh-new-general-row > label.bh-new-tour-name{grid-column:1!important}
  .bh-new-tour-wrap .bh-new-general-footer{align-items:stretch!important;flex-direction:column!important}
  .bh-new-tour-wrap .bh-new-language-col .bh-tour-language__fields{grid-template-columns:1fr!important}
  .bh-new-tour-wrap .bh-new-language-col .bh-span-2,
  .bh-new-tour-wrap .bh-new-language-col .bh-tour-bullets{grid-column:1!important}
}


/* 2026-09-13: restore grouped admin navigation */
.side nav{gap:6px}
.side nav>.nav-primary{margin-bottom:2px}
.nav-group{border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(255,255,255,.025);overflow:hidden}
.nav-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px 12px;list-style:none;color:#d7e2e8;font-size:.78rem;font-weight:800;letter-spacing:.035em;cursor:pointer;user-select:none;transition:background .15s,color .15s}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-group>summary:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-group[open]>summary{color:#fff;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045)}
.nav-chevron{position:relative;display:block;width:8px;height:8px;flex:0 0 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}
.nav-group[open] .nav-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.nav-group-links{display:grid;gap:3px;padding:5px}
.side nav .nav-group-links a{min-height:37px;padding:8px 10px 8px 16px;border-radius:6px;font-size:.8rem;font-weight:620;color:#b8c8d2}
.side nav .nav-group-links a::before{content:"";width:4px;height:4px;margin-right:8px;border-radius:50%;background:#6f92a6;flex:0 0 4px}
.side nav .nav-group-links a:hover{background:rgba(255,255,255,.065);color:#fff}
.side nav .nav-group-links a.active{background:#fff;color:var(--navy)}
.side nav .nav-group-links a.active::before{background:var(--accent)}
@media(max-width:980px){.side nav{gap:7px}.nav-group>summary{min-height:45px;padding:11px 13px;font-size:.82rem}.side nav .nav-group-links a{min-height:42px;padding:10px 11px 10px 17px;font-size:.84rem}}


/* 2026-09-13: tour header action placement */
.bh-tour-head-controls{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  flex:0 0 auto!important;
}
.bh-tour-head-controls .bh-tour-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  width:auto!important;
  margin:0!important;
}
.bh-tour-head-controls .bh-tour-actions .btn{
  width:auto!important;
  min-width:88px!important;
  margin:0!important;
}
.bh-tour-editor__head,
.new-tour-heading{
  align-items:center!important;
}
.bh-tour-editor__head .tour-state,
.new-tour-heading .tour-state{
  flex:0 0 auto!important;
  margin:0!important;
}
.bh-tour-general__footer,
.bh-new-general-footer{
  justify-content:flex-start!important;
}
@media(max-width:900px){
  .bh-tour-editor__head,
  .new-tour-heading{align-items:flex-start!important;gap:14px!important}
  .bh-tour-head-controls{align-items:flex-end!important;flex-direction:column-reverse!important;gap:8px!important}
}
@media(max-width:650px){
  .bh-tour-editor__head,
  .new-tour-heading{flex-direction:column!important}
  .bh-tour-head-controls{width:100%!important;align-items:stretch!important;flex-direction:column-reverse!important}
  .bh-tour-head-controls .bh-tour-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}
  .new-tour-heading .bh-tour-head-controls .bh-tour-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bh-tour-head-controls .bh-tour-actions .btn{width:100%!important;min-width:0!important}
  .bh-tour-head-controls .tour-state{align-self:flex-end!important}
}

/* 2026-09-13: tour image management */
.bh-tour-image-manager{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:16px;
  align-items:center;
  width:100%;
  margin-top:16px;
  padding:14px;
  border:1px solid #dbe3e8;
  border-radius:9px;
  background:#fff;
}
.bh-tour-image-manager__preview{
  width:150px;
  aspect-ratio:16/10;
  overflow:hidden;
  border:1px solid #d9e2e7;
  border-radius:8px;
  background:#eef3f5;
}
.bh-tour-image-manager__preview img{display:block;width:100%;height:100%;object-fit:cover}
.bh-tour-image-manager__preview--empty{display:grid;place-items:center;color:#78909c;font-size:.76rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.bh-tour-image-manager__controls{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.bh-tour-image-manager__controls>div{min-width:190px;margin-right:auto}
.bh-tour-image-manager__controls strong{display:block;color:var(--navy);font-size:.88rem}
.bh-tour-image-manager__controls p{margin:3px 0 0;color:#6d7e88;font-size:.76rem;line-height:1.45}
.bh-tour-file{position:relative;display:inline-flex!important;align-items:center!important;width:auto!important;min-width:0!important;margin:0!important}
.bh-tour-file>span{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid #cbd7dd;border-radius:7px;background:#fff;color:var(--navy);font-size:.78rem;font-weight:800;cursor:pointer;white-space:nowrap}
.bh-tour-file input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}
.bh-tour-image-manager .btn[disabled]{opacity:.42;cursor:not-allowed}
.bh-new-tour-wrap .bh-tour-image-manager{margin:16px 0 0!important}
@media(max-width:720px){
  .bh-tour-image-manager{grid-template-columns:110px minmax(0,1fr);align-items:start}
  .bh-tour-image-manager__preview{width:110px}
  .bh-tour-image-manager__controls{align-items:stretch}
  .bh-tour-image-manager__controls>div{width:100%;margin-right:0}
}
@media(max-width:520px){
  .bh-tour-image-manager{grid-template-columns:1fr}
  .bh-tour-image-manager__preview{width:100%;max-width:220px}
  .bh-tour-image-manager__controls{display:grid;grid-template-columns:1fr 1fr}
  .bh-tour-image-manager__controls>div{grid-column:1/-1}
  .bh-tour-image-manager__controls .bh-tour-file{width:100%!important}
  .bh-tour-image-manager__controls .bh-tour-file>span,.bh-tour-image-manager__controls .btn{width:100%!important}
}

/* 2026-09-14 language panel layout correction */
/* Give the language area breathing room below the tour image in both editors. */
.bh-tour-content .bh-tour-languages,
.bh-new-tour-wrap .bh-new-language-split{
  margin-top:18px!important;
}
/* Build-new language panels use the same rounded cards as existing tours. */
.bh-new-tour-wrap .bh-new-language-split{
  gap:16px!important;
}
.bh-new-tour-wrap .bh-new-language-col,
.bh-new-tour-wrap .bh-new-language-col:first-child,
.bh-new-tour-wrap .bh-new-language-col:last-child{
  padding:0!important;
  border:0!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-tour-language{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  padding:15px!important;
  margin:0!important;
  border:1px solid #dce5ea!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.bh-new-tour-wrap .bh-new-language-col .bh-tour-language__head{
  margin:0 0 13px!important;
  padding:0 0 10px!important;
  border-bottom:1px solid #e6ecef!important;
}
@media(max-width:800px){
  .bh-new-tour-wrap .bh-new-language-split{gap:16px!important}
  .bh-new-tour-wrap .bh-new-language-col:first-child,
  .bh-new-tour-wrap .bh-new-language-col:last-child{padding:0!important;border:0!important}
}
