:root {
  --onre-blue: #1f6f8b;
  --onre-blue-dark: #143f52;
  --onre-gold: #c59d5f;
  --onre-green: #168a58;
  --onre-ink: #17202a;
  --onre-text: #28323f;
  --onre-muted: #667085;
  --onre-line: #e6e9ef;
  --onre-cream: #fbf8f2;
  --onre-soft: #f6f8fb;
  --onre-white: #ffffff;
  --onre-shadow: 0 18px 55px rgba(20, 35, 52, .10);
  --onre-radius: 22px;
}

/* Global polish */
body {
  background: #ffffff;
}
.elementor-location-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}
.elementor-location-header .e-con,
.elementor-location-header .elementor-element {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.elementor-location-header .elementor-heading-title,
.elementor-location-header h1,
.elementor-location-header h2,
.elementor-location-header h3 {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em;
  color: var(--onre-ink) !important;
}
.elementor-location-header a {
  color: var(--onre-ink) !important;
  text-decoration: none !important;
}
.elementor-location-header .elementor-button,
.elementor-location-header a.elementor-button {
  background: var(--onre-blue) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px rgba(31, 111, 139, .24);
}
.elementor-location-header .elementor-widget-menu,
.elementor-location-header .elementor-widget-wordpress-menu {
  font-size: 15px;
  font-weight: 700;
}
.elementor-location-header .elementor-widget-menu a:hover,
.elementor-location-header .elementor-widget-wordpress-menu a:hover {
  color: var(--onre-blue) !important;
}

.onre-hero,
.onre-quick-actions,
.onre-agent-card,
.onre-featured-listings,
.onre-form,
.onre-footer,
.onre-section,
.onre-page-hero,
.onre-hero-pro,
.onre-footer-pro,
.onre-floating-contact,
.onre-mobile-bar {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--onre-text);
  box-sizing: border-box;
}
.onre-section,
.onre-content-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}
.onre-section h1,
.onre-section h2,
.onre-page-hero h1,
.onre-hero h1,
.onre-hero-pro h1 {
  letter-spacing: -.055em;
  color: var(--onre-ink);
}
.onre-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.onre-section p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--onre-muted);
}
.onre-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px !important;
  color: var(--onre-blue) !important;
  font-size: 13px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.onre-eyebrow:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--onre-gold);
  border-radius: 99px;
}

/* Premium home hero */
.onre-hero,
.onre-hero-pro {
  position: relative;
  overflow: hidden;
  min-height: clamp(620px, 72vh, 760px);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr);
  gap: 48px;
  padding: 92px max(28px, calc((100vw - 1180px) / 2)) 80px;
  background:
    radial-gradient(circle at 12% 20%, rgba(197,157,95,.18), transparent 28%),
    linear-gradient(120deg, #ffffff 0%, #f7fbfd 52%, #eef6fa 100%);
  text-align: left;
}
.onre-hero:after,
.onre-hero-pro:after {
  content: "";
  position: absolute;
  inset: auto -12% -32% 50%;
  height: 520px;
  background: rgba(31, 111, 139, .10);
  border-radius: 999px;
  transform: rotate(-8deg);
}
.onre-hero[style],
.onre-hero-pro[style],
.onre-page-hero[style] {
  background-size: cover !important;
  background-position: center !important;
  color: #fff;
}
.onre-hero[style] h1,
.onre-hero-pro[style] h1,
.onre-hero[style] p,
.onre-hero-pro[style] p,
.onre-page-hero[style] h1,
.onre-page-hero[style] p {
  color: #fff !important;
}
.onre-hero__content,
.onre-hero-pro__content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}
.onre-hero h1,
.onre-hero-pro h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
  font-weight: 900;
}
.onre-hero p,
.onre-hero-pro p {
  max-width: 660px;
  margin: 0 0 30px;
  color: var(--onre-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}
.onre-hero-pro__search,
.onre-search-box {
  width: min(100%, 700px);
  padding: 10px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(31,111,139,.12);
  border-radius: 18px;
  box-shadow: var(--onre-shadow);
}
.onre-search-box form,
.onre-hero-pro__search form {
  display: flex;
  gap: 10px;
}
.onre-search-box input,
.onre-hero-pro__search input {
  min-height: 54px;
  flex: 1;
  border: 1px solid var(--onre-line);
  border-radius: 12px;
  padding: 0 18px;
  font-size: 16px;
}
.onre-hero-agent {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 0;
  background: #fff;
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--onre-shadow);
}
.onre-hero-agent img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}
.onre-hero-agent figcaption {
  padding: 14px 12px 8px;
  font-weight: 900;
  color: var(--onre-ink);
  text-align: center;
}

