/* ── Page shell ── */
/* body bg viene de vida-costera-nav.php (--vc-body-bg), no se sobreescribe aquí */
#primary, #main, .content-container, .site-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.content-area {
  padding: 0 !important;
}

.vc-shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px 64px 8px;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Header bar */
.vc-arch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 20px;
}

.vc-arch-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--vc-fg);
}

.vc-arch-count {
  font-size: 0.82rem;
  color: var(--vc-muted);
}

.vc-arch-count strong {
  color: var(--vc-fg);
  font-weight: 600;
}

/* Two-column layout */
.vc-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 960px) {
  .vc-layout {
    grid-template-columns: 1fr;
  }
  .vc-sidebar {
    display: none;
  }
  .vc-mobile-bar {
    display: block !important;
  }
}

/* ── Filter sidebar ── */
.vc-sidebar {
  position: sticky;
  top: 80px;
}

.vc-fcard {
  background: var(--vc-card);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow-s);
  overflow: hidden;
}

.vc-fhead {
  padding: 15px 18px 13px;
  border-bottom: 1px solid var(--vc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vc-fhead-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--vc-fg);
}

.vc-freset {
  font-size: 0.74rem;
  color: var(--vc-primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.vc-freset:hover {
  opacity: 0.7;
}

.vc-fbody {
  padding: 16px 18px;
}

.vc-fgroup {
  margin-bottom: 16px;
}

.vc-fgroup:last-of-type {
  margin-bottom: 0;
}

.vc-fgroup + .vc-fgroup {
  padding-top: 16px;
  border-top: 1px solid var(--vc-border);
}

.vc-flabel {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--vc-muted);
  margin-bottom: 7px;
}

.vc-fsel, .vc-fin {
  width: 100%;
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.855rem;
  font-family: inherit;
  color: var(--vc-fg);
  background: var(--vc-bg);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.vc-fsel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%236B7494' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.vc-fsel:focus, .vc-fin:focus {
  border-color: var(--vc-primary);
  box-shadow: 0 0 0 3px rgba(77, 106, 224, 0.12);
}

.vc-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vc-chip {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--vc-border);
  background: var(--vc-bg);
  color: var(--vc-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.vc-chip:hover {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
}

.vc-chip.active {
  background: var(--vc-prim-lt);
  border-color: var(--vc-primary);
  color: var(--vc-primary);
}

.vc-fbtn {
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  background: var(--vc-fg);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.vc-fbtn:hover {
  background: var(--vc-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77, 106, 224, 0.35);
}

.vc-active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 18px;
  border-top: 1px solid var(--vc-border);
}

.vc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--vc-prim-lt);
  color: var(--vc-primary);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.vc-pill a {
  color: var(--vc-primary);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1;
  margin-left: 2px;
}

/* Mobile bar */
.vc-mobile-bar {
  display: none;
  margin-bottom: 12px;
}

.vc-mobile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--vc-card);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--vc-fg);
  font-family: inherit;
  cursor: pointer;
}

/* ── Toolbar + view tabs ── */
.vc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.vc-sort {
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--vc-fg);
  background: var(--vc-card);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  padding: 7px 28px 7px 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%236B7494' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* View toggle */
.vc-view-toggle {
  display: flex;
  background: var(--vc-card);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.vc-vtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  border: none;
  color: var(--vc-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.vc-vtab + .vc-vtab {
  border-left: 1px solid var(--vc-border);
}

.vc-vtab.active {
  background: var(--vc-fg);
  color: #fff;
}

.vc-vtab svg {
  flex-shrink: 0;
}

/* ── Cards grid ── */
.vc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}

/* ── Map container ── */
#vc-view-map {
  display: none;
}

#vc-mapbox {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 520px;
  border-radius: var(--vc-radius);
  overflow: hidden;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow-s);
}

#vc-map-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 520px;
  border-radius: var(--vc-radius);
  border: 1px solid var(--vc-border);
  background: var(--vc-card);
  box-shadow: var(--vc-shadow-s);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--vc-muted);
  text-align: center;
  padding: 24px;
}

#vc-map-gate p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 340px;
}

/* Mapbox price marker */
.vc-map-marker {
  background: var(--vc-fg);
  color: #fff;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, background 0.15s;
  user-select: none;
}

