/* Tipografías y utilidades base del tema */
@font-face {
  font-family: 'Inter';
  src: local('Inter'), local('Inter Regular');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: local('Inter Medium');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: local('Inter SemiBold');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: local('Inter Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text-color: #0f172a; /* slate-900 */
  --brand-green: #007622;
  --brand-yellow: #ffe202;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: var(--text-color);
}

/* Header global: estilos compartidos */
/* Nada que ocultar: ahora el header se adapta desde header.php */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-primary {
  background: var(--brand-yellow);
  color: #0f172a;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-weight: 600;
}

.btn-primary:hover { filter: brightness(0.95); }

.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.55) 100%);
}

/* Accents y gradientes de marca */
.brand-chip {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow));
}

.brand-border {
  border-image: linear-gradient(90deg, var(--brand-green), var(--brand-yellow)) 1;
}

.brand-heading {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Testimonials */
.testimonials-row {
  display: flex;
  gap: 0.75rem; /* 12px */
}

.testimonials-row .content {
  --active: 0;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 2rem;
  height: 500px;
  border-radius: 1rem;
  overflow: clip;
  background-size: cover;
  background-position: center;
  /* Suavidad al hacer hover (width approach) */
  flex: 0 0 auto;
  width: calc((100% / 3) - 0.5rem);
  transition: width .5s ease-in-out, transform .5s ease-in-out, filter .3s ease;
}

.testimonials-row .content:hover {
  --active: 1;
  width: calc(70% - 0.5rem);
  justify-content: flex-start;
}

/* Reducir el ancho de los hermanos para una transición fluida */
.testimonials-row:hover .content:not(:hover) {
  width: calc(15% - 0.5rem);
}

.testimonials-row .content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 100% at 50% 0%, rgba(0,0,0,0.65) calc(0% + (var(--active) * 10%)), rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.4) 100%);
  opacity: calc(0.6 + var(--active) * 0.2);
  transition: opacity .3s ease;
}

.testimonials-row .heading,
.testimonials-row .subheading {
  position: relative;
  color: #fff;
}

.testimonials-row .body {
  position: relative;
  color: #dbe3ea;
  max-width: 62ch;
  opacity: calc(var(--active));
  transform: translateY(calc(8px - var(--active) * 8px));
  transition: opacity .35s ease, transform .35s ease;
}

@media (max-width: 1024px) {
  .testimonials-row { flex-direction: column; }
  .testimonials-row .content { height: 420px; width: 100%; }
  .testimonials-row .content:hover { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-row .content { transition: none; }
  .testimonials-row .body { transition: none; }
}

.header-logo img {
	max-width: 50px;
	height: auto;
}

/* Footer themed background to match site style */
.footer-theme {
  /* Gradiente inspirado en el screenshot: amarillo -> verde con ondas sutiles */
  background-color: var(--brand-green);
}

.footer-logo img{
	max-width: 90px;
	height: auto;
}

/* ========= Títulos unificados (Home) ========= */
.home-section-title {
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-color);
  /* ~ text-3xl/md:text-4xl */
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.home-section-subtitle {
  text-align: center;
  color: #475569; /* slate-600 */
  line-height: 1.6;
  /* ~ text-base/md:text-lg */
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.125rem);
}

/* ========= Why Us (¿Por qué elegirnos?) ========= */
.feature-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  border: 1px solid #e2e8f0; /* slate-200 */
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 118, 34, 0.25);
  margin-bottom: 12px;
}

.feature-title {
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}

.feature-text {
  margin-top: 6px;
  font-size: 14px;
  color: #475569; /* slate-600 */
  line-height: 1.6;
}

.epl-search-forms-wrapper.epl-search-default {
	max-width: 100% !important;
}

.epl-search-form .epl-search-other {
	display: flex;
	flex-direction: column;
	padding-top: 1rem;
}

.epl-search-form .epl-search-row-checkbox {
	display: flex;
	align-items: center;
	gap: 4px;
}

.epl-search-form .in-field {
	border-radius: 12px;
}

.epl-search-forms-wrapper.epl-search-default {
	margin-top: 1rem;
}

/* Compensación de contenido por header fijo fuera del home */
body:not(.page-template-templateshome-php) #primary,
body:not(.page-template-templateshome-php) main,
body:not(.page-template-templateshome-php) .site-main {
  padding-top: 72px; /* altura aproximada del header fijo */
}

/* = EPL Skin (Resultados y filtros) = */
.epl-skin .epl-listing-results-tools,
.epl-skin .epl-archive-tools {
  display: flex;
  justify-content: flex-end;
}

