/* Theme: Sand & Luxury 
Author: Reaktor Studios / Gemini
*/

:root {
    /* Paleta de Colores - Tierra y Mar */
    --bg-color: #FAF9F6;       /* Off-White / Arena Pálida */
    --primary-tan: #D2B48C;    /* Tan / Color Arena Dorada */
    --accent-brown: #8B4513;   /* Saddle Brown / Cuero */
    --text-dark: #2C2C2C;      /* Gris Carbón (Suave) */
    --text-light: #666666;     /* Gris Piedra */
    --pure-white: #FFFFFF;
}

/* Tipografía */
body {
    background-color: var(--bg-color);
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar Customization */
.navbar-custom {
    background-color: var(--pure-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-brown) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-left: 15px;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-tan) !important;
}

/* Hero Section (UPDATED FOR CONTRAST) */
.hero-section {
    /* Fondo oscurecido al 50% para que las letras blancas resalten */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
    background-color: #333; /* Fallback */
}

.hero-title {
    font-size: 3.5rem;
    color: #FFFFFF !important; /* Blanco forzado */
    text-shadow: 0 2px 15px rgba(0,0,0,0.9); /* Sombra fuerte */
}

.hero-section .lead {
    color: #FFFFFF !important; /* Blanco forzado */
    opacity: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9);
    font-weight: 400;
}

/* Buscador en Hero */
.search-box-hero {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

/* Property Cards */
.property-card {
    background: white;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.property-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-img-wrapper img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255,255,255,0.9);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-brown);
    text-transform: uppercase;
}

.card-body {
    padding: 25px;
}

.price-tag {
    font-size: 1.4rem;
    color: var(--accent-brown);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.property-specs {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.spec-item i {
    color: var(--primary-tan);
    margin-right: 5px;
}

/* Botones */
.btn-primary-custom {
    background-color: var(--primary-tan);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background-color: var(--accent-brown);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-tan);
    color: var(--accent-brown);
    font-weight: bold;
}

.btn-outline-custom:hover {
    background-color: var(--primary-tan);
    color: white;
}

/* Footer */
footer {
    background-color: #222;
    color: #bbb;
    padding: 50px 0;
    margin-top: 80px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #bbb;
}

footer a:hover {
    color: var(--primary-tan);
}