/* Red on the WERCR layout.
 *
 * Load order: Polo plugins.css → Polo style.css → WERCR custom.css → this file.
 * Polo supplies the grid, header, mega-menu and footer; custom.css supplies
 * WERCR's magenta controls. This file holds the page sections WERCR builds
 * with inline styles, plus the pieces only an agent network needs: the
 * comparison ledger, the deal panel and demand cards.
 */

:root {
  --wercr:        #D62E65;
  --wercr-2:      #DA2D74;
  --wercr-dim:    #FDF0F5;
  --wercr-grad:   linear-gradient(-90deg, #D62F66 0%, #DA2D74 100%);
  --ink:          #1E1E1E;
  --shade:        rgba(0, 0, 0, 0.52);
  --line:         #E6E6E6;
  --muted:        #6B6B6B;
  --good:         #0A7A55;
  --warn:         #C27C0E;
  --font:         "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

body, h1, h2, h3, h4, h5, h6, p, a, label, input, select, button, .btn, #mainMenu nav > ul > li > a {
  font-family: var(--font);
}
body { background: #fff; color: var(--ink); }
a { color: var(--wercr); }
a:hover { color: var(--wercr-2); }
code { color: var(--wercr); }

/* ---- Header ------------------------------------------------------------ */
#header #logo img { max-height: 56px; width: auto; }
#mainMenu nav > ul > li > a { text-transform: uppercase; font-weight: 700; letter-spacing: 0.02em; }
#mainMenu nav > ul > li .dropdown-menu > li > a { text-transform: none; }
.nav-logout { margin: 0; }
.nav-logout button {
  background: none; border: 0; width: 100%; text-align: left;
  padding: 10px 20px 10px 18px; font-size: 12px; color: #fff; cursor: pointer;
}
.nav-logout button:hover { color: var(--wercr); }

/* WERCR's floating contact bar. */
.float-social {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; background: #000; border-radius: 10px 0 0 10px; padding: 6px 0;
}
.float-social a { color: #fff; padding: 10px 14px; font-size: 14px; line-height: 1; }
.float-social a:hover { color: var(--wercr); }
@media (max-width: 767.98px) { .float-social { display: none; } }

/* ---- Footer ------------------------------------------------------------ */
#footer .footer-content { padding: 40px 0 30px; }
#footer .footer-content img { max-height: 90px; }
.footer-links { margin: 14px 0 0; font-size: 13px; color: #999; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: var(--wercr); }

/* ---- Shared section scaffolding ----------------------------------------- */
.wercr-section { padding: 3rem 0; background: transparent; }
.wercr-section--search { padding: 1.75rem 0 1rem; }
.wercr-section--dark { background: #000; }
.wercr-section--welcome p { font-size: 15px; line-height: 1.75; }

.wercr-label {
  display: block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--ink); margin-bottom: 0;
}
.wercr-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }

.wercr-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.wercr-heading h2 { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; margin: 0; }
.wercr-heading a { font-weight: 600; font-size: 14px; }
.wercr-heading--light h2 { color: #fff; }

.wercr-pagehead { background: #1f1f1f; color: #fff; padding: 3rem 0 2.5rem; }
.wercr-pagehead h1 { color: #fff; font-weight: 800; text-transform: uppercase; font-size: 2.3rem; line-height: 1.15; margin-bottom: 0.4rem; }
.wercr-pagehead p { color: #c8c8c8; max-width: 70ch; margin: 0; }
.wercr-pagehead .wercr-label { color: #c8c8c8; }
.wercr-crumbs { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem !important; }
.wercr-crumbs a { color: #fff; }

.wercr-empty { text-align: center; padding: 4rem 1rem; }
.wercr-empty h3 { font-weight: 700; }
.wercr-empty p { color: var(--muted); }

.wercr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wercr-tags span { background: #f3f3f3; font-size: 12px; padding: 3px 10px; }
.wercr-tag {
  display: inline-block; background: var(--wercr); color: #fff !important; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 9px; vertical-align: middle;
}
.wercr-tag--good { background: var(--good); }
.wercr-tag--muted { background: #eee; color: var(--muted) !important; }

/* ---- Hero ---------------------------------------------------------------- */
.wercr-hero {
  position: relative; background: #000 center / cover no-repeat;
  min-height: 640px; display: flex; align-items: center; padding: 0;
}
.wercr-hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.wercr-hero__inner { position: relative; z-index: 1; padding: 6rem 15px; }
.wercr-hero .headertitle { margin: 0 0 4.5rem; }
.shadowblade { text-shadow: 3px 4px 2px rgba(0, 0, 0, 0.6); }
.wercr-hero h1.shadowblade { color: #fff; font-weight: 800; font-size: 5.5rem; line-height: 1; margin: 0; }
.wercr-hero h4.shadowblade { color: #fff; font-weight: 800; font-size: 2.4rem; margin: 0.6rem 0 0; }
@media (max-width: 991.98px) {
  .wercr-hero { min-height: 480px; }
  .wercr-hero h1.shadowblade { font-size: 3rem; }
  .wercr-hero h4.shadowblade { font-size: 1.35rem; }
  .wercr-hero .headertitle { margin-bottom: 2.5rem; }
}

/* ---- Search block -------------------------------------------------------- */
.wercr-pill { flex-wrap: nowrap; }
.wercr-pill .form-control {
  font-size: 1.35rem; padding: 13px 13px 13px 25px; border-radius: 32px 0 0 32px !important;
  border: 1px solid #ddd; height: auto;
}
.wercr-pill .btn {
  background: var(--wercr) !important; border: 0 !important; color: #fff !important;
  border-radius: 0 32px 32px 0 !important; margin: 0 !important; padding: 0 34px !important; font-size: 18px;
}
.wercr-pill .btn:hover { background: var(--wercr-2) !important; }
.wercr-pill--hero .form-control { font-size: 1.4rem; border-color: #fff; }
@media (max-width: 575.98px) {
  .wercr-pill .form-control { font-size: 1rem; padding-left: 18px; }
  .wercr-pill .btn { padding: 0 20px !important; }
}

.wercr-toggle { display: inline-flex !important; flex-wrap: wrap; }
.wercr-toggle input[type="radio"] + label { margin: 0; }
.wercr-toggle input[type="radio"] + label span { font-weight: 500; font-size: 13px; }
.wercr-toggle input[type="radio"]:checked + label span { opacity: 1; background-color: #E77FA2; }
.wercr-toggle--sm input[type="radio"] + label span { width: auto; padding: 0 14px; height: 40px; line-height: 40px; }
@media (max-width: 991.98px) { .wercr-toggle--sm { margin-top: 0.75rem; } }

.wercr-range { margin: 0 1.5rem 0 0; }
.wercr-search .input-group-text { border-radius: 0; font-size: 13px; background: #f5f5f5; }
.wercr-search .form-control-sm { height: 36px; }
.wercr-search .btn-gradient { color: #fff; padding: 12px; font-weight: 700; letter-spacing: 0.08em; }
.select2-container--default .select2-selection--single {
  border-radius: 0; height: 36px; border-color: #ced4da; margin-top: 0.5rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px; font-size: 13px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; top: 0.5rem; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--wercr); }

/* ---- Results bar --------------------------------------------------------- */
.wercr-resultsbar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  border-bottom: 1px solid var(--line); padding: 0.9rem 0;
}
.wercr-resultsbar__count { font-size: 1.15rem; text-transform: uppercase; font-weight: 600; }
.wercr-resultsbar__count b { color: var(--wercr); font-weight: 800; }
.wercr-resultsbar__tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.wercr-resultsbar__tools select { width: auto; min-width: 190px; }

.wercr-viewtoggle { display: inline-flex; }
.wercr-viewtoggle a {
  padding: 7px 14px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  border: 1px solid var(--wercr); color: var(--wercr); margin-left: -1px;
}
.wercr-viewtoggle a.is-on, .wercr-viewtoggle a:hover { background: var(--wercr); color: #fff; }

.wercr-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 0.9rem; }
.wercr-applied span { background: var(--wercr-dim); color: var(--wercr); font-size: 12px; font-weight: 600; padding: 4px 10px; }
.wercr-applied a { font-size: 12px; margin-left: 6px; }

.wercr-pager { margin-top: 1rem; }
.wercr-pager .page-link { color: var(--wercr); border-radius: 0 !important; }
.wercr-pager .page-item.active .page-link { background: var(--wercr); border-color: var(--wercr); color: #fff; }

/* ---- Property card (WERCR) ----------------------------------------------- */
.wercr-card-link, .wercr-card-link:hover { text-decoration: none; color: #fff; display: block; }
.wercr-card {
  position: relative; height: 500px; border: 0; border-radius: 0; overflow: hidden;
  background: #3a3a3a center / cover no-repeat; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wercr-card-link:hover .wercr-card { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.wercr-card__top {
  background: rgba(0, 0, 0, 0.52); min-height: 70px; padding: 14px 16px 12px 18px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem;
}
.wercr-card__top h5 { color: #fff; text-transform: uppercase; font-weight: 600; font-size: 15px; margin: 0; letter-spacing: 0.04em; }
.wercr-card__id { font-size: 13px; white-space: nowrap; padding-top: 1px; }
.wercr-card__bottom { background: rgba(0, 0, 0, 0.52); padding: 14px 18px 12px; }
.wercr-card__title { color: #fff; text-transform: uppercase; font-weight: 700; font-size: 15px; margin: 0; letter-spacing: 0.04em; }
.wercr-card__where { color: #fff; text-transform: uppercase; font-weight: 400; font-size: 13px; margin: 2px 0 8px; letter-spacing: 0.03em; }
.wercr-card__specs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.wercr-card__specs span { display: inline-flex; align-items: center; gap: 7px; }
.wercr-card__specs img { height: 18px; width: auto; }

/* ---- Home blocks ---------------------------------------------------------- */
.wercr-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.5rem; }
.wercr-stats > div { background: #fff; padding: 1rem; text-align: center; }
.wercr-stats b { display: block; font-size: 2rem; font-weight: 800; color: var(--wercr); line-height: 1.1; }
.wercr-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.wercr-stats--compact { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
@media (max-width: 767.98px) { .wercr-stats { grid-template-columns: repeat(3, 1fr); } }

.wercr-area {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  height: 280px; padding: 20px 22px; background: #333 center / cover no-repeat; color: #fff; overflow: hidden;
}
.wercr-area::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.75)); transition: background 0.25s; }
.wercr-area:hover::before { background: linear-gradient(180deg, rgba(214,46,101,0.25) 0%, rgba(0,0,0,0.8)); }
.wercr-area > span { position: relative; }
.wercr-area__name { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; text-shadow: 2px 2px 2px rgba(0,0,0,0.5); }
.wercr-area__count { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Property detail ------------------------------------------------------- */
.wercr-gallery { width: 100%; height: 62vh; min-height: 320px; max-height: 700px; background: #111; }
.wercr-gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wercr-gallery .swiper-button-next, .wercr-gallery .swiper-button-prev { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.wercr-gallery .swiper-pagination-fraction {
  left: auto; right: 20px; bottom: 16px; width: auto; color: #fff; background: rgba(0,0,0,0.55);
  padding: 4px 12px; font-size: 13px;
}

.wercr-detail { padding-top: 2.5rem; padding-bottom: 3rem; }
.wercr-detail__id { font-size: 1.6rem; font-weight: 600; margin: 0 0 0.5rem; }
.wercr-detail__name { font-size: 1.6rem; font-weight: 600; margin: 0; }
.wercr-detail__where { color: var(--muted); margin: 0.35rem 0 0; font-size: 14px; }
.wercr-detail__status { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
.wercr-detail__price { font-size: 1.8rem; font-weight: 700; margin: 0; }
.wercr-detail__price small { font-size: 0.9rem; font-weight: 500; }
.wercr-detail__fx { color: var(--muted); font-size: 13px; margin: 0.25rem 0 0; }
.wercr-detail__headline { font-size: 2rem; font-weight: 800; margin: 0 0 1.5rem; }
.wercr-detail__remarks { white-space: pre-line; text-align: justify; font-size: 16px; line-height: 1.6; }

/* WERCR's magenta-ruled fact table. Borders on two sides of the frame and two
   sides of each cell, so adjoining cells share one rule instead of doubling. */
.table-border { border-top: 1px solid var(--wercr); border-left: 1px solid var(--wercr); }
.table-border .cell { border-right: 1px solid var(--wercr); border-bottom: 1px solid var(--wercr); padding: 18px 20px; font-size: 14px; }
.table-border .cell b { font-weight: 700; }
.wercr-facts--compact .cell { padding: 10px 16px; font-size: 13px; }

.wercr-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 1.5rem 0 0.25rem; scroll-snap-type: x mandatory; }
.wercr-thumbs__item { flex: 0 0 auto; border: 0; padding: 0; background: none; scroll-snap-align: start; cursor: pointer; }
.wercr-thumbs__item img { width: 260px; height: 190px; object-fit: cover; display: block; }
.wercr-thumbs__item:hover img { opacity: 0.85; }

.wercr-block { margin-bottom: 2.25rem; }
.wercr-block h4 { font-weight: 700; margin-bottom: 1rem; }
.wercr-history td { font-size: 13px; padding: 0.45rem 0.25rem; }

.wercr-locked {
  display: flex; gap: 14px; align-items: flex-start; border: 1px dashed var(--wercr);
  background: var(--wercr-dim); padding: 18px 20px; margin-bottom: 2.25rem; color: var(--muted);
}
.wercr-locked i { color: var(--wercr); font-size: 20px; margin-top: 2px; }
.wercr-locked strong { display: block; color: var(--ink); }

.wercr-deal { border: 1px solid var(--line); padding: 1.75rem 1.5rem; }
.wercr-deal__title { text-align: center; color: #9a9a9a; font-weight: 700; font-size: 1.45rem; margin-bottom: 1.25rem; }
.wercr-deal__agent { text-align: center; margin-bottom: 1.25rem; }
.wercr-deal__avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 0.9rem; background: var(--wercr-grad);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.3rem; font-weight: 800;
}
.wercr-deal__agent h4 { font-weight: 700; margin: 0; }
.wercr-deal__agent p { margin: 0.2rem 0 0; color: var(--muted); font-size: 14px; }
.wercr-deal__phone { font-weight: 600; color: var(--ink) !important; }
.wercr-deal__take { background: var(--wercr-dim); padding: 1rem 1.1rem; margin: 0 -0.25rem 0.75rem; }
.wercr-deal__take .wercr-label { color: var(--wercr); font-size: 11px; }
.wercr-deal__take .take__amount { display: block; font-size: 1.85rem; font-weight: 800; color: var(--wercr); line-height: 1.2; margin-top: 4px; }
.wercr-deal__take .take__basis { display: block; font-size: 12px; color: var(--muted); }
.wercr-deal__take--closed { background: #f4f4f4; }
.wercr-deal__take--closed .take__amount { color: var(--muted); font-size: 1.2rem; }
.wercr-deal__rows { margin: 0 0 1rem; }
.wercr-deal__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wercr-deal__rows dt { font-weight: 500; color: var(--muted); }
.wercr-deal__rows dd { margin: 0; font-weight: 700; text-align: right; }
.wercr-deal__note { font-size: 13px; color: var(--muted); }
.wercr-deal__actions { display: grid; gap: 8px; }
.wercr-deal__actions .btn { margin: 0; color: #fff; padding: 12px; font-weight: 600; }
.wercr-deal__actions .btn-light { color: var(--ink); }
@media (min-width: 992px) { .wercr-deal { position: sticky; top: 20px; } }

.wercr-map { height: 380px; margin: 1rem 0 0; z-index: 0; }

/* ---- Comparison ledger (Tabla view, requirement matches) ------------------- */
.ledger { border-top: 1px solid var(--line); margin-top: 1rem; }
.row-item {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 230px; gap: 1.25rem; align-items: start;
  padding: 1rem 0.25rem; border-bottom: 1px solid var(--line);
}
.row-item:hover { background: #fafafa; }
.row__media { position: relative; width: 150px; height: 110px; background: #eee; overflow: hidden; }
.row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row__media--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.row__badge { position: absolute; left: 0; top: 0; background: #000; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; }
.row__place { font-size: 1rem; font-weight: 700; text-transform: uppercase; margin: 0 0 2px; letter-spacing: 0.02em; }
.row__place a { color: var(--ink); }
.row__place a:hover { color: var(--wercr); }
.row__where { color: var(--muted); font-size: 13px; margin-bottom: 0.5rem; }
.specs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.specs b { font-weight: 700; }
.specs span { color: var(--muted); }
.row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 0.5rem; font-size: 12px; color: var(--muted); }
.row__deal { text-align: right; font-variant-numeric: tabular-nums; }
.price { display: block; font-size: 1.2rem; font-weight: 800; }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.price--score { color: var(--wercr); }
.take { margin-top: 0.6rem; }
.take__label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.take .take__amount { display: block; font-size: 1.05rem; font-weight: 800; color: var(--wercr); }
.take .take__basis { display: block; font-size: 11px; color: var(--muted); }
.take__basis--strong { font-size: 14px !important; color: var(--ink) !important; font-weight: 600; }
.take--closed .take__amount { color: var(--muted); font-size: 0.9rem; }

.reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.4rem; }
.reason { font-size: 11px; padding: 2px 8px; }
.reason--hit { background: #E6F4EE; color: var(--good); }
.reason--miss { background: #f3f3f3; color: var(--muted); }

@media (max-width: 767.98px) {
  .row-item { grid-template-columns: 96px minmax(0, 1fr); gap: 0.85rem; }
  .row__media { width: 96px; height: 80px; }
  .row__deal { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: baseline; }
  .row__deal .take { margin-top: 0; }
}

/* ---- Demand cards ----------------------------------------------------------- */
.wercr-req { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); }
.wercr-req__top {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  background: #1f1f1f; color: #fff; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}
.wercr-req__top b { font-size: 14px; letter-spacing: 0; text-transform: none; }
.wercr-req--hot .wercr-req__top { background: var(--wercr-grad); }
.wercr-req--cold .wercr-req__top { background: #6f6f6f; }
.wercr-req__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.wercr-req__body h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.wercr-req__body h3 a { color: var(--ink); }
.wercr-req__body h3 a:hover { color: var(--wercr); }
.wercr-req__specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.wercr-req__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; border-top: 1px solid var(--line); padding: 10px 16px; font-size: 13px; color: var(--muted); }

/* ---- Fixes over Polo defaults ------------------------------------------------ */
.wercr-hero { background-size: cover !important; background-position: center !important; }
.wercr-pill .btn { min-width: 100px; height: auto !important; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.wercr-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.wercr-resultsbar__tools label { display: inline-block; }

/* custom.css only styles <button>.btn-gradient; links need the same face. */
a.btn.btn-gradient, a.btn.btn-gradient:hover {
  background: var(--wercr-grad) !important; border: 0 !important; color: #fff !important;
}
.btn.btn-wercr-outline { background: transparent; border: 1px solid var(--wercr); color: var(--wercr); }
.btn.btn-wercr-outline:hover { background: var(--wercr); color: #fff; }

/* Fact-table filler: fills the half-row left before a full-width cell when the
   half cells are odd in number, and disappears when they are even. */
.wercr-facts > .cell--filler:nth-child(odd) { display: none; }
@media (max-width: 767.98px) { .wercr-facts > .cell--filler { display: none; } }
/* Polo's .btn rules use :not() chains; match their weight. */
.btn:not(.close):not(.mfp-close).btn-wercr-outline { background: transparent !important; border: 1px solid var(--wercr) !important; color: var(--wercr) !important; }
.btn:not(.close):not(.mfp-close).btn-wercr-outline:hover { background: var(--wercr) !important; color: #fff !important; }
.wercr-resultsbar__tools .wercr-label { display: inline-block !important; }
@media (max-width: 767.98px) { .wercr-detail .property-data > .col-md-5 { margin-top: 1rem; } }

/* ---- Search-bar autocomplete (static/js/suggest.js) ------------------------- */
.wercr-pill { position: relative; }
.wercr-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  max-height: min(60vh, 460px); overflow-y: auto; background: #fff; text-align: left;
  border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22); padding: 6px 0;
}
.wercr-suggest__group {
  padding: 10px 22px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--wercr);
}
.wercr-suggest__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 9px 22px; color: var(--ink); text-decoration: none;
}
.wercr-suggest__item:hover, .wercr-suggest__item.is-active { background: var(--wercr-dim); color: var(--ink); text-decoration: none; }
.wercr-suggest__label { font-weight: 600; font-size: 15px; }
.wercr-suggest__detail { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wercr-suggest__item--place .wercr-suggest__label::before,
.wercr-suggest__item--city .wercr-suggest__label::before,
.wercr-suggest__item--community .wercr-suggest__label::before,
.wercr-suggest__item--province .wercr-suggest__label::before { content: "\f3c5"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--wercr); margin-right: 10px; font-size: 13px; }
.wercr-suggest__item--type .wercr-suggest__label::before { content: "\f015"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--wercr); margin-right: 10px; font-size: 13px; }
.wercr-suggest__item--listing .wercr-suggest__label::before { content: "\f0a1"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--wercr); margin-right: 10px; font-size: 13px; }
@media (max-width: 575.98px) {
  .wercr-suggest__item { flex-direction: column; gap: 0; }
  .wercr-suggest__detail { text-align: left; }
}
/* Polo gives every <section> z-index 1, so the block after a search bar would
   paint over its dropdown. Lift the search areas above their neighbours. */
.wercr-hero__inner { z-index: 10; }
.wercr-hero { z-index: 11; }              /* above the filter block that follows it */
.wercr-section--search { z-index: 10; }

/* ---- PDF export: detail buttons, search selection ---------------------------- */
.wercr-pdfbtns { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; margin-top: 0.6rem; font-size: 13px; font-weight: 600; }
.wercr-pdfbtns a { white-space: nowrap; }
.wercr-pdfbtns a { color: var(--wercr); }
.wercr-pdfbtns i { margin-right: 4px; }
@media (max-width: 767.98px) { .wercr-pdfbtns { justify-content: flex-start; } }

.wercr-card-col { position: relative; }
.row__media { position: relative; }
/* Hidden unless selection mode is on: the public card shows nothing extra. */
.wercr-select { position: absolute; z-index: 3; margin: 0; cursor: pointer; display: none; }
body.is-selecting .wercr-select { display: block; }
.wercr-selecttoggle {
  background: none; border: 1px solid var(--wercr); color: var(--wercr); padding: 6px 14px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; cursor: pointer;
}
.wercr-selecttoggle[aria-pressed="true"], .wercr-selecttoggle:hover { background: var(--wercr); color: #fff; }
.wercr-card-col .wercr-select { left: 26px; top: 84px; }
.row__media .wercr-select { right: 6px; top: 6px; }
.wercr-select input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wercr-select span {
  display: block; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 4px;
  background: rgba(0, 0, 0, 0.45); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.wercr-select input:checked + span { background: var(--wercr); border-color: var(--wercr); }
.wercr-select input:checked + span::after {
  content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: #fff;
  display: block; text-align: center; line-height: 22px; font-size: 13px;
}
.wercr-select input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.wercr-card-col.is-selected .wercr-card { box-shadow: 0 0 0 3px var(--wercr); }
.row-item.is-selected { background: var(--wercr-dim); }

.wercr-selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #1f1f1f; color: #fff; padding: 10px 0; box-shadow: 0 -6px 20px rgba(0,0,0,0.25); }
.wercr-selbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wercr-selbar b { color: var(--wercr); font-size: 1.15rem; }
.wercr-selbar__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wercr-selbar__actions .btn { margin: 0; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.wercr-selbar__clear { background: none; border: 0; color: #ccc; font-size: 13px; text-decoration: underline; cursor: pointer; }
body.has-selbar #footer { padding-bottom: 64px; }

/* ---- Property contact form (as on wercr.com) ---------------------------------- */
.wercr-contact label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wercr-contact .form-control { border-radius: 0; }
.wercr-contact .form-group { margin-bottom: 14px; }
.wercr-contact .btn { color: #fff; padding: 11px 22px; font-weight: 600; margin: 0; }
.wercr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wercr-notice { padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.wercr-notice i { margin-right: 6px; }
.wercr-notice--ok { background: #E6F4EE; color: var(--good); }
.wercr-notice--error { background: #FDECEC; color: #b42318; }
.wercr-host { text-align: center; }
.wercr-host__title { color: #9a9a9a; font-weight: 700; font-size: 1.45rem; margin-bottom: 1rem; }
.wercr-host__photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; }
.wercr-host__photo--initials { background: var(--wercr-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; font-weight: 800; }
.wercr-host__name { font-size: 1.6rem; font-weight: 600; margin: 0; }
.wercr-host__role { font-weight: 800; font-size: 1rem; margin: 0.3rem 0; }
.wercr-host__phone { color: var(--ink); font-size: 1rem; }
.wercr-login { border: 1px solid var(--line); padding: 2rem 2rem 1.5rem; }
.wercr-login h1 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.3rem; }
.wercr-login__lead { color: var(--muted); margin-bottom: 1.25rem; }

/* ---- Our team (wercr.com/our-team) ------------------------------------------- */
.wercr-team-intro { max-width: 980px; margin: 0 auto 2.5rem; text-align: justify; font-size: 15px; line-height: 1.75; }
.wercr-team-card {
  position: relative; height: 400px; border: 0; border-radius: 0; overflow: hidden;
  background: #2b2b2b center / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end;
}
.wercr-team-card__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 6rem; font-weight: 800; color: rgba(255,255,255,0.25); }
.wercr-team-card__name { position: relative; background: rgba(0, 0, 0, 0.44); color: #fff; text-align: center; padding: 14px 20px; }
.wercr-team-card__name h4 { color: #fff; margin: 0; font-weight: 700; }
/* As on wercr.com: the details block opens below the name band, it does not cover it. */
.wercr-team-card__over {
  position: relative; background: rgba(214, 46, 101, 0.9); color: #fff;
  text-align: center; padding: 14px 20px; display: none;
}
.wercr-team-card__over p, .wercr-team-card__over b { margin: 0 0 4px; color: #fff; }
.wercr-team-card__over a { color: #fff; }
.wercr-team-card__bio { font-size: 13px; margin-top: 8px !important; }
.wercr-team-card:hover .wercr-team-card__over,
.wercr-team-card:focus-within .wercr-team-card__over { display: block; }
/* Touch screens have no hover: show the details under the name. */
@media (hover: none) { .wercr-team-card__over { display: block; } }

/* ---- CRM (agents' pipeline) ------------------------------------------------- */
.crm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.crm-switch a { color: #fff; border-color: #fff; }
.crm-switch a.is-on, .crm-switch a:hover { background: var(--wercr); border-color: var(--wercr); }
.crm-wrap { max-width: 1680px; }
.crm-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.crm-filters { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.crm-filters .form-control { width: auto; min-width: 200px; border-radius: 0; }
.crm-filters__clear { font-size: 13px; font-weight: 600; }
.crm-new { position: relative; }
.crm-new summary { list-style: none; cursor: pointer; background: var(--wercr-grad); color: #fff; border-color: transparent !important; box-shadow: none; }
.crm-new summary:hover { color: #fff; opacity: .92; }
.crm-new summary::-webkit-details-marker { display: none; }
.crm-new__form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(560px, 92vw);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 1.25rem;
}
.crm-new__form label, .crm-panel label { font-size: 12px; font-weight: 600; margin-bottom: 2px; }

.crm-board { display: flex; gap: 12px; overflow-x: auto; padding: 1.25rem 0 1rem; align-items: flex-start; }
.crm-col { flex: 1 0 180px; min-width: 180px; background: #f6f6f6; border-top: 3px solid #1f1f1f; display: flex; flex-direction: column; max-height: 78vh; }
.crm-col--won { border-top-color: var(--good); }
.crm-col--lost { border-top-color: #9a9a9a; }
.crm-col--offer, .crm-col--showing { border-top-color: var(--wercr); }
.crm-col__head { padding: 10px 12px 8px; }
.crm-col__head h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin: 0; display: flex; align-items: center; gap: 6px; }
.crm-col__count { background: #1f1f1f; color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.crm-col__total { display: block; font-size: 12px; color: var(--muted); font-weight: 600; min-height: 1.2em; margin-top: 2px; }
.crm-col__list { flex: 1; overflow-y: auto; padding: 0 8px 10px; min-height: 80px; display: flex; flex-direction: column; gap: 8px; }
.crm-col__more { font-size: 12px; color: var(--muted); padding: 0 12px 10px; margin: 0; }
.crm-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid transparent; padding: 10px 11px; cursor: grab; font-size: 13px; }
.crm-card:hover { border-color: #cfcfcf; }
.crm-card.is-overdue { border-left-color: #b42318; }
.crm-card.is-ghost { opacity: .35; }
.crm-card.is-chosen { box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.crm-card.is-saving { opacity: .6; }
.crm-card__name { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.crm-card__name:hover { color: var(--wercr); }
.crm-card__prop { color: var(--muted); margin-top: 2px; line-height: 1.3; }
.crm-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; }
.crm-card__meta b { font-size: 13px; }
.crm-card__next, .crm-card__why { margin-top: 6px; font-size: 12px; color: var(--muted); }
.crm-card.is-overdue .crm-card__next, .crm-overdue { color: #b42318; font-weight: 600; }
.crm-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; background: #eee; color: #444; white-space: nowrap; line-height: 1.5; }
.crm-badge--inquiry { background: var(--wercr-dim); color: var(--wercr); }
.crm-badge--requirement { background: #E6F4EE; color: var(--good); }
.crm-badge--referral { background: #FFF4E0; color: var(--warn); }
.crm-status { font-size: 13px; color: var(--muted); min-height: 1.2em; }

.crm-panel { border: 1px solid var(--line); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.crm-panel .form-control { border-radius: 0; }
.crm-contact h3 { font-weight: 800; margin: 4px 0 8px; }
.crm-contact__lines { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; word-break: break-word; }
.crm-contact__lines i { color: var(--wercr); width: 18px; }
.crm-contact__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.crm-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.crm-facts dt { color: var(--muted); font-weight: 600; }
.crm-facts dd { margin: 0; }
.crm-kinds { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.crm-kinds label { display: inline-flex; align-items: center; gap: 4px; text-transform: none; font-weight: 500 !important; margin: 0; cursor: pointer; }
.crm-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.crm-act { position: relative; padding: 0 0 18px 18px; }
.crm-act::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #bbb; }
.crm-act--stage::before { background: #1f1f1f; }
.crm-act--task::before { background: var(--warn); }
.crm-act--system::before { background: var(--wercr); }
.crm-act.is-overdue::before { background: #b42318; }
.crm-act__head { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.crm-act__head span { color: var(--muted); font-size: 12px; }
.crm-act__body { margin: 4px 0 0; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.crm-act__task { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.crm-act__task form { margin: 0; }

.crm-tasks { border: 1px solid var(--line); height: 100%; }
.crm-tasks--overdue { border-top: 3px solid #b42318; }
.crm-tasks--today { border-top: 3px solid var(--wercr); }
.crm-tasks--upcoming { border-top: 3px solid #1f1f1f; }
.crm-tasks ul { list-style: none; padding: 0 12px 12px; margin: 0; }
.crm-task { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.crm-task div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.crm-task form { margin: 0; flex: none; }
.crm-task__due { color: var(--muted); font-size: 12px; }
.crm-tasks--overdue .crm-task__due { color: #b42318; font-weight: 600; }
.crm-task--empty { color: var(--muted); }
.crm-done { list-style: none; padding: 0; font-size: 13px; color: var(--muted); }
.crm-done i { color: var(--good); }
@media (max-width: 767.98px) {
  .crm-col { flex-basis: 82vw; }
  .crm-new__form { position: static; width: auto; margin-top: 8px; }
}

/* ---- Comparables and market (agents) ------------------------------------------
 * Chart palette: WERCR pink = sold, blue = the second series (pink/blue pass the
 * colour-vision checks as a pair), ink = the subject property. Text never takes
 * a series colour; the coloured mark beside it carries identity.
 */
:root { --mk-blue: #2a78d6; --mk-grid: #ececec; --mk-axis: #c9c9c9; }
.mk-headtools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.mk-print { background: none; border: 1px solid #fff; color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; cursor: pointer; }
.mk-print:hover { background: var(--wercr); border-color: var(--wercr); }
.mk-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mk-h2 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 0.25rem; }
.mk-count { display: inline-block; background: #1f1f1f; color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; vertical-align: middle; margin-left: 4px; }
.mk-sub { color: var(--muted); font-size: 13px; margin: 0 0 0.5rem; }
.mk-note { color: var(--muted); font-size: 12px; margin: 0.75rem 0 0; }
.mk-empty { color: var(--muted); border: 1px dashed var(--line); padding: 1rem; }

.mk-subject { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1rem; border: 1px solid var(--line); padding: 1rem; height: 100%; }
.mk-subject__media { width: 160px; height: 120px; background: #eee; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.mk-subject__media img { width: 100%; height: 100%; object-fit: cover; }
.mk-subject h2 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin: 2px 0; }
.mk-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; margin: 0; }
.mk-facts dt { color: var(--muted); font-weight: 600; }
.mk-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.mk-value { border: 1px solid var(--line); border-top: 3px solid var(--wercr); padding: 1rem 1.25rem; height: 100%; }
.mk-value--none { border-top-color: #9a9a9a; }
.mk-value__main { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin: 4px 0 8px; }
.mk-value__estimate { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.mk-value__range { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.mk-value__how { font-size: 13px; margin: 0; }
.mk-value__reason { font-size: 14px; margin: 8px 0 0; }
.mk-value__reason i { color: var(--muted); margin-right: 4px; }
.mk-conf { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; white-space: nowrap; }
.mk-conf--alta { background: #E6F4EE; color: var(--good); }
.mk-conf--media { background: #FFF4E0; color: #8a5a06; }
.mk-conf--baja { background: #FDECEC; color: #b42318; }

.mk-chart { margin: 2rem 0 0; border: 1px solid var(--line); padding: 1rem 1.1rem 0.75rem; background: #fff; }
.mk-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 0.25rem; font-size: 12px; color: var(--ink); }
.mk-legend li { display: inline-flex; align-items: center; gap: 6px; }
.mk-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.mk-key--closed { background: var(--wercr); }
.mk-key--active { border: 2px solid var(--mk-blue); background: #fff; }
.mk-key--subject { background: var(--ink); transform: rotate(45deg); border-radius: 0; width: 9px; height: 9px; }
.mk-key--band { background: rgba(214, 46, 101, 0.12); border-radius: 0; width: 16px; }
.mk-key--line-closed, .mk-key--line-new { width: 16px; height: 2px; border-radius: 1px; }
.mk-key--line-closed { background: var(--wercr); }
.mk-key--line-new { background: var(--mk-blue); }
.mk-plot { position: relative; width: 100%; min-height: 260px; }
.mk-plot--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.mk-svg { display: block; overflow: visible; font-family: var(--font); }
.mk-grid { stroke: var(--mk-grid); stroke-width: 1; }
.mk-axis { stroke: var(--mk-axis); stroke-width: 1; }
.mk-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-tick--strong { fill: var(--ink); font-weight: 600; }
.mk-axis-title { fill: var(--muted); font-size: 11px; font-weight: 600; }
.mk-band { fill: rgba(214, 46, 101, 0.10); }
.mk-median { stroke: rgba(214, 46, 101, 0.55); stroke-width: 1; }
.mk-subject-line { stroke: var(--ink); stroke-width: 1; opacity: 0.35; }
.mk-dot { stroke: #fff; stroke-width: 2; transition: transform .1s; }
.mk-dot--closed, .mk-dot--line-closed { fill: var(--wercr); }
.mk-dot--active { fill: #fff; stroke: var(--mk-blue); stroke-width: 2; }
.mk-dot--line-new { fill: var(--mk-blue); }
.mk-dot--subject { fill: var(--ink); }
.mk-dot.is-hot { stroke: var(--ink); }
.mk-hit { fill: transparent; cursor: pointer; outline: none; }
.mk-hit:focus-visible { stroke: var(--ink); stroke-width: 1; }
.mk-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mk-line--closed { stroke: var(--wercr); }
.mk-line--new { stroke: var(--mk-blue); }
.mk-cross { stroke: var(--ink); stroke-width: 1; opacity: 0.4; }
.mk-overlay { fill: transparent; outline: none; }
.mk-overlay:focus-visible { stroke: var(--mk-axis); }
.mk-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 7px 10px; font-size: 12px; min-width: 140px; max-width: 260px; }
.mk-tip__title { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.mk-tip__row { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.mk-tip__row b { font-size: 13px; color: var(--ink); }
.mk-tip__row span { color: var(--muted); }
.mk-tip__key { width: 12px; height: 2px; display: inline-block; align-self: center; }
.mk-tip__key--closed, .mk-tip__key--line-closed { background: var(--wercr); }
.mk-tip__key--active, .mk-tip__key--line-new { background: var(--mk-blue); }
.mk-tip__key--subject { background: var(--ink); }
.mk-data { margin-top: 0.5rem; font-size: 13px; }
.mk-data summary { cursor: pointer; color: var(--wercr); font-weight: 600; font-size: 12px; }

.mk-tablewrap { overflow-x: auto; margin-top: 0.5rem; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid #1f1f1f; padding: 8px 10px; white-space: nowrap; text-align: left; }
.mk-table td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-table th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.mk-table th button::after { content: " ↕"; opacity: 0.35; }
.mk-table th[aria-sort="ascending"] button::after { content: " ↑"; opacity: 1; }
.mk-table th[aria-sort="descending"] button::after { content: " ↓"; opacity: 1; }
.mk-table th[aria-sort="ascending"], .mk-table th[aria-sort="descending"] { color: var(--ink); }
.mk-table tbody tr:hover { background: #fafafa; }
.mk-table--compact td, .mk-table--compact th { padding: 4px 8px; }
.mk-col-photo { width: 84px; }
.mk-col-photo img, .mk-nophoto { width: 72px; height: 52px; object-fit: cover; display: block; background: #eee; }
.mk-id { display: block; color: var(--muted); font-size: 12px; }
.mk-table .reasons { margin-top: 4px; }
.mk-score { display: inline-block; min-width: 34px; text-align: center; font-weight: 800; background: var(--wercr-dim); color: var(--ink); padding: 2px 6px; }

.mk-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.mk-wide { max-width: 1440px; padding-left: 24px; padding-right: 24px; }
.mk-table td.mk-zone { min-width: 150px; }
.mk-filters label { flex: 0 1 230px; width: auto; display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.mk-filters .form-control { border-radius: 0; width: 100%; text-transform: none; font-weight: 500; letter-spacing: 0; }
.mk-scope { font-size: 13px; color: var(--muted); margin: 0.75rem 0 0; }
.mk-warn { display: inline-block; color: #8a5a06; margin-left: 6px; }
.mk-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 1rem; transition: opacity .15s; }
.mk-kpis.is-loading { opacity: 0.5; }
.mk-kpi { border: 1px solid var(--line); border-left: 3px solid #1f1f1f; padding: 10px 12px; }
.mk-kpi__label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.mk-kpi__value { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.mk-kpi__sub { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 767.98px) {
  .mk-subject { grid-template-columns: 1fr; }
  .mk-subject__media { width: 100%; height: 180px; }
  .mk-value__estimate { font-size: 2rem; }
  .mk-filters label { flex: 1 1 140px; }
  .mk-wide { padding-left: 16px; padding-right: 16px; }
}

/* Printed comps go to a listing appointment: the report, not the site. */
@media print {
  .mk-page #header, .mk-page #footer, .mk-page .float-social, .mk-page #scrollTop,
  .mk-page .mk-print, .mk-page .crm-switch, .mk-page .mk-filters, .mk-page .mk-data summary { display: none !important; }
  .mk-page .wercr-pagehead { background: none; color: var(--ink); padding: 0 0 0.5rem; border-bottom: 2px solid var(--wercr); }
  .mk-page .wercr-pagehead h1, .mk-page .wercr-pagehead p, .mk-page .wercr-crumbs, .mk-page .wercr-crumbs a { color: var(--ink) !important; }
  .mk-page .wercr-section { padding: 0.75rem 0; }
  .mk-page .container { max-width: none; width: 100%; padding: 0; }
  .mk-page .mk-chart, .mk-page .mk-value, .mk-page .mk-subject, .mk-page .mk-kpi { break-inside: avoid; }
  .mk-page .mk-table tr { break-inside: avoid; }
  .mk-page .mk-tablewrap { overflow: visible; }
  .mk-page .mk-tip { display: none !important; }
  .mk-page a { color: var(--ink); text-decoration: none; }
  .mk-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- Owners (staff and agents of the listing's office only) ---- */
.wercr-ownertoggle { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 0.5rem 0 0; font-size: 13px; font-weight: 600; cursor: pointer; }
@media (max-width: 767.98px) { .wercr-ownertoggle { justify-content: flex-start; } }
.wercr-owners { border: 1px solid #e3e3e3; padding: 1.25rem 1.5rem; }
.wercr-owner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #eee; }
.wercr-owner:last-of-type { border-bottom: 0; }
.wercr-owner__name { display: block; font-size: 16px; }
.wercr-owner__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.wercr-owner__links a { color: var(--wercr); }
.wercr-owner__links i { margin-right: 4px; }
.wercr-owner__notes { margin: 0.35rem 0 0; font-size: 13px; color: #666; }
.wercr-owner__remove { border: 0; background: none; color: #b42318; font-size: 13px; font-weight: 600; padding: 0; cursor: pointer; white-space: nowrap; }
.wercr-card-owner, .row__owner { font-size: 12.5px; margin: 0; padding: 6px 10px; background: #f6f6f6; }
.wercr-card-owner a, .row__owner a { color: var(--wercr); font-weight: 600; }
.row__owner { margin: 6px 0 0; }
.wercr-selbar__owner { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; font-size: 13px; color: #eee; cursor: pointer; }

/* ---- Zone landing pages (/zonas/<slug>/), after wercr.com/location/<id> ---- */
.wercr-zone-hero {
  height: 70vh; min-height: 360px; max-height: 760px;
  background: #222 center / cover no-repeat;
}
.wercr-zone-intro { padding: 60px 0 25px; }
.wercr-zone-crumbs { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; color: var(--muted); }
.wercr-zone-crumbs a { color: var(--muted); }
.wercr-zone-crumbs a:hover { color: var(--wercr); }
.wercr-zone-crumbs i { margin: 0 8px; }
.wercr-zone-draft { display: inline-block; background: #fff3cd; color: #6b5200; padding: 4px 10px; font-size: 13px; }
.wercr-zone-title { font-size: 2.2rem; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 18px; }
.wercr-zone-title b { font-weight: 800; }
.wercr-zone-text p { text-align: justify; text-justify: inter-word; }
.wercr-zone-carousel { margin: 40px 0 0; }
.wercr-zone-carousel img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; display: block; }
.wercr-zone-section { padding: 40px 0 20px; }
.wercr-zone-section--first { padding-top: 60px; }
.wercr-zone-heading { text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 30px; }
.wercr-zone-count { text-align: center; margin: -20px 0 24px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.wercr-subzone {
  display: block; height: 300px; background: #222 center / cover no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s;
}
.wercr-subzone:hover, .wercr-subzone:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.wercr-subzone h3 {
  margin: 0; padding: 16px 24px; background: rgba(0,0,0,0.44); color: #fff; text-align: center;
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
@media (max-width: 767px) {
  .wercr-zone-hero { height: 60vh; }
  .wercr-zone-intro { padding-top: 40px; }
  .wercr-zone-title { font-size: 1.6rem; }
  .wercr-zone-text p { text-align: left; }
}
/* Lifestyle tiles: the zone tile plus a one-line pitch at the bottom. */
.wercr-lifestyle { position: relative; }
.wercr-lifestyle p {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 20px;
  background: rgba(0,0,0,0.44); color: #fff; font-size: 13px; line-height: 1.4; text-align: center;
}
.wercr-zone-video { position: relative; aspect-ratio: 16 / 9; margin: 30px 0 0; background: #000; }
.wercr-zone-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