.epl-skin .button,
.epl-skin .epl-button,
.epl-skin .epl-submit,
.epl-skin input[type="submit"],
.epl-skin .epl-load-more {
  background: var(--brand-yellow);
  color: #0f172a;
  border-radius: 9999px;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.epl-skin .button:hover,
.epl-skin .epl-button:hover,
.epl-skin .epl-submit:hover,
.epl-skin input[type="submit"]:hover,
.epl-skin .epl-load-more:hover { filter: brightness(0.95); }

/* Controles select/inputs del buscador */
.epl-skin-search select,
.epl-skin-results select,
.epl-skin-search input[type="text"],
.epl-skin-search input[type="number"],
.epl-skin-search input[type="email"],
.epl-skin-search .epl-search-input,
.epl-skin-search .epl-dropdown,
.epl-skin-search .epl-search-field {
  width: 100%;
  border: 1px solid #e2e8f0; /* slate-200 */
  background: #fff;
  color: var(--text-color);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
}

/* Hero search: no forzamos el display; respetamos el que define EPL para tabs Buy/Rent */

.hero-search .epl-search-form .epl-search-submit,
.hero-search form input[type="submit"],
.hero-search form .epl-submit {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow));
  color: #0f172a;
  border: 0;
  border-radius: 9999px;
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-search .epl-search-form .epl-search-submit:hover,
.hero-search form input[type="submit"]:hover,
.hero-search form .epl-submit:hover {
  filter: brightness(0.95);
}

.hero-search .epl-search-form select,
.hero-search .epl-search-form input[type="text"],
.hero-search .epl-search-form input[type="number"],
.hero-search .epl-search-form input[type="email"] {
  height: 48px;
}

/* Oculta rótulos internos para no duplicar textos en el hero */
.hero-search .epl-search-section-title,
.hero-search .widget-title,
.hero-search label {
  display: none !important;
}

/* Campos en bloque con separación vertical suave */
.hero-search .epl-search-field,
.hero-search .epl-dropdown,
.hero-search select,
.hero-search input[type="text"],
.hero-search input[type="number"],
.hero-search input[type="email"] {
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: 12px; /* estilo pill suave */
}

.hero-search .epl-search-submit,
.hero-search input[type="submit"] {
  width: 100%;
}

/* Compactar checkboxes de amenities en fila */
.hero-search .epl-form-row-amenities,
.hero-search .epl-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.hero-search .epl-checkbox-group label,
.hero-search .epl-form-row-amenities label {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.epl-skin-search .epl-search-section-title,
.epl-skin-search .widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569; /* slate-600 */
  text-transform: none;
}

