/* ==========================================================================
   SECCIÓN PROPIEDADES — Laura Álvarez Asesora Inmobiliaria
   Estilo Liquid Glass (Vidrio esmerilado, bordes biselados, reflejos vivos)
   Layout Equilibrado: Grilla de 2 columnas, tarjetas de proporción armónica
   ========================================================================== */

.properties-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 9vh, 120px) clamp(70px, 7.5vw, 120px) clamp(80px, 8vh, 110px);
  background-color: #0E1622;
  background-image: url('../assets/images/hero-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Fallback si no hay soporte WebP */
.no-webp .properties-section {
  background-image: url('../assets/images/hero-background.webp');
}

/* Overlay nocturno de lujo con degradado atmosférico azul-gris a negro */
.properties-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(12, 18, 28, 0.92) 45%, rgba(10, 15, 23, 0.95) 100%),
    radial-gradient(circle at 20% 25%, rgba(91, 140, 255, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(212, 162, 78, 0.08) 0%, transparent 60%);
}

/* Contenedor principal delimitado con max-width para no estirar elementos */
.properties-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1670px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   1. ENCABEZADO DE SECCIÓN
   -------------------------------------------------------------------------- */
.properties-header {
  margin-bottom: clamp(32px, 3.8vh, 44px);
}

.properties-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #D4A24E;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.properties-eyebrow-line {
  width: 40px;
  height: 1.8px;
  background-color: #D4A24E;
  border-radius: 1px;
}

.properties-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 12px 0;
}

.properties-title span {
  display: block;
}

.properties-subtitle {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: #C9CDD3;
  margin: 0;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   2. BARRA DE BÚSQUEDA / FILTROS (Liquid Glass Capsule)
   -------------------------------------------------------------------------- */
.properties-search-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 20px 28px;
  border-radius: 999px;
  margin-bottom: clamp(36px, 4.2vh, 48px);
  position: relative;
  z-index: 60;
  
  /* Liquid Glass Frosted Aesthetic */
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in oklab, white 8.5%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15),
    0 20px 48px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.properties-search-bar.has-open-dropdown,
.properties-search-bar:has(.search-segment.is-open) {
  z-index: 1000;
}

.properties-search-bar:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 24px 54px -10px rgba(0, 0, 0, 0.55);
}

.search-segment {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 16px;
  transition: background 0.22s ease, transform 0.2s ease;
}

.search-segment:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-segment-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 162, 78, 0.16);
  border: 1px solid rgba(212, 162, 78, 0.38);
  color: #D4A24E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.search-segment:hover .search-segment-icon {
  transform: scale(1.08);
  background: rgba(212, 162, 78, 0.26);
}

.search-segment-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.search-segment-label {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8F9CAE;
  line-height: 1;
}

.search-segment-value {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.search-segment-value.search-placeholder {
  color: rgba(255, 255, 255, 0.52);
  font-weight: 400;
}

.search-segment-value.search-value-selected {
  color: #FFFFFF;
  font-weight: 600;
}

.search-chevron {
  color: rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 2px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.search-segment:hover .search-chevron {
  color: #FFFFFF;
  transform: translateY(1.5px);
}

.search-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Botones de Acción de la Barra de Búsqueda */
.search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Botón "Filtros" — Liquid Glass Secundario */
.btn-filter-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 8px 20px -4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-filter-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6),
    0 12px 24px -4px rgba(0, 0, 0, 0.4);
}

.btn-filter-glass.is-active {
  background: rgba(212, 162, 78, 0.22);
  border-color: rgba(212, 162, 78, 0.6);
  color: #ECC880;
  box-shadow: 0 0 16px rgba(212, 162, 78, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}

/* Botón "Buscar" — Sólido Dorado/Ámbar Principal */
.btn-search-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3c385 0%, #D4A24E 100%);
  color: #0E1622;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 
    0 8px 24px -4px rgba(212, 162, 78, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.3s ease, filter 0.25s ease;
}

.btn-search-gold:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 
    0 12px 30px -4px rgba(212, 162, 78, 0.6),
    0 0 20px rgba(212, 162, 78, 0.3);
}

