/*
Theme Name: WISO Clave
Theme URI: https://clave.wiso.do/
Template: smarthome
Author: WISO
Author URI: https://wiso.do/
Description: Custom Real Estate Platform Theme for WISO Clave.
Version: 1.0.0
*/

:root {
  --dark: #000000;
  --bodybg: #00031c;
  --btn-bgcolor: #0C0020;
  --btn-color: #ffffff;
  --btn-bgcolor2: #0C0020;
  --btn-color2: #ffffff;
  --btn-bgcolor3: #6c52ee;
  --font-size-sm: 14px;
  --line-height-sm: 19.6px;
  --input-background: #191c33;
  --input-background2: #31344b;
  --background-item: #191c33;
  --background-body: #00031c;
  --green_color: #D9FE89;
  --border-cl: #E1E0E4;
  --border-cl2: #80818d;
  --full-fd: 70px;

  --fs-smallb: 12px;
  --fh-smallb: 16px;

  --fs-small: 14px;
  --fh-small: 22.4px;

  --fs-smallc: 15px;

  --fs-medium: 18px;
  --fh-medium: 25.2px;

  --fs-medium2: 20px;


  --fs-body: 16px;
  --fh-body: 22.4px;
}

@media (max-width: 767px) {
  :root {
    --font-size-sm: 12px;
    --line-height-sm: 16px;
  }
}

.btn-theme {
  background: var(--main);
  color: #ffffff;
  height: 50px;
  padding: 0 40px;
  text-align: center;
  line-height: 50px;
}

button.btn-theme {
  border: 0;
}

/*
 * CLAVE: Dashboard header logo size (desktop only).
 * Targets the img directly — max-width on the wrapper alone was insufficient
 * when an older cached style.css?ver=1.2.0 was served without these rules.
 * Mobile: parent .dashboard-logo { max-width:130px } at max-width:767px is preserved.
 */
@media (min-width: 768px) {
  .dashboard-header .dashboard-logo img {
    width: 140px;
    max-width: 140px;
    height: auto;
  }
}

/*
 * CLAVE Phase 11Q-B: mobile Compare only.
 * Parent (max-width:767px) sets white-space:nowrap on cells, which stretches
 * columns to the full title. Desktop (768px+) is unchanged. white-space uses
 * !important solely to beat the parent mobile rule at equal specificity.
 * Two properties usually fit the viewport; three/four may scroll sideways
 * while the row-label column stays pinned.
 */
@media (max-width: 767px) {
  .properties-compare-table .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .properties-compare-table .table-responsive table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
  }

  .properties-compare-table .table-responsive th,
  .properties-compare-table .table-responsive td {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 9.5rem;
    vertical-align: top;
  }

  .properties-compare-table .table-responsive th:not(:first-child),
  .properties-compare-table .table-responsive td:not(:first-child) {
    min-width: 8.75rem;
  }

  .properties-compare-table .table-responsive th:first-child,
  .properties-compare-table .table-responsive td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 6.75rem;
    min-width: 6.75rem;
    max-width: 6.75rem;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: inset -1px 0 0 #eee;
  }

  .properties-compare-table .table-responsive thead th:first-child {
    z-index: 3;
    background-color: #f7f7f7;
  }

  .properties-compare-table .table-responsive tbody tr:nth-child(even) td:first-child {
    background-color: #fafafa;
  }

  .properties-compare-table .table-responsive tbody tr:hover td:first-child {
    background-color: #ebebeb;
  }

  .properties-compare-table .table-responsive th img {
    display: block;
    width: 100%;
    max-width: 100% !important;
    height: auto;
    margin: 0 auto 10px;
  }
}

/*
 * CLAVE Phase 11R-C: public account dropdown on touch (<992).
 * Parent jws_dropdown toggles .hover-active but public CSS only styled
 * :hover / .open. Match those visibility rules for .hover-active.
 * Scoped to .jws_account only — not generic .jws-dropdown-hover.
 */
.jws_account.hover-active .dropdown-menu {
  pointer-events: auto;
  transform: none;
  opacity: 1;
}

/*
 * CLAVE Phase 11S-C: Virtual Tour section height.
 * Stored embeds use height:100% with no parent height in native CSS.
 * Match Property Video box heights (572px desktop / 300px ≤480px).
 * !important only overrides the embed’s inline height:100% — meta HTML unchanged.
 */