.vc-map-marker:hover {
  background: var(--vc-primary);
  transform: scale(1.08);
}

/* Cluster marker */
.vc-map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vc-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 2px 10px rgba(77, 106, 224, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

/* Mapbox popup override */
.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  min-width: 220px;
  max-width: 260px;
}

.mapboxgl-popup-close-button {
  top: 6px !important;
  right: 8px !important;
  font-size: 18px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  z-index: 2;
}

.vc-popup-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: var(--vc-bg2);
}

.vc-popup-img-ph {
  width: 100%;
  height: 130px;
  background: var(--vc-bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vc-border);
}

.vc-popup-body {
  padding: 12px 14px 14px;
}

.vc-popup-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vc-primary);
  margin-bottom: 4px;
}

.vc-popup-price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15rem;
  color: var(--vc-fg);
  line-height: 1.1;
  margin-bottom: 4px;
}

.vc-popup-addr {
  font-size: 0.75rem;
  color: var(--vc-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.vc-popup-specs {
  display: flex;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--vc-muted);
  margin-bottom: 10px;
}

.vc-popup-spec {
  display: flex;
  align-items: center;
  gap: 3px;
}

.vc-popup-link {
  display: block;
  text-align: center;
  background: var(--vc-primary);
  color: #fff !important;
  text-decoration: none !important;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s;
}

.vc-popup-link:hover {
  background: #3d58cc !important;
}

/* ── Property card ── */
.vc-prop-card {
  background: var(--vc-card);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  overflow: hidden;
  box-shadow: var(--vc-shadow-s);
  transition: box-shadow 0.28s, transform 0.28s;
}

.vc-prop-card:hover {
  box-shadow: var(--vc-shadow-m);
  transform: translateY(-4px);
}

.vc-card-inner {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.vc-card-photo {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: var(--vc-bg2);
  flex-shrink: 0;
}

.vc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.vc-prop-card:hover .vc-card-img {
  transform: scale(1.07);
}

.vc-card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vc-border);
}

.vc-photo-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 12, 28, 0.75) 0%, rgba(6, 12, 28, 0.28) 45%, transparent 70%);
}

.vc-photo-tl {
  position: absolute;
  top: 11px;
  left: 11px;
  pointer-events: none;
}

.vc-photo-tr {
  position: absolute;
  top: 11px;
  right: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.vc-cat-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.vc-status-chip {
  display: inline-block;
  background: rgba(77, 106, 224, 0.8);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vc-status-chip.sold {
  background: rgba(180, 35, 24, 0.8);
}

.vc-img-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 12, 28, 0.45);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 7px;
}

.vc-photo-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 15px 13px;
  pointer-events: none;
}

.vc-card-price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.32rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 4px;
}

.vc-card-addr {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-card-addr svg {
  flex-shrink: 0;
}

.vc-photo-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 28, 0.32);
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}

.vc-prop-card:hover .vc-photo-hover {
  opacity: 1;
}

.vc-view-btn {
  background: var(--vc-primary);
  color: #fff;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(77, 106, 224, 0.45);
  pointer-events: none;
}

.vc-card-specs {
  display: flex;
  align-items: center;
  background: var(--vc-card);
  border-top: 1px solid var(--vc-border);
}

.vc-spec {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  font-size: 0.78rem;
  color: var(--vc-muted);
  font-weight: 500;
  border-right: 1px solid var(--vc-border);
  white-space: nowrap;
}

.vc-spec:last-child {
  border-right: none;
}

.vc-spec svg {
  flex-shrink: 0;
  opacity: 0.55;
  color: var(--vc-fg);
}

.vc-spec small {
  font-size: 0.67rem;
  color: var(--vc-muted);
  font-weight: 400;
}

/* Empty */
.vc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--vc-muted);
}

.vc-empty-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--vc-fg);
  margin-bottom: 8px;
}

/* Pagination */
.vc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.vc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  background: var(--vc-card);
  border: 1px solid var(--vc-border);
  color: var(--vc-fg);
  text-decoration: none;
  transition: all 0.15s;
  padding: 0 6px;
}

.vc-pagination .page-numbers:hover {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
}

.vc-pagination .page-numbers.current {
  background: var(--vc-primary);
  border-color: var(--vc-primary);
  color: #fff;
  font-weight: 700;
}

.vc-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--vc-muted);
}

