/* TNT CMS — MLS / IDX styles. Neutral defaults; theme tokens can override.
   Override the accent per site:  :root { --mls-accent: #BA9F4C; }            */

:root {
  --mls-accent:   #BA9F4C;
  --mls-accent-d: #9c843c;
  --mls-ink:      #323232;
  --mls-muted:    #8a8a8a;
  --mls-line:     #e7e5e0;
  --mls-panel:    #ffffff;
}

/* ─── Search form ───────────────────────────────────────────────────────── */
.mls-search { width: 100%; max-width: 760px; margin: 0 auto; }
.mls-search__row { display: flex; gap: 0; }
.mls-search__q {
  flex: 1; padding: 14px 16px; border: 1px solid #ccc; border-right: 0;
  font-size: 1rem; border-radius: 0;
}
.mls-search__btn {
  padding: 14px 28px; border: 0; background: var(--mls-accent); color: #fff;
  font-weight: 600; letter-spacing: .04em; cursor: pointer; border-radius: 0;
}
.mls-search__btn:hover { background: var(--mls-accent-d); }
.mls-search__adv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mls-search__sel, .mls-search__num {
  padding: 10px 12px; border: 1px solid #ccc; border-radius: 0; font-size: .95rem;
}
.mls-search__num { width: 110px; }

/* ─── Results ───────────────────────────────────────────────────────────── */
.mls-results__head { font-size: 1.1rem; font-weight: 600; margin: 8px 0 16px; }
.mls-map { width: 100%; height: 420px; margin-bottom: 20px; }

.mls-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.mls-grid--featured { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.mls-card {
  display: block; border: 1px solid var(--mls-line); overflow: hidden;
  background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s;
}
.mls-card, .mls-card:visited { color: inherit; }
.mls-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); color: inherit; }
.mls-card__img { position: relative; height: 190px; background: #eee center/cover no-repeat; }
.mls-card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--mls-accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; padding: 4px 8px;
}
.mls-card__body { padding: 14px 16px; }
.mls-card__price { font-size: 1.35rem; font-weight: 700; }
.mls-card__type { color: #666; font-size: .85rem; margin-top: 2px; }
.mls-card__meta { color: #444; font-size: .85rem; margin-top: 6px; }
.mls-card__addr { color: #666; font-size: .85rem; margin-top: 8px; }

.mls-pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 28px 0; }
.mls-pager a { color: var(--mls-accent); text-decoration: none; font-weight: 600; }
.mls-pager__cur { color: #666; }

.mls-disclaimer { color: #999; font-size: .78rem; margin-top: 24px; line-height: 1.5; }

/* ─── Listing detail: layout ────────────────────────────────────────────── */
.mls-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas:
    "gallery side"
    "summary side"
    "body    side";
  column-gap: 26px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--mls-ink);
}
.mls-detail__gallery { grid-area: gallery; min-width: 0; }
.mls-detail__summary { grid-area: summary; min-width: 0; }
.mls-detail__body    { grid-area: body;    min-width: 0; }
.mls-detail__side    { grid-area: side; position: sticky; top: 20px; align-self: start; }
.mls-detail__none    { padding: 60px 20px; text-align: center; color: #666; }
.mls-detail__none a  { color: var(--mls-accent); }

.mls-label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mls-muted); margin-bottom: 4px;
}
.mls-label--h { margin-bottom: 12px; }
.mls-h2 {
  font-size: 1.25rem; font-weight: 600; margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--mls-line); color: var(--mls-ink);
}
.mls-block { margin-top: 34px; }

/* ─── Gallery: stage + filmstrip ────────────────────────────────────────── */
.mls-gal { outline: none; }
.mls-stage {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: transparent;
}
/* Theme/CMS rules (img { height:auto }) were shrinking the photo and leaving the
   box background showing as black/grey bars — pin images to fill their boxes. */
.mls-stage__img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  object-fit: cover !important; display: block; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.mls-stage--empty { display: flex; align-items: center; justify-content: center; color: #aaa; background: #eee; }
.mls-stage__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; padding: 0; border: 0; cursor: pointer;
  background: #fff; color: #222; font-size: .9rem; line-height: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); opacity: .92;
}
.mls-stage__nav:hover { opacity: 1; }
.mls-stage__nav--prev { left: 10px; }
.mls-stage__nav--next { right: 10px; }
.mls-stage__count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff;
  font-size: .75rem; padding: 3px 8px; letter-spacing: .03em;
}