/* --------------------------------------------------------------------------
   2.1 ESTILOS INTERACTIVOS DE LA BARRA DE BÚSQUEDA Y FILTRADO
   -------------------------------------------------------------------------- */
.search-segment {
  position: relative;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.search-segment .search-segment-icon,
.search-segment .search-segment-content,
.search-segment .search-segment-label,
.search-segment .search-segment-value,
.search-segment .search-chevron {
  pointer-events: none;
}

.search-segment:focus-within,
.search-segment.is-open {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(212, 162, 78, 0.22);
  z-index: 2000;
}

.search-segment.is-open .search-chevron {
  transform: rotate(180deg);
  color: #D4A24E;
}

.search-segment-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 1.2;
  pointer-events: auto;
}

.search-segment-input::placeholder {
  color: rgba(255, 255, 255, 0.52);
  font-weight: 400;
}

.search-segment-input:focus {
  color: #FFFFFF;
}

.search-clear-input {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  z-index: 5;
}

.search-clear-input:hover {
  background: rgba(212, 162, 78, 0.8);
  color: #0E1622;
}

.search-clear-input.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   2.2 MENÚS DESPLEGABLES PERSONALIZADOS (Liquid Glass Dropdown)
   -------------------------------------------------------------------------- */
.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 230px;
  width: max-content;
  max-width: 320px;
  background: rgba(11, 17, 26, 0.97);
  border: 1px solid rgba(212, 162, 78, 0.42);
  border-radius: 18px;
  padding: 7px;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: 
    0 28px 60px -8px rgba(0, 0, 0, 0.92),
    0 0 26px rgba(212, 162, 78, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s ease;
}

#search-segment-price .search-dropdown-menu {
  left: auto;
  right: 0;
}

.search-dropdown-menu.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: #CBD5E1;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.18s ease;
  user-select: none;
  background: transparent;
  border: 1px solid transparent;
}

.dropdown-item * {
  pointer-events: none;
}

.dropdown-item:hover {
  background: rgba(212, 162, 78, 0.15);
  color: #FFFFFF;
  border-color: rgba(212, 162, 78, 0.25);
  transform: translateX(3px);
}

.dropdown-item.is-selected {
  background: rgba(212, 162, 78, 0.22);
  border-color: rgba(212, 162, 78, 0.45);
  color: #ECC880;
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(212, 162, 78, 0.15);
}