/* Buttons */
.onre-button,
button.onre-button,
.onre-form button,
.onre-search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.onre-button:hover,
.onre-form button:hover,
.onre-search-box button:hover {
  transform: translateY(-1px);
}
.onre-button--primary,
.onre-form button,
.onre-search-box button {
  background: var(--onre-blue);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(31, 111, 139, .24);
}
.onre-button--secondary {
  background: #fff;
  color: var(--onre-blue) !important;
  border: 1px solid rgba(31,111,139,.20);
}
.onre-button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Cards and grids */
.onre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.onre-grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.onre-grid--5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.onre-card,
.onre-quick-card,
.onre-community-card,
.onre-testimonials blockquote {
  background: #fff;
  border: 1px solid var(--onre-line);
  border-radius: var(--onre-radius);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(20, 35, 52, .06);
}
.onre-community-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(20,63,82,.95), rgba(31,111,139,.86));
}
.onre-community-card span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.onre-community-card small {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  margin-top: 8px;
}
.onre-testimonials blockquote {
  margin: 0;
  position: relative;
}
.onre-testimonials blockquote:before {
  content: "“";
  position: absolute;
  right: 22px;
  top: 6px;
  color: rgba(197,157,95,.24);
  font-size: 78px;
  font-family: Georgia, serif;
}
.onre-stars { color: var(--onre-gold); font-size: 18px; letter-spacing: 2px; }

/* Forms */
.onre-form {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--onre-line);
  border-radius: 26px;
  box-shadow: var(--onre-shadow);
}
.onre-form h2 {
  margin: 0 0 20px;
  color: var(--onre-ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}
.onre-form label {
  display: block;
  margin: 0 0 14px;
  color: var(--onre-ink);
  font-size: 14px;
  font-weight: 900;
}
.onre-form input,
.onre-form textarea,
.onre-form select {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  background: #fff;
  color: var(--onre-ink);
  font-size: 16px;
  box-sizing: border-box;
}
.onre-form textarea { min-height: 125px; }
.onre-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1fr);
  gap: 46px;
  align-items: center;
}
.onre-checklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.onre-checklist li {
  padding: 10px 0 10px 34px;
  position: relative;
  color: var(--onre-text);
  font-weight: 700;
}
.onre-checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(22,138,88,.12);
  color: var(--onre-green);
  text-align: center;
  line-height: 22px;
}

/* Agent, photo, team */
.onre-agent-card,
.onre-agent-profile {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto;
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 44px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(135deg, #fff, var(--onre-cream));
  border: 1px solid var(--onre-line);
  border-radius: 30px;
  box-shadow: var(--onre-shadow);
}
.onre-agent-photo img,
.onre-photo-grid img,
.onre-team-grid img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.onre-agent-photo img { aspect-ratio: 4 / 5; border-radius: 24px; }
.onre-agent-info h2 { font-size: clamp(34px, 4vw, 56px); margin: 0 0 12px; }
.onre-social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.onre-social-links a { color: var(--onre-blue) !important; font-weight: 800; text-decoration: none !important; }
.onre-photo-grid,
.onre-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.onre-photo-grid figure,
.onre-team-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--onre-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20,35,52,.06);
}
.onre-photo-grid img,
.onre-team-grid img { aspect-ratio: 4 / 3; }
.onre-photo-grid figcaption,
.onre-team-grid figcaption { padding: 16px; font-weight: 800; }

