/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* --- ESTILOS HEADER CUSTOM --- */
.site-header-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}


/* Estilo para el botón de teléfono en el menú del header */
.site-navigation ul li.menu-item-telefono a,
.header-menu ul li.menu-item-telefono a {
    display: inline-flex;
    align-items: center;
    background-color: #AA0058 !important;
    /* Color de fondo solicitado */
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-left: 10px;
    /* Separación respecto a los otros enlaces del menú */
}

.site-navigation ul li.menu-item-telefono a:hover,
.header-menu ul li.menu-item-telefono a:hover {
    background-color: #3b5998 !important;
    /* Color al pasar el ratón solicitado */
    color: #ffffff !important;
}


/* --- Ajuste del tamaño del Logotipo --- */
.site-branding .custom-logo-link img,
.site-branding img {
    max-height: 80px;
    /* Cambia a 40px o 60px según prefieras */
    width: auto;
    height: auto;
    display: block;
}

.site-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* Navegación Desktop */
.main-navigation .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation .nav-menu li a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation .nav-menu li a:hover {
    color: #AA0058;
}

/* Botón Hamburguesa (Oculto en Escritorio) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- DISEÑO DEL FOOTER --- */
.site-footer-custom {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 60px 20px 20px 20px;
    font-size: 0.95rem;
    margin-top: 60px;
}

.site-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333333;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-subheading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.footer-about-text {
    line-height: 1.6;
    color: #aaaaaa;
}

/* Lista de contacto del footer */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #aaaaaa;
    line-height: 1.5;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 4px;
    color: #AA0058;
}

.footer-contact-list a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

/* Menú de enlaces del footer */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 8px;
}

.footer-menu-list a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Botones de compartir */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

/* Copyright inferior */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #777777;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MEDIA QUERIES (RESPONSIVE MÓVIL) --- */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .main-navigation.toggled {
        max-height: 300px;
        /* Ajusta según la cantidad de elementos */
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .site-footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu-list {
        justify-content: center;
    }
}

/* --- SECCIÓN HERO (GRID PRINCIPAL) --- */
.hero-grid-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* El slider ocupa el doble que la columna derecha */
    gap: 20px;
}

/* --- ESTILOS DEL SLIDER --- */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* Altura controlada, no ocupa toda la pantalla */
}

.slider-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-container .slide.active {
    opacity: 1;
}

.slider-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Evita que la imagen se deforme */
    display: block;
}

/* Botones del Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}


/* --- TÍTULO PRINCIPAL (H1) DE LA PORTADA --- */
.hero-title-wrapper {
    grid-column: 1 / -1;
    /* Hace que ocupe las dos columnas del Grid */
    text-align: center;
    margin-bottom: 15px;
}

.hero-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

/* Ajuste responsive para móviles */
@media screen and (max-width: 900px) {
    .hero-main-title {
        font-size: 1.6rem;
    }
}

/* --- ESTILOS DE LOS BANNERS DERECHOS --- */
.hero-banners-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.banner-box {
    width: 100%;
    height: 190px;
    /* Ajustado para que sumen la altura proporcional del slider */
    border-radius: 8px;
    overflow: hidden;
}

.banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner-box img:hover {
    transform: scale(1.03);
    /* Pequeño zoom elegante al pasar el ratón */
}


/* --- RESPONSIVE (MÓVILES Y TABLETS) --- */
@media screen and (max-width: 900px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        /* En pantallas pequeñas se coloca uno debajo de otro */
    }

    .slider-container {
        height: 300px;
        /* Reducimos la altura en móvil */
    }

    .banner-box {
        height: 200px;
        /* Altura fija para los banners en móvil */
    }
}


/* --- SECCIÓN INTRODUCTORIA DE TEXTO INMOBILIARIO --- */
.intro-realestate-section {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
}

.intro-realestate-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.intro-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro-realestate-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.intro-realestate-content p:last-child {
    margin-bottom: 0;
}


/* --- SECCIÓN VIVIENDAS + SIDEBAR --- */
.properties-sidebar-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.properties-sidebar-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Izquierda más ancha para las viviendas, derecha para el sidebar */
    gap: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}

/* Cuadrícula interna de las 4 viviendas (2 columnas x 2 filas) */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.property-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.property-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.property-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.property-title a {
    color: #333;
    text-decoration: none;
}

.property-title a:hover {
    color: #AA0058;
}

.property-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.property-btn {
    display: inline-block;
    text-align: center;
    background-color: #AA0058;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s;
}