.mls-strip { margin-top: 3px; }
.mls-strip__track {
  position: relative; display: flex; gap: 3px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none;
}
.mls-strip__track::-webkit-scrollbar { display: none; }
.mls-strip__thumb {
  flex: 0 0 calc((100% - 15px) / 6); aspect-ratio: 3 / 2; position: relative; overflow: hidden;
  padding: 0 !important; margin: 0; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; outline: none;
  cursor: pointer; opacity: .75; line-height: 0;
}
.mls-strip__thumb img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  object-fit: cover !important; display: block; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.mls-strip__thumb:hover { opacity: 1; }
.mls-strip__thumb:focus-visible { outline: 2px solid var(--mls-accent); outline-offset: -2px; }
.mls-strip__thumb.is-active { opacity: 1; }
.mls-strip__thumb.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mls-accent); z-index: 1;
}
.mls-strip__ctrl { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.mls-strip__ctrl button {
  width: 28px; height: 26px; border: 1px solid #ccc; background: #fff; color: #333;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.mls-strip__ctrl button:hover { border-color: var(--mls-accent); color: var(--mls-accent); }

/* ─── Lightbox (full-screen photo viewer) ─────────────────────────────── */
html.mls-lb-lock, html.mls-lb-lock body { overflow: hidden; }
.mls-lb {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, .94);
  padding: 56px 72px;
}
.mls-lb.is-open { display: flex; }
.mls-lb__fig { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.mls-lb__img {
  max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important;
  object-fit: contain; display: block; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  border: 0 !important; border-radius: 0 !important; user-select: none;
}
.mls-lb__close, .mls-lb__nav {
  position: absolute; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,.12); transition: background .15s;
}
.mls-lb__close:hover, .mls-lb__nav:hover { background: var(--mls-accent); }
.mls-lb__close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 1.3rem; }
.mls-lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 1.6rem; }
.mls-lb__nav--prev { left: 12px; }
.mls-lb__nav--next { right: 12px; }
.mls-lb__count {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  color: #ddd; font-size: .9rem; letter-spacing: .05em;
}
@media (max-width: 700px) {
  .mls-lb { padding: 56px 8px; }
  .mls-lb__nav { width: 40px; height: 52px; background: rgba(0,0,0,.45); }
  .mls-lb__nav--prev { left: 4px; }
  .mls-lb__nav--next { right: 4px; }
}

/* ─── Summary row ───────────────────────────────────────────────────────── */
.mls-sum {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 16px; margin-top: 18px;
}
.mls-sum__addr { font-size: 1.3rem; font-weight: 500; margin: 0; line-height: 1.3; color: var(--mls-ink); }
.mls-sum__val  { font-size: 1.3rem; font-weight: 500; line-height: 1.3; }

/* ─── Attributes + description ──────────────────────────────────────────── */
.mls-two { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; margin-top: 26px; }
.mls-attr { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mls-attr th, .mls-attr td { padding: 7px 0; border-bottom: 1px solid var(--mls-line); vertical-align: top; }
.mls-attr th { font-weight: 400; color: var(--mls-ink); text-align: left; }
.mls-attr td { text-align: right; font-weight: 600; }
.mls-src { margin-top: 14px; font-size: .85rem; }
.mls-src .mls-label { display: inline; }
.mls-remarks { font-size: .95rem; line-height: 1.75; font-weight: 300; }
.mls-tour a { color: var(--mls-accent); font-weight: 600; text-decoration: none; }

/* ─── Schools / history / features ──────────────────────────────────────── */
.mls-schools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 18px; background: var(--mls-panel); border: 1px solid var(--mls-line); }
.mls-hist { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mls-hist td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--mls-line); }
.mls-hist td:last-child { text-align: right; font-weight: 600; }

.mls-kv {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 0; font-size: .9rem;
}
.mls-kv__row {
  display: grid; grid-template-columns: 44% 1fr; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--mls-line);
}
.mls-kv dt { font-weight: 600; color: var(--mls-ink); }
.mls-kv dd { margin: 0; overflow-wrap: anywhere; }

.mls-more > summary { cursor: pointer; list-style: none; }
.mls-more > summary::-webkit-details-marker { display: none; }
.mls-more > summary::after { content: "+"; float: right; color: var(--mls-accent); font-weight: 700; }
.mls-more[open] > summary::after { content: "–"; }
.mls-more > summary span { color: var(--mls-muted); font-size: .9rem; font-weight: 400; }