/* Page hero */
.onre-page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 78px max(28px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, var(--onre-cream), #f7fbfd);
  border-bottom: 1px solid var(--onre-line);
}
.onre-page-hero__inner { width: min(100%, 820px); }
.onre-page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1;
}
.onre-page-hero p { max-width: 680px; font-size: 20px; color: var(--onre-muted); }

/* Footer - premium light design */
.onre-footer,
.onre-footer-pro {
  width: 100% !important;
  margin: 90px 0 0 !important;
  padding: 0 !important;
  background: #fff !important;
  color: var(--onre-text) !important;
  border-top: 1px solid var(--onre-line);
}
.onre-footer-pro__inner,
.onre-footer .onre-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: 60px;
}
.onre-footer h2,
.onre-footer-pro h2,
.onre-footer h3,
.onre-footer-pro h3 {
  margin: 0 0 16px;
  color: var(--onre-ink) !important;
  letter-spacing: -.04em;
}
.onre-footer h2,
.onre-footer-pro h2 { font-size: 30px; }
.onre-footer h3,
.onre-footer-pro h3 { font-size: 22px; }
.onre-footer p,
.onre-footer-pro p,
.onre-footer a,
.onre-footer-pro a {
  color: var(--onre-muted) !important;
  font-size: 15px;
  line-height: 1.75;
}
.onre-footer a,
.onre-footer-pro a { text-decoration: none !important; }
.onre-footer-links { display: grid; gap: 8px; }
.onre-footer-links a:hover,
.onre-footer-pro a:hover { color: var(--onre-blue) !important; }
.onre-footer-logo { max-width: 190px; max-height: 80px; object-fit: contain; margin: 0 0 20px; }
.onre-footer-phone { font-size: 20px !important; font-weight: 900; color: var(--onre-blue) !important; }
.onre-footer-pro__bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--onre-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}
.onre-footer-pro__bottom p { margin: 0; font-size: 13px; color: var(--onre-muted) !important; }

/* Floating actions */
.onre-floating-contact {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 9998;
  display: grid;
  gap: 10px;
}
.onre-floating-contact a {
  min-width: 112px;
  padding: 12px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--onre-line);
  color: var(--onre-ink) !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(20,35,52,.10);
}
.onre-floating-contact a:first-child {
  background: var(--onre-green);
  color: #fff !important;
  border-color: var(--onre-green);
}
.onre-mobile-bar { display: none; }

/* Calculators */
.onre-calculator,
.onre-mortgage-calculator {
  width: min(760px, calc(100% - 40px));
  margin: 70px auto;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--onre-line);
  border-radius: 26px;
  box-shadow: var(--onre-shadow);
}

/* Fix rough default Gutenberg spacing on repaired pages */
.entry-content > .onre-section:first-child,
.wp-site-blocks > .onre-section:first-child {
  margin-top: 0;
}