.dropdown-item .dropdown-check-icon {
  color: #D4A24E;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.dropdown-item.is-selected .dropdown-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   2.3 OPTIMIZACIÓN DE HITBOX Y CLICS EN TODOS LOS BOTONES
   -------------------------------------------------------------------------- */
.btn-filter-glass,
.btn-search-gold,
.btn-card-gold,
.btn-card-glass,
.filter-pill,
.btn-reset-filters-pill,
.search-clear-input,
.link-clear-all,
.page-num,
.page-arrow {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-filter-glass *,
.btn-search-gold *,
.btn-card-gold *,
.btn-card-glass *,
.filter-pill *,
.btn-reset-filters-pill *,
.page-num *,
.page-arrow * {
  pointer-events: none;
}

.search-clear-input {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-clear-input:hover {
  background: rgba(212, 162, 78, 0.8);
  color: #0E1622;
}

.search-clear-input.is-hidden {
  display: none;
}

/* Panel Desplegable de Filtros Avanzados (Liquid Glass Drawer) */
.properties-advanced-drawer {
  position: relative;
  z-index: 20;
  width: 100%;
  box-sizing: border-box;
  margin-top: -30px;
  margin-bottom: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 16px 36px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease, 
              margin-top 0.35s ease;
}

.properties-advanced-drawer.is-closed {
  max-height: 0;
  opacity: 0;
  margin-top: -48px;
  border-color: transparent;
  pointer-events: none;
}

.advanced-drawer-inner {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.advanced-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.advanced-filter-title {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #D4A24E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.advanced-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.filter-pill.is-active {
  background: rgba(212, 162, 78, 0.2);
  border-color: #D4A24E;
  color: #ECC880;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(212, 162, 78, 0.25);
}

.btn-reset-filters-pill {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  color: #94A3B8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-reset-filters-pill:hover {
  border-color: #D4A24E;
  color: #ECC880;
}

/* Barra de Estado de la Búsqueda */
.properties-search-status {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 0 6px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  color: #94A3B8;
}

.properties-search-status strong {
  color: #D4A24E;
  font-weight: 700;
}

.link-clear-all {
  background: none;
  border: none;
  color: #D4A24E;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.link-clear-all.is-hidden {
  display: none;
}

/* Estado de Propiedad Filtrada */
.property-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.property-card.is-filtered-out {
  display: none !important;
}

/* Estado Vacío (Sin Resultados) */
.properties-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(212, 162, 78, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.properties-empty-state.is-hidden {
  display: none !important;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 162, 78, 0.12);
  border: 1px solid rgba(212, 162, 78, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4A24E;
  margin-bottom: 18px;
}

.empty-state-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 24px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.empty-state-desc {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14.5px;
  color: #94A3B8;
  max-width: 520px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   3. GRILLA DE TARJETAS DE PROPIEDADES (3 Columnas)
   -------------------------------------------------------------------------- */
.properties-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  width: 100%;
}

.property-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in oklab, white 8%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  
  /* Liquid Glass Frosted Card */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15),
    0 20px 48px -12px rgba(0, 0, 0, 0.5);
    
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(212, 162, 78, 0.45);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.65),
    0 28px 60px -12px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(212, 162, 78, 0.18);
}

/* 3.1 Media / Imagen de la propiedad */
.property-media {
  position: relative;
  width: 100%;
  height: 235px;
  overflow: hidden;
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-img {
  transform: scale(1.045);
}

.property-media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 40%, rgba(10, 16, 25, 0.75) 100%);
}

/* Etiqueta de estado ("EN VENTA") */
.property-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* 3.2 Contenido de texto de la tarjeta */
.property-body {
  padding: 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(10, 16, 24, 0.55);
}

.property-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.property-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.4vw, 23px);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.22;
  margin: 0;
  letter-spacing: -0.01em;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #A4B1C2;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-location svg {
  color: #D4A24E;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.property-description {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  color: #C9CDD3;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

/* Fila de Especificaciones (Specs) */
.property-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.spec-item svg {
  color: #D4A24E;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/* Línea divisoria */
.property-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 3px 0 1px;
}

/* 6. Precio */
.property-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 1px;
}

.property-price-amount {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(23px, 1.55vw, 26px);
  font-weight: 700;
  color: #D4A24E;
  letter-spacing: -0.02em;
  line-height: 1;
}

.property-price-currency {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 7. Fila de Botones (2 botones lado a lado, compacto y equilibrado) */
.property-card-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  width: 100%;
}

/* Botón "Agendar cita" — Sólido Dorado Principal */
.btn-card-gold {
  flex: 1.15;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: #D4A24E;
  color: #0E1622;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 
    0 6px 16px -3px rgba(212, 162, 78, 0.38),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-card-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 
    0 8px 20px -3px rgba(212, 162, 78, 0.5),
    0 0 14px rgba(212, 162, 78, 0.22);
}

.btn-card-gold svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/* Botón "Ver detalles" — Vidrio Secundario */
.btn-card-glass {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 4px 14px -3px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-card-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-card-glass svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.btn-card-glass:hover svg {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   4. PAGINACIÓN Y ENLACE INFERIOR
   -------------------------------------------------------------------------- */
.properties-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: clamp(40px, 5vh, 56px);
}

.properties-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-num:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.page-num.is-active {
  background: #D4A24E;
  color: #0E1622;
  border-color: #D4A24E;
  font-weight: 700;
  box-shadow: 
    0 4px 16px rgba(212, 162, 78, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.page-ellipsis {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  padding: 0 4px;
  user-select: none;
}

.page-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.page-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(3px);
}

/* Enlace a la derecha: "Ver todas las propiedades →" */
.properties-view-all {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #D4A24E;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(212, 162, 78, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.properties-view-all:hover {
  color: #e5b667;
  border-color: #e5b667;
  transform: translateX(3px);
}

.properties-view-all svg {
  transition: transform 0.25s ease;
}

.properties-view-all:hover svg {
  transform: translateX(2px);
}