.mls-amen {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; font-size: .9rem;
}
.mls-amen li { display: flex; align-items: center; gap: 8px; }
.mls-amen li i { font-size: 1rem; }
.mls-amen .is-yes i { color: #3a9a4a; }
.mls-amen .is-no { color: #9a9a9a; }
.mls-amen .is-no i { color: #c9504b; }

/* ─── Zip comparison ────────────────────────────────────────────────────── */
.mls-cmp__row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.mls-cmp__label { font-weight: 600; font-size: .9rem; }
.mls-cmp__bars { display: flex; flex-direction: column; gap: 4px; }
.mls-cmp__bar { height: 22px; display: flex; align-items: center; padding: 0 8px; font-size: .75rem;
  white-space: nowrap; overflow: visible; }
.mls-cmp__bar--avg { background: #d9d6ce; color: #333; }
.mls-cmp__bar--me  { background: var(--mls-accent); color: #fff; font-weight: 700; }
.mls-cmp__note { font-size: .78rem; color: var(--mls-muted); margin: 4px 0 0; }

/* ─── Location map ───────────────────────────────────────────────────────────── */
.mls-mapframe { position: relative; aspect-ratio: 16 / 9; background: #e8e6e1; border: 1px solid var(--mls-line); }
.mls-mapframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mls-mapblock__dir { margin: 8px 0 0; font-size: .88rem; }
.mls-mapblock__dir a { color: var(--mls-accent); font-weight: 600; text-decoration: none; }

.mls-listedby { margin-top: 30px; font-size: .9rem; }
.mls-listedby .mls-label { display: inline; margin-right: 6px; }

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.mls-side__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #000; }
.mls-side__nav a, .mls-side__nav span {
  display: flex; align-items: center; justify-content: center; height: 36px;
  background: #000; color: #fff; text-decoration: none; font-size: 1rem;
}
.mls-side__nav a:visited { color: #fff; }
.mls-side__nav a:hover { background: #222; color: var(--mls-accent); }
.mls-side__nav .is-disabled { color: #555; cursor: default; }

.mls-actions {
  list-style: none; margin: 0; padding: 0;
  background: linear-gradient(180deg, var(--mls-accent) 0%, var(--mls-accent-d) 100%);
}
.mls-actions li + li { border-top: 1px solid rgba(255,255,255,.18); }
.mls-actions a {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600;
}
.mls-actions a:visited { color: #fff; }
.mls-actions a:hover { background: rgba(0,0,0,.12); color: #fff; }
.mls-actions i { width: 16px; text-align: center; font-size: .9rem; }

.mls-agentcard { margin-top: 26px; }
.mls-agentcard__h { font-size: 1.2rem; font-weight: 400; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--mls-line); }
.mls-agentcard__box {
  display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.mls-agentcard__box img { width: 64px; height: 64px; object-fit: cover; flex: 0 0 64px; }
.mls-agentcard__name  { font-weight: 600; font-size: .92rem; }
.mls-agentcard__title { font-size: .8rem; color: var(--mls-muted); }
.mls-agentcard__phone { font-size: .85rem; color: var(--mls-accent); text-decoration: none; }
.mls-side__listed { margin-top: 18px; font-size: .88rem; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .mls-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gallery" "summary" "side" "body";
  }
  .mls-detail__side { position: static; margin-top: 22px; }
  .mls-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mls-actions li + li { border-top: 0; }
  .mls-actions li { border-bottom: 1px solid rgba(255,255,255,.18); }
  .mls-strip__thumb { flex-basis: calc((100% - 12px) / 5); }
}
@media (max-width: 700px) {
  .mls-mapframe { aspect-ratio: 4 / 3; }
  .mls-stage { aspect-ratio: 3 / 2; }
  .mls-sum { grid-template-columns: 1fr 1fr; }
  .mls-sum__col--addr { grid-column: 1 / -1; }
  .mls-two { grid-template-columns: 1fr; }
  .mls-kv { grid-template-columns: 1fr; }
  .mls-amen { grid-template-columns: repeat(2, 1fr); }
  .mls-schools { grid-template-columns: 1fr; }
  .mls-strip__thumb { flex-basis: calc((100% - 9px) / 4); }
}

/* ─── Homepage carousels  [mls_carousels] / [mls_our_listings] / [mls_just_listed] / [mls_just_reduced] */
.mls-carousel { margin: 56px auto; padding: 0 16px; }
.mls-carousel__h { text-align: center; font-weight: 300; font-size: 2rem; letter-spacing: .01em;
  color: var(--mls-ink); margin: 0 0 28px; }
.mls-carousel__box { position: relative; max-width: 960px; margin: 0 auto; padding: 24px;
  background: #fff; border: 1px solid #d9d7d2; }
.mls-carousel__track {
  display: grid; grid-auto-flow: column; gap: 24px;
  grid-auto-columns: calc((100% - 72px) / 4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; outline: none;
}
.mls-carousel__track::-webkit-scrollbar { display: none; }
.mls-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0;
  background: #000; color: #fff; font-size: .85rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mls-carousel__nav:hover { background: var(--mls-accent); }
.mls-carousel__nav--prev { left: -14px; }
.mls-carousel__nav--next { right: -14px; }
.mls-carousel.is-static .mls-carousel__nav { display: none; }

.mls-ccard { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff;
  border: 1px solid #ecebe8; box-shadow: 0 1px 3px rgba(0,0,0,.05); text-decoration: none !important;
  color: var(--mls-ink); min-width: 0; transition: box-shadow .2s ease; }
.mls-ccard:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.mls-ccard__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e6e3dd; }
.mls-ccard__img img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
  max-width: none !important; object-fit: cover; transition: transform .4s ease; }
.mls-ccard:hover .mls-ccard__img img { transform: scale(1.05); }
.mls-ccard__badge { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 4px 10px;
  background: var(--mls-accent); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.mls-ccard__band { background: var(--mls-accent); color: #fff; padding: 12px 16px 14px; }
.mls-ccard__city { font-size: 1.05rem; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mls-ccard__price { font-size: .95rem; margin-top: 2px; }
.mls-ccard__rows { margin: 0; padding: 14px 16px 20px; flex: 1; min-height: 150px; }
.mls-ccard__rows > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: .8rem; }
.mls-ccard__rows dt { font-weight: 400; color: var(--mls-muted); margin: 0; }
.mls-ccard__rows dd { margin: 0; text-align: right; color: var(--mls-ink); }

@media (max-width: 991px) {
  .mls-carousel__track { grid-auto-columns: calc((100% - 48px) / 3); }
}
@media (max-width: 700px) {
  .mls-carousel { margin: 40px auto; }
  .mls-carousel__h { font-size: 1.6rem; }
  .mls-carousel__box { padding: 16px; }
  .mls-carousel__track { gap: 16px; grid-auto-columns: calc((100% - 16px) / 2); }
  .mls-carousel__nav--prev { left: -10px; }
  .mls-carousel__nav--next { right: -10px; }
}
@media (max-width: 480px) {
  .mls-carousel__track { grid-auto-columns: 82%; }
  .mls-ccard__rows { min-height: 0; }
}

/* ─── Your Agent card extras (listing sidebar) ──────────────────────────── */
.mls-agentcard__name a { color: inherit; text-decoration: none; }
.mls-agentcard__name a:hover { color: var(--mls-accent); }
.mls-agentcard__email { display: block; font-size: .85rem; color: var(--mls-ink); word-break: break-all; }
.mls-agentcard__more { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600;
  letter-spacing: .03em; color: var(--mls-accent); text-decoration: none; }
.mls-agentcard__more:hover { color: var(--mls-accent-d); }

/* ─── Agents roster  [mls_agents] on /agents ───────────────────────────── */
.r365-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 991px) { .r365-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .r365-agents { grid-template-columns: 1fr; } }
.r365-agent { background: var(--mls-panel); border: 1px solid var(--mls-line); display: flex; flex-direction: column; overflow: hidden; }
.r365-agent__photo { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: transparent;
  margin: 0 !important; padding: 0 !important; border: 0 !important; line-height: 0; }
/* Theme/CMS img rules (margin, padding, border, height:auto) were insetting the photo and
   leaving the grey box background showing around it — pin the headshot to fill the box. */
.r365-agent__photo img,
.r365-profile__photo img {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; display: block;
  object-fit: cover !important; object-position: center top; transition: transform .4s ease;
}
.r365-agent__photo:hover img { transform: scale(1.04); }
.r365-agent__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; color: #fff; background: var(--mls-accent); letter-spacing: .04em; }
.r365-agent__body { padding: 16px 18px 18px; border-top: 4px solid var(--mls-accent); flex: 1;
  display: flex; flex-direction: column; gap: 4px; }
.r365-agent__name { font-size: 1.15rem; margin: 0; }
.r365-agent__name a { color: var(--mls-ink); text-decoration: none; }
.r365-agent__name a:hover { color: var(--mls-accent); }
.r365-agent__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mls-muted); margin-bottom: 6px; }
.r365-agent__line { font-size: .9rem; color: var(--mls-ink); text-decoration: none; overflow-wrap: anywhere; padding: 2px 0; }
a.r365-agent__line:hover { color: var(--mls-accent); }
.r365-agent__line i { color: var(--mls-accent); margin-right: 6px; width: 16px; display: inline-block; text-align: center; }
.r365-agent__links { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.r365-agent__more { font-size: .95rem; font-weight: 600; color: var(--mls-accent); text-decoration: none; }
.r365-agent__more:hover { color: var(--mls-accent-d); }
.r365-agent__more i { margin-right: 6px; width: 16px; display: inline-block; text-align: center; }
.r365-profile__listings { margin-top: 40px; }

/* ─── Agent contact form (profile page) ────────────────────────── */
.r365-acf { max-width: 560px; margin: 44px auto 0; padding: 32px 28px 28px; background: #fff;
  border: 1px solid var(--mls-line); scroll-margin-top: 90px; }
.r365-acf__h { text-align: center; font-weight: 300; font-size: 1.35rem; color: var(--mls-ink); margin: 0 0 22px; }
.r365-acf__form { display: flex; flex-direction: column; }
.r365-acf__lbl { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mls-ink); margin: 14px 0 6px; }
.r365-acf__lbl:first-of-type { margin-top: 0; }
.r365-acf__in { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 0; font: inherit; font-size: .95rem;
  color: var(--mls-ink); background: #fff; }
.r365-acf__in:focus { outline: none; border-color: var(--mls-accent); box-shadow: 0 0 0 2px rgba(186,159,76,.2); }
textarea.r365-acf__in { resize: vertical; min-height: 90px; }
.r365-acf__check { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-size: .9rem; color: var(--mls-ink); cursor: pointer; }
.r365-acf__check input { width: 18px; height: 18px; accent-color: var(--mls-accent); flex: 0 0 18px; }
.r365-acf__fine { font-size: .72rem; line-height: 1.7; color: var(--mls-muted); margin: 0 0 8px; }
.r365-acf__fine a { color: var(--mls-accent); }
.r365-acf__btn { align-self: flex-start; margin-top: 14px; border: 0; cursor: pointer; text-transform: none; }
.r365-acf__btn:disabled { opacity: .6; cursor: wait; }
.r365-acf__note { padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; border-left: 4px solid; }
.r365-acf__note.is-ok  { background: #f1f8f1; border-color: #3a9a4a; color: #245c2d; }
.r365-acf__note.is-err { background: #fbf1f0; border-color: #c9504b; color: #8a2c28; }
.r365-acf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 575px) { .r365-acf { padding: 24px 16px 20px; } }
.r365-profile__listings .mls-carousel { margin: 0 auto 24px; padding: 0; }

/* ─── Agent profile  /agents/{slug} ────────────────────────────────────── */
.r365-profile__head { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.r365-profile__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #efece6;
  border-bottom: 5px solid var(--mls-accent); }
.r365-profile__name { font-size: 2rem; margin: 0 0 4px; color: var(--mls-ink); }
.r365-profile__title { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mls-muted); margin-bottom: 16px; }
.r365-profile__lines { list-style: none; padding: 0; margin: 0 0 16px; }
.r365-profile__lines li { padding: 5px 0; color: var(--mls-ink); }
.r365-profile__lines i { color: var(--mls-accent); width: 22px; display: inline-block; }
.r365-profile__lines a { color: var(--mls-ink); text-decoration: none; }
.r365-profile__lines a:hover { color: var(--mls-accent); }
.r365-profile__social { display: flex; gap: 10px; margin-bottom: 18px; }
.r365-profile__social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mls-ink); color: #fff; border-radius: 50%; text-decoration: none; }
.r365-profile__social a:hover { background: var(--mls-accent); }
.r365-profile__btn { display: inline-block; padding: 12px 28px; background: var(--mls-accent); color: #fff !important;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.r365-profile__btn:hover { background: var(--mls-accent-d); }
.r365-profile__spec { margin-top: 28px; }
.r365-profile__bio { margin-top: 20px; line-height: 1.75; color: var(--mls-ink); }
.r365-profile__h2 { margin: 40px 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--mls-accent); font-size: 1.4rem; }
.r365-profile__h2 span { color: var(--mls-muted); font-weight: 400; font-size: 1rem; }
.r365-profile__back { margin-top: 28px; }
.r365-profile__back a { color: var(--mls-accent); font-weight: 600; text-decoration: none; }
@media (max-width: 767px) {
  .r365-profile__head { grid-template-columns: 1fr; gap: 20px; }
  .r365-profile__photo { max-width: 320px; }
}

/* ─── Print flyer ───────────────────────────────────────────────────────── */
@media print {
  header, footer, nav, .tnt-footer, #header, #footer,
  .mls-detail__side, .mls-strip, .mls-strip__ctrl, .mls-stage__nav, .mls-stage__count,
  .mls-more, .mls-cmp, .mls-mapblock, .mls-lb, .mls-carousel, .tnt-last-updated { display: none !important; }
  body { background: #fff !important; }
  .mls-detail { display: block; max-width: none; }
  .mls-stage { aspect-ratio: auto; height: 4.2in; background: none; }
  .mls-stage__img { object-fit: cover; }
  .mls-block { break-inside: avoid; margin-top: 18px; }
  .mls-kv { grid-template-columns: 1fr 1fr; }
  a { color: inherit !important; text-decoration: none !important; }
}

/* ─── [mls_properties] map search ───────────────────────────────────────── */
.mls-ms { margin: 0 0 40px; }
.mls-ms__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px;
  background: #fff; border: 1px solid var(--mls-line); border-bottom: 0; }
.mls-ms__bar input, .mls-ms__bar select { height: 42px; padding: 0 10px; border: 1px solid #ccc; border-radius: 0;
  font: inherit; font-size: .9rem; color: var(--mls-ink); background: #fff; }
.mls-ms__bar input:focus, .mls-ms__bar select:focus { outline: none; border-color: var(--mls-accent); }
.mls-ms__q { flex: 1 1 260px; min-width: 200px; }
.mls-ms__bar select { flex: 0 1 auto; cursor: pointer; }
.mls-ms__num { width: 110px; }
.mls-ms__go { height: 42px; padding: 0 20px; border: 0; background: var(--mls-accent); color: #fff; font-weight: 600;
  cursor: pointer; letter-spacing: .02em; }
.mls-ms__go:hover { background: var(--mls-accent-d); }
.mls-ms__reset { font-size: .85rem; color: var(--mls-muted); padding: 0 6px; }

.mls-ms__split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  height: calc(100vh - 170px); min-height: 560px; max-height: 900px; border: 1px solid var(--mls-line); }
.mls-ms__map { position: relative; height: 100%; min-height: 300px; background: #e8ecef; z-index: 0; }
.mls-ms__nomap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--mls-muted); font-size: .95rem; }
.mls-ms__list { overflow-y: auto; background: #f7f7f5; overscroll-behavior: contain; }
.mls-ms__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--mls-accent); color: #fff; font-size: 1rem; }
.mls-ms__head small { display: block; font-size: .72rem; opacity: .9; margin-top: 2px; }
.mls-ms__save { flex: 0 0 auto; padding: 8px 16px; background: #fff; color: var(--mls-ink); font-size: .8rem; font-weight: 600;
  text-decoration: none; }
.mls-ms__save:hover { background: #222; color: #fff; }
.mls-ms__tools { display: flex; justify-content: flex-end; padding: 10px 16px 0; }
.mls-ms__tools label { font-size: .8rem; color: var(--mls-muted); display: flex; align-items: center; gap: 8px; }
.mls-ms__tools select { height: 34px; padding: 0 8px; border: 1px solid #ccc; border-radius: 0; font: inherit; font-size: .85rem; background: #fff; }
.mls-ms__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 12px 16px; }
.mls-ms__card .mls-card { height: 100%; transition: box-shadow .15s ease, transform .15s ease; }
.mls-ms__card:hover .mls-card { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.mls-ms__empty { padding: 40px 20px; text-align: center; color: var(--mls-muted); }
.mls-ms__empty a { color: var(--mls-accent); }
.mls-ms__list .mls-disclaimer { padding: 0 16px 16px; }

.mls-ms__pager { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 12px 16px 4px; }
.mls-ms__pager a, .mls-ms__pager span { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; font-size: .85rem; text-decoration: none; color: var(--mls-ink); background: #fff; border: 1px solid var(--mls-line); }
.mls-ms__pager a:hover { border-color: var(--mls-accent); color: var(--mls-accent); }
.mls-ms__pager .is-cur { background: #222; border-color: #222; color: #fff; }
.mls-ms__pager .is-off { opacity: .35; }
.mls-ms__pager .is-gap { border: 0; background: none; min-width: 16px; }

/* map flags + clusters */
.mls-pin-wrap { background: none; border: 0; }
.mls-pin { position: absolute; transform: translate(-50%, -100%); margin-top: -7px; white-space: nowrap;
  padding: 3px 7px; background: #111; color: #fff; font: 700 11px/1.2 Raleway, Arial, sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; }
.mls-pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #111; border-bottom: 0; }
.mls-pin-wrap:hover .mls-pin, .mls-pin-wrap.is-hot .mls-pin { background: var(--mls-accent); }
.mls-pin-wrap:hover .mls-pin::after, .mls-pin-wrap.is-hot .mls-pin::after { border-top-color: var(--mls-accent); }
.mls-cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(186,159,76,.35); }
.mls-cluster span { display: flex; align-items: center; justify-content: center; width: calc(100% - 8px); height: calc(100% - 8px);
  border-radius: 50%; background: var(--mls-accent); color: #fff; font: 700 13px/1 Raleway, Arial, sans-serif; }
.mls-cluster.is-hot span { background: #111; }

/* popup */
.mls-ms .leaflet-popup-content-wrapper { border-radius: 0; padding: 0; overflow: hidden; }
.mls-ms .leaflet-popup-content { margin: 0; width: 230px !important; }
.mls-pop { display: block; color: var(--mls-ink) !important; text-decoration: none; font-size: .82rem; line-height: 1.4; }
.mls-pop img { display: block; width: 100%; height: 130px; object-fit: cover; margin: 0 !important; }
.mls-pop strong { display: block; padding: 8px 10px 0; font-size: 1.05rem; }
.mls-pop span { display: block; padding: 2px 10px 0; color: var(--mls-muted); }
.mls-pop em { display: block; padding: 6px 10px 10px; font-style: normal; font-weight: 600; color: var(--mls-accent); }

@media (max-width: 991px) {
  .mls-ms__split { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  .mls-ms__map { height: 360px; }
  .mls-ms__list { overflow: visible; }
  .mls-ms__head { position: static; }
}
@media (max-width: 575px) {
  .mls-ms__num { width: calc(50% - 4px); }
  .mls-ms__bar select { flex: 1 1 calc(50% - 4px); }
  .mls-ms__go { flex: 1 1 100%; }
  .mls-ms__map { height: 300px; }
}

.mls-ms__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; background: #fff;
  border: 1px solid var(--mls-line); border-top: 0; border-bottom: 0; }
.mls-ms__chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: .8rem; font-weight: 600;
  background: #f3efe3; color: var(--mls-ink); text-decoration: none; border: 1px solid #e3dac0; }
.mls-ms__chip:hover { background: var(--mls-accent); color: #fff; border-color: var(--mls-accent); }

/* ─── [mls_areas] city pages ───────────────────────────────────────────── */
.r365-area { max-width: 1140px; margin: 0 auto 40px; }
.r365-area__feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.r365-area__fcard { position: relative; display: block; aspect-ratio: 1 / 1.03; overflow: hidden; background: #333; text-decoration: none; }
.r365-area__fcard img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  max-width: none !important; margin: 0 !important; object-fit: cover; transition: transform .5s ease; }
.r365-area__fcard:hover img { transform: scale(1.04); }
.r365-area__fcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 55%); }
.r365-area__ftag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 5px 10px; background: var(--mls-accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.r365-area__fcap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; }
.r365-area__fcap strong { display: block; font-weight: 400; font-size: 1.3rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r365-area__fcap em { font-style: normal; font-size: .95rem; }

.r365-area__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.r365-area__box { background: #fff; border: 1px solid var(--mls-line); padding: 18px 20px; min-width: 0; }
.r365-area__h { font-size: 1.1rem; font-weight: 400; text-align: center; margin: 0 0 16px; color: var(--mls-ink); }
.r365-area__h--left { text-align: left; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--mls-line); padding-bottom: 10px; }
.r365-area__sum { max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.r365-area__sumrow { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #111; color: #fff !important;
  font-size: .88rem; text-decoration: none; }
a.r365-area__sumrow:hover { background: var(--mls-accent); }
.r365-area__sumrow strong { font-weight: 700; }
.r365-area__sumrow i { width: 16px; text-align: center; }
.r365-area__stat { margin-bottom: 12px; }
.r365-area__statl { font-size: .82rem; color: var(--mls-ink); margin-bottom: 4px; }
.r365-area__bar { position: relative; height: 18px; background: #efece6; }
.r365-area__bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--mls-accent); }
.r365-area__bar b { position: absolute; right: 0; top: 0; bottom: 0; padding: 0 6px; background: #111; color: #fff;
  font-size: .7rem; line-height: 18px; }
.r365-area__chart { display: block; width: 100%; height: auto; }
.r365-area__chart text { font: 11px Raleway, Arial, sans-serif; fill: var(--mls-muted); }
.r365-area__legend { display: flex; justify-content: center; gap: 18px; font-size: .8rem; margin-top: 6px; }
.r365-area__legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.r365-area__note { font-size: .72rem; color: var(--mls-muted); text-align: center; margin: 8px 0 0; }
.r365-area__mapbox { padding: 0; }
.r365-area__mapwrap.mls-ms { margin: 0; height: 100%; }
.r365-area__mapwrap .mls-ms__map { height: 100%; min-height: 380px; }
.r365-area__cta { text-align: center; margin: 6px 0 26px; }
.r365-area__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: .88rem; }
.r365-area__links--cols { columns: 3; }
.r365-area__links li { padding: 4px 0; break-inside: avoid; }
.r365-area__links a { color: var(--mls-accent); text-decoration: none; }
.r365-area__links a:hover { text-decoration: underline; }
.r365-area__links span { color: var(--mls-muted); font-size: .78rem; }
.r365-area__all { margin: 12px 0 0; font-size: .85rem; }
.r365-area__all a { color: var(--mls-accent); font-weight: 600; }

.r365-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; max-width: 1140px; margin: 0 auto 40px; }
.r365-areas__item { display: block; padding: 16px 18px; background: #fff; border: 1px solid var(--mls-line); border-left: 4px solid var(--mls-accent);
  text-decoration: none; color: var(--mls-ink); }
.r365-areas__item:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.r365-areas__item strong { display: block; font-size: 1rem; }
.r365-areas__item span { font-size: .8rem; color: var(--mls-muted); }

/* editable city content */
.r365-areas__h { max-width: 1140px; margin: 10px auto 14px; font-size: 1.3rem; font-weight: 400; color: var(--mls-ink); }
.r365-areas--served .r365-areas__item { border-left-color: #111; }
.r365-area__served { text-align: center; padding: 30px 28px; margin-bottom: 22px; }
.r365-area__served p { max-width: 720px; margin: 0 auto 18px; line-height: 1.7; }
.r365-area__btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.r365-profile__btn--dark { background: #111 !important; color: #fff !important; }
.r365-profile__btn--dark:hover { background: var(--mls-accent) !important; }
.r365-area__textlink { color: var(--mls-accent); font-weight: 600; text-decoration: none; }
.r365-area__textlink:hover { text-decoration: underline; }
.r365-area__intro { background: #fff; border: 1px solid var(--mls-line); padding: 20px 24px; margin-bottom: 22px; line-height: 1.7; }
.r365-area__intro > :last-child, .r365-area__bottom > :last-child { margin-bottom: 0; }
.r365-area__bottom { margin-bottom: 22px; line-height: 1.7; }
.r365-area__intro img, .r365-area__bottom img { max-width: 100%; height: auto; }

/* [mls_areas_cover] — "Areas We Cover" strip */
.r365-cover { text-align: center; padding: 44px 16px; background: #fff; }
.r365-cover__h { font-weight: 300; font-size: 2rem; margin: 0 0 10px; color: var(--mls-ink); }
.r365-cover__list { max-width: 1100px; margin: 0 auto; line-height: 1.9; }
.r365-cover__a { display: inline-block; margin: 0 8px; color: var(--mls-accent); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.r365-cover__a:hover { color: var(--mls-accent-d); text-decoration: underline; }
.r365-cover__a i { color: #777; margin-right: 3px; font-size: .85em; }
.r365-cover__a.is-more { display: none; }
.r365-cover__group.is-open .r365-cover__a.is-more { display: inline-block; }
.r365-cover__group + .r365-cover__group { margin-top: 34px; }
.r365-cover__more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--mls-accent); font: inherit; font-size: .95rem; cursor: pointer; }
.r365-cover__more:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .r365-area__feat { grid-template-columns: 1fr 1fr; }
  .r365-area__two { grid-template-columns: 1fr; }
  .r365-area__links--cols { columns: 2; }
}
@media (max-width: 575px) {
  .r365-area__feat { grid-template-columns: 1fr; }
  .r365-area__links, .r365-area__links--cols { columns: 1; }
}