@media (max-width: 960px) {
  .onre-hero,
  .onre-hero-pro,
  .onre-split,
  .onre-agent-card,
  .onre-agent-profile,
  .onre-footer-pro__inner,
  .onre-footer .onre-footer__inner {
    grid-template-columns: 1fr;
  }
  .onre-hero,
  .onre-hero-pro {
    text-align: center;
    padding-top: 72px;
  }
  .onre-hero__content,
  .onre-hero-pro__content { margin: 0 auto; }
  .onre-button-row { justify-content: center; }
  .onre-hero-agent { max-width: 360px; margin: 0 auto; }
  .onre-footer-pro__bottom { display: block; }
  .onre-footer-pro__bottom p { margin-bottom: 10px; }
}
@media (max-width: 720px) {
  .elementor-location-header .e-con,
  .elementor-location-header .elementor-element {
    max-width: 100%;
  }
  .elementor-location-header .elementor-heading-title,
  .elementor-location-header h1,
  .elementor-location-header h2,
  .elementor-location-header h3 {
    font-size: 19px !important;
  }
  .elementor-location-header .elementor-button { padding: 10px 13px !important; font-size: 13px !important; }
  .onre-section { width: min(100% - 28px, 1180px); padding: 52px 0; }
  .onre-hero,
  .onre-hero-pro { min-height: auto; padding: 60px 18px 56px; }
  .onre-hero h1,
  .onre-hero-pro h1 { font-size: clamp(38px, 12vw, 54px); }
  .onre-search-box form,
  .onre-hero-pro__search form { flex-direction: column; }
  .onre-form { padding: 24px; border-radius: 20px; }
  .onre-floating-contact { display: none; }
  .onre-mobile-bar {
    display: grid;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--onre-line);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(20,35,52,.16);
  }
  .onre-mobile-bar a {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--onre-ink) !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
  }
  .onre-mobile-bar a:nth-child(3) { background: var(--onre-green); color: #fff !important; }
}

/* v0.8.0 correction layer: readable, professional, stable layouts */
body .onre-section,
body .onre-content-wrap,
body .onre-quick-actions,
body .onre-footer-pro__inner,
body .onre-footer-pro__bottom {
  max-width: 1180px !important;
}

