/* ==========================================================================
   The Realty Machine — shared design system (rm-*)
   Extracted from the landing page redesign; loaded site-wide via head.html.
   ========================================================================== */

body {
  background: #f7f9fb !important;
  background-image: none !important;
  font-family: 'Lato', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1b2733;
}

.rm-landing, .rm-page { font-size: 17px; line-height: 1.6; }
.rm-landing *, .rm-page *, .rm-nav *, .rm-footer * { box-sizing: border-box; }

.rm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rm-wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* -- nav -------------------------------------------------------------- */
.rm-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e6eaef;
  backdrop-filter: blur(6px);
}
.rm-nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.rm-nav-logo { display: flex; align-items: center; gap: 12px; }
.rm-logo-mark { height: 62px; display: block; }
.rm-logo-title { height: 38px; display: block; }
.rm-nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.rm-nav-links a { color: #33414e; font-weight: 700; font-size: 15px; text-decoration: none; }
.rm-nav-links a:hover { color: #189d33; }

/* -- buttons ------------------------------------------------------------ */
.rm-btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; line-height: 1.2; text-align: center;
  font-family: inherit;
}
.rm-btn-primary { background: #189d33; color: #fff !important; }
.rm-btn-primary:hover { background: #12832a; color: #fff; }
.rm-btn-ghost { border-color: #cfd7de; color: #33414e !important; background: #fff; }
.rm-btn-ghost:hover { border-color: #189d33; color: #189d33 !important; }
.rm-btn-sm { padding: 9px 18px; font-size: 14px; }

/* -- eyebrow / headings --------------------------------------------------- */
.rm-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #189d33; background: #e7f6ea;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.rm-section { padding: 64px 0 12px; }
.rm-section-head { max-width: 640px; margin: 0 0 38px; }
.rm-section-head h2 { font-size: 34px; font-weight: 700; color: #101828; margin: 0 0 12px; line-height: 1.15; }
.rm-section-head p { color: #47566a; font-size: 17px; margin: 0; }

/* -- generic page shell ---------------------------------------------------- */
.rm-page { padding: 48px 0 72px; min-height: 60vh; }
.rm-page-head { max-width: 720px; margin: 0 0 34px; }
.rm-page-head h1 { font-size: 40px; font-weight: 700; color: #101828; line-height: 1.1; margin: 0 0 14px; }
.rm-page-head p { color: #47566a; font-size: 18px; margin: 0; }

.rm-card {
  background: #fff; border: 1px solid #e6eaef; border-radius: 16px; padding: 32px;
  margin-bottom: 22px;
}
.rm-card h2 { font-size: 24px; font-weight: 700; color: #101828; margin: 0 0 14px; }
.rm-card h3 { font-size: 19px; font-weight: 700; color: #101828; margin: 0 0 8px; }
.rm-card p { color: #47566a; font-size: 16px; }

/* -- ordered step list ------------------------------------------------------ */
.rm-olist { list-style: none; padding: 0; margin: 0; counter-reset: rmstep; }
.rm-olist li {
  counter-increment: rmstep; position: relative; padding: 14px 0 14px 58px;
  color: #33414e; font-size: 17px; border-bottom: 1px solid #eef1f5;
}
.rm-olist li:last-child { border-bottom: none; }
.rm-olist li:before {
  content: counter(rmstep); position: absolute; left: 0; top: 12px;
  width: 38px; height: 38px; border-radius: 999px; background: #101828; color: #fff;
  font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center;
}

/* -- forms ---------------------------------------------------------------- */
.rm-label { display: block; font-weight: 700; font-size: 14px; color: #33414e; margin: 18px 0 6px; }
.rm-input, .rm-select, .rm-textarea {
  width: 100%; padding: 13px 16px; font-size: 16px; font-family: inherit;
  color: #101828; background: #fff; border: 1px solid #cfd7de; border-radius: 8px;
  outline: none; box-sizing: border-box;
}
/* materialize resets input borders — win specificity for rm forms */
.rm-card input.rm-input, .rm-card textarea.rm-textarea {
  border: 1px solid #cfd7de !important; border-radius: 8px !important;
  padding: 13px 16px !important; box-shadow: none !important;
  height: auto !important; margin: 0 !important; box-sizing: border-box !important;
}
.rm-card select.rm-select { display: block; }  /* materialize hides selects unless initialized */
.rm-input:focus, .rm-select:focus, .rm-textarea:focus,
.rm-card input.rm-input:focus, .rm-card textarea.rm-textarea:focus {
  border-color: #189d33 !important; box-shadow: 0 0 0 3px rgba(24,157,51,.15) !important;
}
.rm-textarea { min-height: 180px; resize: vertical; }
.rm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.rm-form-grid .rm-span2 { grid-column: 1 / -1; }
.rm-form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* -- note / alert ------------------------------------------------------------ */
.rm-note {
  background: #f8fafc; border: 1px solid #e6eaef; border-left: 4px solid #189d33;
  border-radius: 10px; padding: 18px 22px; color: #47566a; font-size: 15px; margin-top: 26px;
}
.rm-error { color: #b42318; font-weight: 700; margin-top: 14px; }

/* -- status / message page ---------------------------------------------------- */
.rm-msg { max-width: 560px; margin: 90px auto; text-align: center; padding: 0 24px; }
.rm-msg-card { background: #fff; border: 1px solid #e6eaef; border-radius: 20px; padding: 54px 40px; box-shadow: 0 24px 60px -24px rgba(16,24,40,.18); }
.rm-msg-icon {
  width: 72px; height: 72px; border-radius: 999px; background: #e7f6ea; color: #189d33;
  font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.rm-msg-icon.rm-msg-bad { background: #fee4e2; color: #b42318; }
.rm-msg h1 { font-size: 28px; font-weight: 700; color: #101828; margin: 0 0 12px; }
.rm-msg p { color: #47566a; font-size: 17px; margin: 0 0 30px; }

/* -- listing cards -------------------------------------------------------------- */
.rm-listing {
  background: #fff; border: 1px solid #e6eaef; border-radius: 16px; overflow: hidden;
  display: flex; flex-wrap: wrap; margin-bottom: 26px;
  box-shadow: 0 14px 40px -22px rgba(16,24,40,.25);
}
.rm-listing-img { flex: 1.2 1 420px; min-width: 280px; display: block; position: relative; }
.rm-listing-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }
.rm-listing-body { flex: 1 1 320px; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.rm-listing-price { font-size: 34px; font-weight: 700; color: #101828; margin: 0 0 4px; }
.rm-listing-addr { color: #33414e; font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.rm-listing-desc { color: #47566a; font-size: 15.5px; margin: 0 0 22px; }

/* -- property detail -------------------------------------------------------------- */
.rm-prop-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 30px; margin-bottom: 26px; }
.rm-prop-head h1 { font-size: 42px; font-weight: 700; color: #101828; margin: 0; line-height: 1.05; }
.rm-prop-head .rm-prop-addr { color: #47566a; font-size: 19px; font-weight: 700; }
.rm-prop-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; }
.rm-prop-grid > div { flex: 1 1 420px; min-width: 300px; }
.rm-prop-terms pre {
  white-space: pre-wrap; font-family: inherit; font-size: 15.5px; color: #47566a;
  background: #f8fafc; border: 1px solid #e6eaef; border-radius: 10px; padding: 18px; margin: 0 0 20px;
}
.rm-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: 12px; }
.rm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.rm-gallery img, .rm-gallery .rm-gallery-tile {
  width: 100%; height: 180px; object-fit: cover; border-radius: 10px; display: block;
  background-size: cover; background-position: center; cursor: pointer;
}
.rm-gallery-lead { width: 100%; border-radius: 14px; display: block; margin-bottom: 10px; }

/* -- footer ---------------------------------------------------------------- */
.rm-footer { background: #0b1220; color: #8794a3; padding: 26px 0; font-size: 14px; margin-top: 90px; }
.rm-footer-inner { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; justify-content: space-between; }
.rm-footer a { color: #c6cdd6; text-decoration: none; margin-left: 22px; }
.rm-footer a:hover { color: #3ddb63; }
.rm-landing .rm-footer { margin-top: 0; }

/* ==========================================================================
   Landing page (home.html) specific
   ========================================================================== */

/* -- hero ------------------------------------------------------------- */
.rm-hero { padding: 72px 0 56px; background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%); }
.rm-hero-grid { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.rm-hero-copy { flex: 1 1 420px; min-width: 300px; }
.rm-hero-media { flex: 1.25 1 480px; min-width: 300px; position: relative; }
.rm-hero h1 { font-size: 52px; line-height: 1.08; font-weight: 700; color: #101828; margin: 0 0 20px; }
.rm-hero h1 span { color: #189d33; }
.rm-hero-sub { font-size: 19px; color: #47566a; max-width: 34em; margin: 0 0 30px; }
.rm-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.rm-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; }
.rm-trust li { color: #47566a; font-size: 15px; font-weight: 700; }
.rm-trust .fa { color: #189d33; margin-right: 7px; }
.rm-hero-media img {
  width: 100%; border-radius: 16px; display: block;
  box-shadow: 0 24px 60px -18px rgba(16,24,40,.35);
}
.rm-hero-badge {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(16,24,40,.92); color: #fff; border-radius: 10px;
  padding: 9px 14px; box-shadow: 0 10px 24px -8px rgba(16,24,40,.45);
}
.rm-hero-badge strong { color: #3ddb63; font-size: 15px; display: block; }
.rm-hero-badge span { font-size: 11.5px; color: #c6cdd6; }
.rm-hero-topflag {
  position: absolute; top: 14px; right: 14px;
  background: #189d33; color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px;
  border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
}
.rm-hero-topflag .fa { margin-right: 6px; }
.rm-poss-flag {
  position: absolute; top: 14px; left: 14px;
  background: #fff; color: #189d33; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px;
  border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
}
.rm-poss-flag .fa { margin-right: 6px; }
.rm-img-phone {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(16,24,40,.92); color: #fff !important; font-weight: 700;
  font-size: 15px; padding: 9px 14px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(16,24,40,.45);
}
.rm-img-phone .fa { color: #3ddb63; margin-right: 8px; }
/* featured card: green flag owns top-left, so possession sits top-right */
.rm-fp-img .rm-poss-flag { left: auto; right: 18px; top: 18px; }
.rm-fp-img .rm-img-phone { right: 18px; bottom: 18px; }

/* -- stat band ---------------------------------------------------------- */
.rm-stats { padding: 26px 0 8px; }
.rm-stats-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.rm-stat {
  flex: 1 1 220px; background: #fff; border: 1px solid #e6eaef; border-radius: 14px;
  padding: 22px 26px; text-align: center;
}
.rm-stat strong { display: block; font-size: 34px; font-weight: 700; color: #101828; }
.rm-stat span { color: #5b6b7d; font-size: 15px; }

/* -- how it works ------------------------------------------------------- */
.rm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.rm-step { background: #fff; border: 1px solid #e6eaef; border-radius: 14px; padding: 26px; }
.rm-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: #101828; color: #fff;
  font-weight: 700; font-size: 17px; margin-bottom: 16px;
}
.rm-step h3 { font-size: 19px; font-weight: 700; color: #101828; margin: 0 0 8px; }
.rm-step p { color: #47566a; font-size: 15.5px; margin: 0; }

/* -- pricing ------------------------------------------------------------ */
.rm-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.rm-price {
  background: #fff; border: 1px solid #e6eaef; border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column; position: relative;
}
.rm-price-hot { border: 2px solid #189d33; box-shadow: 0 16px 40px -16px rgba(24,157,51,.35); }
.rm-price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #189d33; color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.rm-price h3 { font-size: 16px; font-weight: 700; color: #5b6b7d; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.rm-price-amount { font-size: 44px; font-weight: 700; color: #101828; line-height: 1; margin-bottom: 4px; }
.rm-price-amount small { font-size: 16px; font-weight: 400; color: #5b6b7d; }
.rm-price-note { color: #189d33; font-weight: 700; font-size: 14px; margin-bottom: 18px; min-height: 20px; }
.rm-price ul { list-style: none; padding: 0; margin: 0 0 26px; }
.rm-price ul li { padding: 6px 0; color: #47566a; font-size: 15px; }
.rm-price ul .fa { color: #189d33; margin-right: 8px; }
.rm-price .rm-btn { margin-top: auto; }

/* -- featured property (secondary hero) ---------------------------------- */
.rm-fp-section { padding: 26px 0 10px; }
.rm-fp {
  background: #fff; border: 1px solid #e6eaef; border-radius: 20px; overflow: hidden;
  display: flex; flex-wrap: wrap;
  box-shadow: 0 24px 60px -24px rgba(16,24,40,.25);
}
.rm-fp-img { flex: 1.2 1 480px; min-width: 300px; position: relative; display: block; }
.rm-fp-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }
.rm-fp-flag {
  position: absolute; top: 18px; left: 18px;
  background: #189d33; color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
}
.rm-fp-body { flex: 1 1 340px; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.rm-fp-body .rm-eyebrow { margin-bottom: 16px; align-self: flex-start; }
.rm-fp-price { font-size: 46px; font-weight: 700; color: #101828; margin: 0 0 6px; line-height: 1.05; }
.rm-fp-addr { color: #33414e; font-size: 19px; font-weight: 700; margin: 0 0 16px; }
.rm-fp-desc { color: #47566a; font-size: 16px; margin: 0 0 22px; max-width: 34em; }
.rm-fp-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0 0 26px; list-style: none; }
.rm-fp-facts li { color: #47566a; font-size: 14.5px; font-weight: 700; }
.rm-fp-facts .fa { color: #189d33; margin-right: 7px; }
.rm-fp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* -- AI agency band ------------------------------------------------------ */
.rm-ai { margin-top: 64px; background: #101828; padding: 64px 0 72px; }
.rm-ai .rm-section-head h2 { color: #fff; }
.rm-ai .rm-section-head p { color: #aeb8c4; }
.rm-ai-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #3ddb63; background: rgba(61,219,99,.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.rm-ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.rm-ai-card { background: #1a2438; border: 1px solid #253048; border-radius: 14px; padding: 24px; }
.rm-ai-card .fa {
  font-size: 19px; color: #3ddb63; background: rgba(61,219,99,.12); width: 44px; height: 44px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.rm-ai-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.rm-ai-card p { color: #aeb8c4; font-size: 15px; margin: 0; }

/* -- comparison table ------------------------------------------------------ */
.rm-compare-wrap { overflow-x: auto; }
table.rm-compare {
  width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid #e6eaef; border-radius: 16px; overflow: hidden;
}
.rm-compare th, .rm-compare td { padding: 16px 22px; text-align: left; font-size: 15.5px; color: #47566a; border-top: 1px solid #eef1f5; }
.rm-compare thead th { background: #f8fafc; color: #101828; font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; border-top: none; }
.rm-compare td:first-child { font-weight: 700; color: #101828; }
.rm-compare .rm-win { color: #12832a; font-weight: 700; }
.rm-compare .rm-lose { color: #98a2b3; }

/* -- CTA band ------------------------------------------------------------ */
.rm-cta { margin: 72px 0 0; background: #101828; color: #fff; padding: 64px 0; }
.rm-cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.rm-cta h2 { font-size: 32px; font-weight: 700; margin: 0 0 10px; color: #fff; }
.rm-cta p { color: #aeb8c4; margin: 0; font-size: 17px; max-width: 36em; }
.rm-cta-copy { flex: 1 1 420px; }

/* -- account area ---------------------------------------------------------- */
.rm-account-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.rm-account-head h2 { font-size: 24px; font-weight: 700; color: #101828; margin: 0; }
.rm-account-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 26px;
}
.rm-account-row-main { flex: 1 1 320px; min-width: 260px; }
.rm-account-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-account-row-actions form { width: auto !important; margin: 0; }
.rm-account-price { font-size: 26px; font-weight: 700; color: #101828; margin: 0 0 4px; }
.rm-account-addr { color: #33414e; font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.rm-account-meta { color: #5b6b7d; font-size: 13.5px; margin: 0; }
.rm-account-flag {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; background: #eef1f5; color: #5b6b7d;
}
.rm-account-flag-live { background: #e7f6ea; color: #12832a; }

.rm-optional { font-weight: 400; color: #98a2b3; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.rm-help { color: #5b6b7d; font-size: 13px; margin: 6px 0 0; }

.rm-media-table td { vertical-align: middle; }
.rm-media-table form { width: auto !important; margin: 0; display: inline-block; }
.rm-media-thumb { width: 108px; height: 61px; object-fit: cover; border-radius: 8px; display: block; }
.rm-media-order { white-space: nowrap; }
.rm-media-order form { margin-right: 4px; }

/* -- staff admin bar (property page) --------------------------------------- */
.rm-adminbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: #101828; border: 1px solid #253048; border-radius: 12px;
  padding: 10px 14px; margin-bottom: 22px;
}
/* style.css:2664 sets a global `form { width: 100% }`, which would give each of
   these three forms its own row. */
.rm-adminbar form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; width: auto !important;
}
.rm-adminbar-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #3ddb63; background: rgba(61,219,99,.12); padding: 5px 11px; border-radius: 999px;
}
.rm-adminbar-tag .fa { margin-right: 6px; }
.rm-adminbar-input {
  background: #1a2438 !important; border: 1px solid #35415a !important; color: #fff !important;
  border-radius: 8px !important; padding: 7px 11px !important; font-size: 13.5px !important;
  font-family: inherit; height: auto !important; margin: 0 !important;
  box-shadow: none !important; box-sizing: border-box !important;
  /* materialize sets a global `input { width: 100% }`, which would push every
     control onto its own row — hence !important here. */
  width: 172px !important;
}
.rm-adminbar-input:focus { border-color: #3ddb63 !important; box-shadow: none !important; }
.rm-adminbar-input::-webkit-input-placeholder { color: #6b7a92; }
.rm-adminbar-check { color: #aeb8c4; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
/* materialize hides bare checkboxes site-wide; win it back inside the bar */
.rm-adminbar-check input[type=checkbox] {
  opacity: 1 !important; position: static !important; pointer-events: auto !important;
  width: auto !important; height: auto !important; margin: 0 !important;
}
.rm-adminbar-btn {
  background: #1a2438; border: 1px solid #35415a; color: #e6eaef;
  border-radius: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 700;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.rm-adminbar-btn:hover { border-color: #3ddb63; color: #3ddb63; }
.rm-adminbar-btn .fa { margin-right: 7px; }
.rm-adminbar-btn-go { background: #189d33; border-color: #189d33; color: #fff; }
.rm-adminbar-btn-go:hover { background: #12832a; border-color: #12832a; color: #fff; }
.rm-adminbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.rm-adminbar-count { color: #6b7a92; font-size: 12.5px; }
.rm-adminbar-link { color: #aeb8c4 !important; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
.rm-adminbar-link:hover { color: #3ddb63 !important; }

.rm-adminbar-msgs { margin: -10px 0 22px; }
.rm-adminbar-msg {
  border-radius: 10px; padding: 11px 16px; font-size: 14.5px; margin-bottom: 8px;
  border: 1px solid #e6eaef; background: #f8fafc; color: #47566a;
}
.rm-adminbar-success { background: #e7f6ea; border-color: #b7e3c2; color: #12832a; }
.rm-adminbar-warning { background: #fff6e5; border-color: #f0d9a8; color: #8a5a00; }
.rm-adminbar-error   { background: #fee4e2; border-color: #f5b5b0; color: #b42318; }

/* -- video tiles + modal player -------------------------------------------- */
.rm-video-section { padding: 34px 0 10px; }
.rm-video-section .rm-section-head { margin-bottom: 24px; }
.rm-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.rm-video-tile {
  display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
  font-family: inherit; background: #fff; border: 1px solid #e6eaef;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 40px -26px rgba(16,24,40,.35);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rm-video-tile:hover, .rm-video-tile:focus {
  transform: translateY(-2px); border-color: #189d33;
  box-shadow: 0 20px 44px -24px rgba(16,24,40,.4); outline: none;
}

/* padding-ratio 16:9 box — not aspect-ratio, this stack still serves old browsers */
.rm-video-thumb { display: block; position: relative; padding-top: 56.25%; background: #101828; }
.rm-video-thumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;   /* crops YouTube's letterboxing */
}
.rm-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 999px;
  background: rgba(16,24,40,.78); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.5);
  transition: transform .15s ease, background .15s ease;
}
.rm-video-play .fa { margin-left: 4px; }   /* optically centre the triangle */
.rm-video-tile:hover .rm-video-play, .rm-video-tile:focus .rm-video-play {
  background: #189d33; transform: translate(-50%, -50%) scale(1.08);
}
.rm-video-kind {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: #189d33; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px;
  border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
}
.rm-video-body { display: block; padding: 16px 18px; }
/* YouTube titles carry long "- Edmonton Home for Sale" tails; clamp to two
   lines so every tile in a row ends up the same height. */
.rm-video-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 2.7em;
  font-size: 17px; font-weight: 700; color: #101828; line-height: 1.35;
}
.rm-video-caption { display: block; margin-top: 6px; font-size: 14.5px; color: #47566a; }

.rm-video-modal {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 200;   /* above the sticky nav at z-index 100 */
  background: rgba(8,12,20,.92); padding: 24px;
  align-items: center; justify-content: center;
}
.rm-video-modal.is-open { display: flex; }
.rm-video-modal-inner { position: relative; width: 100%; max-width: 980px; }
.rm-video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: 14px; overflow: hidden; }
.rm-video-frame iframe, .rm-video-frame video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block;
}
.rm-video-modal-title { color: #fff; font-size: 17px; font-weight: 700; margin: 14px 0 0; }
.rm-video-close {
  position: absolute; top: -42px; right: -4px; width: 38px; height: 38px;
  background: none; border: 0; color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer; padding: 0; font-family: inherit;
}
.rm-video-close:hover { color: #3ddb63; }

/* -- responsive ------------------------------------------------------------ */
@media (max-width: 640px) {
  .rm-adminbar-input { width: 100%; }
  .rm-adminbar-count { margin-left: 0; }
  .rm-video-grid { grid-template-columns: 1fr; }
  .rm-video-play { width: 48px; height: 48px; font-size: 16px; }
  .rm-video-modal { padding: 12px; }
  .rm-video-close { top: -38px; right: 0; }
  .rm-hero h1 { font-size: 36px; }
  .rm-hero { padding-top: 44px; }
  .rm-nav-links a.rm-nav-plain { display: none; }
  .rm-logo-title { display: none; }
  /* stagger overlay labels: top pills collide side-by-side at phone widths */
  .rm-poss-flag { font-size: 11px; padding: 6px 10px; }
  .rm-hero-media .rm-poss-flag { top: 48px; }
  .rm-fp-img .rm-poss-flag { top: 58px; }
  .rm-hero-badge span { display: none; }
  .rm-img-phone { font-size: 13px; padding: 8px 11px; }
  .rm-hero-badge { left: 10px; }
  .rm-section-head h2 { font-size: 27px; }
  .rm-page-head h1 { font-size: 30px; }
  .rm-prop-head h1 { font-size: 32px; }
  .rm-fp-body { padding: 26px; }
  .rm-fp-price { font-size: 36px; }
  .rm-form-grid { grid-template-columns: 1fr; }
}
