/*
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 : 20-nov-2026, 11:32:04
    Author     : miguelito
*/

:root {
            --primary: #1a365d;
            --accent: #c59b27;
            --text-main: #333333;
            --text-muted: #555555;
            --bg-light: #f8f9fa;
            --white: #ffffff;
            --border-color: #e2e8f0;
            --radius: 8px;
            --container-width: 1200px;
        }

        * {
            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(white);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

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

        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 1.25rem 0.5rem;
            width: 100%;
        }

        /* Cabecera y botón volver */
        .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;
        }

        .btn-back {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1rem;
            background-color: var(--bg-light);
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            border-radius: 50px;
            border: 1px solid var(--border-color);
            transition: all 0.25s ease;
        }

        .btn-back:hover {
            background-color: var(--primary);
            color: var(--white);
        }

        /* Contenido Principal */
        
         main {
            flex: 1;
            max-width: 800px;
            width: 100%;
            margin: 1rem auto;
            padding: 0 1.5rem;
        }
        
        main.container {
            flex: 1;
            margin: 1.5rem auto 1rem;
        }

        .card {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 4px 3px rgba(0,0,0,0.04);
            padding: 2rem;
            margin-bottom: 1rem;
        }

        /* Encabezado de la propiedad (Título + Precio) */
        .property-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 1rem;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }

        .property-header h1 {
            color: var(--primary);
            font-size: 1.8rem;
            line-height: 1.2;
        }

        .property-location {
            color: var(--text-muted);
            font-size: 1rem;
            margin-top: 0.25rem;
        }

        .property-price-box {
            text-align: right;
        }

        .property-price-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            color: var(--text-muted);
            display: block;
        }

        .property-price-value {
            font-size: 2rem;
            font-weight: 800;
            color: var(--accent);
        }

        /* Galería Slider + Características */
        .property-main-grid {
            display: grid;
            grid-template-columns: 1.6fr 1fr;
            gap: 2rem;
            align-items: start;
        }

        .slider-wrapper {
            display: flex;
            justify-content: center; /* Centra el iframe lateralmente (horizontal) */
            align-items: center;     /* Centra el iframe verticalmente (opcional) */
            width: 100%;             /* Ocupa todo el ancho disponible */
            height: 100%;
            border: none;            /* Sin bordes en la caja */
            outline: none;
            background: transparent; /* Fondo transparente */
            padding: 0;
            margin: 0 auto;
        }

        .slider-wrapper iframe {
            
            display: block;          /* Evita espacios blancos inferiores de elementos inline */
            width: 100%;            /* Se adapta al ancho de la pantalla en móviles */
            height: 100%;
            max-width: 800px;        /* Ancho máximo en ordenadores */
            aspect-ratio: 16 / 11;   /* Mantiene la proporción sin deformarse */
            border: none;            /* Elimina el borde clásico por defecto del iframe */
            outline: none;
        }

        .specs-box {
            background-color: var(--bg-light);
            padding: 1.5rem;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }

        .specs-box h2 {
            font-size: 1.2rem;
            color: var(--primary);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .specs-list {
            list-style: none;
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.65rem;
        }

        .specs-list li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.95rem;
            padding-bottom: 0.4rem;
            border-bottom: 1px dashed #cbd5e1;
        }

        .specs-list li:last-child {
            border-bottom: none;
        }

        .spec-label {
            font-weight: 600;
            color: var(--text-main);
        }

        .spec-value {
            color: var(--primary);
            font-weight: 500;
            text-align: right;
        }

        .badge-yes {
            background-color: #dcfce7;
            color: #166534;
            padding: 0.15rem 0.6rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .btn-fullscreen {
            display: block;
            text-align: center;
            margin-top: 1.25rem;
            padding: 0.65rem;
            background-color: var(--primary);
            color: var(--white);
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: background 0.25s;
        }

        .btn-fullscreen:hover {
            background-color: var(--accent);
        }

        /* Descripción */
        .description-section h2 {
            color: var(--primary);
            font-size: 1.4rem;
            margin-bottom: 1rem;
        }

        .description-section p {
            margin-bottom: 1rem;
            font-size: 1.02rem;
            color: #2d3748;
            text-align: justify;
        }

        /* Contacto y Mapa */
        .contact-map-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 2rem;
            align-items: center;
            background: #ffffff;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
        }

        .contact-details h2 {
            color: var(--primary);
            font-size: 1.35rem;
            margin: 1rem 0 0.5rem;
        }

        .contact-details .subtitle {
            color: var(--text-muted);
            margin-bottom: 1.25rem;
            font-weight: 500;
        }

        .contact-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .contact-links li {
            font-size: 1.05rem;
        }

        .contact-links strong {
            color: var(--primary);
            display: inline-block;
            width: 80px;
        }

        .contact-links a {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
        }

        .contact-links a:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        .map-wrapper {
            width: 100%;
            height: 350px;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .map-wrapper iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }

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

        footer .btn-back {
            background-color: rgba(255,255,255,0.1);
            color: var(--white);
            border-color: rgba(255,255,255,0.2);
            margin-bottom: 1rem;
        }

        footer .btn-back:hover {
            background-color: var(--accent);
            color: var(--white);
        }

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

        /* Responsive Design (Tablets y Móviles) */
        @media (max-width: 768px) {
            .property-main-grid,
            .contact-map-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 600px) {
            .contact-map-grid {
               grid-template-columns: 1fr; /* Apila contacto arriba y mapa abajo */
               padding: 1.25rem;
               gap: 1.5rem;
            }
            .contact-links li {
              font-size: 0.95rem;
              display: flex;
              flex-wrap: wrap;
              gap: 0.25rem;
        }
            .card {
                padding: 1.25rem;
            }
            .property-header h1 {
                font-size: 1.45rem;
            }
            .property-price-box {
                text-align: left;
            }
            .nav-container {
                justify-content: center;
            }
            .specs-list li {
                font-size: 0.88rem;
            }
        }