/*
 Theme Name: GeneratePress Child
 Template: generatepress
*/

/* =========================================================
   VARIABLES Y BASE
   ========================================================= */
:root {
  --terracotta: #E8683A;
  --terracotta-2: #F08658;
  --espresso: #111827;
  --bg-gris: #F9FAFB;
  --borde: #E5E7EB;
}

/* =========================================================
   HOME HERO (ESTILO TUHABI - MODERNO Y CONTENIDO)
   ========================================================= */
.ayp-hero-moderno {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); /* Fondo elegante oscuro */
    border-radius: 24px;
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

.ayp-hero-moderno h1 {
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.ayp-hero-moderno p {
    color: #e0e7ff;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Formulario Buscador */
.ayp-buscador-inline {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ayp-buscador-inline select, .ayp-buscador-inline input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.ayp-btn-buscar {
    background: var(--terracotta);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.ayp-btn-buscar:hover { background: var(--terracotta-2); transform: translateY(-2px); }

/* =========================================================
   TARJETAS DE PROPIEDAD (ESTILO PINCALI)
   ========================================================= */
.ayp-grid-resultados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.ayp-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--borde);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ayp-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.ayp-card-img {
    height: 220px;
    position: relative;
    display: block;
}

.ayp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ayp-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--terracotta);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ayp-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ayp-card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.ayp-card-title a {
    font-size: 16px;
    font-weight: 600;
    color: var(--espresso);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}

.ayp-card-title a:hover { color: var(--terracotta); }

.ayp-card-loc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.ayp-card-meta {
    display: flex;
    gap: 15px;
    color: #6b7280;
    font-size: 13px;
    border-top: 1px solid var(--borde);
    padding-top: 16px;
    margin-top: auto;
}