:root {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #242424;
  background: #f5f5f5;
  font-synthesis: none;
  --mbi-brand: #0f6cbd;
  --mbi-border: #d1d1d1;
  --mbi-radius: 8px;
  --mbi-muted: #616161;
  --mbi-gap: 20px;
}
/* Approved Journey Rail. Scoped so portal forms, tables and controls keep their geometry. */
.journey-rail {
  background: #fff;
  border: 1px solid #d9e3ef;
  border-radius: var(--mbi-radius);
  margin-bottom: 24px;
  min-width: 0;
}
.journey-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 7px 18px;
  background: #12365b;
  color: #fff;
  border-radius: calc(var(--mbi-radius) - 1px) calc(var(--mbi-radius) - 1px) 0 0;
}
.journey-toolbar h2 { font-size: 17px; }
.journey-toolbar > span { color: #d3e5f6; font-size: 13px; }
.journey-toolbar .journey-picker { display: flex; flex: 0 1 480px; min-width: 0; justify-content: end; margin: 0; gap: 10px; color: #d3e5f6; font-size: 12px; }
.journey-toolbar .journey-picker > span { flex-shrink: 0; }
.journey-toolbar .journey-picker select { max-width: 360px; }
.journey-body { padding: 14px 18px; }
.journey-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.journey-heading > div { min-width: 0; }
.journey-heading h3 { font-size: 23px; letter-spacing: -.4px; margin-top: 4px; }
.journey-eyebrow { color: #185caa; text-transform: uppercase; font-size: 11px; font-weight: 650; letter-spacing: 1px; }
.journey-count { flex-shrink: 0; text-align: center; font-size: 13px; color: #52677b; }
.journey-count strong { font-size: 22px; color: #17314b; }
.journey-count > span { display: block; font-size: 12px; }
.journey-context { color: #52677b; font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.journey-picker { display: grid; grid-template-columns: auto minmax(0,360px); justify-content: end; align-items: center; gap: 12px; margin-bottom: 20px; color: #52677b; font-size: 13px; }
.journey-picker select { width: 100%; min-width: 0; min-height: 44px; font-size: 14px; }
.journey-track { height: 5px; background: #e5edf6; border-radius: 8px; margin: 14px 0 18px; overflow: hidden; }
.journey-track > div { height: 100%; background: #185caa; border-radius: inherit; }
.journey-steps { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); list-style: none; padding: 0; margin: 0 0 18px; }
.journey-step { position: relative; min-width: 0; display: grid; grid-template-rows: 36px 1fr auto; justify-items: center; text-align: center; gap: 8px; padding: 0 6px; }
.journey-step::before { content: ''; position: absolute; top: 17px; left: 0; width: 100%; height: 2px; background: #e5edf6; }
.journey-step:first-child::before { left: 50%; width: 50%; }
.journey-step:last-child::before { width: 50%; }
.journey-marker { position: relative; display: grid; place-items: center; width: 36px; height: 36px; background: #eff5fc; color: #52677b; border-radius: 50%; font-size: 13px; font-weight: 650; }
.journey-step.is-complete .journey-marker { background: #187454; color: #fff; }
.journey-step[aria-current="step"] .journey-marker { background: #185caa; color: #fff; box-shadow: 0 0 0 4px #eff5fc; }
.journey-step-label { font-size: 13px; line-height: 1.4; min-width: 0; display: flex; align-items: center; justify-content: center; }
.journey-step-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.journey-step button.journey-step-link { border: 0; padding: 0; background: transparent; color: var(--mbi-brand); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.journey-step-label fluent-button { width: 100%; font-size: 12px; }
.journey-step-label fluent-button::part(control) { white-space: normal; min-height: 44px; height: auto; padding: 5px; }
.journey-state { color: #52677b; font-size: 11px; line-height: 1.4; }
.journey-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: #eff5fc; border-radius: var(--mbi-radius); }
.journey-next > div { min-width: 0; flex: 1; }
.journey-next h3 { margin: 1px 0 2px; font-size: 16px; }
.journey-next p:not(.journey-eyebrow) { color: #52677b; font-size: 13px; overflow-wrap: anywhere; }
.journey-next > .primary-link, .journey-next > fluent-button { flex-shrink: 0; width: 200px; min-height: 44px; text-align: center; }
.journey-next > fluent-button::part(control) { min-height: 44px; white-space: normal; }
.journey-foot { margin-top: 12px; color: #52677b; font-size: 12px; }
main:not(.workspace) > .journey-rail { width: calc(100% - 32px); max-width: 1150px; margin: 24px auto; }
@media (max-width: 700px) {
  .journey-toolbar { padding: 7px 14px; gap: 12px; }
  .journey-toolbar h2 { flex-shrink: 0; font-size: 15px; }
  .journey-toolbar .journey-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .journey-body { padding: 14px; }
  .journey-heading { align-items: flex-start; gap: 12px; }
  .journey-heading h3 { font-size: 21px; }
  .journey-picker { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .journey-picker select { font-size: 16px; }
  .journey-steps { grid-template-columns: minmax(0,1fr); }
  .journey-step { grid-template-columns: 36px minmax(0,1fr) 70px; grid-template-rows: auto; justify-items: start; align-items: center; text-align: left; gap: 10px; padding: 4px 0; min-height: 52px; }
  .journey-step::before { left: 17px; top: 0; height: 100%; width: 2px; }
  .journey-step:first-child::before { left: 17px; top: 50%; height: 50%; width: 2px; }
  .journey-step:last-child::before { width: 2px; height: 50%; }
  .journey-step-label { justify-content: start; width: 100%; }
  .journey-step-link { justify-content: start; }
  .journey-state { justify-self: end; text-align: right; }
  .journey-next { flex-direction: column; align-items: stretch; gap: 10px; }
  .journey-next > .primary-link, .journey-next > fluent-button { width: 100%; }
  main:not(.workspace) > .journey-rail { margin-inline: 16px; }
}
* {
  box-sizing: border-box;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
}
a {
  color: var(--mbi-brand);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary,
fluent-button {
  touch-action: manipulation;
}
fluent-button .icon {
  margin-right: 7px;
}
button,
summary {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mbi-brand);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
}
p {
  line-height: 1.5;
}
.muted {
  color: var(--mbi-muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--mbi-brand);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 28px;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #242424;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.brand img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}
.topnav {
  display: flex;
  align-items: stretch;
  gap: 22px;
  height: 100%;
  margin-left: 12px;
}
.topnav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #424242;
  padding: 8px 0 10px;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 20px;
  font-size: 14px;
  font-weight: 600;
}
.topnav a.active {
  color: var(--mbi-brand);
}
.topnav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* 20px line box, centered 1px up by the link padding, plus a 4px gap. */
  top: calc(50% + 13px);
  height: 3px;
  background: var(--mbi-brand);
}
.account-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.owner-return-strip {
  padding: 10px 24px;
  background: #eff6fc;
  border-bottom: 1px solid #d9e8f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.owner-return-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.login-menu summary span {
  max-width: 170px;
  overflow-wrap: anywhere;
}
.login-menu {
  position: relative;
}
.login-menu summary {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--mbi-border);
  border-radius: 4px;
  padding: 8px 14px;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
}
.login-menu summary::-webkit-details-marker {
  display: none;
}
.login-menu summary .login-chevron {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  align-self: center;
}
.menu-items {
  position: absolute;
  right: 0;
  top: 48px;
  width: 270px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 28px #0002;
  padding: 6px;
}
.menu-items a,
.menu-items button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: white;
  text-align: left;
  text-decoration: none;
  color: #242424;
  border-radius: 4px;
  font-size: 14px;
}
.menu-items a:hover,
.menu-items button:hover {
  background: #eff6fc;
}
.menu-items small {
  display: block;
  color: var(--mbi-muted);
  margin-top: 2px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: calc(100dvh - 76px);
}
.sidebar {
  padding: 25px 14px;
  background: #fafafa;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar .label {
  font-size: 11px;
  letter-spacing: 1.1px;
  font-weight: 650;
  color: #707070;
  padding: 0 12px 12px;
  text-transform: uppercase;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  color: #424242;
  text-decoration: none;
  border-radius: 5px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}
.sidebar a.active {
  background: #e5f1fb;
  color: #0f548c;
  font-weight: 650;
  border-left: 3px solid #0f6cbd;
  padding-left: 10px;
}
.sidebar a:hover {
  background: #edf3f9;
}
.sidebar .sidebar-end {
  margin-top: 28px;
  border-top: 1px solid #e5e5e5;
  padding-top: 14px;
}
.workspace {
  padding: 28px 32px 40px;
  min-width: 0;
  max-width: 1760px;
  width: 100%;
  margin-inline: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-back {
  margin-bottom: 16px;
}
.portfolio-link {
  margin-block: 14px;
}
.application-evidence p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.application-evidence li {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.application-evidence .cell-sub {
  display: block;
  color: var(--mbi-muted);
  font-size: 12px;
  margin-top: 3px;
}
.page-back fluent-button,
.dialog-header > fluent-button {
  min-width: 84px;
  min-height: 44px;
  flex-shrink: 0;
}
.dialog-header h2 {
  flex: 1;
  min-width: 0;
}
.page-head p {
  margin-top: 7px;
}
.page-head .actions {
  flex-shrink: 0;
}
.public-main {
  max-width: 1400px;
  padding: 30px 32px 45px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 220px;
  background: #eaf3fb;
  border: 1px solid #d9e8f6;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-copy {
  padding: 30px;
}
.hero h1 {
  font-size: 34px;
  max-width: 550px;
  margin: 10px 0;
}
.hero p {
  max-width: 470px;
  color: #424242;
}
.hero-photo {
  background:
    linear-gradient(90deg, #eaf3fb00, #eaf3fb00),
    url(/assets/hero-mediterranean.webp) center/cover;
}
.search-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}
.search-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 0.8fr auto;
  gap: 14px;
  align-items: end;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid #eee;
  margin-top: 14px;
  padding-top: 14px;
}
.filter-toggle {
  margin-top: 12px;
  font-size: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
}
.field > span,
.field > label {
  font-weight: 600;
  color: #424242;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #bdbdbd;
  border-bottom-color: #757575;
  border-radius: 4px;
  background: #fff;
  color: #242424;
  padding: 10px 12px;
  min-height: 42px;
  box-shadow: inset 0 1px 2px #00000006;
}
.field input[readonly] {
  background: #fafafa;
  color: #616161;
}
.field textarea {
  min-height: 92px;
  resize: vertical;
}
.field .hint {
  font-size: 12px;
  font-weight: 400;
  color: #707070;
}
.field input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  flex-shrink: 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.field.full {
  grid-column: 1/-1;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
}
.results-heading p {
  margin-top: 4px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.peer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}
.peer-actions fluent-button {
  width: 100%;
}
fluent-button {
  font-family: inherit;
  --fontSizeBase300: 14px;
  --fontWeightSemibold: 600;
  min-height: 40px;
}
fluent-button::part(control) {
  min-height: 40px;
}
fluent-button[appearance="primary"] {
  --colorBrandBackground: #0f6cbd;
}
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 4px;
  padding: 9px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--mbi-border);
  background: #fff;
  color: #242424;
}
.primary-link {
  background: var(--mbi-brand);
  color: white;
  border-color: var(--mbi-brand);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tour-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px #00000005;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tour-photo {
  height: 188px;
  position: relative;
  background: #e8eef4;
}
.tour-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.buddy-card .tour-photo > img {
  object-fit: contain;
  background: #edf3f9;
}
.image-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #0f548c;
  background: #eaf3fb;
}
.location-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: #e7f3ff;
  color: #0f548c;
  padding: 5px 9px;
  border-radius: 4px;
  max-width: calc(100% - 28px);
  line-height: 1.35;
}
.tour-photo .location-badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
}
.tour-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.tour-content h3 {
  min-height: 23px;
}
.tour-description {
  font-size: 14px;
  color: #616161;
  line-height: 1.5;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #616161;
  flex-wrap: wrap;
}
.buddy-mini {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  background: #e5f1fb;
  display: inline-grid;
  place-items: center;
  color: #0f548c;
  font-weight: 650;
  flex-shrink: 0;
}
.avatar.large {
  width: 72px;
  height: 72px;
  font-size: 24px;
}
.card-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.card-price strong {
  font-size: 18px;
}
.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.card-buttons fluent-button {
  width: 100%;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  padding: 18px;
  text-align: center;
}
.stat .icon {
  color: #0f6cbd;
  margin-bottom: 8px;
}
.stat p {
  flex: 1;
  font-size: 13px;
  color: #616161;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 650;
  margin-top: 6px;
}
.panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}
.panel h2 {
  margin-bottom: 16px;
}
.panel h3 {
  margin-bottom: 8px;
}
.panel + .panel {
  margin-top: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}
.split.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.split.equal > .panel {
  display: flex;
  flex-direction: column;
}
.split.equal > .panel > .section-actions:last-child {
  margin-top: auto;
  padding-top: 20px;
}
.split > .panel + .panel {
  margin-top: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack .panel + .panel {
  margin-top: 0;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #c7e0f4;
  background: #eff6fc;
  color: #0f548c;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff8e6;
  border-color: #f3dda2;
  color: #654b00;
}
.notice p {
  flex: 1;
}
.empty {
  padding: 30px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed #c7d3df;
  border-radius: 8px;
}
.empty .icon {
  width: 32px;
  height: 32px;
  color: #0f6cbd;
  margin-bottom: 10px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  max-width: 520px;
  margin: auto;
  color: #616161;
  font-size: 14px;
}
.empty .actions {
  justify-content: center;
  margin-top: 16px;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: #e7f3ff;
  color: #0f548c;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
}
.status.green {
  background: #dff6dd;
  color: #107c10;
}
.status.amber {
  background: #fff4ce;
  color: #725800;
}
.status.gray {
  background: #eee;
  color: #616161;
}
.status.red {
  background: #fdf3f4;
  color: #a4262c;
}
.table-wrap {
  overflow-x: auto;
}
.booking-filters {
  margin-bottom: 16px;
  align-items: end;
}
.booking-filters input,
.booking-filters select {
  height: 42px;
}
.field > .booking-search-control {
  position: relative;
  display: block;
  font-weight: 400;
}
.booking-search-control > .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--mbi-muted);
  pointer-events: none;
}
.booking-search-control > input {
  padding-left: 38px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  background: #fafafa;
  color: #616161;
  font-weight: 600;
  font-size: 12px;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
td.num,
th.num {
  text-align: right;
}
td .cell-sub {
  display: block;
  font-size: 12px;
  color: #707070;
  margin-top: 4px;
}
td fluent-button {
  min-width: 80px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.tour-detail-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}
.detail-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
.detail-section p {
  white-space: pre-line;
  font-size: 14px;
  color: #424242;
}
.detail-section h3 {
  margin-bottom: 8px;
}
.booking-step {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
  font-size: 13px;
  color: #616161;
}
.booking-step .current {
  color: #0f548c;
  font-weight: 650;
}
.line-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 14px;
}
.line-item.total {
  border-top: 1px solid #ddd;
  font-weight: 650;
  font-size: 18px;
  margin-top: 8px;
}
.positive {
  color: #107c10;
}
.negative {
  color: #a4262c;
}
.portal-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.portal-choice {
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #242424;
  background: #fff;
}
.portal-choice:hover {
  background: #eff6fc;
  border-color: #0f6cbd;
}
.portal-choice strong {
  display: block;
}
.portal-choice small {
  color: #616161;
}
.auth-card {
  max-width: 550px;
  margin: 40px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 10px;
}
.auth-card form {
  margin-top: 24px;
}
.auth-card .field + .field {
  margin-top: 16px;
}
.auth-card .actions {
  margin-top: 22px;
}
.auth-card fluent-button {
  width: 100%;
}
.auth-card > .page-back {
  margin: 0 0 20px;
}
.auth-card > .page-back fluent-button {
  width: 84px;
}
.auth-card h1 {
  overflow-wrap: anywhere;
}
.auth-card > .secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}
.auth-card .full-action {
  min-height: 44px;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.message {
  max-width: 80%;
  background: #f0f0f0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.mine {
  align-self: flex-end;
  background: #e5f1fb;
}
.message small {
  display: block;
  font-size: 11px;
  color: #616161;
  margin-top: 6px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.list-item:last-child {
  border: 0;
}
.list-item > .secondary-link {
  min-width: 150px;
}
.list-item h3 {
  font-size: 15px;
}
.list-item p {
  font-size: 13px;
  color: #616161;
  margin-top: 3px;
}
.footer {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 22px 32px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #707070;
}
.footer a {
  color: #616161;
}
.auth-code {
  font-family: monospace;
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
dialog {
  padding: 0;
  border: 1px solid #d1d1d1;
  border-radius: 12px;
  box-shadow: 0 24px 80px #0003;
  width: min(780px, calc(100% - 32px));
  max-height: 90dvh;
  color: #242424;
}
dialog::backdrop {
  background: #0005;
}
dialog[data-compare-count="0"],
dialog[data-compare-count="1"] {
  width: min(430px, calc(100% - 32px));
  --compare-columns: 1;
}
dialog[data-compare-count="2"] {
  width: min(820px, calc(100% - 32px));
  --compare-columns: 2;
}
dialog[data-compare-count="3"] {
  width: min(1200px, calc(100% - 32px));
  --compare-columns: 3;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(var(--compare-columns), minmax(0, 1fr));
  gap: 16px;
}
.comparison-tray {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--mbi-border);
  border-radius: var(--mbi-radius);
  box-shadow: 0 4px 18px #0002;
  font-size: 14px;
}
.comparison-tray fluent-button {
  min-width: 120px;
  min-height: 44px;
}
body:has(dialog[open]) .comparison-tray {
  display: none;
}
#app:has(.comparison-tray) .footer {
  padding-bottom: 104px;
}
@media (max-width: 900px) {
  dialog[data-compare-count="3"] .comparison-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .comparison-tray {
    left: 14px;
    right: 14px;
    bottom: 12px;
    gap: 12px;
    padding: 10px 12px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  dialog[data-compare-count] .dialog-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  dialog[data-compare-count] .dialog-header h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
  }
  dialog[data-compare-count] .dialog-header > fluent-button {
    grid-row: 2;
    justify-self: start;
  }
  dialog[data-compare-count] .dialog-header > fluent-button:last-child {
    justify-self: end;
  }
}
#dialog-content {
  padding: 26px;
}
.dialog-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding-block: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #242424;
  color: #fff;
  border-radius: 6px;
  padding: 12px 18px;
  max-width: calc(100% - 32px);
  box-shadow: 0 4px 20px #0003;
  font-size: 14px;
}
.loading {
  padding: 50px 32px;
}
.preview-banner {
  background: #fff4ce;
  text-align: center;
  padding: 8px 16px;
  color: #654b00;
  font-size: 13px;
}
.alert-error {
  background: #fdf3f4;
  color: #a4262c;
  border: 1px solid #e8b6bd;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 12px;
}
.form-error:not(:empty) {
  background: #fdf3f4;
  color: #a4262c;
  border: 1px solid #e8b6bd;
  border-radius: 4px;
  padding: 12px;
  margin-top: 12px;
}
.section-space {
  margin-top: 22px;
}
.section-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.money-note {
  font-size: 12px;
  color: #616161;
  margin-top: 7px;
}
.mobile-only {
  display: none;
}
.review-stars {
  color: #8a6100;
}
.inline-link {
  border: 0;
  background: none;
  color: #0f6cbd;
  padding: 0;
  text-decoration: underline;
  font-size: 13px;
}
.photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.data-copy {
  overflow-wrap: anywhere;
}
.portal-switch {
  max-width: 260px;
}
.portal-switch select {
  max-width: 100%;
  font: inherit;
  min-height: 40px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  padding: 8px;
  background: #fff;
}
.full-action {
  width: 100%;
}
.details-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tour-content .card-buttons fluent-button::part(control) {
  width: 100%;
}
.request-note {
  font-size: 12px;
  color: #616161;
  margin-top: 8px;
}
@media (min-width: 1500px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tour-photo {
    height: 215px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 22px 0;
  }
  .topnav {
    order: 3;
    width: 100%;
    height: 42px;
    overflow-x: auto;
    gap: 16px;
    margin-left: 0;
  }
  .topnav a, .account-actions {
    flex-shrink: 0;
  }
  .workspace {
    padding: 24px;
  }
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 30px;
  }
  .public-main {
    padding-inline: 24px;
  }
  .portal-switch {
    max-width: 190px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px 0;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .topnav {
    order: 3;
    width: 100%;
    gap: 24px;
    height: 42px;
    overflow-x: auto;
  }
  .topnav a {
    flex-shrink: 0;
  }
  .account-actions {
    margin-left: auto;
  }
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
  }
  .sidebar {
    flex-direction: row;
    padding: 10px 18px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #ddd;
    gap: 6px;
  }
  .sidebar .label,
  .sidebar .sidebar-end {
    display: none;
  }
  .sidebar a {
    flex-shrink: 0;
    padding: 9px 12px;
  }
  .sidebar a.active {
    border: 0;
    border-bottom: 2px solid #0f6cbd;
    padding: 9px 12px 7px;
  }
  .sidebar a .icon {
    width: 17px;
    height: 17px;
  }
  .sidebar a {
    font-size: 13px;
  }
  .search-grid {
    grid-template-columns: 1.6fr 1fr;
  }
  .search-grid fluent-button {
    width: 100%;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1.3fr 1fr;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .workspace,
  .public-main {
    padding: 22px 18px;
  }
  .page-head {
    align-items: flex-start;
  }
  .split.equal {
    grid-template-columns: 1fr;
  }
  .portal-switch {
    max-width: 210px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 26px;
  }
}
@media (max-width: 540px) {
  .table-wrap .booking-table {
    min-width: 0;
  }
  .booking-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .booking-table tbody {
    display: block;
  }
  .booking-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: 12px;
    border-bottom: 1px solid #eee;
  }
  .booking-table td {
    display: block;
    padding: 7px 4px;
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .booking-table td:first-child,
  .booking-table td:nth-child(2),
  .booking-table td:last-child {
    grid-column: 1 / -1;
  }
  .booking-table td::before {
    content: attr(data-label);
    display: block;
    color: #616161;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .booking-table td:last-child a {
    width: 100%;
  }
  fluent-button,
  .primary-link,
  .secondary-link,
  .login-menu summary {
    min-height: 44px;
  }
  .owner-return-strip {
    padding-inline: 14px;
  }
  .owner-return-strip span {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 20px;
  }
  .account-actions > .primary-link {
    display: none;
  }
  .login-menu summary {
    padding: 8px 10px;
  }
  .topbar {
    padding-inline: 14px;
  }
  .topnav {
    gap: 20px;
  }
  .topnav a {
    font-size: 13px;
  }
  .public-main,
  .workspace {
    padding: 20px 14px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 22px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-photo {
    height: 128px;
    order: 2;
  }
  .search-panel {
    padding: 14px;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .search-grid > .field:first-child {
    grid-column: 1/-1;
  }
  .search-grid > fluent-button {
    grid-column: 1/-1;
  }
  .filters {
    gap: 12px;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tour-photo {
    height: 205px;
  }
  .tour-content {
    padding: 14px;
  }
  .card-buttons fluent-button::part(control) {
    min-height: 48px;
  }
  .card-buttons fluent-button {
    min-height: 48px;
  }
  .results-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .peer-actions {
    width: 100%;
  }
  .page-head {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 12px 7px;
  }
  .stat p {
    font-size: 11px;
    line-height: 1.4;
  }
  .stat strong {
    font-size: 24px;
  }
  .panel {
    padding: 16px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .split {
    gap: 16px;
  }
  .auth-card {
    margin: 18px 14px;
    padding: 22px;
  }
  .portal-selector {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 20px 14px;
  }
  .portal-switch {
    max-width: 180px;
    font-size: 12px;
  }
  .portal-switch select {
    font-size: 12px;
  }
  .tour-detail-photo {
    height: 210px;
  }
  .table-wrap table {
    min-width: 560px;
  }
  .table-wrap {
    margin-inline: -5px;
  }
  .message {
    max-width: 92%;
  }
  .list-item {
    flex-wrap: wrap;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .section-actions fluent-button {
    flex: 1;
    min-width: 125px;
  }
  .section-actions > .secondary-link {
    flex: 1;
    min-width: 125px;
  }
  .dialog-header h2 {
    font-size: 20px;
  }
  #dialog-content {
    padding: 20px;
  }
  .actions > fluent-button {
    flex: 1;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .card-price strong {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Keep status badges and adjacent row actions visually distinct. */
td > .status + fluent-button { margin-inline-start: 8px; }

.searchable-selection {
  position: relative;
  min-width: 0;
}

.searchable-selection > input {
  width: 100%;
}

.searchable-selection-options {
  position: absolute;
  z-index: 135;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(0, 72, 118, 0.3);
  border-radius: var(--mbi-radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 38, 58, 0.18);
}

.searchable-selection-options[hidden] {
  display: none;
}

.searchable-selection-option {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(12, 25, 31, 0.09);
  border-radius: 0;
  padding: 8px 11px;
  color: #242424;
  background: #ffffff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.searchable-selection-description {
  display: block;
  margin-top: 2px;
  color: #526474;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.searchable-selection-option:last-child {
  border-bottom: 0;
}

.searchable-selection-option:hover,
.searchable-selection-option:focus-visible,
.searchable-selection-option.active {
  color: #ffffff;
  background: var(--mbi-brand);
  outline: none;
}

.searchable-selection-option:hover .searchable-selection-description,
.searchable-selection-option:focus-visible .searchable-selection-description,
.searchable-selection-option.active .searchable-selection-description {
  color: inherit;
}

.searchable-selection-option:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

.searchable-selection-empty {
  margin: 0;
  padding: 10px 11px;
  color: var(--mbi-muted);
  font-size: 0.84rem;
}


.review-role-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.review-role-row fluent-button{min-width:150px}.photo-gallery{display:flex;flex-wrap:wrap;gap:10px}.photo-gallery img{width:140px;height:110px;object-fit:contain;background:#eef3f7;border-radius:8px}.fields{align-items:end}#search-form input{text-align:center}

@media(max-width:540px){.review-role-row fluent-button{height:48px;min-height:48px}}

.agent-selector{margin-bottom:20px}.trip-actions{margin-bottom:20px}.preview-banner a{margin-inline-start:10px;font-weight:600}

@media (max-width: 1100px) {
  .split.equal { grid-template-columns: minmax(0, 1fr); }
}

/* Website chat stays separate from tour-request conversations. */
#marketplace-chat-host > .website-chat-launcher { display: none; }
#marketplace-chat-slot { display: inline-flex; }
.account-actions #websiteChatLauncher { position: static; inset: auto; width: 116px; min-width: 116px; max-width: 116px; height: 40px; min-height: 40px; padding: 8px 12px; border-radius: 4px; box-shadow: none; font-size: 14px; font-weight: 600; }
.account-actions { padding: 5px; gap: 8px; border: 1px solid #234f75; border-radius: 8px; background: linear-gradient(110deg,#123554,#1c4b73); }
.account-actions :is(#websiteChatLauncher,.marketplace-chat-admin) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #479ddd; background: #0877bb; color: #fff; }
.account-actions .marketplace-chat-admin { width: 116px; height: 40px; min-height: 40px; padding: 8px 12px; border-radius: 4px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.account-actions .website-chat-icon { mask-image: url('/assets/chat/chat-bubble.svg'); }
.account-actions :is(#websiteChatLauncher,.marketplace-chat-admin):hover { background: #096aa5; }
.account-actions .portal-switch select { height: 40px; min-height: 40px; background-color: #e9f2fa; border-color: #a4c2dc; color: #123554; }
.account-actions .login-menu summary { background: #214e73; border-color: #7594af; color: #fff; }
.account-actions .login-menu summary:hover { background: #2c6089; }
.account-actions :is(button,summary,select):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.website-chat-dialog .hidden { display: none !important; }
.website-chat-dialog .website-chat-start :is(input:not([type="checkbox"]),select) { text-align: center; }
:is(.website-chat-dialog,.website-chat-inbox) button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--mbi-border); border-radius: 4px; background: #fff; color: #242424; font: inherit; }
:is(.website-chat-dialog,.website-chat-inbox) button.primary-btn { background: var(--mbi-brand); border-color: var(--mbi-brand); color: #fff; font-weight: 600; }
:is(.website-chat-dialog,.website-chat-inbox) button:disabled { background: #e8e8e8; border-color: #d1d1d1; color: #616161; opacity: 1; }
#marketplace-chat-inbox .website-chat-messages { max-height: none; overflow: visible; }
#marketplace-chat-inbox .website-chat-inbox { margin-top: 0; padding-top: 0; border-top: 0; }
.website-chat-dialog button.website-chat-close { flex-basis: 64px; width: 64px; height: 44px; padding: 8px; }
.website-chat-dialog .website-chat-start button.primary-btn, .website-chat-dialog .website-chat-composer button.primary-btn { min-height: 44px; }
@media(max-width:540px){
 .account-actions #websiteChatLauncher { position: relative; width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; padding: 10px; font-size: 0; gap: 0; }
 .account-actions #websiteChatLauncher .website-chat-icon { flex: 0 0 22px; }
 .account-actions #websiteChatLauncher .website-chat-badge { position: absolute; top: -4px; right: -4px; }
 .account-actions .marketplace-chat-admin { width: 44px; min-width: 44px; height: 44px; padding: 10px; }
 .account-actions .marketplace-chat-admin .toolbar-chat-label { display: none; }
 .account-actions { max-width: 100%; min-width: 0; }
 .account-actions .portal-switch { min-width: 0; flex: 1 1 auto; }
 .account-actions .portal-switch select { min-width: 0; width: 100%; height: 44px; min-height: 44px; }
 .account-actions .login-menu { min-width: 0; flex: 0 1 auto; }
 .account-actions .login-menu summary span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.website-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: calc(100% - 36px);
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #0074b8;
  border-radius: 8px;
  background: #0074b8;
  color: white;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(8, 28, 38, .2);
  cursor: pointer;
}
.website-chat-icon, .website-chat-close-icon {
  display: inline-block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  background: currentColor;
  mask: url('/assets/chat/messages-square.svg') center / contain no-repeat;
}
.website-chat-badge {
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #092631;
  background: white;
  text-align: center;
}
.website-chat-badge[hidden] { display: none; }
.website-chat-dialog {
  position: fixed;
  inset: auto 18px 18px auto;
  width: min(390px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1px solid #b9cbd2;
  border-radius: 8px;
  color: #102a33;
  background: white;
  box-shadow: 0 12px 40px rgba(8, 28, 38, .24);
  overflow: auto;
}
.website-chat-dialog::backdrop { background: rgba(8, 28, 38, .18); }
.website-chat-dialog[open] { display: flex; flex-direction: column; }
.website-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d5e1e6;
  background: #eff7fb;
}
.website-chat-heading h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.website-chat-heading p { margin: 4px 0 0; font-size: 13px; color: #435b66; }
.website-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #9bafb8;
  border-radius: 4px;
  color: #0074b8;
  background: white;
  cursor: pointer;
}
.website-chat-close-icon { mask: url('/assets/chat/x.svg') center / 22px no-repeat; }
.website-chat-content { padding: 14px 16px; }
.website-chat-heading { flex: 0 0 auto; }
.website-chat-dialog > .website-chat-content { min-height: 0; overflow-y: auto; }
.website-chat-dialog > .website-chat-content.is-chat-thread { display: flex; flex-direction: column; overflow: hidden; }
.website-chat-dialog .is-chat-thread .website-chat-messages { min-height: 0; flex: 1 1 auto; }
.website-chat-dialog .is-chat-thread .website-chat-tools,
.website-chat-dialog .is-chat-thread .website-chat-composer { flex: 0 0 auto; }
.website-chat-dialog .website-chat-composer textarea { min-height: 64px; max-height: 120px; }
.website-chat-empty { margin: 0; padding: 8px 0; color: #435b66; }
.website-chat-composer button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.website-chat-composer[data-send-state='failed'] .website-chat-status { color: #a12626; }
.website-chat-start, .website-chat-composer { display: grid; gap: 10px; min-width: 0; margin: 0; }
.website-chat-start h3 { margin: 0; font-size: 17px; }
.website-chat-start label, .website-chat-composer label, .website-chat-inbox-heading label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}
.website-chat-start input, .website-chat-start select, .website-chat-start textarea,
.website-chat-composer textarea, .website-chat-inbox-heading select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #9bafb8;
  border-radius: 4px;
  background: white;
  color: #102a33;
  font: inherit;
  resize: vertical;
}
.website-chat-start .website-chat-consent { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.website-chat-consent input[type='checkbox'] { flex: 0 0 18px; width: 18px; min-width: 18px; height: 18px; min-height: 18px; max-height: 18px; margin: 0; padding: 0; }
.website-chat-consent span { min-width: 0; line-height: 20px; overflow-wrap: anywhere; }
.website-chat-start .primary-btn, .website-chat-composer .primary-btn { width: 100%; min-height: 42px; }
.website-chat-start button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.website-chat-status { margin: 0; font-size: 13px; color: #435b66; overflow-wrap: anywhere; }
.website-chat-status:empty { display: none; }
.website-chat-messages { display: grid; gap: 10px; max-height: 40dvh; overflow-y: auto; overscroll-behavior: contain; padding: 2px 3px 8px 0; }
.website-chat-message { min-width: 0; padding: 10px; border-left: 3px solid #9ebbc6; background: #f5f8f9; }
.website-chat-message.from-management { border-left-color: #0074b8; background: #eaf5fb; }
.website-chat-message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; }
.website-chat-message-meta time { color: #435b66; }
.website-chat-message p { margin: 5px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.website-chat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 13px; overflow-wrap: anywhere; }
.website-chat-tools button { min-height: 32px; padding: 5px 9px; border: 1px solid #9bafb8; background: white; color: #00639e; box-shadow: none; font-size: 13px; }
.website-chat-inbox { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #b9cbd2; scroll-margin-top: 160px; }
.website-chat-inbox-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px; }
.website-chat-inbox-heading h2 { flex: 1 1 200px; margin: 0; font-size: 22px; }
.website-chat-inbox-heading label { width: 130px; }
.website-chat-inbox-columns { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 2fr); gap: 18px; }
.website-chat-inbox-list, .website-chat-inbox-detail { min-width: 0; }
.website-chat-inbox-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #d5e1e6;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: white;
  color: #102a33;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.website-chat-inbox-row[aria-pressed='true'] { border-left-color: #0074b8; background: #eaf5fb; }
.website-chat-inbox-row span { font-size: 12px; color: #435b66; }
.website-chat-inbox-row p { margin: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.website-chat-launcher:focus-visible, .website-chat-dialog :is(button,input,textarea,select,a):focus-visible,
.website-chat-inbox :is(button,input,textarea,select,a):focus-visible {
  outline: 2px solid #0074b8;
  outline-offset: 3px;
}
.website-chat-launcher:hover { background: #005d94; }
@media (max-width: 650px) {
  .website-chat-launcher { right: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 14px; }
  .website-chat-dialog { right: 8px; bottom: var(--chat-bottom, 8px); width: calc(100% - 16px); max-height: calc(var(--chat-visible-height, 100dvh) - 16px); }
  .website-chat-content { padding: 12px; }
  .website-chat-inbox-columns { grid-template-columns: minmax(0, 1fr); }
}

/* Admin chat workspace: one framed inbox, with a clear list/detail hierarchy. */
#marketplace-chat-inbox .is-marketplace-inbox { --chat-control-width: 144px; --chat-control-height: 44px; margin: 0; padding: 0; border: 1px solid #cedbe6; border-radius: 8px; background: #fff; }
#marketplace-chat-inbox .website-chat-inbox-heading { display: grid; grid-template-columns: minmax(0,1fr) repeat(2,var(--chat-control-width)); align-items: end; gap: 16px; margin: 0; padding: 18px 20px; border-bottom: 1px solid #dbe5ed; border-radius: 8px 8px 0 0; background: #f0f6fb; }
#marketplace-chat-inbox .website-chat-inbox-heading h2 { margin: 0; color: #173b5b; font-size: 18px; line-height: 1.4; }
#marketplace-chat-inbox .chat-inbox-count { margin: 4px 0 0; color: #536879; font-size: 13px; }
#marketplace-chat-inbox .website-chat-inbox-heading label { width: auto; gap: 5px; font-size: 12px; }
#marketplace-chat-inbox .website-chat-inbox-heading select { background: #e7f1fb; color: #173b5b; text-align: center; }
#marketplace-chat-inbox .website-chat-inbox-heading select:hover { background: #d9e9f7; }
#marketplace-chat-inbox .website-chat-inbox-heading button { background: #1268ae; color: #fff; }
#marketplace-chat-inbox .website-chat-inbox-heading button:hover { background: #0e548e; }
#marketplace-chat-inbox .website-chat-inbox-columns { grid-template-columns: minmax(230px,300px) minmax(0,1fr); gap: 0; }
#marketplace-chat-inbox .website-chat-inbox-list { padding: 8px; border-right: 1px solid #dbe5ed; }
#marketplace-chat-inbox .website-chat-inbox-row { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: start; gap: 12px; padding: 14px 12px; border: 1px solid transparent; border-radius: 6px; background: #fff; }
#marketplace-chat-inbox .website-chat-inbox-row:hover { background: #f2f7fb; }
#marketplace-chat-inbox .website-chat-inbox-row[aria-pressed='true'] { border-color: #90bce0; background: #eaf3fb; }
#marketplace-chat-inbox .website-chat-inbox-row:focus-visible { outline-offset: -2px; }
#marketplace-chat-inbox .chat-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #c5d8e8; border-radius: 50%; background: #e4eef7; color: #174f7c; font-size: 14px; font-weight: 650; }
#marketplace-chat-inbox .chat-row-copy { display: grid; min-width: 0; gap: 4px; }
#marketplace-chat-inbox .chat-row-copy strong { color: #172f43; font-size: 14px; }
#marketplace-chat-inbox .chat-row-copy > span { color: #526779; font-size: 12px; }
#marketplace-chat-inbox .chat-row-copy p { margin: 3px 0 0; color: #536879; font-size: 13px; line-height: 1.5; }
#marketplace-chat-inbox .chat-selection-empty { padding: 44px 24px; text-align: center; }
#marketplace-chat-inbox .chat-empty-icon { display: inline-block; width: 48px; height: 48px; margin-bottom: 12px; background: #e8f2fa; border: 1px solid #c9deed; border-radius: 12px; position: relative; }
#marketplace-chat-inbox .chat-empty-icon::after { content: ''; position: absolute; inset: 11px; background: #2874ab; mask: url('/assets/chat/chat-bubble.svg') center/contain no-repeat; }
#marketplace-chat-inbox .chat-selection-empty h3 { margin: 0 0 8px; color: #173b5b; font-size: 18px; }
#marketplace-chat-inbox .chat-selection-empty p { max-width: 340px; margin: 0 auto; color: #536879; font-size: 14px; line-height: 1.6; }
#marketplace-chat-inbox .chat-list-empty { margin: 0; padding: 20px 12px; color: #536879; font-size: 14px; }
#marketplace-chat-inbox .website-chat-inbox-detail > .website-chat-status { margin: 0; padding: 24px; }
#marketplace-chat-inbox .website-chat-inbox-detail > .website-chat-tools { justify-content: space-between; gap: 16px; margin: 0; padding: 16px 20px; border-bottom: 1px solid #dbe5ed; }
#marketplace-chat-inbox .chat-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
#marketplace-chat-inbox .chat-person-copy { display: grid; gap: 4px; min-width: 0; }
#marketplace-chat-inbox .chat-person-copy strong { color: #172f43; font-size: 16px; }
#marketplace-chat-inbox .chat-person-copy span { color: #536879; font-size: 12px; }
#marketplace-chat-inbox .website-chat-inbox-detail > .website-chat-tools button { margin-left: auto; background: #173b5b; color: #fff; }
#marketplace-chat-inbox .website-chat-inbox-detail > .website-chat-tools button:hover { background: #0f2c46; }
#marketplace-chat-inbox .website-chat-messages { padding: 20px; gap: 14px; background: #f8fafc; }
#marketplace-chat-inbox .website-chat-message { width: fit-content; max-width: 85%; padding: 12px 14px; border: 1px solid #d8e3ec; border-radius: 8px; background: #fff; }
#marketplace-chat-inbox .website-chat-message.from-management { justify-self: end; border-color: #b8d6eb; background: #e8f3fc; }
#marketplace-chat-inbox .website-chat-message-meta { gap: 6px 20px; }
#marketplace-chat-inbox .website-chat-message p { margin-top: 8px; line-height: 1.6; }
#marketplace-chat-inbox .website-chat-composer { gap: 10px; padding: 18px 20px; border-top: 1px solid #dbe5ed; }
#marketplace-chat-inbox .website-chat-composer textarea { min-height: 88px; padding: 12px; border-color: #a8bed0; }
#marketplace-chat-inbox .website-chat-composer button { justify-self: end; }
#marketplace-chat-inbox :is(.website-chat-inbox-heading select,.website-chat-inbox-heading button,.website-chat-inbox-detail > .website-chat-tools button,.website-chat-composer button) { box-sizing: border-box; width: var(--chat-control-width); min-width: var(--chat-control-width); max-width: var(--chat-control-width); height: var(--chat-control-height); min-height: var(--chat-control-height); padding: 8px 12px; border: 1px solid #739bb9; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 20px; }
#marketplace-chat-inbox > .website-chat-inbox > .website-chat-status:not(:empty) { margin: 0; padding: 12px 20px; background: #fff4db; color: #634c0c; border-bottom: 1px solid #e9d6a7; }
#marketplace-chat-inbox .website-chat-inbox > .website-chat-tools { margin: 0; padding: 12px 20px; border-top: 1px solid #dbe5ed; }
#marketplace-chat-inbox .website-chat-inbox > .website-chat-tools:empty { display: none; }
@media(max-width:760px) {
 #marketplace-chat-inbox .website-chat-inbox-columns { grid-template-columns: minmax(0,1fr); }
 #marketplace-chat-inbox .website-chat-inbox-list { border-right: 0; border-bottom: 1px solid #dbe5ed; }
}
@media(max-width:540px) {
 #marketplace-chat-inbox .website-chat-inbox-heading { grid-template-columns: repeat(2,var(--chat-control-width)); justify-content: space-between; padding: 16px; gap: 14px 12px; }
 #marketplace-chat-inbox .chat-inbox-heading-copy { grid-column: 1/-1; }
 #marketplace-chat-inbox .website-chat-inbox-detail > .website-chat-tools { padding: 16px; }
 #marketplace-chat-inbox .website-chat-messages { padding: 16px; }
 #marketplace-chat-inbox .website-chat-message { max-width: 100%; }
 #marketplace-chat-inbox .website-chat-composer { padding: 16px; }
}
@media(max-width:380px) {
 #marketplace-chat-inbox .is-marketplace-inbox { --chat-control-width: 112px; }
}
.booking-chat-lock { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #c7ddeb; border-radius: 6px; background: #edf5fb; }
.booking-chat-lock > .icon { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; color: #1b5d8c; }
.booking-chat-lock h3 { margin: 0 0 8px; color: #173b5b; font-size: 16px; }
.booking-chat-lock p { margin: 0 0 12px; color: #405b70; font-size: 14px; line-height: 1.6; }
@media(max-width:540px) { .booking-chat-lock { padding: 14px; gap: 10px; } }
.booking-detail-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.booking-detail-actions > :is(fluent-button,a) { width: 100%; min-height: 44px; height: 44px; justify-content: center; }
.booking-detail-actions > fluent-button::part(control) { width: 100%; min-height: 44px; }
/* Visitor origin is a shared session preference, separate from tour/charge currency. */
#marketplace-origin-host > button { display: none; }
#marketplace-origin-slot { display: inline-flex; }
.account-actions { --toolbar-control-width: 152px; }
.account-actions:has(.portal-switch) { --toolbar-control-width: 184px; }
@media (min-width:761px) and (max-width:840px) {
  .account-actions:has(.portal-switch) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; margin-left: 0; }
  .account-actions:has(.portal-switch) :is(#websiteChatLauncher,#marketplaceOriginButton,.marketplace-chat-admin,.portal-switch,.login-menu) { width: 100%; min-width: 0; max-width: none; }
}
@media (min-width:1501px) and (max-width:1800px) {
  .topbar:has(.portal-switch) { height: auto; min-height: 76px; flex-wrap: wrap; gap: 14px; padding: 14px 22px 0; }
  .topbar:has(.portal-switch) .topnav { order: 3; width: 100%; height: auto; min-height: 44px; margin-left: 0; overflow-x: auto; overflow-y: hidden; }
}
.account-actions :is(#websiteChatLauncher,#marketplaceOriginButton,.marketplace-chat-admin,.primary-link,.portal-switch,.login-menu) { width: var(--toolbar-control-width); min-width: var(--toolbar-control-width); max-width: var(--toolbar-control-width); }
.account-actions :is(#websiteChatLauncher,#marketplaceOriginButton,.marketplace-chat-admin,.primary-link,.portal-switch select,.login-menu summary) { height: 44px; min-height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.account-actions :is(.portal-switch select,.login-menu summary) { width: 100%; }
#marketplaceOriginButton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #a4c2dc; border-radius: 4px; background: #e9f2fa; color: #173b5b; cursor: pointer; }
#marketplaceOriginButton:hover { background: #d6e8f6; }
#marketplaceOriginButton .icon { flex: 0 0 21px; }
.marketplace-origin-dialog { width: min(540px,calc(100% - 28px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #adc3d5; border-radius: 8px; color: #172f43; }
.marketplace-origin-dialog::backdrop { background: rgba(8,28,38,.46); }
.marketplace-origin-dialog header { padding: 24px; background: #153b5d; color: #fff; }
.marketplace-origin-dialog .origin-eyebrow { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: #c5e3f9; }
.marketplace-origin-dialog h2 { margin: 8px 0 10px; color: inherit; font-size: 24px; line-height: 1.35; }
.marketplace-origin-dialog header p { margin: 0; color: #deedf7; font-size: 14px; line-height: 1.6; }
.marketplace-origin-dialog form { display: grid; gap: 16px; margin: 0; padding: 24px; }
.marketplace-origin-dialog input { text-align: center; }
.origin-currency { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #cadae7; border-radius: 4px; background: #eef5fb; font-size: 14px; }
.origin-currency output { color: #173b5b; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.marketplace-origin-dialog .origin-pricing-note { margin: 0; color: #536879; font-size: 13px; line-height: 1.6; }
.origin-status { margin: 0; color: #634c0c; font-size: 13px; }
.origin-status:empty { display: none; }
.origin-actions { display: flex; justify-content: flex-end; gap: 12px; }
.origin-actions button { box-sizing: border-box; width: 144px; height: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #adc1d1; border-radius: 4px; background: #eef3f7; color: #173b5b; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.origin-actions button[type=submit] { border-color: #1268ae; background: #1268ae; color: #fff; }
.origin-actions button:hover { filter: brightness(.95); }
.marketplace-origin-dialog :is(button,input):focus-visible { outline: 2px solid #1268ae; outline-offset: 3px; }
@media(max-width:1400px) {
 .topbar { height: auto; min-height: 76px; flex-wrap: wrap; gap: 14px; padding: 14px 22px 0; }
 .topnav { order: 3; width: 100%; height: 42px; margin-left: 0; overflow-x: auto; }
 .topnav a { flex-shrink: 0; }
}
@media(max-width:760px) {
 .topbar { padding-inline: 14px; }
 .account-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; margin-left: 0; }
 .account-actions:has(.portal-switch) { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .account-actions :is(#websiteChatLauncher,#marketplaceOriginButton,.marketplace-chat-admin,.primary-link,.portal-switch,.login-menu) { width: 100%; min-width: 0; max-width: none; }
 .account-actions #websiteChatLauncher { font-size: 14px; gap: 8px; }
 .account-actions .marketplace-chat-admin .toolbar-chat-label { display: inline; }
 .account-actions .portal-switch select { font-size: 12px; }
 .marketplace-origin-dialog header { padding: 20px; }
 .marketplace-origin-dialog h2 { font-size: 22px; }
 .marketplace-origin-dialog form { padding: 20px; }
 .origin-actions:not(:has([hidden])) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .origin-actions:not(:has([hidden])) button { width: 100%; }
 .origin-currency { align-items: flex-start; }
}

.marketplace-origin-dialog .searchable-selection-options { position: static; max-height: 180px; margin-top: 6px; box-shadow: none; }
/* Preserve full-height click targets and scrolling at every breakpoint. */
.topnav { min-height: 44px; }
@media(max-width:1500px) {
 .topbar { height: auto; min-height: 76px; flex-wrap: wrap; gap: 14px; }
 .topnav { order: 3; width: 100%; height: auto; min-height: 44px; margin-left: 0; overflow-x: auto; overflow-y: hidden; }
}
/* A tour remains a readable detail card even when opened inside a portal. */
.public-main.tour-detail-page { max-width: 1240px; width: 100%; }
.parity-discovery-actions { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0; }
#marketplace-availability-alerts :is(input:not([type=checkbox]),select) { min-height:44px; padding:8px 12px; border:1px solid #bdbdbd; border-radius:4px; background-color:white; box-shadow:inset 0 1px 3px #00000012; text-align:center; }
#marketplace-availability-alerts select { padding-right:36px; }
#marketplace-availability-alerts button { min-height:44px; border-radius:4px; padding:8px 14px; font-weight:600; }
.parity-discovery-actions > a { width:240px; min-height:44px; }
#marketplace-shortlists .saved-list-actions { display:flex; flex-wrap:wrap; gap:12px; margin-block:12px; }
#marketplace-shortlists :is(button,.primary-btn), .request-quote-panel .conversation-quote button { min-height:44px; width:220px; padding:8px 14px; border:1px solid #a4c2dc; border-radius:4px; background:#e9f2fa; color:#123554; font:inherit; cursor:pointer; }
#marketplace-shortlists a.primary-btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
#marketplace-shortlists .saved-list-row { display:grid; grid-template-columns:100px minmax(0,1fr); gap:16px; padding-block:18px; border-bottom:1px solid #ddd; }
#marketplace-shortlists .saved-list-details { display:grid; gap:8px; }
#marketplace-shortlists .saved-list-row img { width:100px; height:100px; object-fit:contain; }
#marketplace-shortlists .saved-list-row .saved-list-actions { grid-column:2; }
#marketplace-shortlists input { min-height:44px; padding:10px; border:1px solid #a4c2dc; border-radius:4px; }
.request-quote-panel .conversation-quote { margin-top:20px; }
.request-quote-panel .section-actions > fluent-button { width:220px; min-height:44px; }
.request-quote-panel .conversation-quote-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.request-quote-panel .conversation-quote-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.request-quote-panel .conversation-quote-summary dd { margin:4px 0; }
.request-quote-panel .quote-proposal-text { white-space:pre-wrap; overflow-wrap:anywhere; margin-block:12px; }
.request-quote-panel .quote-actions { display:grid; gap:16px; }
.request-quote-panel .quote-revision-form label { display:grid; gap:8px; margin-bottom:12px; }
.request-quote-panel textarea { width:100%; min-height:90px; padding:12px; border:1px solid #bbb; border-radius:4px; font:inherit; }
.request-quote-panel .conversation-quote button.primary-btn, #marketplace-availability-alerts button { color:white; background:#0f6cbd; border-color:#0f6cbd; }
.request-quote-panel :is(button,input,textarea):focus-visible,#marketplace-shortlists :is(button,input,a):focus-visible { outline:2px solid #0f6cbd; outline-offset:3px; }
.request-quote-panel .quote-email-option { display:flex; align-items:center; gap:8px; margin-top:18px; }
.quote-accept-dialog { max-width:540px; width:calc(100% - 32px); padding:24px; border:1px solid #ccc; border-radius:8px; }
.quote-accept-dialog .quote-accept-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.quote-accept-dialog button { min-height:44px; padding:10px; font:inherit; }
@media(max-width:540px){
 .parity-discovery-actions > a,.request-quote-panel .conversation-quote button,#marketplace-shortlists :is(button,.primary-btn) { width:100%; }
 .parity-discovery-actions { display:grid; grid-template-columns:1fr; }
 #marketplace-shortlists .saved-list-row { grid-template-columns:1fr; }
 #marketplace-shortlists .saved-list-row .saved-list-actions { grid-column:1; }
 .request-quote-panel .conversation-quote-summary { grid-template-columns:1fr; }
 .request-quote-panel .conversation-quote-heading { align-items:flex-start; flex-direction:column; }
 .request-quote-panel .section-actions > fluent-button { width:100%; }
}
.tour-detail-page .tour-detail-photo { height: 240px; }
.tour-detail-page .detail-section { margin-top: 18px; padding-top: 14px; }
@media(max-width:1100px) { .tour-detail-page .tour-detail-photo { height: 220px; } }
@media(max-width:540px) { .tour-detail-page .tour-detail-photo { height: 200px; } }
.tour-detail-page #select-departure fluent-button,
.tour-detail-page #select-departure ~ fluent-button { width: 200px; height: 44px; min-height: 44px; }
.tour-detail-page #select-departure fluent-button::part(control),
.tour-detail-page #select-departure ~ fluent-button::part(control) { width: 100%; min-height: 44px; }
@media(max-width:540px) {
 .tour-detail-page #select-departure fluent-button,
 .tour-detail-page #select-departure ~ fluent-button { width: 100%; }
}
.member-signin-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.member-signin-actions > fluent-button { width: 100%; min-height: 44px; }
.member-signin-actions > fluent-button::part(control) { width: 100%; min-height: 44px; }
/* Account entry leads with the sign-in form; the full journey remains below it. */
.auth-page { width: 100%; max-width: 1240px; margin: auto; padding: 24px 32px 40px; }
@media(max-width:540px) { .auth-page { padding: 20px 14px; } .auth-page .auth-card { margin: 0 auto 24px; } }

/* Dropdown indicators share a right gutter, independent of label length. */
.account-actions .login-menu summary { position: relative; }
.account-actions :is(#portal-switch,.login-menu summary) { padding-inline: 12px 36px; }
.account-actions .login-menu summary > span { min-width: 0; flex: 1; }
.account-actions .login-menu summary .login-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; }
select:not([multiple]):not([size]), select[size="1"] {
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317355b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
}
.account-actions .portal-switch select { padding-inline: 12px 36px; }
@media (max-width:420px) {
  .account-actions:has(.portal-switch) { grid-template-columns: minmax(0,1fr); }
}
.filter-toggle > summary { list-style: none; position: relative; padding: 8px 36px 8px 12px; min-height: 44px; display: flex; align-items: center; }
.filter-toggle > summary::-webkit-details-marker { display: none; }
.filter-toggle > summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.filter-toggle[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
@media (forced-colors: active) {
  select:not([multiple]):not([size]), select[size="1"] { appearance: auto; background-image: none; }
  .filter-toggle > summary::after { background: CanvasText; }
}

@media (max-width:420px) {
  /* Keep Login readable when three compact toolbar controls share a phone row. */
  .account-actions .login-menu summary > .icon { display: none; }
}
