/* ===== LISTA (SIN GRID) ===== */

/* =========================================
   LIST LAYOUT - 1 PROPERTY PER ROW
========================================= */

.gv-properties-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* gap: Ajuste final separación entre propiedades; de momento gap igual 40px */



/* ===== PROPERTY ROW - FILA PROPIEDAD ===== */

.gv-property {
    display: flex;
    /* ===== gap ajusta espacio entre imagen y content (precio, etc) valor original 60px ===== */
    gap: 20px;
    background: #fff;
    border: 1px solid #eee;
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.05);*/
    overflow: hidden;
    align-items: flex-start;
    /*margin-bottom: 90px;*/
    margin-bottom: 0;  /* anulamos el margin */
    padding: 15px;
}



/* ===== IMAGEN ===== */

.gv-property-image {
    flex: 0 0 50%;
}

.gv-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* En móvil más alta 
@media (max-width: 768px) {
    .gv-property-image img {
        height: 260px;
    }
}
*/

/* Prevent image flash / layout shift  -- no funciona, parece*/

/*.gv-property-image {
    width: 40%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
*/



/* ===== CONTENIDO ========== */
/* CONTENT COLUMN */

.gv-property-content {
    /*width: 55%;*/
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* ===== PRECIO ===== */
/* PRICE - cambio a verde turquesa */

.gv-property-price {
    font-size: 24px;
    font-weight: 600;
    color: #1d9997;
    /*margin-bottom: 15px;*/
    margin-bottom: 6px; /* tu valor actual reducido */
}


/* Price - SOLD label */

.gv-sold-label {
    color: #b30000;
    font-weight: 700;
    letter-spacing: 1px;
}


/* Price - REDUCED TO label */

.gv-price-reduced {
    color: #c0392b;
    font-weight: 700;
}


/* Price - RESERVED label */

.gv-price-wrapper {
    position: relative;
    display: inline-block;
}

.gv-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #c0392b;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}

.gv-badge.reduced {
    background: #f39c12;
}

.gv-badge.reserved {
    background: #2c3e50;
}



/* ===== TITULO ===== */

.gv-property-title {
    font-size: 26px;
    font-weight: 400;
    margin: 6px 0;
    line-height: 1.3;
}



/* ===== META LIST ===== */

.gv-property-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    opacity: 0.9;
    color: #555;
    margin-bottom: 25px;
}

.gv-property-meta span {
    margin-right: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

/* META WRAPPER 
.gv-property-meta {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}
*/

/* Primera línea */
.gv-meta-top,
.gv-meta-bottom {
    display: flex;
    gap: 20px;
    margin-bottom: 4px;
}

.gv-meta-top span,
.gv-meta-bottom span {
    white-space: nowrap;
}



/* Botón View property - fondo blanco texto azul */

.gv-property-btn,
.gv-property-btn:visited {
    background: #ffffff;
    border: 2px solid #096eba;
    padding: 5px 15px;
    font-size: 18px;
    /*text-transform: uppercase;*/
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 40px;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
	margin-top: 30px; /* Ajusta este valor a tu gusto */
}



/* =========================================
   TOP BAR
========================================= */

.gv-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-family: 'Lato', sans-serif;
}



/* =========================================
   TYPE FILTER BUTTONS
========================================= */

.gv-type-filters {
    display: flex;
    gap: 12px;
}

.gv-type-filters a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    color: #081f5e;
    border: 1px solid #b79c5a;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.gv-type-filters a:hover,
.gv-type-filters a.active {
    background: #b79c5a;
    color: #fff;
}



/* =========================================
   ORDER DROPDOWN
========================================= */

.gv-ordering {
    display: flex;
    align-items: center;
	gap: 8px; /* Para asegurar alineación perfecta entre label + select */
}

.gv-ordering select {
    height: 40px;
    padding: 0 14px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    border: 1px solid #b79c5a;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}




/* =====================================================
   SHORTCODE: Latest Properties
   Usage: [gv_latest_properties]
   no lo uso
===================================================== */

/* =====================================================
   SHORTCODE: Home Minimal Properties
   Usage: [gv_home_properties]
===================================================== */

.gv-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 36px;   /* horizontal */
    row-gap: 20px;      /* vertical (inferior) */
    margin-top: 20px;
}