.epl-skin-results .property,
.epl-skin-results .listing,
.epl-skin-results .epl-listing {
  border-bottom: 1px solid #e2e8f0; /* slate-200 */
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.epl-skin-results .epl-listing:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Etiquetas/accentos */
.epl-skin .epl-status,
.epl-skin .epl-featured {
  background: #f1f5f9; /* slate-100 */
  color: #334155; /* slate-700 */
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 12px;
}

/* Enlaces "Más detalles" */
.epl-skin a.epl-more-link,
.epl-skin .epl-read-more a,
.epl-skin .more-link {
  background: var(--brand-yellow);
  color: #0f172a !important;
  border-radius: 9999px;
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.epl-skin a.epl-more-link:hover,
.epl-skin .epl-read-more a:hover,
.epl-skin .more-link:hover { filter: brightness(0.95); }

/* Títulos de cards */
.epl-skin .entry-title a,
.epl-skin .listing-title a {
  color: #0f172a;
  font-weight: 600;
}

/* Paginación */
.epl-skin .pagination a,
.epl-skin .pagination span {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  color: #475569;
}

.epl-skin .pagination .current {
  background: var(--brand-yellow);
  color: #0f172a;
  border-color: transparent;
}

/* = Hero Mock Search (estético) = */
.mock-search {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  padding: 20px 24px;
}

.mock-search-inner { border-radius: 16px; }

.mock-search-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.mock-search-form { width: 100%; }

.mock-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mock-fields .field {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e8f0; /* slate-200 */
  background: #f8fafc; /* slate-50 */
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
}

.mock-filters {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.mock-filters .filters-label {
  font-size: 14px;
  color: #0f172a;
}

.mock-filters .chips { display: flex; flex-wrap: wrap; gap: 10px; }

.mock-filters .chip {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 14px;
}

.mock-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9999px;
  border: 0;
  background-color: var(--brand-green);
  color: white;
  font-weight: 700;
}

.mock-button:hover { filter: brightness(0.95); }

@media (max-width: 1024px) {
  .mock-fields { grid-template-columns: 1fr; }
  .mock-filters { grid-template-columns: 1fr; gap: 10px; }
  .mock-button { width: 100%; justify-content: center; }
}

/* ====== EPL Results Grid (2 columnas) ====== */
.epl-skin-results .epl-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .epl-skin-results .epl-results-grid { grid-template-columns: 1fr; }
}

/* Card wrapper (usa estructura que entrega el shortcode) */
.epl-results-grid .epl-listing-post {
  border: 0;
  padding: 0;
  margin: 0;
}

.epl-results-grid .epl-property-blog-entry-wrapper {
  background: #fff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}

/* Imagen */
.epl-results-grid .property-featured-image-wrapper,
.epl-results-grid .epl-archive-entry-image,
.epl-results-grid .epl-blog-image { margin: 0; padding: 0; }

.epl-results-grid .epl-archive-entry-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Cuerpo */
.epl-results-grid .property-content {
  padding: 14px 16px 16px;
}

.epl-results-grid .entry-title {
  margin: 8px 0 6px;
  font-weight: 700;
  font-size: 18px;
}

.epl-results-grid .entry-title a { color: #0f172a; text-decoration: none; }

/* Dirección */
.epl-results-grid .property-address { margin: 6px 0 8px; }
.epl-results-grid .property-address a { color: #475569; text-decoration: none; }
.epl-results-grid .entry-title-sub { display: inline-flex; gap: 6px; align-items: center; }

/* Icon row (beds/baths/area) si EPL la imprime en .property-feature-icons */
.epl-results-grid .property-feature-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 0;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

/* Precio como chip en esquina superior izquierda */
.epl-results-grid .price { padding: 0 16px 16px; }
.epl-results-grid .price .page-price,
.epl-results-grid .price .page-price-rent .page-price {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 6px 12px;
  display: inline-block;
}

/* Botón “View Details” si se imprime como enlace genérico dentro del wrapper */
.epl-results-grid .epl-more-link,
.epl-results-grid .more-link,
.epl-results-grid .listing-read-more a {
  background: #0f172a;
  color: #fff !important;
  border-radius: 9999px;
  padding: 10px 14px;
  font-weight: 600;
}

/* ====== EPL Results Layout usando estructura original ====== */
.epl-skin-results .epl-template-blog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Header y footer ocupan 2 columnas */
.epl-skin-results .epl-template-blog .epl-loop-tools-wrap,
.epl-skin-results .epl-template-blog .epl-loop-footer {
  grid-column: 1 / -1;
}

/* Listados (cards) ocupan 1 columna cada uno */
.epl-skin-results .epl-template-blog .epl-listing-post { margin: 0; width: 100%; }
.epl-skin-results .epl-template-blog .epl-property-blog-entry-wrapper {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}

/* Imagen y precio en absoluta */
.epl-skin-results .epl-template-blog .epl-archive-entry-image { position: relative; }
.epl-skin-results .epl-template-blog .epl-archive-entry-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.epl-skin-results .epl-template-blog .price {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
}

.epl-skin-results .epl-template-blog .price .rent-period {
	display: none;
}

.epl-switch-view {
	display: none;
}
.epl-skin-results .epl-template-blog .price .page-price,
.epl-skin-results .epl-template-blog .price .page-price-rent .page-price {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 6px 12px;
  display: inline-block;
}

/* Contenido */
.epl-skin-results .epl-template-blog .property-content { padding: 14px 16px 16px; position: relative; }
.epl-skin-results .epl-template-blog .entry-title { margin: 8px 0 6px; font-weight: 700; font-size: 18px; }
.epl-skin-results .epl-template-blog .entry-title a { color: #0f172a; text-decoration: none; }
.epl-skin-results .epl-template-blog .property-address { margin: 6px 0 8px; }
.epl-skin-results .epl-template-blog .property-address a { color: #475569; text-decoration: none; }
.epl-skin-results .epl-template-blog .entry-title-sub { display: inline-flex; gap: 6px; align-items: center; }
.property-box .epl-excerpt-content { display: none; }

/* Fila de iconos si existe */
.epl-skin-results .epl-template-blog .property-feature-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0 0;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 900px) {
  .epl-skin-results .epl-template-blog { grid-template-columns: 1fr; }
}

/* Animación del panel de filtros (Advanced) */
#home-adv-panel {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
#home-adv-panel.is-open {
  transform: translateY(0);
  opacity: 1;
}