.jws-properties-virtual-tour {
  margin-bottom: 40px;
}

.jws-properties-virtual-tour iframe {
  width: 100%;
  max-width: 100%;
  height: 572px !important;
  border: 0;
  display: block;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .jws-properties-virtual-tour iframe {
    height: 300px !important;
  }
}

/*
 * CLAVE mobile offcanvas menu — visual upgrade only.
 * Why child CSS: jws-nav-menu Elementor Style controls target .main-navigation,
 * but style=mobile renders .mobile-navigation. Parent theme also hardcodes
 * font-size:12px and height:40px on .mobile-navigation links. Scoped to
 * .jws-offcanvas so desktop .main-navigation is untouched.
 */
.uaoffcanvas-9dae1ad .jws-offcanvas-content-data {
  max-width: min(330px, 92vw);
}

.jws-offcanvas .mobile-navigation ul > li.menu-item > a {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1px;
  text-transform: none;
  color: var(--heading, #0C0020);
  height: auto;
  min-height: 50px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(12, 0, 32, 0.08);
}

.jws-offcanvas .mobile-navigation ul > li.menu-item > a:hover,
.jws-offcanvas .mobile-navigation ul > li.menu-item > a:focus {
  color: var(--secondary, #C87908);
}

.jws-offcanvas .mobile-navigation ul > li.menu-item.current-menu-item > a,
.jws-offcanvas .mobile-navigation ul > li.menu-item.current-menu-parent > a,
.jws-offcanvas .mobile-navigation ul > li.menu-item.current-menu-ancestor > a {
  color: var(--secondary, #C87908);
}

.jws-offcanvas .mobile-navigation ul ul.sub-menu {
  padding-inline-start: 18px;
  margin-bottom: 6px;
}

.jws-offcanvas .mobile-navigation ul ul.sub-menu > li.menu-item > a {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--body2, #554d63);
  height: auto;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(12, 0, 32, 0.05);
}

.jws-offcanvas .mobile-navigation ul ul.sub-menu > li.menu-item > a:hover,
.jws-offcanvas .mobile-navigation ul ul.sub-menu > li.menu-item > a:focus,
.jws-offcanvas .mobile-navigation ul ul.sub-menu > li.menu-item.current-menu-item > a {
  color: var(--secondary, #C87908);
}

.jws-offcanvas .mobile-navigation ul > li.menu-item > a .btn-sub-menu,
.jws-offcanvas .mobile-navigation ul > li.menu-item > a i {
  font-size: 18px;
}

.jws-offcanvas .elementor-widget-jws_logo {
  margin-bottom: 4px;
}

.jws-offcanvas .elementor-widget-jws_logo img {
  max-width: 148px;
  height: auto;
  display: block;
}

/*
 * CLAVE Agent Profile — Layout 3
 * Scoped ONLY to .single-agents-page.layout3
 * Preview: /agents/{slug}/?layout=layout3
 * Does not affect Layout 1 / Layout 2.
 */
.single-agents-page.layout3 {
  --clave-l3-navy: var(--heading, #0c0020);
  --clave-l3-gold: var(--secondary, #c87908);
  --clave-l3-ivory: #f7f5f2;
  --clave-l3-muted: var(--body2, #554d63);
  --clave-l3-line: rgba(12, 0, 32, 0.1);
  background: var(--clave-l3-ivory);
  padding-block-end: 72px;
  color: var(--clave-l3-navy);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.single-agents-page.layout3 .clave-agent-l3__identity {
  background: #fff;
  border-bottom: 1px solid var(--clave-l3-line);
  padding: 40px 0 36px;
}

.single-agents-page.layout3 .clave-agent-l3__identity-grid {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 36px 48px;
  align-items: start;
}

.single-agents-page.layout3 .clave-agent-l3__portrait-frame {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--clave-l3-ivory);
}

.single-agents-page.layout3 .clave-agent-l3__portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.single-agents-page.layout3 .clave-agent-l3__name {
  margin: 0 0 8px;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clave-l3-navy);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.single-agents-page.layout3 .clave-agent-l3__role {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--clave-l3-muted);
}

.single-agents-page.layout3 .clave-agent-l3__agency {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.single-agents-page.layout3 .clave-agent-l3__agency a {
  color: var(--clave-l3-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.single-agents-page.layout3 .clave-agent-l3__agency a:hover,
.single-agents-page.layout3 .clave-agent-l3__agency a:focus {
  color: var(--clave-l3-gold);
  border-bottom-color: var(--clave-l3-gold);
}

.single-agents-page.layout3 .clave-agent-l3__location {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--clave-l3-muted);
}

.single-agents-page.layout3 .clave-agent-l3__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
}

.single-agents-page.layout3 .clave-agent-l3__actions .button-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  width: auto;
  max-width: 100%;
}

.single-agents-page.layout3 .clave-agent-l3__actions .jws-button {
  min-height: 46px;
  min-width: 0;
  width: auto;
  flex: 0 0 auto;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}

.single-agents-page.layout3 .clave-agent-l3__actions .jws-button.button-border:first-child,
.single-agents-page.layout3 .clave-agent-l3__actions .button-contact > a.jws-button:first-of-type {
  background: var(--clave-l3-navy);
  color: #fff;
  border-color: var(--clave-l3-navy);
}

.single-agents-page.layout3 .clave-agent-l3__actions .jws-button.button-border:first-child:hover,
.single-agents-page.layout3 .clave-agent-l3__actions .button-contact > a.jws-button:first-of-type:hover {
  background: #1a0a36;
  border-color: #1a0a36;
  color: #fff;
}

.single-agents-page.layout3 .clave-agent-l3__actions .button-contact > a.jws-button:nth-of-type(2) {
  background: #fff;
  color: #128c7e;
  border: 1px solid #128c7e;
}

.single-agents-page.layout3 .clave-agent-l3__actions .button-contact > a.jws-button:nth-of-type(2):hover {
  background: #128c7e;
  color: #fff;
}

.single-agents-page.layout3 .clave-agent-l3__email {
  background: #fff !important;
  color: var(--clave-l3-navy) !important;
  border: 1px solid var(--clave-l3-line) !important;
}

.single-agents-page.layout3 .clave-agent-l3__email:hover {
  border-color: var(--clave-l3-gold) !important;
  color: var(--clave-l3-gold) !important;
}

.single-agents-page.layout3 .clave-agent-l3__social {
  display: flex;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.single-agents-page.layout3 .clave-agent-l3__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clave-l3-navy);
  border: 1px solid var(--clave-l3-line);
  border-radius: 50%;
  text-decoration: none;
}

.single-agents-page.layout3 .clave-agent-l3__social a:hover {
  color: var(--clave-l3-gold);
  border-color: var(--clave-l3-gold);
}

.single-agents-page.layout3 .clave-agent-l3__agency-logo {
  margin-top: 18px;
  max-width: 140px;
}

.single-agents-page.layout3 .clave-agent-l3__agency-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.single-agents-page.layout3 .clave-agent-l3__credentials,
.single-agents-page.layout3 .clave-agent-l3__about,
.single-agents-page.layout3 .clave-agent-l3__optional,
.single-agents-page.layout3 .clave-agent-l3__stats,
.single-agents-page.layout3 .clave-agent-l3__properties,
.single-agents-page.layout3 .clave-agent-l3__reviews,
.single-agents-page.layout3 .clave-agent-l3__contact-form {
  padding: 36px 0 0;
}

.single-agents-page.layout3 .clave-agent-l3__credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.single-agents-page.layout3 .clave-agent-l3__block {
  background: #fff;
  border: 1px solid var(--clave-l3-line);
  border-radius: 8px;
  padding: 24px 26px;
}

.single-agents-page.layout3 .clave-agent-l3__heading {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clave-l3-navy);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.single-agents-page.layout3 .clave-agent-l3__heading--section {
  margin-bottom: 20px;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.single-agents-page.layout3 .clave-agent-l3__term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--clave-l3-navy);
}

.single-agents-page.layout3 .clave-agent-l3__term-list--wrap li {
  padding: 6px 12px;
  border: 1px solid var(--clave-l3-line);
  border-radius: 4px;
  font-size: 14px;
  background: var(--clave-l3-ivory);
}

.single-agents-page.layout3 .clave-agent-l3__prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--clave-l3-muted);
}

.single-agents-page.layout3 .clave-agent-l3__prose p:last-child {
  margin-bottom: 0;
}

.single-agents-page.layout3 .clave-agent-l3__optional-inner > div {
  background: #fff;
  border: 1px solid var(--clave-l3-line);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.single-agents-page.layout3 .clave-agent-l3__optional-inner > div:last-child {
  margin-bottom: 0;
}

.single-agents-page.layout3 .clave-agent-l3__properties .agents-properties-tabs {
  background: #fff;
  border: 1px solid var(--clave-l3-line);
  border-radius: 8px;
  padding: 20px 18px 8px;
}

.single-agents-page.layout3 .clave-agent-l3__properties .agents-properties-tabs .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--clave-l3-line);
  padding-bottom: 12px;
}

.single-agents-page.layout3 .clave-agent-l3__properties .agents-properties-tabs .nav a {
  color: var(--clave-l3-muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.single-agents-page.layout3 .clave-agent-l3__properties .agents-properties-tabs .nav a.active,
.single-agents-page.layout3 .clave-agent-l3__properties .agents-properties-tabs .nav a:hover {
  color: var(--clave-l3-navy);
}

.single-agents-page.layout3 .clave-agent-l3__form-lead {
  margin: 0 0 16px;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--clave-l3-muted);
}

.single-agents-page.layout3 .jws-agents-contact-form {
  background: #fff;
  border: 1px solid var(--clave-l3-line);
  border-radius: 8px;
  padding: 28px 26px 20px;
}

.single-agents-page.layout3 .jws-agents-contact-form h4 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--clave-l3-navy);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.single-agents-page.layout3 .jws-agents-contact-form .submit-btn {
  background: var(--clave-l3-navy);
  border-color: var(--clave-l3-navy);
  min-height: 48px;
  font-weight: 600;
}

.single-agents-page.layout3 .jws-agents-contact-form .submit-btn:hover {
  background: var(--clave-l3-gold);
  border-color: var(--clave-l3-gold);
}

@media (max-width: 1024px) {
  .single-agents-page.layout3 .clave-agent-l3__identity-grid {
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 28px;
  }

  .single-agents-page.layout3 .clave-agent-l3__portrait-frame {
    width: 180px;
  }

  .single-agents-page.layout3 .clave-agent-l3__credentials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .single-agents-page.layout3 {
    padding-block-end: 48px;
  }

  .single-agents-page.layout3 .clave-agent-l3__identity {
    padding: 28px 0 24px;
    text-align: center;
  }

  .single-agents-page.layout3 .clave-agent-l3__identity-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .single-agents-page.layout3 .clave-agent-l3__portrait-frame {
    width: 168px;
    border-radius: 50%;
  }

  .single-agents-page.layout3 .clave-agent-l3__intro {
    width: 100%;
  }

  .single-agents-page.layout3 .clave-agent-l3__name {
    font-size: 32px;
  }

  .single-agents-page.layout3 .clave-agent-l3__actions {
    justify-content: center;
  }

  .single-agents-page.layout3 .clave-agent-l3__actions .button-contact {
    justify-content: center;
    width: 100%;
  }

  .single-agents-page.layout3 .clave-agent-l3__actions .jws-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }

  .single-agents-page.layout3 .clave-agent-l3__social {
    justify-content: center;
  }

  .single-agents-page.layout3 .clave-agent-l3__agency-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .single-agents-page.layout3 .clave-agent-l3__credentials,
  .single-agents-page.layout3 .clave-agent-l3__about,
  .single-agents-page.layout3 .clave-agent-l3__properties,
  .single-agents-page.layout3 .clave-agent-l3__contact-form {
    padding-top: 24px;
  }

  .single-agents-page.layout3 .clave-agent-l3__block,
  .single-agents-page.layout3 .jws-agents-contact-form,
  .single-agents-page.layout3 .clave-agent-l3__properties .agents-properties-tabs {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 360px) {
  .single-agents-page.layout3 .clave-agent-l3__actions .jws-button {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   CLAVE Editorial / Digital Magazine — Single Blog (Layout 1)
   Targets: single.php → template-parts/content/blog/single/layout/layout1.php
   Containers: .single_blog.no_sidebar / .has_sidebar .entry_content
   ========================================================================== */

/*
 * No Sidebar (Redux: position_sidebar_blog_single = "full"):
 * single.php sets content_col = "col-xl-12 col-12" + class "no_sidebar".
 * Parent CSS only constrains .post_content to 68% when that class exists
 * (sidebar mode). Full-width column was already 100%, but our prior
 * entry_content max-width without auto margins left copy stuck left.
 */
.single-blog.no_sidebar > .container > .row > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.single-blog.no_sidebar article {
  max-width: 860px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-blog.no_sidebar article > header,
.single-blog.no_sidebar article > .entry_content,
.single-blog.no_sidebar article > footer {
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Sidebar mode: keep editorial measure inside the 68% column */
.single-blog.has_sidebar .entry_content {
  max-width: 860px;
}

.single-blog .entry_content {
  font-size: 1.125rem; /* 18px */
  line-height: 1.8;
  color: #2d3748;
}

.single-blog .entry_content > *:last-child {
  margin-bottom: 0;
}

.single-blog .entry_content p,
.single-blog .entry_content .wp-block-paragraph {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2d3748;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* Heading hierarchy — magazine scale (overrides oversized theme H2s) */
.single-blog .entry_content h2,
.single-blog .entry_content .wp-block-heading h2,
.single-blog .entry_content h2.wp-block-heading {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  color: #1a202c;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.45);
  letter-spacing: -0.01em;
}

.single-blog .entry_content h3,
.single-blog .entry_content h3.wp-block-heading {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: #1a202c;
  margin-top: 32px;
  margin-bottom: 16px;
}

.single-blog .entry_content h4,
.single-blog .entry_content h4.wp-block-heading {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: #2d3748;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Lists */
.single-blog .entry_content ul,
.single-blog .entry_content ol,
.single-blog .entry_content .wp-block-list {
  margin: 0 0 24px;
  padding-left: 1.35em;
}

.single-blog .entry_content ul li,
.single-blog .entry_content ol li,
.single-blog .entry_content .wp-block-list li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #2d3748;
  padding-left: 0.25em;
}

.single-blog .entry_content ul li:last-child,
.single-blog .entry_content ol li:last-child {
  margin-bottom: 0;
}

/* Editorial callouts — blockquote / pull quotes */
.single-blog .entry_content blockquote,
.single-blog .entry_content .wp-block-quote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid #c5a880;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
}

.single-blog .entry_content blockquote p,
.single-blog .entry_content .wp-block-quote p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2d3748;
}

/* Tables as soft editorial panels */
.single-blog .entry_content table,
.single-blog .entry_content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: #f8fafc;
  border-left: 4px solid #c5a880;
  overflow: hidden;
}

.single-blog .entry_content table th,
.single-blog .entry_content table td,
.single-blog .entry_content .wp-block-table th,
.single-blog .entry_content .wp-block-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.55;
  color: #2d3748;
}

.single-blog .entry_content table th,
.single-blog .entry_content .wp-block-table th {
  font-weight: 600;
  background: rgba(197, 168, 128, 0.12);
}

/* In-article images */
.single-blog .entry_content img,
.single-blog .entry_content .wp-block-image img,
.single-blog .entry_content figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.single-blog .entry_content .wp-block-image,
.single-blog .entry_content figure {
  margin: 32px 0;
}

.single-blog .entry_content figcaption,
.single-blog .entry_content .wp-element-caption {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #718096;
}

/* Featured / header media — cinematic crop, no stretch */
.single-blog header .post-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #e2e8f0;
}

.single-blog header .post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
}