.gv-home-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gv-home-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* INFO BLOCK */

.gv-home-info {
    margin-top: 20px;
}

/* PRICE */

.gv-home-price {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #111;
    margin-bottom: 10px;
}

/* META */

.gv-home-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.gv-home-meta span {
    white-space: nowrap;
}

/* ref */

.gv-home-ref {
    font-size: 0.75rem;
    color: #777;
    margin-top: 6px;
}



/* Responsive */

@media (max-width: 1200px) {
    .gv-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gv-home-grid {
        grid-template-columns: 1fr;
    }
}




/* =====================================================
   SHORTCODE: Latest Properties slider
   Usage: [gv_properties_slider posts="6"]
===================================================== */

/* =====================================================
   Properties Slider
===================================================== */

.gv-slider-wrapper {
    position: relative;
    overflow: hidden;
    /* padding: 0 60px; /* espacio real para flechas */
	padding: 0;
}

.gv-slider {
    display: flex;
    transition: transform 0.4s ease;
    /* margin: 0 40px; /* espacio visual para flechas */
}

.gv-slide {
    flex: 0 0 100%;
    min-width: 100%;
    /* box-sizing: border-box; */
}

/* Flechas */
.gv-slider-prev,
.gv-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /*background: #fff;
    border: 2px solid #1e73be;
    color: #1e73be; */
    font-size: 26px;
    cursor: pointer;
	
	background: rgba(0,0,0,0.6); /*fondo oscuro transparente sin borde*/
	color: #fff;
	border: none;

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gv-slider-prev {
    left: 20px; 
	font-size: 32px; /* más grande */
	font-weight: 700; /* más gruesa */
}

.gv-slider-next {
    right: 20px;
	font-size: 32px; /* más grande */
	font-weight: 700; /* más gruesa */
}

/* transición suave en hover */
.gv-slider-prev,
.gv-slider-next {
    transition: all 0.3s ease;
}

.gv-slider-prev:hover,
.gv-slider-next:hover {
    background: rgba(0,0,0,0.8);
}



/* ==============================
   MOBILE FIX
============================== */

@media (max-width: 768px) {

    .gv-slider-wrapper {
        padding: 0;
    }

    .gv-slider {
        margin: 0;
    }

    .gv-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    /*.gv-slider-prev,
    .gv-slider-next {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
	*/
	
	/* Flechas centradas en móvil (bien hechas) */
	.gv-slider-prev,
    .gv-slider-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 50%;
        transform: translateY(-50%);
    }

	.gv-slider-prev { left: 10px; }
    .gv-slider-next { right: 10px; }
	
	
	/* .gv-slide [class*="short"] {
    display: none !important;
	} */
		
	.gv-property-short-desc {
        display: none !important;
	}
	
	/* flechas sobre imagen */
    /*.gv-slider-prev,
    .gv-slider-next {
        top: 25%; /* en vez de 50% */
    /*    transform: translateY(-50%);
    }*/

	
	/* Centrar texto en móvil (precio, tipo, meta; botón falla) */
	
	.gv-slide {
        text-align: center !important;
    }

    .gv-slide .gv-home-meta {
        justify-content: center !important;
    }

}
	



@media (max-width: 900px) {

    .gv-property-content {
        text-align: center;
    }

    .gv-property-btn {
        display: inline-block;
        margin: 30px auto 0;
    }

}


@media (max-width: 768px) {

    .gv-property-btn {
        display: inline-block;
        margin: 5px auto 0;
    }

}






/* ================================
   botones apilados en móvil - MOBILE BUTTON FIX
================================ */

/* ===============================
   DIVI SAFE FILTER FIX
=============================== */


/* Desktop */
.gv-mobile-types {
    display: none;
}