.property-btn:hover {
    background-color: #005177;
    color: #fff;
}

/* --- ESTILOS DEL SIDEBAR --- */
.sidebar-wrapper {
    background: #fafafa;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.sidebar-wrapper .widget {
    margin-bottom: 30px;
}

.sidebar-wrapper .widget:last-child {
    margin-bottom: 0;
}

.sidebar-wrapper .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #AA0058;
    padding-bottom: 8px;
}

.default-widget p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.sidebar-contact-btn {
    display: block;
    text-align: center;
    background: #222;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-contact-btn:hover {
    background: #AA0058;
    color: #fff;
}

/* --- RESPONSIVE (MÓVILES Y TABLETS) --- */
@media screen and (max-width: 900px) {
    .properties-sidebar-container {
        grid-template-columns: 1fr;
        /* Se apilan las viviendas y el sidebar */
    }
}

@media screen and (max-width: 550px) {
    .properties-grid {
        grid-template-columns: 1fr;
        /* Las viviendas pasan a 1 sola columna en pantallas muy estrechas */
    }
}


/* --- BANDERILLA / ETIQUETA DE OPERACIÓN --- */
.property-thumbnail {
    position: relative;
    /* Obligatorio para posicionar la etiqueta encima */
    overflow: hidden;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background-color: #AA0058;
    /* Color por defecto (ej: Venta) */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Colores personalizados según el valor del campo 'Operacion' */
.property-badge.vendido {
    background-color: #d9534f;
    /* Rojo para vendido */
}

.property-badge.reservado {
    background-color: #f0ad4e;
    /* Naranja/Amarillo para reservado */
}

.property-badge.venta,
.property-badge.en-venta {
    background-color: #5cb85c;
    /* Verde para disponible/en venta */
}


/* --- SECCIÓN 6 APARTADOS EN 3 COLUMNAS --- */
.services-grid-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.services-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas exactas */
    gap: 30px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.service-icon {
    flex-shrink: 0;
    margin-right: 20px;
    color: #AA0058;
    /* Color corporativo de los iconos */
    background: #f0f7fc;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #222;
}

.service-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* --- RESPONSIVE PARA MÓVILES Y TABLETS --- */
@media screen and (max-width: 900px) {
    .services-grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* Pasa a 2 columnas en tablets */
    }
}

@media screen and (max-width: 600px) {
    .services-grid-container {
        grid-template-columns: 1fr;
        /* Pasa a 1 sola columna en móviles */
    }
}


/* --- SECCIÓN DE CONTACTO DIVIDIDA (FORMULARIO + MAPA) --- */
.fh5co-contact {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #f9f9f9;
    margin: 40px 0;
}

/* Mitad del Formulario */
.fh5co-contact .half-contact {
    flex: 1;
    min-width: 50%;
    padding: 60px 40px;
    background: #ffffff;
    box-sizing: border-box;
}

.fh5co-contact .heading-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
}

/* Mitad del Mapa */
.fh5co-contact .half-bg {
    flex: 1;
    min-width: 50%;
    min-height: 450px;
    /* Asegura altura visible en pantallas grandes */
    position: relative;
}

.fh5co-contact .half-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- ADAPTACIÓN DE LOS CAMPOS DE CONTACT FORM 7 --- */
.fh5co-contact input[type="text"],
.fh5co-contact input[type="email"],
.fh5co-contact input[type="tel"],
.fh5co-contact textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

.fh5co-contact input:focus,
.fh5co-contact textarea:focus {
    border-color: #AA0058;
    outline: none;
    background-color: #fff;
}

.fh5co-contact textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón de Enviar del Formulario */
.fh5co-contact input[type="submit"] {
    background-color: #AA0058;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.fh5co-contact input[type="submit"]:hover {
    background-color: #005177;
}


/* --- RESPONSIVE (MÓVILES Y TABLETS) --- */
@media screen and (max-width: 900px) {
    .fh5co-contact {
        flex-direction: column;
        /* En pantallas pequeñas se apilan verticalmente */
    }

    .fh5co-contact .half-contact {
        min-width: 100%;
        padding: 40px 20px;
    }

    .fh5co-contact .half-bg {
        min-width: 100%;
        min-height: 350px;
        /* Altura del mapa ajustada para móvil */
    }
}