/* Keep the Elementor header usable without crowding */
.elementor-location-header {
  min-height: 72px !important;
}
.elementor-location-header > * {
  width: 100% !important;
}
.elementor-location-header .e-con,
.elementor-location-header .elementor-element.e-con {
  padding-left: 22px !important;
  padding-right: 22px !important;
}
.elementor-location-header .elementor-heading-title,
.elementor-location-header h1,
.elementor-location-header h2,
.elementor-location-header h3 {
  white-space: nowrap !important;
  letter-spacing: -.035em !important;
}
.elementor-location-header .elementor-widget-menu,
.elementor-location-header .elementor-widget-wordpress-menu {
  white-space: nowrap !important;
}
.elementor-location-header .elementor-widget-menu a,
.elementor-location-header .elementor-widget-wordpress-menu a {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Hero: no clipped titles, warmer visual, better breathing room */
.onre-hero,
.onre-hero-pro {
  min-height: auto !important;
  padding-top: clamp(96px, 10vw, 150px) !important;
  padding-bottom: clamp(72px, 8vw, 120px) !important;
  align-items: center !important;
  background:
    radial-gradient(circle at 9% 18%, rgba(197,157,95,.20), transparent 28%),
    linear-gradient(135deg, #fffaf2 0%, #f7fbfd 45%, #e8f3f8 100%) !important;
}
.onre-hero h1,
.onre-hero-pro h1 {
  font-size: clamp(42px, 5.2vw, 72px) !important;
  line-height: 1.03 !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  max-width: 860px !important;
  overflow: visible !important;
}
.onre-hero p,
.onre-hero-pro p {
  color: #465568 !important;
}
.onre-hero[style],
.onre-hero-pro[style] {
  background-size: cover !important;
  background-position: center !important;
}
.onre-hero-pro__search,
.onre-search-box {
  overflow: visible !important;
}
.onre-hero-pro__search .onre-mini-search,
.onre-search-box .onre-mini-search {
  display: flex !important;
  align-items: stretch !important;
}
.onre-mini-search input {
  border: 1px solid #ccd6e0 !important;
}
.onre-mini-search button,
.onre-search-box button {
  min-width: 112px !important;
  color: #fff !important;
  background: var(--onre-blue) !important;
  border: 0 !important;
}

/* Quick actions: stop the broken vertical-left layout */
.onre-quick-actions {
  width: min(1180px, calc(100% - 40px)) !important;
  margin: -46px auto 40px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  position: relative !important;
  z-index: 3 !important;
}
.onre-card {
  display: block !important;
  min-height: 180px !important;
  text-decoration: none !important;
  color: var(--onre-ink) !important;
  background: #fff !important;
  border: 1px solid #e6e9ef !important;
  border-radius: 22px !important;
  padding: 24px !important;
  box-shadow: 0 16px 42px rgba(20,35,52,.10) !important;
}
.onre-card__icon {
  width: 46px !important;
  height: 46px !important;
  display: inline-grid !important;
  place-items: center !important;
  margin-bottom: 18px !important;
  background: #f2f7fb !important;
  border-radius: 14px !important;
  font-size: 22px !important;
}
.onre-card h3 {
  margin: 0 0 10px !important;
  color: var(--onre-ink) !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
}
.onre-card p {
  margin: 0 !important;
  color: var(--onre-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

/* Forms: professional, readable, no harsh outlines */
.onre-form {
  width: min(720px, calc(100% - 36px)) !important;
  background: #ffffff !important;
  border: 1px solid #e6e9ef !important;
  box-shadow: 0 20px 60px rgba(20,35,52,.10) !important;
}
.onre-form input,
.onre-form textarea,
.onre-form select {
  border: 1px solid #cfd8e3 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.onre-form input:focus,
.onre-form textarea:focus,
.onre-form select:focus {
  outline: 3px solid rgba(31,111,139,.18) !important;
  border-color: var(--onre-blue) !important;
}
.onre-form button,
.onre-button--primary,
.onre-search-box button {
  background: var(--onre-blue) !important;
  color: #ffffff !important;
  border-color: var(--onre-blue) !important;
}
.onre-button--secondary {
  background: #ffffff !important;
  color: var(--onre-blue) !important;
  border: 1px solid rgba(31,111,139,.28) !important;
}
.onre-button--primary:hover,
.onre-form button:hover,
.onre-search-box button:hover {
  background: var(--onre-blue-dark) !important;
  color: #ffffff !important;
}

/* Footer: lighter, full width, no unreadable button text */
.onre-footer-pro {
  margin-top: 70px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
}
.onre-footer-pro__inner {
  padding: 54px 24px 32px !important;
}
.onre-footer-contact .onre-button,
.onre-footer-pro a.onre-button,
.onre-footer-pro .onre-button--primary {
  color: #ffffff !important;
  background: var(--onre-blue) !important;
  border: 0 !important;
  min-width: 150px !important;
  font-size: 15px !important;
}
.onre-footer-pro__bottom {
  padding-left: 24px !important;
  padding-right: 24px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.onre-footer-pro__bottom p:nth-child(2) {
  font-size: 12px !important;
}

/* Floating actions: less intrusive on desktop, mobile bar handles phones */
.onre-floating-contact {
  right: 20px !important;
  bottom: 28px !important;
}
.onre-floating-contact a {
  min-width: 98px !important;
  font-size: 14px !important;
  text-align: center !important;
}

/* Mortgage tools */
.onre-mortgage-suite .onre-section {
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}
.onre-tool-card {
  width: min(920px, calc(100% - 36px)) !important;
}
.onre-field-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
}
.onre-result-box {
  margin-top: 22px !important;
  padding: 20px !important;
  background: #f7fbfd !important;
  border: 1px solid #dbe7ee !important;
  border-radius: 18px !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px 18px !important;
  align-items: center !important;
}
.onre-result-box span {
  color: var(--onre-muted) !important;
  font-weight: 800 !important;
}
.onre-result-box strong {
  color: var(--onre-ink) !important;
  font-size: 20px !important;
}
.onre-table-wrap {
  overflow-x: auto !important;
  margin-top: 22px !important;
  border: 1px solid #dbe7ee !important;
  border-radius: 18px !important;
}
.onre-calc-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
}
.onre-calc-table th,
.onre-calc-table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #edf1f5 !important;
  text-align: left !important;
  white-space: nowrap !important;
}
.onre-calc-table th {
  background: #f7fbfd !important;
  color: var(--onre-ink) !important;
  font-weight: 900 !important;
}

@media (max-width: 1100px) {
  .onre-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 28px !important;
  }
}
@media (max-width: 760px) {
  .elementor-location-header .elementor-heading-title,
  .elementor-location-header h1,
  .elementor-location-header h2,
  .elementor-location-header h3 {
    font-size: 18px !important;
  }
  .elementor-location-header .elementor-widget-menu,
  .elementor-location-header .elementor-widget-wordpress-menu {
    font-size: 13px !important;
  }
  .onre-hero,
  .onre-hero-pro {
    padding-top: 62px !important;
  }
  .onre-quick-actions,
  .onre-field-grid,
  .onre-result-box {
    grid-template-columns: 1fr !important;
  }
  .onre-quick-actions {
    width: min(100% - 28px, 1180px) !important;
    margin-top: 22px !important;
  }
  .onre-card {
    min-height: auto !important;
  }
  .onre-footer-pro__inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .onre-floating-contact {
    display: none !important;
  }
}

/* v0.8.2 safe hero repair: prevents one-word-per-line layout when hero images are added */
.onre-hero,
.onre-hero-pro {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 0.72fr) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(28px, 5vw, 72px) !important;
}
.onre-hero__content,
.onre-hero-pro__content {
  min-width: 0 !important;
  max-width: 780px !important;
  width: 100% !important;
  display: block !important;
}
.onre-hero h1,
.onre-hero-pro h1 {
  display: block !important;
  width: 100% !important;
  max-width: 780px !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  font-size: clamp(44px, 5.8vw, 76px) !important;
  line-height: 1.02 !important;
}
.onre-hero-agent,
.onre-hero-media {
  width: 100% !important;
  max-width: 420px !important;
  justify-self: center !important;
}
@media (max-width: 900px) {
  .onre-hero,
  .onre-hero-pro {
    grid-template-columns: 1fr !important;
    padding: 86px 22px 56px !important;
    min-height: auto !important;
  }
  .onre-hero__content,
  .onre-hero-pro__content {
    max-width: 720px !important;
  }
  .onre-hero h1,
  .onre-hero-pro h1 {
    font-size: clamp(38px, 10vw, 56px) !important;
  }
}
@media (max-width: 520px) {
  .onre-hero h1,
  .onre-hero-pro h1 {
    font-size: 38px !important;
    line-height: 1.06 !important;
  }
}


/* v0.8.3 full-width hero repair: full bleed when no agent/photo column exists */
body .onre-hero,
body .onre-hero-pro {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}
body .onre-hero-pro.onre-hero-pro--no-agent,
body .onre-hero:not(:has(.onre-hero-agent)) {
  display: block !important;
  padding: clamp(110px, 10vw, 150px) max(28px, calc((100vw - 1180px) / 2)) clamp(90px, 8vw, 120px) !important;
  min-height: clamp(620px, 72vh, 760px) !important;
}
body .onre-hero-pro.onre-hero-pro--no-agent .onre-hero-pro__content,
body .onre-hero:not(:has(.onre-hero-agent)) .onre-hero__content {
  max-width: 760px !important;
  width: 100% !important;
  margin: 0 !important;
}
body .onre-hero-pro.onre-hero-pro--no-agent h1,
body .onre-hero:not(:has(.onre-hero-agent)) h1 {
  max-width: 780px !important;
  width: 100% !important;
  font-size: clamp(48px, 5.5vw, 78px) !important;
  line-height: 1.02 !important;
}
body .onre-hero-pro.onre-hero-pro--has-agent {
  display: grid !important;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 0.72fr) !important;
}
body .onre-quick-actions {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
}
@media (max-width: 900px) {
  body .onre-hero-pro.onre-hero-pro--no-agent,
  body .onre-hero-pro.onre-hero-pro--has-agent,
  body .onre-hero {
    display: block !important;
    padding: 86px 22px 56px !important;
    min-height: auto !important;
  }
}
