:root {
  --vi-navy: #0b2a57;
  --vi-blue: #1267d6;
  --vi-blue-dark: #0e55b2;
  --vi-ink: #14213d;
  --vi-muted: #68778b;
  --vi-line: #e5ebf3;
  --vi-soft: #f6f9fd;
  --vi-white: #fff;
  --vi-radius: 14px;
  --vi-shadow: 0 10px 30px rgba(14, 42, 87, .08);
}

body { background:#fff; color:var(--vi-ink); }
.vi-home { overflow:hidden; }
.vi-home a { text-decoration:none; }
.vi-home .container { max-width:1240px; }

/* Header overrides: scoped to the refreshed v1 frontend */
.header-area.header-1 { background:#fff; border-bottom:1px solid rgba(11,42,87,.08); box-shadow:0 3px 16px rgba(11,42,87,.04); }
.header-area.header-1 .main-navbar .navbar { min-height:72px; }
.header-area.header-1 .navbar-brand img { max-height:40px; }
.header-area.header-1 .vi-desktop-nav { display:flex; align-items:center; gap:28px; margin-left:auto; margin-right:30px; }
.header-area.header-1 .vi-desktop-nav a { color:#23334c; font-size:14px; font-weight:600; transition:.2s ease; }
.header-area.header-1 .vi-desktop-nav a:hover { color:var(--vi-blue); }
.header-area.header-1 .vi-header-actions { display:flex; align-items:center; gap:10px; }
.vi-header-publish { display:inline-flex; align-items:center; gap:8px; padding:11px 17px; border-radius:9px; color:#fff!important; background:var(--vi-navy); font-size:13px; font-weight:700; }
.vi-header-login { display:inline-flex; align-items:center; padding:10px 14px; border-radius:9px; color:#293a55!important; border:1px solid var(--vi-line); font-size:13px; font-weight:600; }

.vi-hero { position:relative; min-height:480px; background-image:linear-gradient(90deg, rgba(5,32,65,.78), rgba(5,32,65,.36) 56%, rgba(5,32,65,.12)), var(--vi-hero-image); background-position:center; background-size:cover; display:flex; align-items:center; }
.vi-hero__inner { padding-top:64px; padding-bottom:54px; }
.vi-hero__copy { max-width:680px; color:#fff; margin-bottom:26px; }
.vi-hero__copy h1 { color:#fff; font-size:48px; line-height:1.08; letter-spacing:-1.5px; margin:0 0 14px; font-weight:800; }
.vi-hero__copy p { font-size:17px; line-height:1.6; max-width:670px; color:rgba(255,255,255,.91); margin:0; }
.vi-searchbox { width:min(790px, 100%); background:#fff; border-radius:12px; padding:0; box-shadow:0 16px 40px rgba(0,0,0,.16); overflow:hidden; }
.vi-searchbox__tabs { display:flex; padding:0 18px; border-bottom:1px solid var(--vi-line); }
.vi-searchbox__tabs button { border:0; background:none; padding:14px 18px 12px; font-size:14px; font-weight:700; color:#65748a; position:relative; cursor:pointer; }
.vi-searchbox__tabs button.active { color:var(--vi-navy); }
.vi-searchbox__tabs button.active:after { content:""; position:absolute; bottom:-1px; height:3px; left:12px; right:12px; background:var(--vi-blue); border-radius:3px 3px 0 0; }
.vi-searchbox__form { display:grid; grid-template-columns:1fr 145px; gap:10px; padding:13px; }
.vi-searchbox__input { display:flex; align-items:center; gap:12px; min-width:0; padding:0 15px; border:1px solid var(--vi-line); border-radius:9px; }
.vi-searchbox__input i { color:var(--vi-blue); font-size:17px; }
.vi-searchbox__input input { width:100%; min-width:0; height:52px; border:0; outline:0; background:transparent; color:var(--vi-ink); font-size:15px; }
.vi-searchbox__form > button { border:0; border-radius:9px; background:var(--vi-navy); color:#fff; font-size:15px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:9px; transition:.2s ease; }
.vi-searchbox__form > button:hover { background:var(--vi-blue-dark); }
.vi-category-strip { display:flex; gap:9px; flex-wrap:wrap; margin-top:15px; }
.vi-category-strip a { min-width:106px; min-height:75px; padding:11px 13px; border-radius:10px; background:rgba(255,255,255,.96); color:#263650; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; font-size:12px; font-weight:600; box-shadow:0 8px 24px rgba(4,27,58,.08); }
.vi-category-strip a:hover { transform:translateY(-2px); color:var(--vi-blue); }
.vi-category-strip__icon { font-size:20px; line-height:1; }

.vi-stats { border-bottom:1px solid var(--vi-line); background:#fff; }
.vi-stats__grid { display:grid; grid-template-columns:repeat(4,1fr); padding-top:24px; padding-bottom:24px; }
.vi-stats__grid > div { display:grid; grid-template-columns:42px auto; grid-template-rows:auto auto; align-items:center; padding:0 25px; border-right:1px solid var(--vi-line); }
.vi-stats__grid > div:first-child { padding-left:0; }
.vi-stats__grid > div:last-child { border-right:0; }
.vi-stats__grid i { grid-row:1/3; font-size:24px; color:var(--vi-blue); }
.vi-stats__grid strong { font-size:20px; line-height:1.1; color:var(--vi-navy); }
.vi-stats__grid span { font-size:12px; color:var(--vi-muted); margin-top:3px; }

.vi-section { padding:64px 0; }
.vi-section--soft { background:var(--vi-soft); }
.vi-section__head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:26px; }
.vi-section__head h2 { margin:3px 0 0; color:var(--vi-navy); font-size:30px; line-height:1.15; letter-spacing:-.6px; }
.vi-section__head > a { color:var(--vi-blue); font-weight:700; font-size:13px; white-space:nowrap; }
.vi-eyebrow { display:block; text-transform:uppercase; letter-spacing:.11em; font-weight:800; font-size:10px; color:var(--vi-blue); }
.vi-eyebrow--light { color:#bcd9ff; }

.vi-property-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.vi-property-card { min-width:0; background:#fff; border:1px solid var(--vi-line); border-radius:var(--vi-radius); overflow:hidden; box-shadow:0 4px 18px rgba(16,43,83,.05); transition:.22s ease; }
.vi-property-card:hover { transform:translateY(-3px); box-shadow:var(--vi-shadow); }
.vi-property-card__media { display:block; position:relative; aspect-ratio:4/3; background:#eef3f8; overflow:hidden; }
.vi-property-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.vi-property-card:hover .vi-property-card__media img { transform:scale(1.025); }
.vi-badge { position:absolute; top:12px; z-index:2; padding:5px 8px; border-radius:6px; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.vi-badge--purpose { left:12px; background:#fff; color:var(--vi-blue); }
.vi-badge--featured { left:70px; background:#ffba32; color:#513600; }
.vi-favorite { position:absolute; right:11px; top:10px; z-index:2; width:34px; height:34px; border-radius:50%; border:0; background:rgba(255,255,255,.94); color:var(--vi-navy); display:grid; place-items:center; cursor:pointer; }
.vi-property-card__body { padding:15px; }
.vi-property-price { font-size:19px; line-height:1.15; color:var(--vi-navy); font-weight:800; margin-bottom:5px; }
.vi-property-price small { font-size:11px; font-weight:600; color:var(--vi-muted); }
.vi-property-card h3 { font-size:14px; line-height:1.4; margin:0 0 6px; min-height:39px; }
.vi-property-card h3 a { color:var(--vi-ink); }
.vi-property-location { font-size:11px; color:var(--vi-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0 0 11px; }
.vi-property-location i { margin-right:4px; }
.vi-property-meta { min-height:25px; display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:9px 0; border-top:1px solid var(--vi-line); border-bottom:1px solid var(--vi-line); font-size:11px; color:#4d5f76; }
.vi-property-meta span { display:flex; align-items:center; gap:5px; }
.vi-property-vendor { padding-top:10px; font-size:10px; font-weight:600; color:#5d6c7e; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vi-property-vendor i, .vi-verified { color:var(--vi-blue); }
.vi-empty { grid-column:1/-1; padding:40px; text-align:center; border:1px dashed #cad6e5; border-radius:var(--vi-radius); color:var(--vi-muted); }

.vi-city-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:13px; }
.vi-city-card { position:relative; min-height:160px; border-radius:12px; overflow:hidden; background:#dbe5f1; box-shadow:0 4px 16px rgba(9,37,75,.07); }
.vi-city-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:.35s ease; }
.vi-city-card:hover img { transform:scale(1.04); }
.vi-city-card__shade { position:absolute; inset:0; background:linear-gradient(0deg,rgba(6,29,58,.8),rgba(6,29,58,.02) 75%); }
.vi-city-card__content { position:absolute; left:14px; right:14px; bottom:13px; color:#fff; display:flex; flex-direction:column; }
.vi-city-card__content strong { font-size:15px; }
.vi-city-card__content small { color:rgba(255,255,255,.82); font-size:10px; margin-top:2px; }

.vi-vendor-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.vi-vendor-card { display:flex; align-items:center; gap:12px; min-height:88px; padding:14px; border:1px solid var(--vi-line); border-radius:12px; background:#fff; color:var(--vi-ink); box-shadow:0 4px 16px rgba(9,37,75,.04); }
.vi-vendor-card:hover { border-color:#c7d8ef; box-shadow:var(--vi-shadow); }
.vi-vendor-card__avatar { width:52px; height:52px; border-radius:50%; overflow:hidden; border:1px solid var(--vi-line); flex:0 0 auto; }
.vi-vendor-card__avatar img { width:100%; height:100%; object-fit:cover; }
.vi-vendor-card__text { min-width:0; display:flex; flex-direction:column; flex:1; }
.vi-vendor-card__text strong { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vi-vendor-card__text small { color:var(--vi-muted); font-size:10px; margin-top:4px; }

.vi-owner-cta { padding:5px 0 65px; }
.vi-owner-cta__panel { min-height:270px; border-radius:18px; padding:48px; color:#fff; display:flex; align-items:center; background:linear-gradient(120deg, #082a52, #1267d6); box-shadow:0 15px 40px rgba(8,48,100,.13); }
.vi-owner-cta__panel > div { max-width:660px; }
.vi-owner-cta h2 { color:#fff; font-size:31px; line-height:1.15; margin:7px 0 10px; }
.vi-owner-cta p { color:rgba(255,255,255,.86); max-width:580px; margin:0 0 20px; }
.vi-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; border-radius:9px; padding:12px 17px; font-size:13px; font-weight:800; }
.vi-btn--light { background:#fff; color:var(--vi-navy)!important; }

.vi-benefits { background:#f7faff; border-top:1px solid var(--vi-line); padding:26px 0; }
.vi-benefits__grid { display:grid; grid-template-columns:repeat(4,1fr); }
.vi-benefits__grid > div { display:flex; align-items:center; gap:12px; padding:0 22px; border-right:1px solid var(--vi-line); }
.vi-benefits__grid > div:first-child { padding-left:0; }
.vi-benefits__grid > div:last-child { border-right:0; }
.vi-benefits__grid i { font-size:24px; color:var(--vi-blue); }
.vi-benefits__grid p { display:flex; flex-direction:column; margin:0; }
.vi-benefits__grid strong { font-size:12px; color:var(--vi-navy); }
.vi-benefits__grid span { margin-top:3px; color:var(--vi-muted); font-size:10px; line-height:1.4; }

.vi-mobile-nav { display:none; }

@media (max-width: 1199px) {
  .vi-property-grid { grid-template-columns:repeat(3,1fr); }
  .vi-property-grid .vi-property-card:nth-child(4) { display:none; }
  .vi-city-grid { grid-template-columns:repeat(3,1fr); }
  .header-area.header-1 .vi-desktop-nav { gap:18px; }
}

@media (max-width: 991px) {
  .header-area.header-1 .main-navbar { display:none; }
  .header-area.header-1 .main-responsive-nav { display:block; background:#fff; }
  .vi-hero { min-height:430px; }
  .vi-hero__inner { padding-top:54px; padding-bottom:45px; }
  .vi-hero__copy h1 { font-size:40px; }
  .vi-stats__grid { grid-template-columns:repeat(2,1fr); gap:18px 0; }
  .vi-stats__grid > div:nth-child(2) { border-right:0; }
  .vi-property-grid { grid-template-columns:repeat(2,1fr); }
  .vi-property-grid .vi-property-card:nth-child(4) { display:block; }
  .vi-vendor-grid { grid-template-columns:repeat(2,1fr); }
  .vi-benefits__grid { grid-template-columns:repeat(2,1fr); gap:22px 0; }
  .vi-benefits__grid > div:nth-child(2) { border-right:0; }
}

@media (max-width: 767px) {
  body { padding-bottom:68px; }
  .header-area.header-1 { position:relative; }
  .header-area.header-1 .main-responsive-nav { padding:8px 0; }
  .header-area.header-1 .main-responsive-nav .logo img { max-height:34px; }
  .vi-hero { min-height:0; background-image:linear-gradient(90deg, rgba(5,32,65,.72), rgba(5,32,65,.34)), var(--vi-hero-image); }
  .vi-hero__inner { padding-top:42px; padding-bottom:26px; }
  .vi-hero__copy { text-align:center; margin:0 auto 20px; }
  .vi-hero__copy h1 { font-size:30px; line-height:1.12; letter-spacing:-.8px; }
  .vi-hero__copy p { font-size:12px; line-height:1.5; padding:0 12px; }
  .vi-searchbox { border-radius:12px; }
  .vi-searchbox__tabs { justify-content:center; }
  .vi-searchbox__tabs button { flex:1; }
  .vi-searchbox__form { grid-template-columns:1fr 52px; padding:10px; }
  .vi-searchbox__input { padding:0 11px; }
  .vi-searchbox__input input { height:46px; font-size:13px; }
  .vi-searchbox__form > button span { display:none; }
  .vi-category-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
  .vi-category-strip a { min-width:0; min-height:65px; padding:8px 4px; font-size:9px; box-shadow:none; }
  .vi-category-strip a:nth-child(n+5) { display:none; }
  .vi-category-strip__icon { font-size:17px; }
  .vi-stats { display:none; }
  .vi-section { padding:38px 0; }
  .vi-section__head { align-items:center; margin-bottom:18px; }
  .vi-section__head h2 { font-size:22px; }
  .vi-section__head > a { font-size:11px; }
  .vi-eyebrow { font-size:8px; }
  .vi-property-grid { display:flex; overflow-x:auto; gap:12px; scroll-snap-type:x mandatory; padding-bottom:6px; margin-right:-15px; padding-right:15px; scrollbar-width:none; }
  .vi-property-grid::-webkit-scrollbar { display:none; }
  .vi-property-grid .vi-property-card, .vi-property-grid .vi-property-card:nth-child(4) { display:block; flex:0 0 82%; scroll-snap-align:start; }
  .vi-property-card__media { aspect-ratio:16/10; }
  .vi-property-card h3 { min-height:0; }
  .vi-city-grid { display:flex; overflow-x:auto; gap:10px; margin-right:-15px; padding-right:15px; scrollbar-width:none; }
  .vi-city-grid::-webkit-scrollbar { display:none; }
  .vi-city-card { flex:0 0 44%; min-height:145px; }
  .vi-vendor-grid { grid-template-columns:1fr; gap:10px; }
  .vi-owner-cta { padding:0 0 38px; }
  .vi-owner-cta__panel { padding:28px 23px; min-height:245px; border-radius:14px; }
  .vi-owner-cta h2 { font-size:24px; }
  .vi-owner-cta p { font-size:12px; }
  .vi-benefits { display:none; }
  .footer-area { margin-bottom:0; }
  .vi-mobile-nav { position:fixed; z-index:999; left:0; right:0; bottom:0; height:64px; display:grid; grid-template-columns:repeat(5,1fr); align-items:end; padding:7px 8px max(6px, env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #e1e8f1; box-shadow:0 -4px 18px rgba(10,38,77,.08); }
  .vi-mobile-nav a { color:#66758a; display:flex; align-items:center; flex-direction:column; justify-content:center; gap:3px; font-size:9px; font-weight:600; }
  .vi-mobile-nav a i { font-size:18px; }
  .vi-mobile-nav a.active { color:var(--vi-blue); }
  .vi-mobile-nav__publish i { width:38px; height:38px; margin-top:-19px; border-radius:50%; display:grid; place-items:center; color:#fff; background:var(--vi-navy); box-shadow:0 4px 14px rgba(11,42,87,.24); }
}

@media (max-width: 420px) {
  .vi-property-grid .vi-property-card, .vi-property-grid .vi-property-card:nth-child(4) { flex-basis:88%; }
  .vi-city-card { flex-basis:48%; }
}

.vi-mobile-menu-content { display:none; }
.mobile-menu .vi-mobile-menu-content { display:flex; flex-direction:column; gap:0; padding:8px 0 18px; }
.mobile-menu .vi-mobile-menu-content a { display:block; padding:12px 6px; border-bottom:1px solid var(--vi-line); color:var(--vi-ink); font-size:14px; font-weight:650; }
.mobile-menu .vi-mobile-menu-content a.publish { margin-top:10px; padding:12px 14px; text-align:center; color:#fff; background:var(--vi-navy); border-radius:9px; border-bottom:0; }

.vi-footer { background:#082a52!important; border:0!important; color:rgba(255,255,255,.78); padding:52px 0 0; }
.vi-footer__top { display:grid; grid-template-columns:2fr repeat(3,1fr); gap:60px; padding-bottom:40px; }
.vi-footer__brand img { max-height:42px; max-width:180px; filter:brightness(0) invert(1); }
.vi-footer__brand p { max-width:350px; font-size:12px; line-height:1.7; color:rgba(255,255,255,.68); margin:17px 0; }
.vi-footer__social { display:flex; gap:9px; }
.vi-footer__social a { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:#fff; background:rgba(255,255,255,.09); }
.vi-footer__col { display:flex; flex-direction:column; gap:10px; }
.vi-footer__col strong { color:#fff; font-size:13px; margin-bottom:4px; }
.vi-footer__col a, .vi-footer__col span { color:rgba(255,255,255,.68); font-size:11px; }
.vi-footer__col a:hover { color:#fff; }
.vi-footer__bottom { min-height:58px; border-top:1px solid rgba(255,255,255,.12); display:flex; align-items:center; justify-content:space-between; gap:20px; font-size:10px; color:rgba(255,255,255,.55); }

@media (max-width: 991px) {
  .vi-footer__top { grid-template-columns:2fr 1fr 1fr; gap:35px; }
  .vi-footer__top .vi-footer__col:last-child { display:none; }
}
@media (max-width: 767px) {
  .vi-footer { padding-top:36px; }
  .vi-footer__top { grid-template-columns:1fr 1fr; gap:28px 20px; }
  .vi-footer__brand { grid-column:1/-1; }
  .vi-footer__top .vi-footer__col:last-child { display:flex; }
  .vi-footer__bottom { flex-direction:column; align-items:flex-start; justify-content:center; padding:14px 0; }
}

/* v0.1.1 polish: remove legacy-theme visual leaks and protect the mobile CTA layer */
.header-area.header-1 {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 999;
}
.header-area.header-1.is-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
}
.header-area.header-1 .menu-toggler {
  width: 40px;
  height: 40px;
  border: 1px solid var(--vi-line);
  border-radius: 9px;
  background: #fff !important;
}
.header-area.header-1 .menu-toggler span {
  width: 20px;
  background: var(--vi-navy) !important;
}

/* The orange square came from the legacy theme primary colour. */
.go-top {
  background: var(--vi-navy) !important;
  background-image: none !important;
  border-radius: 0 9px 0 0;
}
.go-top:hover { background: var(--vi-blue) !important; }

/* Floating WhatsApp stays accessible without covering the mobile bottom navigation. */
#WAButton .floating-wpp { z-index: 998; }

@media (min-width: 992px) {
  .header-area.header-1 .main-navbar { background:#fff; }
  .vi-hero__inner { padding-top: 54px; }
}

@media (max-width: 767px) {
  #WAButton .floating-wpp {
    bottom: 82px !important;
    right: 14px !important;
    left: auto !important;
  }
  #WAButton .floating-wpp:hover { bottom: 84px !important; }
  #WAButton .floating-wpp .floating-wpp-popup.active { bottom: 74px; }
  .go-top { bottom: 72px; width: 40px; height: 40px; font-size: 22px; }
}

/* v0.1.2 - hard overrides + cache-busted stylesheet.
   The previous v0.1.1 Blade changes were visible while CSS changes could remain cached
   by the browser/server/CDN because the stylesheet URL did not change. */

/* Desktop header must occupy document flow; legacy header.css declares .header-area absolute. */
html body .header-area.header-1 {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  background: #fff !important;
}
html body .header-area.header-1.is-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}
@media (min-width: 1200px) {
  html body .header-area.header-1 .main-navbar {
    position: relative !important;
    background: #fff !important;
  }
  html body .header-area.header-1 .main-navbar .navbar {
    min-height: 72px !important;
  }
  html body .vi-hero {
    margin-top: 0 !important;
  }
  html body .vi-hero__inner {
    padding-top: 54px !important;
  }
}

/* Remove old orange primary-colour leak from mobile menu control. */
html body .header-area.header-1 .menu-toggler,
html body .header-area.header-1 .main-responsive-nav .menu-toggler {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 1px solid #e5ebf3 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}
html body .header-area.header-1 .menu-toggler span,
html body .header-area.header-1 .main-responsive-nav .menu-toggler span {
  background: #0b2a57 !important;
}

/* Remove old orange primary-colour leak from scroll-to-top. */
html body .go-top,
html body .go-top.active,
html body .go-top:hover {
  background-color: #0b2a57 !important;
  background-image: none !important;
  color: #fff !important;
}
html body .go-top:hover { background-color: #1267d6 !important; }

/* Floating WhatsApp must sit ABOVE the new bottom nav on phones. */
@media (max-width: 767px) {
  html body #WAButton,
  html body #WAButton .floating-wpp {
    z-index: 1100 !important;
  }
  html body #WAButton .floating-wpp {
    position: fixed !important;
    right: 14px !important;
    left: auto !important;
    bottom: 84px !important;
  }
  html body #WAButton .floating-wpp:hover {
    bottom: 86px !important;
  }
  html body .vi-mobile-nav {
    z-index: 1050 !important;
  }
  html body .go-top {
    bottom: 76px !important;
    z-index: 1040 !important;
  }
}

/* =========================================================
   VeInmuebles Frontend 2026 - v0.2
   Search results: desktop filters + list/map + mobile-first UI
   ========================================================= */
.vi-search-page { background:#f7f9fc; min-height:70vh; color:var(--vi-ink); }
.vi-search-head { background:#fff; border-top:1px solid var(--vi-line); border-bottom:1px solid var(--vi-line); padding:25px 0 20px; }
.vi-search-head__crumbs { display:flex; align-items:center; gap:8px; font-size:11px; color:#8a97a9; margin-bottom:13px; }
.vi-search-head__crumbs a { color:#607087; }
.vi-search-head__crumbs i { font-size:8px; }
.vi-search-head__row { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.vi-search-head h1 { font-size:29px; line-height:1.15; letter-spacing:-.6px; color:var(--vi-navy); margin:0 0 7px; font-weight:750; }
.vi-search-head p { margin:0; font-size:12px; color:#66758a; }
.vi-view-switch { display:flex; gap:5px; background:#f4f7fb; border:1px solid var(--vi-line); border-radius:9px; padding:4px; }
.vi-view-switch button { display:flex; align-items:center; gap:7px; height:34px; padding:0 13px; border:0; border-radius:6px; background:transparent; color:#68788d; font-size:11px; font-weight:650; }
.vi-view-switch button.active { background:#fff; color:var(--vi-navy); box-shadow:0 1px 5px rgba(10,38,77,.08); }

.vi-search-layout { padding:28px 0 64px; }
.vi-filter-card { position:sticky; top:92px; background:#fff; border:1px solid var(--vi-line); border-radius:12px; padding:18px; box-shadow:0 6px 20px rgba(11,42,87,.04); }
.vi-filter-card__title { align-items:center; justify-content:space-between; padding-bottom:14px; margin-bottom:2px; border-bottom:1px solid var(--vi-line); }
.vi-filter-card__title strong { color:var(--vi-navy); font-size:15px; }
.vi-filter-card__title a { color:var(--vi-blue); font-size:10px; font-weight:650; }
.vi-filter-group { padding:15px 0; border-bottom:1px solid #edf1f6; }
.vi-filter-group > label:first-child { display:block; margin-bottom:9px; color:#314156; font-size:11px; font-weight:700; }
.vi-filter-input { height:40px; border:1px solid #dfe6ef; border-radius:8px; display:flex; align-items:center; padding:0 11px; margin-bottom:8px; background:#fff; }
.vi-filter-input i { color:#748399; font-size:12px; margin-right:8px; }
.vi-filter-input input { width:100%; border:0; outline:0; background:transparent; font-size:11px; color:var(--vi-ink); }
.vi-select, .vi-filter-two input { width:100%; height:40px; border:1px solid #dfe6ef; border-radius:8px; padding:0 10px; background:#fff; color:#4d5d72; font-size:11px; outline:0; }
.vi-filter-two { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.vi-segmented { display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid #dfe6ef; border-radius:8px; padding:3px; background:#f7f9fc; }
.vi-segmented label { margin:0; }
.vi-segmented input { position:absolute; opacity:0; pointer-events:none; }
.vi-segmented span { display:grid; place-items:center; height:34px; border-radius:6px; color:#6b798b; font-size:11px; font-weight:650; cursor:pointer; }
.vi-segmented input:checked + span { background:var(--vi-blue); color:#fff; box-shadow:0 2px 7px rgba(18,103,214,.2); }
.vi-quick-options { display:flex; gap:6px; flex-wrap:wrap; }
.vi-quick-options label { margin:0; }
.vi-quick-options input { position:absolute; opacity:0; pointer-events:none; }
.vi-quick-options span { min-width:42px; height:33px; padding:0 9px; display:grid; place-items:center; border:1px solid #dfe6ef; border-radius:7px; background:#fff; color:#627087; font-size:10px; font-weight:650; cursor:pointer; }
.vi-quick-options input:checked + span { border-color:var(--vi-blue); color:var(--vi-blue); background:#f1f6ff; }
.vi-filter-amenities { display:flex; flex-direction:column; gap:8px; }
.vi-filter-amenities > label:first-child { margin-bottom:2px; }
.vi-check { display:flex; align-items:center; gap:8px; margin:0; color:#5d6c80; font-size:10px; cursor:pointer; }
.vi-check input { accent-color:var(--vi-blue); width:14px; height:14px; }
.vi-apply-filters { width:100%; height:41px; margin-top:16px; border:0; border-radius:8px; background:var(--vi-blue); color:#fff; font-size:11px; font-weight:700; }
.vi-apply-filters:hover { background:var(--vi-navy); }
.vi-clear-filters { display:block; text-align:center; margin-top:12px; font-size:10px; color:#65758b; }

.vi-results-toolbar { height:49px; margin-bottom:12px; padding:0 4px; align-items:center; justify-content:space-between; }
.vi-results-toolbar > span { font-size:11px; color:#6b798d; }
.vi-results-toolbar label { display:flex; align-items:center; gap:8px; color:#748297; font-size:10px; }
.vi-results-toolbar select { height:36px; min-width:172px; border:1px solid #dfe6ef; border-radius:8px; padding:0 10px; background:#fff; color:#405067; font-size:10px; }
.vi-results-list { display:flex; flex-direction:column; gap:12px; }
.vi-search-card { display:grid; grid-template-columns:250px 1fr; min-height:175px; background:#fff; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden; box-shadow:0 5px 18px rgba(11,42,87,.035); transition:.18s ease; }
.vi-search-card:hover { transform:translateY(-1px); box-shadow:0 9px 24px rgba(11,42,87,.07); border-color:#d7e0ec; }
.vi-search-card__media { position:relative; display:block; min-height:175px; overflow:hidden; background:#e9eef5; }
.vi-search-card__media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.vi-search-card:hover .vi-search-card__media img { transform:scale(1.025); }
.vi-search-card__badge { position:absolute; left:11px; top:11px; z-index:2; padding:5px 8px; border-radius:5px; background:#eef6ff; color:#1161c4; font-size:8px; line-height:1; font-weight:800; letter-spacing:.45px; }
.vi-search-card__favorite { position:absolute; right:10px; top:10px; z-index:2; width:32px; height:32px; display:none; place-items:center; border:0; border-radius:50%; color:#213954; background:rgba(255,255,255,.94); box-shadow:0 2px 8px rgba(0,0,0,.08); }
.vi-search-card__body { padding:19px 20px 16px; min-width:0; }
.vi-search-card__top { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.vi-search-card__price { color:var(--vi-navy); font-size:19px; line-height:1; font-weight:800; }
.vi-search-card__price small { font-size:10px; color:#67758a; font-weight:600; }
.vi-search-card__favorite--desktop { position:static; display:grid; flex:0 0 auto; border:1px solid #e2e8f0; box-shadow:none; }
.vi-search-card h2 { margin:9px 0 6px; font-size:14px; line-height:1.3; font-weight:750; }
.vi-search-card h2 a { color:#22354d; }
.vi-search-card__location { display:flex; align-items:center; gap:6px; margin:0 0 13px; color:#78879a; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vi-search-card__location i { color:var(--vi-blue); }
.vi-search-card__meta { min-height:26px; display:flex; align-items:center; gap:17px; color:#516177; font-size:10px; border-bottom:1px solid #edf1f5; padding-bottom:12px; }
.vi-search-card__meta span { display:flex; align-items:center; gap:6px; }
.vi-search-card__meta i { color:#718096; font-size:12px; }
.vi-search-card__vendor { display:flex; align-items:center; gap:7px; padding-top:11px; color:#526176; font-size:9px; font-weight:650; }
.vi-search-card__vendor-avatar { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:#f0f4f9; color:var(--vi-navy); }
.vi-search-card__vendor > i { color:#1673dc; font-size:10px; }
.vi-results-empty { background:#fff; border:1px solid var(--vi-line); border-radius:12px; text-align:center; padding:65px 20px; }
.vi-results-empty > span { width:54px; height:54px; margin:0 auto 14px; display:grid; place-items:center; border-radius:50%; background:#eff5fd; color:var(--vi-blue); font-size:20px; }
.vi-results-empty h3 { color:var(--vi-navy); font-size:17px; margin-bottom:7px; }
.vi-results-empty p { color:#758397; font-size:11px; margin-bottom:15px; }
.vi-results-empty a { color:var(--vi-blue); font-size:11px; font-weight:700; }
.vi-pagination { padding-top:20px; display:flex; justify-content:center; }
.vi-results-map { min-height:620px; }
.vi-map-shell { height:650px; overflow:hidden; border:1px solid var(--vi-line); border-radius:12px; background:#e9eef5; }
.vi-map-shell #main-map { width:100%; height:100%; }

.vi-search-mobilebar { position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--vi-line); padding:9px 0; }
.vi-search-mobilebar .container { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; }
.vi-mobile-filter-pill, .vi-mobile-sort { height:38px; display:flex; align-items:center; justify-content:center; gap:5px; border:1px solid #dfe6ef; border-radius:8px; background:#fff; color:#43546a; font-size:10px; font-weight:650; }
.vi-mobile-filter-pill span { min-width:17px; height:17px; display:grid; place-items:center; border-radius:50%; background:var(--vi-blue); color:#fff; font-size:8px; }
.vi-mobile-filter-pill--purpose { color:var(--vi-blue); }
.vi-mobile-sort select { max-width:75px; border:0; background:transparent; outline:0; color:#43546a; font-size:10px; font-weight:650; padding:0; }

@media (max-width: 1199px) {
  .vi-search-head { padding:18px 0 15px; }
  .vi-search-head__crumbs { display:none; }
  .vi-search-head h1 { font-size:24px; }
  .vi-view-switch { display:none; }
  .vi-search-layout { padding-top:18px; }
  .vi-filter-offcanvas { background:#fff; }
  .vi-filter-offcanvas .offcanvas-header { border-bottom:1px solid var(--vi-line); padding:15px 18px; }
  .vi-filter-offcanvas .offcanvas-header small { display:block; color:#8a97a8; font-size:9px; margin-bottom:2px; }
  .vi-filter-offcanvas .offcanvas-header h4 { color:var(--vi-navy); margin:0; font-size:18px; }
  .vi-filter-card { position:static; border:0; border-radius:0; box-shadow:none; padding:4px 18px 22px; }
}

@media (max-width: 767px) {
  .vi-search-page { padding-bottom:3px; }
  .vi-search-head { padding:13px 0 11px; }
  .vi-search-head h1 { font-size:18px; letter-spacing:-.25px; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .vi-search-head p { font-size:10px; }
  .vi-search-mobilebar { top:0; }
  .vi-search-layout { padding:12px 0 34px; }
  .vi-results-list { gap:12px; }
  .vi-search-card { display:block; min-height:0; border-radius:12px; }
  .vi-search-card__media { min-height:0; aspect-ratio:16/9; }
  .vi-search-card__favorite { display:grid; }
  .vi-search-card__favorite--desktop { display:none; }
  .vi-search-card__body { padding:13px 14px 14px; }
  .vi-search-card__price { font-size:17px; }
  .vi-search-card h2 { font-size:13px; margin-top:7px; }
  .vi-search-card__location { margin-bottom:10px; }
  .vi-search-card__meta { gap:15px; padding-bottom:10px; }
  .vi-search-card__vendor { padding-top:9px; }
  .vi-pagination { padding-bottom:12px; }
  .vi-results-map, .vi-map-shell { height:calc(100vh - 180px); min-height:440px; }
}

/* ============================================================
   v0.3 — Ficha de propiedad (property detail page)
   Scoped under .vi-pdp so nothing here leaks into Home/Resultados.
   ============================================================ */

.vi-pdp { padding-bottom: 40px; }
.vi-pdp .container { max-width: 1240px; }

.vi-pdp__breadcrumb { font-size: 12px; color: var(--vi-muted); padding: 16px 0 10px; }
.vi-pdp__breadcrumb a { color: var(--vi-muted); }
.vi-pdp__breadcrumb a:hover { color: var(--vi-blue); }

/* Gallery */
.vi-gallery { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; border-radius: var(--vi-radius); overflow: hidden; margin-bottom: 22px; }
.vi-gallery__main { position: relative; aspect-ratio: 4 / 3; }
.vi-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vi-gallery__thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.vi-gallery__thumbs a { position: relative; display: block; overflow: hidden; }
.vi-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vi-gallery__more { position: absolute; inset: 0; background: rgba(11,42,87,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

@media (max-width: 900px) {
  .vi-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; gap: 6px; margin: 0 -16px 18px; padding: 0 16px; }
  .vi-gallery__main { scroll-snap-align: start; border-radius: var(--vi-radius); aspect-ratio: 4 / 3; }
  .vi-gallery__thumbs { display: contents; }
  .vi-gallery__thumbs a { scroll-snap-align: start; width: 88vw; border-radius: var(--vi-radius); aspect-ratio: 4 / 3; }
}

/* Header: badge, price, title, address */
.vi-pdp__badge { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--vi-soft); color: var(--vi-blue); }
.vi-pdp__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.vi-pdp__price { font-size: 30px; font-weight: 800; color: var(--vi-navy); line-height: 1.15; }
.vi-pdp__price small { font-size: 14px; font-weight: 500; color: var(--vi-muted); }
.vi-pdp__actions { display: flex; gap: 8px; flex-shrink: 0; }
.vi-pdp__icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--vi-line); background: #fff; color: var(--vi-navy); display: grid; place-items: center; cursor: pointer; }
.vi-pdp__title { font-size: 22px; font-weight: 700; color: var(--vi-ink); margin: 4px 0 6px; }
.vi-pdp__address { display: flex; align-items: center; gap: 6px; color: var(--vi-muted); font-size: 14px; margin-bottom: 18px; }

/* Meta chips */
.vi-pdp__meta { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; border-top: 1px solid var(--vi-line); border-bottom: 1px solid var(--vi-line); margin-bottom: 24px; }
.vi-pdp__meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--vi-ink); background: var(--vi-soft); padding: 7px 12px; border-radius: 8px; }
.vi-pdp__meta i { color: var(--vi-blue); font-size: 14px; }

/* Section blocks */
.vi-pdp__section { margin-bottom: 32px; }
.vi-pdp__section h2 { font-size: 17px; font-weight: 700; color: var(--vi-ink); margin-bottom: 14px; }
.vi-pdp__desc { font-size: 14px; line-height: 1.75; color: var(--vi-ink); }
.vi-pdp__confirmed { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vi-muted); margin-top: 10px; }
.vi-pdp__confirmed i { color: #3b8f57; }

/* Amenity chips */
.vi-amenities { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.vi-amenities li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--vi-ink); background: #fff; border: 1px solid var(--vi-line); padding: 8px 13px; border-radius: 9px; }
.vi-amenities i { color: var(--vi-blue); }

.vi-pdp__map { border-radius: var(--vi-radius); overflow: hidden; border: 1px solid var(--vi-line); }
.vi-pdp__map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Contact sidebar (desktop) */
/* v0.3.3: position:sticky quitado por completo, en todos los tamaños de
   pantalla. Tras 3 rondas de bugs relacionados (mobile y luego desktop),
   el beneficio de "queda visible al hacer scroll" no compensa el riesgo.
   La tarjeta ahora es un bloque normal, siempre. */
.vi-contact-card { position: static; background: #fff; border: 1px solid var(--vi-line); border-radius: var(--vi-radius); padding: 20px; box-shadow: var(--vi-shadow); }
.vi-contact-card--form { margin-top: 18px; }
.vi-contact-card__owner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.vi-contact-card__owner img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.vi-contact-card__owner h4 { font-size: 15px; font-weight: 700; color: var(--vi-ink); margin: 0; }
.vi-contact-card__owner a.vi-view-profile { font-size: 12px; color: var(--vi-blue); }
.vi-contact-card__badge { color: #3b8f57; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }

.vi-btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 9px; background: #1DA851; color: #fff !important; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.vi-btn-call { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 9px; background: #fff; color: var(--vi-navy) !important; font-weight: 700; font-size: 14px; border: 1px solid var(--vi-line); margin-bottom: 8px; }
.vi-btn-message { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 9px; background: var(--vi-soft); color: var(--vi-navy) !important; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; }

.vi-contact-card__note { font-size: 11px; color: var(--vi-muted); text-align: center; margin-top: 10px; }

/* Related properties */
.vi-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .vi-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vi-related-grid { grid-template-columns: 1fr; } }

/* Mobile fixed contact bar: Guardar | Llamar | WhatsApp.
   v0.3.1 fix: this page does not render the Home/Resultados bottom nav
   (.vi-mobile-nav only exists on those two pages), so this bar sits flush
   at the true bottom of the screen instead of leaving a 64px gap above a
   nav that isn't there — that gap is what let the site's floating
   "back to top" button (.go-top, bottom:0) collide with the Guardar icon.
   Sitting at bottom:0 with a higher z-index simply covers .go-top while
   this bar is present, the same way .vi-mobile-nav already does on
   Home/Resultados. */
.vi-pdp-mobilebar { display: none; }
@media (max-width: 900px) {
  .vi-pdp-mobilebar {
    display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--vi-line); box-shadow: 0 -4px 16px rgba(10,38,77,.08);
  }
  .vi-pdp-mobilebar__save { display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--vi-line); color: var(--vi-navy); background: #fff; }
  .vi-pdp-mobilebar__call { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; background: var(--vi-soft); color: var(--vi-navy) !important; font-weight: 700; font-size: 13px; }
  .vi-pdp-mobilebar__whatsapp { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; background: #1DA851; color: #fff !important; font-weight: 700; font-size: 13px; }
  /* Body needs bottom padding so the fixed bar never covers the contact form / related properties */
  .vi-pdp { padding-bottom: 90px; }
}

/* ============================================================
   v0.4 — Perfiles de vendedor/agente (frontend.vendor.details,
   frontend.agent.details). Scoped under .vi-profile.
   ============================================================ */

.vi-profile { padding: 30px 0 50px; }
.vi-profile__hero { display: flex; gap: 22px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.vi-profile__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--vi-shadow); flex-shrink: 0; }
.vi-profile__name { font-size: 24px; font-weight: 800; color: var(--vi-ink); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.vi-profile__badge { color: #3b8f57; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.vi-profile__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--vi-muted); }
.vi-profile__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vi-profile__meta i { color: var(--vi-blue); }

.vi-profile__section { margin-bottom: 32px; }
.vi-profile__section h2 { font-size: 17px; font-weight: 700; color: var(--vi-ink); margin-bottom: 16px; }
.vi-profile__about { font-size: 14px; line-height: 1.75; color: var(--vi-ink); }

.vi-profile__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vi-profile__tabs .nav-link { border: 1px solid var(--vi-line); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--vi-navy); background: #fff; }
.vi-profile__tabs .nav-link.active { background: var(--vi-navy); color: #fff; border-color: var(--vi-navy); }

.vi-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .vi-profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .vi-profile-grid { grid-template-columns: 1fr; } }

/* Team (My Agents) */
.vi-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .vi-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vi-team-grid { grid-template-columns: 1fr; } }
.vi-team-card { background: #fff; border: 1px solid var(--vi-line); border-radius: var(--vi-radius); padding: 18px; text-align: center; }
.vi-team-card img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.vi-team-card h4 { font-size: 14px; font-weight: 700; color: var(--vi-ink); margin: 0 0 4px; }
.vi-team-card__stats { font-size: 12px; color: var(--vi-muted); margin-bottom: 8px; }
.vi-team-card a.vi-view-profile { font-size: 12px; color: var(--vi-blue); font-weight: 600; }

/* Simple project card (kept lightweight, reuses the same visual language) */
.vi-project-card { position: relative; border-radius: var(--vi-radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--vi-shadow); }
.vi-project-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vi-project-card__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(to top, rgba(11,42,87,.85), transparent); color: #fff; }
.vi-project-card__overlay h4 { font-size: 14px; font-weight: 700; margin: 0; }

.vi-empty { padding: 30px; text-align: center; color: var(--vi-muted); font-size: 14px; background: var(--vi-soft); border-radius: var(--vi-radius); }

/* ============================================================
   v0.5 — Directorio de inmobiliarias (/vendors)
   ============================================================ */
.vi-vendors { padding: 42px 0 64px; background: #f7f9fc; min-height: 60vh; }
.vi-vendors__intro { display:flex; justify-content:space-between; gap:28px; align-items:flex-end; margin-bottom:24px; }
.vi-vendors__eyebrow { display:inline-block; color:var(--vi-blue); font-size:12px; line-height:1; font-weight:800; text-transform:uppercase; letter-spacing:.08em; margin-bottom:9px; }
.vi-vendors__intro h1 { color:var(--vi-ink); font-size:30px; line-height:1.15; font-weight:800; margin:0 0 8px; }
.vi-vendors__intro p { color:var(--vi-muted); font-size:14px; line-height:1.65; max-width:680px; margin:0; }
.vi-vendors__total { text-align:right; flex:0 0 auto; }
.vi-vendors__total strong { display:block; color:var(--vi-navy); font-size:28px; line-height:1; }
.vi-vendors__total span { color:var(--vi-muted); font-size:12px; }

.vi-vendor-search { display:grid; grid-template-columns:1.3fr 1fr .9fr auto; gap:10px; align-items:center; background:#fff; border:1px solid var(--vi-line); border-radius:14px; padding:12px; box-shadow:0 8px 25px rgba(15,40,75,.05); margin-bottom:28px; }
.vi-vendor-search__field { min-width:0; position:relative; display:flex; align-items:center; gap:9px; height:46px; padding:0 13px; border:1px solid var(--vi-line); border-radius:9px; background:#fff; }
.vi-vendor-search__field i { color:var(--vi-blue); flex:0 0 auto; }
.vi-vendor-search__field input,.vi-vendor-search__field select { width:100%; min-width:0; height:100%; border:0; outline:0; background:transparent; color:var(--vi-ink); font-size:13px; }
.vi-vendor-search__field select { cursor:pointer; }
.vi-vendor-search__submit { height:46px; border:0; padding:0 24px; }
.vi-vendor-search__clear { grid-column:1/-1; justify-self:end; color:var(--vi-blue); font-size:12px; font-weight:700; margin:0 3px 1px; }

.vi-vendor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.vi-vendor-card { overflow:hidden; background:#fff; border:1px solid var(--vi-line); border-radius:14px; box-shadow:0 8px 26px rgba(20,45,80,.055); transition:transform .2s ease,box-shadow .2s ease; }
.vi-vendor-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(20,45,80,.10); }
.vi-vendor-card__cover { position:relative; display:block; height:170px; background:var(--vi-soft); overflow:hidden; }
.vi-vendor-card__cover img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.vi-vendor-card:hover .vi-vendor-card__cover img { transform:scale(1.025); }
.vi-vendor-card__badge { position:absolute; left:12px; bottom:12px; display:inline-flex; align-items:center; gap:5px; padding:6px 9px; border-radius:999px; background:rgba(255,255,255,.95); color:#28794a; font-size:11px; font-weight:800; box-shadow:0 3px 12px rgba(0,0,0,.10); }
.vi-vendor-card__body { padding:17px; }
.vi-vendor-card__heading h2 { font-size:17px; line-height:1.25; font-weight:800; margin:0 0 6px; }
.vi-vendor-card__heading h2 a { color:var(--vi-ink); }
.vi-vendor-card__location { display:flex; gap:6px; align-items:center; color:var(--vi-muted); font-size:12px; margin:0; min-height:18px; }
.vi-vendor-card__location i { color:var(--vi-blue); }
.vi-vendor-card__stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0; padding:13px 0; border-top:1px solid var(--vi-line); border-bottom:1px solid var(--vi-line); }
.vi-vendor-card__stats div { text-align:center; min-width:0; }
.vi-vendor-card__stats div+div { border-left:1px solid var(--vi-line); }
.vi-vendor-card__stats strong { display:block; color:var(--vi-navy); font-size:16px; line-height:1.1; }
.vi-vendor-card__stats span { display:block; color:var(--vi-muted); font-size:10px; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vi-vendor-card__actions { display:flex; gap:8px; }
.vi-vendor-card__actions .vi-btn { flex:1; min-height:40px; display:flex; align-items:center; justify-content:center; font-size:12px; }
.vi-vendor-card__icon { width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--vi-line); border-radius:9px; color:#169c50 !important; background:#fff; font-size:18px; }
.vi-vendor-card__icon:hover { background:#effaf3; }
.vi-vendors__pagination { display:flex; justify-content:center; margin-top:30px; }
.vi-vendors__empty { max-width:620px; margin:30px auto; padding:48px 24px; text-align:center; background:#fff; border:1px solid var(--vi-line); border-radius:14px; }
.vi-vendors__empty>i { font-size:30px; color:var(--vi-blue); margin-bottom:14px; }
.vi-vendors__empty h2 { color:var(--vi-ink); font-size:19px; margin-bottom:7px; }
.vi-vendors__empty p { color:var(--vi-muted); font-size:13px; margin-bottom:18px; }

@media (max-width: 1100px) {
  .vi-vendor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vi-vendor-search { grid-template-columns:1fr 1fr; }
  .vi-vendor-search__submit { width:100%; }
}
@media (max-width: 700px) {
  .vi-vendors { padding:26px 0 90px; }
  .vi-vendors__intro { align-items:flex-start; margin-bottom:18px; }
  .vi-vendors__intro h1 { font-size:23px; }
  .vi-vendors__intro p { font-size:13px; }
  .vi-vendors__total { display:none; }
  .vi-vendor-search { grid-template-columns:1fr; padding:10px; margin-bottom:18px; }
  .vi-vendor-search__clear { grid-column:auto; justify-self:center; padding:5px; }
  .vi-vendor-grid { grid-template-columns:1fr; gap:14px; }
  .vi-vendor-card__cover { height:155px; }
  .vi-vendor-card__body { padding:15px; }
}

/* ================================================================
   v0.6 — Ajuste tarjetas de inmobiliarias
   Evita que el avatar/foto heredado de estilos antiguos de .vi-vendor-card
   deforme el layout en desktop y móvil.
   ================================================================ */
.vi-vendors .vi-vendor-card { display:block; align-items:initial; gap:0; min-height:0; padding:0; color:var(--vi-ink); }
.vi-vendors .vi-vendor-card__cover { width:100%; height:170px; border-radius:0; border:0; flex:none; }
.vi-vendors .vi-vendor-card__cover img { width:100%; height:100%; border-radius:0; object-fit:cover; }
.vi-vendors .vi-vendor-card__body { width:100%; min-width:0; }
.vi-vendors .vi-vendor-card__actions { align-items:center; }
@media (max-width: 767px) {
  .vi-vendors .vi-vendor-card { display:grid; grid-template-columns:88px minmax(0,1fr); }
  .vi-vendors .vi-vendor-card__cover { height:100%; min-height:148px; }
  .vi-vendors .vi-vendor-card__cover img { object-fit:cover; }
  .vi-vendors .vi-vendor-card__badge { left:7px; right:7px; bottom:8px; justify-content:center; padding:5px 6px; font-size:9px; white-space:nowrap; overflow:hidden; }
  .vi-vendors .vi-vendor-card__body { padding:13px; }
  .vi-vendors .vi-vendor-card__heading h2 { font-size:15px; overflow-wrap:anywhere; }
  .vi-vendors .vi-vendor-card__stats { margin:11px 0; padding:10px 0; gap:4px; }
  .vi-vendors .vi-vendor-card__stats strong { font-size:14px; }
  .vi-vendors .vi-vendor-card__stats span { font-size:8.5px; }
}

/* ============================================================
   v10 — aviso de propiedad vendida/alquilada en la ficha
   ============================================================ */
.vi-unavailable-banner { display: flex; align-items: center; gap: 10px; background: #fff4e5; border: 1px solid #f6c877; color: #7a4a00; padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }
.vi-unavailable-banner i { color: #c97c00; font-size: 16px; flex-shrink: 0; }

/* ============================================================
   v10 — Panel de usuario comprador (/cuenta, /mis-favoritos)
   ============================================================ */
.vi-dash { padding: 30px 0 50px; }

.vi-dash-nav { background: #fff; border: 1px solid var(--vi-line); border-radius: var(--vi-radius); overflow: hidden; box-shadow: var(--vi-shadow); }
.vi-dash-nav__user { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--vi-line); }
.vi-dash-nav__user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.vi-dash-nav__user h4 { font-size: 14px; font-weight: 700; color: var(--vi-ink); margin: 0; }
.vi-dash-nav__user span { font-size: 12px; color: var(--vi-muted); word-break: break-all; }
.vi-dash-nav__links { list-style: none; margin: 0; padding: 10px; }
.vi-dash-nav__links a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--vi-ink); font-size: 14px; font-weight: 500; }
.vi-dash-nav__links a i { width: 16px; color: var(--vi-muted); }
.vi-dash-nav__links a:hover, .vi-dash-nav__links a.is-active { background: var(--vi-soft); color: var(--vi-blue); }
.vi-dash-nav__links a.is-active i { color: var(--vi-blue); }
.vi-dash-nav__logout { border-top: 1px solid var(--vi-line); margin-top: 6px; padding-top: 6px; }

.vi-dash-card { background: #fff; border: 1px solid var(--vi-line); border-radius: var(--vi-radius); padding: 22px; box-shadow: var(--vi-shadow); }
.vi-dash-card h4 { font-size: 16px; font-weight: 700; color: var(--vi-ink); margin: 0 0 16px; }
.vi-dash-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vi-dash-card__header h4 { margin: 0; }
.vi-dash-card__header a { font-size: 13px; color: var(--vi-blue); font-weight: 600; }

.vi-dash-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
@media (max-width: 700px) { .vi-dash-info-grid { grid-template-columns: 1fr 1fr; } }
.vi-dash-info-grid div { display: flex; flex-direction: column; gap: 3px; }
.vi-dash-info-grid span { font-size: 11px; color: var(--vi-muted); text-transform: uppercase; letter-spacing: .03em; }
.vi-dash-info-grid strong { font-size: 14px; color: var(--vi-ink); font-weight: 600; }
.vi-dash-edit-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--vi-blue); }

.vi-dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .vi-dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .vi-dash-grid { grid-template-columns: 1fr; } }

/* ============================================================
   v11 — pista de requisitos de contraseña en el registro
   ============================================================ */
.vi-account-hint { display: block; font-size: 11px; color: var(--vi-muted); margin-top: 4px; }

/* ============================================================
   v13 — Alertas y retencion del comprador
   ============================================================ */
.vi-save-search-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 9px; border: 1px solid var(--vi-line); background: #fff; color: var(--vi-navy); font-size: 13px; font-weight: 600; }
.vi-save-search-btn:hover { background: var(--vi-soft); }

.vi-saved-search-list { display: flex; flex-direction: column; gap: 12px; }
.vi-saved-search-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--vi-line); border-radius: var(--vi-radius); flex-wrap: wrap; }
.vi-saved-search-item h4 { font-size: 14px; font-weight: 700; color: var(--vi-ink); margin: 0 0 3px; }
.vi-saved-search-item span { font-size: 13px; color: var(--vi-muted); display: block; }
.vi-saved-search-item small { font-size: 11px; color: #9aa5b1; display: block; margin-top: 4px; }
.vi-saved-search-item__actions { display: flex; align-items: center; gap: 14px; }
.vi-saved-search-item__actions button { background: none; border: 0; color: #c0392b; padding: 0; cursor: pointer; }

/* v13.1 — estado del corazon cuando la propiedad ya esta en favoritos */
.vi-favorite.is-active { color: #e0245e; }
.vi-favorite.is-active i { color: #e0245e; }

/* ============================================================
   v13.2 — lista de sugerencias del autocompletado de ciudad
   ============================================================ */
.vi-autocomplete-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--vi-line); border-radius: 10px; box-shadow: var(--vi-shadow); z-index: 50; overflow: hidden; max-height: 260px; overflow-y: auto; }
.vi-autocomplete-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: #fff; font-size: 13px; color: var(--vi-ink); cursor: pointer; }
.vi-autocomplete-item:hover { background: var(--vi-soft); }
.vi-searchbox__input { position: relative; }

/* ==========================================================
   v13.3 — Resultados: rejilla consistente + autocomplete
   ========================================================== */
.vi-results-list {
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.vi-results-list > .vi-property-card {
  width:100%;
  min-width:0;
}
.vi-results-list .vi-results-empty {
  grid-column:1 / -1;
}

.vi-autocomplete-list {
  position:absolute;
  z-index:1200;
  left:0;
  right:0;
  top:calc(100% + 7px);
  max-height:290px;
  overflow:auto;
  padding:6px;
  background:#fff;
  border:1px solid #dfe7f1;
  border-radius:10px;
  box-shadow:0 14px 34px rgba(8,42,82,.16);
}
.vi-autocomplete-list[hidden] { display:none !important; }
.vi-autocomplete-item {
  display:block;
  width:100%;
  padding:10px 12px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#243750;
  text-align:left;
  font-size:12px;
  cursor:pointer;
}
.vi-autocomplete-item:hover,
.vi-autocomplete-item:focus { background:#f0f6ff; color:#1267d6; outline:0; }

@media (max-width: 767px) {
  .vi-results-list { grid-template-columns:1fr; gap:12px; }
}

/* ==========================================================
   v13.4 — autocomplete corregido + 3 columnas en desktop
   ========================================================== */
.vi-autocomplete-anchor {
  position:relative;
  width:100%;
  min-width:0;
}
.vi-autocomplete-anchor > input[type="text"] { width:100%; }
.vi-autocomplete-item { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.vi-autocomplete-item__name { font-weight:700; color:inherit; }
.vi-autocomplete-item__state { font-size:11px; color:#7a889b; white-space:nowrap; }

/* En pantallas de escritorio aprovechamos mejor el ancho del listado. */
@media (min-width: 1200px) {
  .vi-results-list {
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:16px;
  }
  .vi-results-list .vi-property-card__media { aspect-ratio:16/11; }
  .vi-results-list .vi-property-card__body { padding:13px; }
  .vi-results-list .vi-property-card h3 { font-size:13px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .vi-results-list { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  .vi-results-list { grid-template-columns:1fr !important; }
}

/* Dark mode para el desplegable de sugerencias. */
[data-bs-theme="dark"] .vi-autocomplete-list,
.dark-mode .vi-autocomplete-list,
body.dark .vi-autocomplete-list {
  background:#172033;
  border-color:#2a3950;
}
[data-bs-theme="dark"] .vi-autocomplete-item,
.dark-mode .vi-autocomplete-item,
body.dark .vi-autocomplete-item { color:#edf3fb; }
[data-bs-theme="dark"] .vi-autocomplete-item:hover,
.dark-mode .vi-autocomplete-item:hover,
body.dark .vi-autocomplete-item:hover { background:#223149; }
[data-bs-theme="dark"] .vi-autocomplete-item__state,
.dark-mode .vi-autocomplete-item__state,
body.dark .vi-autocomplete-item__state { color:#a8b5c7; }


/* ==========================================================
   v13.5 — autocomplete visible + paginación de resultados
   ========================================================== */
/* El searchbox antiguo usaba overflow:hidden y recortaba el desplegable
   justo antes de la fila de categorías. La tarjeta conserva su radio,
   pero permite que las sugerencias salgan por debajo. */
.vi-searchbox { overflow: visible !important; position: relative; z-index: 80; }
.vi-searchbox__tabs { border-radius: 12px 12px 0 0; background:#fff; }
.vi-searchbox__form { border-radius: 0 0 12px 12px; background:#fff; }
.vi-searchbox__input { overflow: visible !important; position:relative; }
.vi-autocomplete-anchor { position:relative; z-index:1300; }
.vi-autocomplete-list {
  z-index:1400 !important;
  min-width:100%;
  width:100%;
}
.vi-category-strip { position:relative; z-index:1; }

.vi-pagination {
  padding:26px 0 4px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.vi-page-btn {
  min-width:38px;
  height:38px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--vi-line);
  border-radius:9px;
  background:#fff;
  color:var(--vi-navy);
  font-size:12px;
  font-weight:700;
  box-shadow:0 2px 8px rgba(11,42,87,.035);
}
.vi-page-btn:hover { color:#fff; background:var(--vi-blue); border-color:var(--vi-blue); }
.vi-page-btn.is-active { color:#fff; background:var(--vi-navy); border-color:var(--vi-navy); pointer-events:none; }
.vi-page-btn.is-disabled { opacity:.38; pointer-events:none; }
.vi-page-dots { color:#8290a3; font-size:13px; padding:0 2px; }

@media (max-width:767px) {
  .vi-searchbox { z-index:85; }
  .vi-autocomplete-list { max-height:220px; }
  .vi-pagination { padding-top:20px; gap:5px; }
  .vi-page-btn { min-width:35px; height:35px; padding:0 9px; }
}


/* ==========================================================
   v16.19 — Autocomplete movil bajo el buscador y sobre el teclado
   ========================================================== */
@media (max-width: 767px) {
  .vi-searchbox { scroll-margin-top: 8px; }
  body.vi-autocomplete-mobile-open .vi-autocomplete-mobile-active .vi-autocomplete-list {
    position: fixed !important;
    left: var(--vi-autocomplete-left, 12px) !important;
    right: var(--vi-autocomplete-right, 12px) !important;
    top: var(--vi-autocomplete-top, 180px) !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-height: var(--vi-autocomplete-max-height, 220px) !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 44px rgba(5, 24, 55, .24) !important;
  }
  body.vi-autocomplete-mobile-open .vi-autocomplete-item {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 14px;
  }
  body.vi-autocomplete-mobile-open .vi-autocomplete-item__state {
    font-size: 12px;
  }
}

/* ==========================================================
   v16.20 — Video embebido de propiedades (Instagram/TikTok/YouTube)
   ========================================================== */
.vi-property-video {
  width: 100%;
  margin-top: 14px;
  background: #071a35;
  border: 1px solid rgba(11,42,87,.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(10,35,73,.08);
}
.vi-property-video iframe { display:block; width:100%; border:0; background:#071a35; }
.vi-property-video--wide { aspect-ratio:16/9; }
.vi-property-video--wide iframe { height:100%; }
.vi-property-video--vertical { max-width:430px; aspect-ratio:9/16; margin-left:auto; margin-right:auto; }
.vi-property-video--vertical iframe { height:100%; }
.vi-property-video__footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:13px;
  color:#687991;
}
.vi-property-video__footer span i { color:#1483e6; margin-right:5px; }
.vi-property-video__footer a { font-weight:700; color:#0b2a57; }
.vi-property-video-fallback {
  display:flex;
  gap:18px;
  align-items:center;
  padding:18px;
  border:1px solid #e1e8f2;
  border-radius:16px;
  background:#f8fbff;
}
.vi-property-video-fallback img { width:150px; height:100px; object-fit:cover; border-radius:12px; }
.vi-property-video-fallback p { margin:4px 0 10px; color:#687991; }
@media (max-width:767px) {
  .vi-property-video { border-radius:14px; }
  .vi-property-video--vertical { max-width:100%; }
  .vi-property-video__footer { align-items:flex-start; flex-direction:column; gap:6px; }
  .vi-property-video-fallback { align-items:flex-start; flex-direction:column; }
  .vi-property-video-fallback img { width:100%; height:auto; aspect-ratio:16/9; }
}

/* ==========================================================
   v16.21 — reproductor local y fallback social compacto
   ========================================================== */
.vi-property-video--local{width:min(100%,760px);margin:14px auto 0;background:#071a35;border:1px solid rgba(11,42,87,.1);border-radius:18px;overflow:hidden;box-shadow:0 10px 34px rgba(10,35,73,.08)}
.vi-property-video--local video{display:block;width:100%;max-height:72vh;background:#071a35;object-fit:contain}
.vi-property-video-social{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center;padding:16px;border:1px solid #e1e8f2;border-radius:16px;background:#f8fbff;box-shadow:0 8px 26px rgba(10,35,73,.05)}
.vi-property-video-social__poster{position:relative;overflow:hidden;width:100%;aspect-ratio:16/10;border-radius:12px;background:linear-gradient(135deg,#0b2a57,#1267d6)}
.vi-property-video-social__poster img{display:block;width:100%;height:100%;object-fit:cover}
.vi-property-video-social__poster i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.94);color:#0b2a57;font-size:20px;box-shadow:0 8px 22px rgba(0,0,0,.2)}
.vi-property-video-social__body strong,.vi-property-video-social__body span{display:block}.vi-property-video-social__body strong{font-size:17px;color:#102b50}.vi-property-video-social__body span{margin:5px 0 12px;color:#687991;font-size:13px}.vi-property-video-social__body .btn{display:inline-flex;align-items:center;gap:7px}
@media(max-width:767px){.vi-property-video--local{border-radius:14px}.vi-property-video-social{grid-template-columns:1fr}.vi-property-video-social__poster{aspect-ratio:16/9}}

/* v16.22 — redes sociales: tarjeta compacta, nunca embed vertical */
.vi-property-video-social--compact{grid-template-columns:minmax(180px,300px) minmax(0,1fr);max-width:680px;padding:14px;gap:16px}
.vi-property-video-social--compact .vi-property-video-social__poster{display:block;aspect-ratio:16/9;cursor:pointer}
.vi-property-video-social__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.96);color:#0b2a57;box-shadow:0 8px 24px rgba(0,0,0,.24);transition:.18s}
.vi-property-video-social__poster:hover .vi-property-video-social__play{transform:translate(-50%,-50%) scale(1.06)}
.vi-property-video-social--compact .vi-property-video-social__body{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.vi-property-video-social--compact .vi-property-video-social__body strong{font-size:16px}.vi-property-video-social--compact .vi-property-video-social__body strong i{margin-right:6px}
.vi-property-video__footer--minimal{justify-content:flex-end}
@media(max-width:767px){.vi-property-video-social--compact{grid-template-columns:1fr;max-width:100%}.vi-property-video-social--compact .vi-property-video-social__body{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.vi-property-video-social--compact .vi-property-video-social__body strong{font-size:14px}}
.vi-property-video-social--compact .vi-property-video-social__poster .vi-property-video-social__play i{position:static;left:auto;top:auto;transform:none;display:block;width:auto;height:auto;border-radius:0;background:transparent;color:inherit;font-size:18px;box-shadow:none}


/* VeInmuebles v16.23 — redes sociales profesionales */
.vi-social-links{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:2px}
.vi-social-link{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:10px;border:1px solid #d8e3f0;background:#fff;color:#0b2a57;font-size:18px;box-shadow:0 4px 14px rgba(11,42,87,.05);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.vi-social-link:hover{color:#1267d6;border-color:#9fc2ed;transform:translateY(-1px);box-shadow:0 7px 18px rgba(11,42,87,.1)}
@media(max-width:767px){.vi-social-links{width:100%;margin-top:2px}.vi-social-link{width:40px;height:40px}}


/* ==========================================================
   v16.24 — acabado del perfil profesional
   ========================================================== */
.vi-profile-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.vi-profile-action{
  width:auto !important;
  min-height:44px;
  padding:0 17px !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  line-height:1;
  white-space:nowrap;
  border-radius:10px;
}
.vi-profile-actions .vi-social-links{
  display:inline-flex;
  width:auto !important;
  margin:0 !important;
  align-items:center;
  gap:8px;
}
.vi-profile-actions .vi-social-link{
  width:44px;
  height:44px;
  flex:0 0 44px;
  margin:0;
  padding:0;
}
.vi-social-icon-svg{
  display:block;
  width:19px;
  height:19px;
}
@media(max-width:767px){
  .vi-profile-actions{gap:7px}
  .vi-profile-action{min-height:42px;padding:0 14px !important}
  .vi-profile-actions .vi-social-link{width:42px;height:42px;flex-basis:42px}
}

/* v16.28: Comprar / Alquilar / Vacacional */
.vi-segmented--3{grid-template-columns:repeat(3,1fr)}
@media(max-width:575px){.vi-searchbox__tabs button{padding-left:8px;padding-right:8px;font-size:13px}.vi-segmented--3 span{font-size:10px}}


/* ============================================================
   v16.29 — Mobile search controls polish
   - Operation is its own selector (does not open the full filter drawer).
   - Filter close target is intentionally large and stays inside the viewport.
   ============================================================ */
.vi-mobile-purpose-select {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.vi-mobile-purpose-select select {
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--vi-blue);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-align-last: center;
  padding: 0 28px 0 10px;
  cursor: pointer;
}
.vi-mobile-purpose-select > i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--vi-blue);
  font-size: 11px;
}

.vi-filter-offcanvas .offcanvas-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}
.vi-filter-close {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 1px solid #dce5ef;
  border-radius: 50%;
  background: #fff;
  color: var(--vi-navy);
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(11,42,87,.08);
  cursor: pointer;
}
.vi-filter-close:active { transform: scale(.96); }

@media (max-width: 1199px) {
  .vi-filter-offcanvas .offcanvas-header {
    min-height: 72px;
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
    align-items: center;
  }
  .vi-filter-offcanvas .offcanvas-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ============================================================
   v16.30 — Consolidación móvil
   - Comprar/Alquilar/Vacacional usa selector independiente.
   - Filtros usa drawer propio, sin depender del JS Bootstrap histórico.
   ============================================================ */
@media (max-width:1199px){
  html.vi-filters-open,body.vi-filters-open{overflow:hidden!important}
  .vi-filter-offcanvas{display:block!important;position:fixed!important;inset:0 auto 0 0!important;width:min(94vw,430px)!important;max-width:430px!important;height:100dvh!important;background:#fff!important;z-index:1202!important;transform:translateX(-102%)!important;transition:transform .24s ease!important;visibility:visible!important;overflow:hidden!important;box-shadow:16px 0 42px rgba(11,42,87,.18)!important}
  .vi-filter-offcanvas.is-open{transform:translateX(0)!important}
  .vi-filter-offcanvas .offcanvas-header{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:82px!important;padding:16px 78px 14px 20px!important;background:#fff!important;z-index:3!important}
  .vi-filter-offcanvas .offcanvas-body{height:calc(100dvh - 82px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  .vi-filter-close{position:absolute!important;right:18px!important;top:50%!important;transform:translateY(-50%)!important;width:46px!important;height:46px!important;border:1px solid #dce5ef!important;border-radius:50%!important;background:#fff!important;color:#0b2a57!important;display:grid!important;place-items:center!important;padding:0!important;margin:0!important;font-size:32px!important;font-weight:300!important;line-height:1!important;z-index:4!important;box-shadow:0 4px 16px rgba(11,42,87,.06)!important}
  .vi-filter-close span{display:block!important;line-height:1!important;transform:translateY(-1px)!important}
  .vi-filter-backdrop{position:fixed!important;inset:0!important;z-index:1201!important;border:0!important;background:rgba(7,21,43,.42)!important;padding:0!important;margin:0!important;width:100%!important;height:100%!important}
}
@media (min-width:1200px){
  .vi-filter-offcanvas{transform:none!important;position:static!important;visibility:visible!important;height:auto!important;width:auto!important;max-width:none!important;box-shadow:none!important}
}
