/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 28-oct-2026, 11:45:41
    Author     : miguelito
*/

<!-- Estilos CSS Modernos Integrados para las Listas de Inmuebles y Diseño Adaptable -->

       :root {
            --primary: #1a365d;
            --accent: #c59b27;
            --dark: #0f172a;
            --text-main: #333333;
            --bg-light: #f8f9fa;
            --white: #ffffff;
            --border-color: #e2e8f0;
            --radius: 8px;
            --fondosuave: #8e94ad;
            --selected: #A0AEC0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            color: var(--text-main);
            background-color: var(--bg-light);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            background-color: var(--white);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            
        }
        
        footer {
            background-color: var(--white);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0.2rem;
            width: 100%;
        }

        /* Navegación y Cabecera */
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .logo img {
            max-height: 60px;
            width: auto;
            display: block;
        }

       
        /* Contenido Principal */
        main.container {
            flex: 1;
            margin: 2rem auto;
        }

        h1.comprar-encabezado {
            color: var(--primary);
            font-size: 1.10rem;
            margin-bottom: 1.2rem;
            border-bottom: 1px solid var(--accent);
            padding-bottom: 0.1rem;
        }

        /* Selector de Tipo de Inmueble */
        .property-filter {
            background: var(--white);
            padding: 1rem;
            border-radius: var(--radius);
            box-shadow: 0 2px 4px rgba(0,0,0,0.03);
            margin-bottom: 2rem;
        }

        .property-filter ul {
            justify-content: left;
           
                   
        }
        
        .property-filter ul > li.normal{
            background-color:#FEFBFB ;
            padding-right: 1px;
            margin-right: 1px; 
            border: 1px  inset #F0FFFF;
            border-top-left-radius: 1em;
            border-top-right-radius: 1em;}
        
        .property-filter ul > li.selected {
            background-color: #D3D3D3;
            padding-right: 4px;
            margin-right: 4px; 
            border: 1px  inset #D3D3D3;
            border-top-left-radius: 1em;
            border-top-right-radius: 1em;
        }
        
        
        /* Nuevo Selector de Tipo de Inmueble */
        
          .property-filter-tipos {
        background-color: #ffffff;
        padding: 1rem 1.25rem;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        margin-bottom: 2rem;
    }

    .filter-list {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }

    .filter-btn {
        display: inline-block;
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        text-decoration: none;
        color: #1a365d;
        background-color: #f1f5f9;
        border: 1px solid transparent;
        border-radius: 50px; /* Forma de píldora moderna */
        transition: all 0.25s ease;
    }

    .filter-btn:hover {
        background-color: #e2e8f0;
        color: #c59b27;
        transform: translateY(-1px);
    }

    .filter-btn.active {
        background-color: #1a365d;
        color: #ffffff;
        box-shadow: 0 2px 4px rgba(26, 54, 93, 0.25);
    }

    /* En móviles pequeños permite deslizar horizontalmente si se prefiere, o apilar */
    @media (max-width: 600px) {
        .filter-btn {
            font-size: 0.8rem;
            padding: 0.4rem 0.85rem;
        }
    }

        /* Paginación */
        .pagination-container {
            text-align: center;
            margin: 1.2rem 0;
        }

        .content-nav_page a, .content-nav_page span {
            display: inline-block;
            padding: 0.2rem 0.75rem;
            margin: 0 0.25rem;
            background: var(--white);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            text-decoration: none;
            color: var(--primary);
            font-weight: 600;
        }

        .content-nav_page span {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary);
        }

        .content-nav_page a:hover {
            background: var(--bg-light);
            color: var(--accent);
        }

        /* Listado de Inmuebles (Diseño en Tarjetas Flexbox moderno) */
        .property-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .property-card {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 4px 6px rgba(0,0,0,0.03);
            display: grid;
            grid-template-columns: 300px 1fr auto;
            gap: 1.5rem;
            align-items: center;
            padding: 1.5rem;
            transition: transform 0.2s;
        }

        .property-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.08);
           
        }

        .property-image img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 6px;
            display: block;
        }

        .property-details p {
            margin-bottom: 0.5rem;
        }

        .text-dir_inmb {
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--primary);
        }

        .text-pobl_inmb {
            font-size: 0.95rem;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .text-descrip_inmb {
            font-size: 0.95rem;
            color: #444;
        }

        .property-price {
            text-align: right;
            padding-left: 1rem;
        }

        .text-precio_inmb {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent);
        }

        /* Enlaces de interés final */
        .external-links {
            text-align: center;
            margin-top: 3rem;
        }

        .external-links a.link {
            color: var(--primary);
            font-weight: bold;
            text-decoration: underline;
        }

        /* Footer */
        footer {
            background-color: var(--primary);
            color: var(--white);
            text-align: center;
            padding: 2rem 1rem;
            margin-top: auto;
        }

        footer ul.navigation {
            justify-content: center;
            margin-bottom: 1rem;
        }

        footer ul.navigation li a {
            color: var(--white);
        }

        footer ul.navigation li a:hover {
            color: var(--accent);
        }

        .copyright {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .property-card {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .property-price {
                text-align: center;
                padding-left: 0;
            }
            .nav-container {
                flex-direction: column;
                align-items: center;
            }
            ul.navigation {
                justify-content: center;
            }
        }

