/* Member Overview, top part (member-overview.js; docs/member-overview.md). */
.member-overview-v2 { padding-top: 28px; }
/* The page around the Overview sets --line almost white; the new parts keep a visible line. */
.mo, .mo-panel, .mo-stays-panels { --line: #dbe5ea; }
.member-overview-v2 .dashboard-header, .member-overview-v2 #rolePills { display: none; }
.mo { margin-bottom: 18px; }
.mo-head h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; line-height: 1.2; }
.mo-head p { margin: 6px 0 18px; color: var(--muted); }
.mo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mo-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: #eef2f3; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tabs a { flex: 0 0 auto; padding: 8px 14px; border-radius: 9px; color: #4d5b5d; font-weight: 650; text-decoration: none; white-space: nowrap; }
.mo-tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.mo-tabs a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 1px 3px rgba(19, 48, 47, .12); }
.mo-actions { display: flex; align-items: center; gap: 8px; }
.mo-actions select, .mo-download summary { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 650; }
.mo-actions select { max-width: 220px; padding: 0 10px; }
.mo-download { position: relative; }
.mo-download summary { display: flex; align-items: center; padding: 0 14px; list-style: none; cursor: pointer; white-space: nowrap; }
.mo-download summary::-webkit-details-marker { display: none; }
.mo-download > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(22, 27, 35, .14); }
.mo-download button { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-weight: 650; }
.mo-download button:hover { background: var(--brand-soft); }
.mo-add { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--brand-deep); color: #fff; font-weight: 800; white-space: nowrap; }
.mo-add:hover { background: #095a56; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.mo-chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #36484a; font-size: 14px; text-decoration: none; }
.mo-chip b { color: #d23c3c; }
a.mo-chip:hover { border-color: #8fc2bb; background: #f3faf9; }
.mo-chip-calm { color: var(--green); }
.mo-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mo-cards > p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.mo-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mo-card span { display: block; color: var(--muted); font-size: 13px; }
.mo-card b { display: block; margin: 6px 0 4px; font-size: 27px; letter-spacing: -.5px; line-height: 1.1; }
.mo-card small { display: block; font-size: 12px; font-weight: 650; }
.mo-up { color: var(--brand-deep); }
.mo-down { color: #b4532a; }
.mo-flat { color: var(--muted); }
@media (max-width: 1000px) {
  .mo-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .member-overview-v2 { padding-top: 18px; }
  .mo-head h1 { font-size: 24px; }
  .mo-head p { margin-bottom: 14px; }
  .mo-bar { gap: 10px; }
  .mo-tabs { width: 100%; }
  .mo-actions { width: 100%; flex-wrap: wrap; }
  .mo-actions select { flex: 1 1 0; width: auto; min-width: 0; max-width: none; }
  .mo-add { flex: 1 1 100%; }
  .mo-chip { font-size: 13px; padding: 6px 11px; }
  .mo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mo-card { padding: 13px; }
  .mo-card b { font-size: 24px; }
}

/* Lower panels: people who viewed, priority leads, top listings, coming up, viewer towns. */
.member-overview-v2 [data-member-performance] > .panel { border-radius: 12px; box-shadow: none; }
.mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.mo-grid > [data-member-viewers] { min-width: 0; }
.mo-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.mo-panel + .mo-panel, .mo-grid + .mo-panel { margin-top: 16px; }
.mo-grid > .mo-panel + .mo-panel { margin-top: 0; }
.mo-panel-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.mo-panel-head h2 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.mo-spacer { flex: 1; }
.mo-info { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #e7ecee; color: #6b7a7d; font-size: 11px; font-weight: 800; font-style: italic; cursor: help; }
.mo-link { border: 0; background: none; padding: 4px 0; color: var(--brand-deep); font-weight: 750; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.mo-panel-body { padding: 4px 16px 14px; }
.mo-panel-sub { margin: 10px 0 4px; color: var(--muted); font-size: 13px; }
.mo-empty { margin: 14px 0 6px; color: var(--muted); }
.mo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mo-table th { padding: 10px 8px 8px 0; color: #5d6c6f; font-weight: 650; text-align: left; border-bottom: 1px solid var(--line); }
.mo-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid #edf1f2; overflow-wrap: anywhere; }
.mo-table tr:last-child td { border-bottom: 0; }
.mo-table tbody tr[data-mo-href] { cursor: pointer; }
.mo-table tbody tr[data-mo-href]:hover td, .mo-table tbody tr[data-mo-href]:focus td { background: #f3faf9; }
.mo-numbers th:not(:first-child), .mo-numbers td:not(:first-child) { width: 64px; text-align: right; padding-right: 0; padding-left: 8px; }
.mo-stage { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; background: #e6f4ee; color: #17694a; }
.mo-stage-viewing { background: #e6efff; color: #2353b6; }
.mo-stage-offer { background: #fff3d6; color: #8a5b00; }
.mo-stage-warm { background: #fdeee6; color: #a3471b; }
.mo-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mo-seg button { border: 0; background: #fff; padding: 5px 11px; font-size: 13px; font-weight: 650; color: #4d5b5d; }
.mo-seg button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-deep); }
.mo-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.mo-person { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; padding: 10px; border: 1px solid #e3eaec; border-radius: 10px; }
.mo-person > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mo-person-text { display: flex; flex: 1; flex-direction: column; min-width: 120px; gap: 2px; }
.mo-person-text span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mo-person-listing { display: inline; border: 0; background: none; padding: 0; color: var(--brand-deep); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.mo-person-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding-left: 48px; }
.mo-person-actions .small-btn { padding: 6px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.overview-viewers > button.outline-btn { margin: 0 16px 14px; }
.overview-viewers > p[role="status"] { margin: 0 16px; color: var(--muted); font-size: 13px; }
.mo-coming { list-style: none; margin: 0; padding: 0; }
.mo-coming li + li { border-top: 1px solid #edf1f2; }
.mo-coming a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; padding: 11px 0; color: var(--ink); text-decoration: none; }
.mo-coming a:hover strong { color: var(--brand-deep); }
.mo-coming b { color: var(--brand-deep); font-size: 14px; }
.mo-coming b.mo-late { color: #c0392b; }
.mo-coming strong { display: block; font-weight: 650; overflow-wrap: anywhere; }
.mo-coming small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mo-bars { display: grid; gap: 8px; padding-top: 12px; }
.mo-bars > div { display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 13px; }
.mo-bars span { text-align: right; color: #3e4d50; overflow-wrap: anywhere; }
.mo-bars i { height: 14px; border-radius: 3px; background: #eef2f3; overflow: hidden; }
.mo-bars em { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.mo-bars b { color: var(--muted); font-weight: 650; }
@media (max-width: 1000px) {
  .mo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mo-people { grid-template-columns: 1fr; }
  .mo-panel-head { padding: 10px 12px; }
  .mo-panel-body { padding: 2px 12px 12px; }
  .mo-table { font-size: 13px; }
  .mo-numbers th:not(:first-child), .mo-numbers td:not(:first-child) { width: 46px; }
  .mo-coming a { grid-template-columns: 96px minmax(0, 1fr); }
  .mo-bars > div { grid-template-columns: 96px minmax(0, 1fr) 34px; gap: 8px; }
}

/* Stays tab (hotels, inns, resorts and vacation rentals). */
.registered-overview [hidden] { display: none !important; }
.mo-stays .mo-chips { margin-top: 16px; }
.mo-stays-panels { margin-top: 16px; }
.mo-stays-panels > .mo-grid { margin-top: 0; }
.mo-nights { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; padding-top: 14px; }
.mo-nights > div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.mo-nights i { display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; background: #dbe9e6; overflow: hidden; }
.mo-nights em { display: block; background: var(--brand); }
.mo-nights span { margin-top: 5px; color: var(--muted); font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; }
.mo-legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.mo-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.mo-legend span + span, .mo-legend .mo-key-free { margin-left: 8px; }
.mo-key-booked { background: var(--brand); }
.mo-key-free { background: #dbe9e6; }
.mo-scroll { overflow-x: auto; }
.mo-rooms { min-width: 560px; }
.mo-rooms th:not(:first-child), .mo-rooms td:not(:first-child) { width: 96px; }
@media (max-width: 760px) {
  .mo-nights { gap: 3px; height: 140px; }
  .mo-nights span { font-size: 9px; }
  /* Phones: Room, Nights booked, Requests and Price fit without scrolling. */
  .mo-rooms { min-width: 0; }
  .mo-rooms th:nth-child(2), .mo-rooms td:nth-child(2), .mo-rooms th:nth-child(5), .mo-rooms td:nth-child(5) { display: none; }
  .mo-rooms th:not(:first-child), .mo-rooms td:not(:first-child) { width: 62px; }
}

/* Seeker Overview ("My Account"). */
a.mo-add, .mo-ghost { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
a.mo-add { color: #fff; }
.mo-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 650; }
.mo-seeker > .mo-panel { margin-top: 16px; }
.mo-count { color: var(--muted); font-weight: 600; font-size: 14px; }
.mo-list { list-style: none; margin: 0; padding: 0; }
.mo-list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f2; }
.mo-list > li:last-child { border-bottom: 0; }
.mo-list > li > div { flex: 1; min-width: 0; }
.mo-list small { color: var(--muted); font-size: 12px; }
.mo-list .small-btn { flex-shrink: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mo-avatar { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #93a5aa; color: #fff; font-size: 13px; font-weight: 800; }
.mo-reply p { margin: 3px 0; color: #3e4d50; font-size: 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-place-photo { flex-shrink: 0; }
.mo-place-photo img { display: block; width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: #e3ecea; }
.mo-place-text { display: flex; flex-direction: column; gap: 2px; }
.mo-place-text a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.mo-place-text a:hover b { color: var(--brand-deep); }
.mo-place-meta { display: contents; }
.mo-place-price { flex: 0 0 110px; text-align: right; white-space: nowrap; }
.mo-place-tag { flex: 0 0 150px; text-align: center; }
.mo-place-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mo-place-actions [aria-pressed="true"] { color: #c0392b; }
.mo-visit > b { flex: 0 0 116px; color: var(--brand-deep); font-size: 14px; }
.mo-visit strong, .mo-post strong { font-weight: 650; overflow-wrap: anywhere; }
.mo-visit small, .mo-post small { display: block; margin-top: 2px; }
.mo-done { color: var(--green); font-size: 13px; font-weight: 700; }
@media (max-width: 760px) {
  .mo-seeker .mo-actions > a { flex: 1 1 0; justify-content: center; }
  /* Saved places on phones: photo, then name, town; price and tag on the next line; small buttons. */
  .mo-places:not(.mo-tiles) > li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "photo text actions" "photo price actions"; column-gap: 10px; row-gap: 2px; }
  .mo-places:not(.mo-tiles) .mo-place-photo { grid-area: photo; align-self: start; }
  .mo-places:not(.mo-tiles) .mo-place-text { grid-area: text; }
  .mo-places:not(.mo-tiles) .mo-place-meta { grid-area: price; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .mo-places:not(.mo-tiles) .mo-place-price, .mo-places:not(.mo-tiles) .mo-place-tag { flex: none; text-align: left; font-size: 14px; }
  .mo-places:not(.mo-tiles) .mo-place-actions { grid-area: actions; flex-direction: column; align-self: center; }
  .mo-places .small-btn { padding: 5px 8px; font-size: 12px; }
  .mo-visit > b { flex-basis: 84px; }
  .mo-match .small-btn { padding: 5px 8px; }
}

/* Saved places and Recently viewed: + / − fold, List / Grid. */
.mo-panel .mo-fold { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--brand-deep); font-size: 16px; font-weight: 800; line-height: 1; }
.mo-panel .mo-fold:hover { background: var(--brand-soft); }
.mo-fold-hint { color: var(--muted); font-size: 13px; }
.mo-places-panel .mo-panel-head { flex-wrap: wrap; }
.mo-see-all { display: inline-block; margin-top: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.mo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding-top: 12px; }
.mo-tiles > li { flex-direction: column; align-items: stretch; gap: 6px; padding: 0 0 10px; border: 1px solid #e3eaec; border-radius: 10px; overflow: hidden; }
.mo-tiles > li:last-child { border-bottom: 1px solid #e3eaec; }
.mo-tiles .mo-place-photo img { width: 100%; height: 120px; border-radius: 0; }
.mo-tiles .mo-place-text, .mo-tiles .mo-place-meta, .mo-tiles .mo-place-actions { padding: 0 10px; }
.mo-tiles .mo-place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mo-tiles .mo-place-price, .mo-tiles .mo-place-tag { flex: none; text-align: left; }
.mo-tiles .mo-place-actions .small-btn { flex: 1; text-align: center; }
@media (max-width: 760px) {
  .mo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mo-tiles .mo-place-photo img { height: 92px; }
  .mo-tiles .mo-place-text b { font-size: 14px; }
  .mo-tiles .mo-place-price, .mo-tiles .mo-place-tag { font-size: 13px; }
  .mo-tiles .mo-place-actions { gap: 4px; }
  .mo-tiles .mo-place-actions .small-btn { padding: 5px 4px; font-size: 12px; }
}
.mo-tiles > li > div { flex: none; }
.mo-tiles > li > .mo-place-text { flex: 1; }

/* Overview charts: Performance lines and hotel Bookings bars (like Admin › Overview). */
[data-mo-performance], [data-mo-bookings] { margin-bottom: 16px; }
.mo-chart-card .mo-panel-head { flex-wrap: wrap; }
.mo-legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0 4px; font-size: 14px; color: #3e4d50; }
.mo-legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.mo-legend-row i { width: 9px; height: 9px; border-radius: 50%; }
.mo-legend-row b { color: var(--ink); }
.mo-chart { position: relative; min-height: 200px; }
.mo-chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.mo-grid-line { stroke: #eef2f1; }
.mo-tick { font-size: 10.5px; fill: #6b7876; }
.mo-crosshair { stroke: #9aa7a5; stroke-width: 1; }
.mo-chart-tip { position: absolute; top: 8px; z-index: 3; min-width: 150px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); font-size: 12px; pointer-events: none; }
.mo-chart-tip b { display: block; margin-bottom: 4px; }
.mo-chart-tip div { display: flex; align-items: center; gap: 6px; }
.mo-chart-tip i { width: 8px; height: 8px; border-radius: 50%; }
.mo-chart-tip strong { margin-left: auto; padding-left: 10px; }
@media (max-width: 760px) {
  .mo-chart-card .mo-seg button { padding: 5px 8px; }
  .mo-legend-row { font-size: 13px; gap: 4px 12px; }
}

/* Tabs that stay on the Overview: Listings, Leads, Viewings, Messages. */
.mo-section > .mo-panel + .mo-panel { margin-top: 16px; }
.mo-section { margin-bottom: 16px; }
.mo-row-listing { flex-wrap: wrap; }
.mo-row-listing .mo-place-text { flex: 1 1 220px; }
.mo-row-stats { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.mo-row-stats span { opacity: .75; }
.mo-leads-table { min-width: 560px; }
.mo-thread a { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.mo-thread a > div { flex: 1; min-width: 0; }
.mo-thread small { display: block; color: var(--muted); }
.mo-thread p { margin: 3px 0 0; overflow: hidden; color: #3e4d50; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mo-thread.mo-unread b { color: var(--brand-deep); }
.mo-thread .mo-when { flex: none; white-space: nowrap; }
.mo-badge { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
.mo-thread a:hover b { text-decoration: underline; }
@media (max-width: 760px) {
  .mo-row-stats { flex-basis: 100%; padding-left: 74px; white-space: normal; }
  .mo-thread .mo-when { display: none; }
}
.registered-overview .mo-off-tab { display: none !important; }
@media (max-width: 760px) {
  /* Leads on phones: name and stage, then listing and when; no sideways scrolling. */
  .mo-leads-table { min-width: 0; }
  .mo-leads-table thead { display: none; }
  .mo-leads-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name stage" "listing when"; gap: 3px 10px; padding: 10px 0; border-bottom: 1px solid #edf1f2; }
  .mo-leads-table td { padding: 0; border: 0; }
  .mo-leads-table td:nth-child(1) { grid-area: name; }
  .mo-leads-table td:nth-child(2) { grid-area: listing; color: var(--muted); font-size: 13px; }
  .mo-leads-table td:nth-child(3) { grid-area: stage; text-align: right; }
  .mo-leads-table td:nth-child(4) { display: none; }
  .mo-leads-table td:nth-child(5) { grid-area: when; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
}
@media (max-width: 760px) {
  .mo-places:not(.mo-tiles) > li.mo-row-listing { grid-template-areas: "photo text actions" "photo price actions" "stats stats stats"; }
  .mo-row-listing .mo-row-stats { grid-area: stats; padding-left: 0; white-space: normal; }
}