/* --- BUSCADOR AVANZADO (PALABRA CLAVE + CATEGORÍAS) --- */
.advanced-search-wrapper {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.advanced-search-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field-group {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.search-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input,
.search-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fafafa;
    color: #333;
    transition: border-color 0.3s, background-color 0.3s;
}

.search-input:focus,
.search-select:focus {
    border-color: #AA0058;
    background-color: #fff;
    outline: none;
}

.search-btn-wrapper {
    flex: 0 0 auto;
}

.search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #AA0058;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 47px;
    /* Alineación perfecta con los inputs */
}

.search-submit-btn:hover {
    background-color: #005177;
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media screen and (max-width: 768px) {
    .advanced-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field-group {
        width: 100%;
        min-width: 100%;
    }

    .search-submit-btn {
        width: 100%;
    }
}

/* --- DISEÑO DE LA PÁGINA DE RESULTADOS DE BÚSQUEDA --- */
.search-results-page {
    padding-bottom: 60px;
}

.search-page-header {
    background-color: #f8f9fa;
    padding: 40px 20px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
    text-align: center;
}

.search-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
}

.search-title span {
    color: #AA0058;
}

.search-count {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cuadrícula de propiedades (3 columnas) */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.property-thumbnail {
    position: relative;
    overflow: hidden;
}

.property-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.property-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.property-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.property-title a:hover {
    color: #AA0058;
}

.property-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.property-btn {
    display: inline-block;
    background-color: #f0f7fc;
    color: #AA0058;
    padding: 10px 15px;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.property-btn:hover {
    background-color: #AA0058;
    color: #fff;
}

/* Mensaje sin resultados */
.no-search-results {
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.no-search-results h2 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 15px;
}

.no-search-results p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.retry-search-box {
    text-align: left;
}

/* Paginación */
.search-pagination {
    margin-top: 50px;
    text-align: center;
}

.search-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.search-pagination .page-numbers.current {
    background: #AA0058;
    color: #fff;
    border-color: #AA0058;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* --- DISEÑO DE PÁGINAS ESTÁTICAS (page.php) --- */
.page-default-template {
    padding-bottom: 60px;
}

.page-header-custom {
    background-color: #f8f9fa;
    padding: 40px 20px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
    text-align: center;
}

.page-header-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-header-custom .page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content-container {
    background: #ffffff;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

/* Tipografía y elementos dentro del contenido de la página */
.page-content-container h2 {
    font-size: 1.6rem;
    color: #222;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-content-container h3 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-content-container p {
    margin-bottom: 20px;
}

.page-content-container ul,
.page-content-container ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-content-container li {
    margin-bottom: 8px;
}

.page-content-container a {
    color: #0073aa;
    text-decoration: underline;
}

.page-content-container a:hover {
    color: #005177;
}

/* Paginación interna por si usas saltos de página */
.page-links {
    margin-top: 30px;
    font-weight: 600;
}

/* =================================================_
   ESTILOS NUEVOS PARA LA PLANTILLA SINGLE (1200PX)
   ================================================= */

/* Contenedor principal y espaciados */
.single-property-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Título de la propiedad */
.titulo-single {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

/* Bloque de campos personalizados (Columna Izquierda) */
.single-property-container .col-md-6:first-of-type {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Precio destacado */
.single-property-container .precio {
    font-size: 32px;
    font-weight: bold;
    color: #AA0058;
}

/* Filas de características (Superficie, Habitaciones, Garaje, etc.) */
.single-property-container .col-md-6:first-of-type>div[style*="border-bottom"] {
    transition: background-color 0.2s ease;
}

.single-property-container .col-md-6:first-of-type>div[style*="border-bottom"]:hover {
    background-color: #fafafa;
    padding-left: 5px;
    padding-right: 5px;
}

/* Botón de contacto principal */
.single-property-container .btn-primary {
    background-color: #AA0058 !important;
    border-color: #AA0058 !important;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.single-property-container .btn-primary:hover {
    background-color: #880045 !important;
    border-color: #880045 !important;
    transform: translateY(-2px);
}

/* Imagen principal (Columna Derecha) */
.fh5co-property {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Caja de la descripción detallada */
.property-description-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.property-description-content h3 {
    color: #333;
    font-weight: bold;
    font-size: 1.5rem;
}

.property-description-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Ajustes del Modal de Contact Form 7 */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header .close {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-header .close:hover {
    opacity: 1;
    color: #AA0058;
}

/* Responsividad para móviles */
@media (max-width: 767.98px) {
    .titulo-single {
        font-size: 1.8rem;
    }

    .single-property-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}