@supports not (aspect-ratio: 16 / 9) {
  .single-blog header .post-media {
    height: 0;
    padding-bottom: 56.25%;
  }

  .single-blog header .post-media img {
    position: absolute;
    inset: 0;
  }
}

/* Soften related-post thumbnails: prefer typographic clarity over muddy crops */
.single-blog .post-related .post-media {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.single-blog .post-related .post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-blog .post-related .entry-title {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
}

/* Hide noisy tag cloud widgets in blog sidebar / single */
.widget_tag_cloud,
.jws-tags-cloud,
.tagcloud,
.widget .tagcloud {
  display: none !important;
}

/* Slightly calmer H1 on single for magazine feel */
.single-blog .entry_title {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

@media (max-width: 767px) {
  .single-blog.no_sidebar article {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .single-blog .entry_content h2,
  .single-blog .entry_content h2.wp-block-heading {
    font-size: 22px;
    margin-top: 36px;
  }

  .single-blog .entry_content h3,
  .single-blog .entry_content h3.wp-block-heading {
    font-size: 18px;
  }

  .single-blog .entry_content p,
  .single-blog .entry_content .wp-block-paragraph {
    font-size: 1.0625rem; /* 17px */
    text-align: left; /* justify is harder to read on narrow screens */
  }
}

/* Guest header Sign In: icon only from 992px, label on smaller screens. */
@media (min-width: 992px) {
  .header-login-link .header-login-text {
    display: none !important;
  }
  .jws_account > a.header-login-link {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
  }
}
@media (max-width: 991px) {
  .header-login-link .header-login-text {
    display: inline !important;
  }
}

/*
 * CLAVE: unify blog archive/category featured banners with /insights/ list
 * (/insights/ uses 1170×640 thumbs ≈ 16:9; force cover crop so mixed uploads match).
 */
.jws-blog-archive .jws-post-item .post-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #e2e8f0;
}

.jws-blog-archive .jws-post-item .post-media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.jws-blog-archive .jws-post-item .post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
}

@supports not (aspect-ratio: 16 / 9) {
  .jws-blog-archive .jws-post-item .post-media {
    height: 0;
    padding-bottom: 56.25%;
  }

  .jws-blog-archive .jws-post-item .post-media > a,
  .jws-blog-archive .jws-post-item .post-media img {
    position: absolute;
    inset: 0;
  }
}

/*
 * CLAVE: Insights archive/category header — matches /insights/ hero typography
 * (centered serif H1 ~40/50, white ground, no photo/overlay).
 */
.clave-insights-archive-header {
  background: #ffffff;
  text-align: center;
  padding: 48px 20px 36px;
}

.clave-insights-archive-header__inner {
  max-width: 820px;
  margin: 0 auto;
}

.clave-insights-archive-header__crumbs {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #85808f;
  margin: 0 0 18px;
}

.clave-insights-archive-header__crumbs a {
  color: #85808f;
  text-decoration: none;
}

.clave-insights-archive-header__crumbs a:hover,
.clave-insights-archive-header__crumbs a:focus {
  color: #0c0020;
  text-decoration: underline;
}

.clave-insights-archive-header__sep {
  margin: 0 0.45em;
  color: #c5c2cc;
}

.clave-insights-archive-header__current {
  color: #554d63;
}

.clave-insights-archive-header__title,
.clave-insights-archive-header h1 {
  font-family: var(--font2, "Belgiano Serif", "BelgianoSerif", Georgia, serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  color: #0c0020;
  margin: 0 0 14px;
  text-align: center;
}

.clave-insights-archive-header__subtitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
}

.clave-insights-archive-header__subtitle p,
.clave-insights-archive-header p {
  margin: 0 auto;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.55;
  max-width: 720px;
}

@media (max-width: 767px) {
  .clave-insights-archive-header {
    padding: 32px 16px 28px;
  }
}

/* CLAVE: Properties Listing (layout4) intro under title/breadcrumb */
.properties-page-filter.layout4 .clave-properties-intro {
  margin: 12px 0 14px;
  max-width: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #3d3748;
  border-left: 3px solid #c5a059;
  padding-left: 16px;
}

.properties-page-filter.layout4 .clave-properties-trust {
  margin: 0 0 28px;
  padding-left: 19px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7388;
}

.properties-page-filter.layout4 .clave-properties-trust span {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .properties-page-filter.layout4 .clave-properties-intro {
    margin: 8px 0 12px;
    font-size: 16px;
    line-height: 1.6;
  }

  .properties-page-filter.layout4 .clave-properties-trust {
    margin: 0 0 20px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }
}

.properties-page-filter.layout4 .clave-properties-seo-footer {
  width: 100%;
  margin-top: 48px;
  margin-bottom: 8px;
  padding-top: 40px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(12, 0, 32, 0.1);
}

.properties-page-filter.layout4 .clave-properties-seo-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: stretch;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__copy h2 {
  margin: 0 0 14px;
  font-family: var(--font2, "Belgiano Serif", "BelgianoSerif", Georgia, serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 400;
  color: #0c0020;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__copy p {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #4a4456;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__guide {
  margin-top: 14px !important;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__guide a {
  color: #0c0020;
  text-decoration: underline;
  text-decoration-color: rgba(197, 160, 89, 0.7);
  text-underline-offset: 3px;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__guide a:hover {
  color: #c5a059;
  text-decoration-color: #c5a059;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  background: #f7f5f2;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-top: 3px solid #c5a059;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__cta h3 {
  margin: 0 0 10px;
  font-family: var(--font2, "Belgiano Serif", "BelgianoSerif", Georgia, serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: #0c0020;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__cta p {
  margin: 0 0 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #5c5668;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 22px;
  background: #0c0020;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #0c0020;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.properties-page-filter.layout4 .clave-properties-seo-footer__btn:hover,
.properties-page-filter.layout4 .clave-properties-seo-footer__btn:focus {
  background: #c5a059;
  border-color: #c5a059;
  color: #0c0020;
}

@media (max-width: 991px) {
  .properties-page-filter.layout4 .clave-properties-seo-footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .properties-page-filter.layout4 .clave-properties-seo-footer {
    margin-top: 32px;
    margin-bottom: 0;
    padding-top: 28px;
    padding-bottom: 4px;
  }

  .properties-page-filter.layout4 .clave-properties-seo-footer__cta {
    padding: 24px 20px;
  }
}

/* CLAVE: Services single Title Bar (jws_builder 6118) — clean, properties-aligned */
.single-services .jws-title-bar-wrap {
  background: #ffffff;
  border-bottom: 1px solid rgba(12, 0, 32, 0.08);
}

.single-services .jws-title-bar-wrap .elementor-6118 {
  background: #ffffff;
}

.single-services .jws-title-bar-wrap .elementor-6118 .elementor-element-6331708 {
  --margin-top: 28px !important;
  --margin-bottom: 20px !important;
}

.single-services .jws-title-bar-wrap .elementor-6118 .elementor-element-68c7c65 > .elementor-widget-container {
  margin-bottom: 12px !important;
}

.single-services .jws-title-bar-wrap .elementor-6118 .title {
  font-family: var(--font2, "Belgiano Serif", "BelgianoSerif", Georgia, serif);
  font-weight: 400;
  color: #0c0020;
  line-height: 1.2;
}

.single-services .jws-title-bar-wrap .elementor-6118 .jws-breadcrumbs__item,
.single-services .jws-title-bar-wrap .elementor-6118 .jws-breadcrumbs__item a {
  color: #5c5668;
}

.single-services #primary.content-area {
  padding-top: 8px;
}

@media (max-width: 767px) {
  .single-services .jws-title-bar-wrap .elementor-6118 .elementor-element-6331708 {
    --margin-top: 20px !important;
    --margin-bottom: 16px !important;
  }
}

/* CLAVE: Real Estate Guidance page — clean white header + airy content */
.page-id-6045 .elementor-6045 .elementor-element-1212ae0 {
  background-color: #ffffff !important;
  background-image: none !important;
}

.page-id-6045 .elementor-6045 .elementor-element-1212ae0 .title {
  color: #0c0020 !important;
  font-family: var(--font2, "Belgiano Serif", "BelgianoSerif", Georgia, serif) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
}

/* Guidance + About breadcrumbs: muted gray current crumb (match properties/services) */
.page-id-6045 .elementor-6045 .jws-breadcrumbs__item,
.page-id-6045 .elementor-6045 .jws-breadcrumbs__item a,
.page-id-6045 .elementor-6045 .jws-breadcrumbs__item--current,
.page-id-6045 .elementor-6045 .jws-breadcrumbs__separator,
.page-id-6045 .elementor-6045 .jws-breadcrumbs__separator__text,
.page-id-15763 .elementor-15763 .jws-breadcrumbs__item,
.page-id-15763 .elementor-15763 .jws-breadcrumbs__item a,
.page-id-15763 .elementor-15763 .jws-breadcrumbs__item--current,
.page-id-15763 .elementor-15763 .jws-breadcrumbs__separator,
.page-id-15763 .elementor-15763 .jws-breadcrumbs__separator__text {
  color: #5c5668 !important;
}

.page-id-6045 .elementor-6045 .jws-breadcrumbs__item:hover a,
.page-id-15763 .elementor-15763 .jws-breadcrumbs__item:hover a {
  color: #0c0020 !important;
}

/* About Us white H1 header — match Guidance scale */
.page-id-15763 .elementor-15763 .elementor-element-abh1ttl .title {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  color: #0c0020 !important;
}

.page-id-15763 .elementor-15763 .elementor-element-abintro {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.page-id-15763 .elementor-15763 .elementor-element-abcta01 .elementor-widget-jws-gradient-button {
  display: inline-flex;
}

/* About Us hero CTAs: dark text on white header (was white-on-photo) */
.page-id-15763 .elementor-15763 .elementor-element-abbtn01 .elementor-button,
.page-id-15763 .elementor-15763 .elementor-element-abbtn02 .elementor-button {
  color: #0c0020 !important;
  border-color: #0c0020 !important;
}

.page-id-15763 .elementor-15763 .elementor-element-abbtn01 .elementor-button .elementor-button-icon,
.page-id-15763 .elementor-15763 .elementor-element-abbtn02 .elementor-button .elementor-button-icon {
  color: #0c0020 !important;
  fill: #0c0020 !important;
}

.page-id-15763 .elementor-15763 .elementor-element-abbtn01 .elementor-button:hover,
.page-id-15763 .elementor-15763 .elementor-element-abbtn02 .elementor-button:hover {
  color: #5c5668 !important;
  border-color: #5c5668 !important;
}

.page-id-15763 .elementor-15763 .elementor-element-abbtn01 .elementor-button:hover .elementor-button-icon,
.page-id-15763 .elementor-15763 .elementor-element-abbtn02 .elementor-button:hover .elementor-button-icon {
  color: #5c5668 !important;
  fill: #5c5668 !important;
}

.page-id-6045 .elementor-6045 .elementor-element-1e52c49,
.page-id-6045 .elementor-6045 .elementor-element-5509f2e {
  width: 100% !important;
  max-width: 46rem !important;
}

.page-id-6045 .elementor-6045 .elementor-element-0122e72,
.page-id-6045 .elementor-6045 .elementor-element-ce1d1d6,
.page-id-6045 .elementor-6045 .elementor-element-bdff238,
.page-id-6045 .elementor-6045 .elementor-element-fa18124 {
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .page-id-6045 .elementor-6045 .elementor-element-0122e72 > .e-con,
  .page-id-6045 .elementor-6045 .elementor-element-ce1d1d6 > .e-con,
  .page-id-6045 .elementor-6045 .elementor-element-bdff238 > .e-con,
  .page-id-6045 .elementor-6045 .elementor-element-fa18124 > .e-con {
    --width: 100% !important;
    width: 100% !important;
  }
}

/* CLAVE: Insights sidebar Buyer & Investor Guide CTA */
.elementor-12582 .elementor-element-claveGui1 {
  background: #f7f5f2;
  border-left: 3px solid #c5a059;
}

/* Agent / Agency single: profile name as H1 (was h2/h3 in parent templates) */
.single-agents h1.agent-title,
.single-agencies .agency-name h1.title {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin: 0;
}

/* Properties hub (/properties/ layout2): full-width compact intro ABOVE search */
.clave-properties-hub-intro {
  padding: 0.75rem 0 0.25rem;
  border-bottom: 1px solid rgba(12, 0, 32, 0.06);
  background: linear-gradient(180deg, #faf9f7 0%, #ffffff 100%);
}
.clave-properties-hub-intro__title {
  margin: 0 0 12px;
  max-width: none;
  width: 100%;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.2;
  font-weight: 600;
  color: #0c0020;
}
.clave-properties-hub-intro__text {
  margin: 0 0 12px;
  max-width: none;
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
}
.properties-page-filter .clave-properties-hub-intro + .page-top {
  padding-top: 0.5rem;
}

/* Home (3655) Hero intro + category banners
   Hero H1 typography is left to Elementor / theme --font2 (Belgiano Serif). */
.elementor-3655 .elementor-element-9eb9791,
.elementor-3655 .elementor-element-9eb9791 p {
  font-size: 17px;
  line-height: 1.6;
  color: #374151;
}
.elementor-3655 .elementor-element-9eb9791 p {
  margin: 0;
}
.elementor-3655 .elementor-element-0d45794 .jws-banner .jws-banner-item {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .elementor-3655 .elementor-element-9eb9791,
  .elementor-3655 .elementor-element-9eb9791 p {
    font-size: 15px;
  }
}