/* Mobile */
@media (max-width: 900px) {

    /* Top bar */
    .gv-top-bar {
        display: block !important;
    }

    .gv-desktop-types {
        display: none;
    }

    .gv-mobile-types {
        display: block;
        margin-bottom: 15px;
        width: 100% !important;
    }

    .gv-ordering {
        width: 100% !important;
        margin-bottom: 0;
    }

    .gv-mobile-types select,
    .gv-ordering select {
        width: 100%;
        padding: 10px;
        font-family: 'Lato', sans-serif;
        font-size: 15px;
        border-radius: 4px;
        border: 1px solid #ccc;
        background: #fff;
    }

    /* Property layout */
    .gv-property {
        flex-direction: column !important;
    }

    .gv-property-image,
    .gv-property-content {
        width: 100% !important;
    }

    .gv-property-image {
        aspect-ratio: 4 / 3;
    }
}




/* =====================================
   MOBILE FILTER FIX para botones tipo y ordenar
===================================== */

@media (max-width: 900px) {

    .gv-top-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }

    .gv-mobile-types,
    .gv-ordering {
        width: 100% !important;
    }

    .gv-ordering form {
        width: 100%;
    }

    .gv-mobile-types select,
    .gv-ordering select {
        width: 100% !important;
        height: 48px;
        font-size: 16px;
        padding: 0 12px;
    }

}


/* =====================================
   estilo dropdown botones móvil
===================================== */

@media (max-width: 900px) {

    .gv-mobile-types {
        display: none !important;
    }

    .gv-desktop-types {
        display: block !important;
        width: 100%;
    }

}

/* ===== Separación entre botones de tipo (móvil) ===== */

@media (max-width: 900px) {

    .gv-type-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .gv-type-filters a {
        margin: 5px 8px 5px 0 !important;
    }

}

/* ===== Igualar tamaño texto Ordenar con botones Type ===== */

@media (max-width: 900px) {

    .gv-ordering select {
        font-size: 18px !important;
    }

}


/* ===== Fix estilo Ordenar en móvil ===== */

@media (max-width: 900px) {

    .gv-ordering select {
        border: 1px solid #b79c5a !important;
        background: #fff !important;
        width: auto !important;
        min-width: 180px;
    }

}




/* =====================================
   MOBILE ORDER – HARD OVERRIDE desplazar boton ordenar a la derecha
===================================== */

@media (max-width: 900px) {

    .gv-ordering {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

    .gv-ordering form {
        width: auto !important;
    }

    .gv-ordering select {
        width: auto !important;
        display: inline-block !important;
        min-width: 190px !important;
        border: 1px solid #b79c5a !important;
        background: #fff !important;
        font-size: 18px !important;
        height: 44px !important;
    }

}





/* ===============================
   Type label + buttons layout
=============================== */

.gv-type-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gv-type-label {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #081f5e;
    white-space: nowrap;
}




/* =====================================
   Arreglar Botones que no saltan de fila al estrechar pantalla
===================================== */

/* Contenedor principal de filtros */
.gv-top-bar {
    display: flex;
    flex-wrap: wrap; /* permite que los elementos salten de fila cuando no hay espacio */
    gap: 10px;       /* espacio entre filas y columnas */
    align-items: center; /* opcional, para alinear botones al inicio */
}

/* Contenedor de botones de tipo */
.gv-type-filters-wrapper {
    flex: 1 1 auto;  /* permite que se reduzca y crezca según espacio */
    min-width: 200px; /* evita que se encojan demasiado */
}

/* Botones de tipo */
.gv-type-filters a {
    white-space: nowrap; /* evita que el texto se rompa en varias líneas */
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    border-radius: 4px;
    background-color: #eee;
    text-decoration: none;
    text-align: center;
}

/* Contenedor de ordenar */
.gv-ordering {
    flex: 0 0 auto; /* no se encoge, siempre se coloca al final de la fila */
    margin-left: auto; /* empuja a la derecha si hay espacio */
}









/* =====================================
   BREAKPOINT LIMPIO Y DEFINITIVO
===================================== */

/* ===== TABLET (769px–900px) ===== */
@media (min-width: 769px) and (max-width: 900px) {

    .gv-top-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .gv-type-filters {
        justify-content: flex-start !important;
    }

    .gv-ordering {
        justify-content: flex-end !important;
    }
}


/* ===== MOVIL REAL (=768px) ===== */
@media (max-width: 768px) {

    .gv-top-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .gv-type-filters {
        justify-content: center !important;
    }

    .gv-ordering {
        justify-content: center !important;
    }

}








