/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c1a875;
    /* Gold/Bronze */
    --primary-dark: #a8905e;
    --dark-bg: #222222;
    --dark-hover: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
select,
input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Header / Navbar --- */
.navbar {
    background-color: var(--dark-bg);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    height: 130px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 105px;
    /* Size increased by 70% from original 60px */
    object-fit: contain;
}

.mobile-menu-btn {
    display: none;
    background: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a,
.dropdown-trigger {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
}

.nav-links a:hover,
.dropdown-trigger:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: var(--shadow);
    z-index: 1;
    top: 100%;
    right: 0;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    text-transform: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2075&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Search Box matching the unified horizontal look on desktop */
.search-container {
    width: 100%;
    background: transparent;
}

.search-form {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    background: var(--light-bg);
    position: relative;
    flex: 1;
    border-right: 1px solid #ddd;
}

.form-group:last-child {
    border-right: none;
}

.search-input {
    width: 100%;
    padding: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    background: transparent;
    appearance: none;
    /* remove native styles for select */
    cursor: pointer;
}

.text-input {
    cursor: text;
}

.select-group {
    flex: 0.8;
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
}

.search-input-group {
    flex: 2;
    display: flex;
}

.search-submit-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 0 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--transition);
}

.search-submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Consulta Inventario Button */
.inventory-action {
    margin-top: 10px;
}

.inventory-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background var(--transition);
    box-shadow: var(--shadow);
}

.inventory-btn:hover {
    background-color: var(--primary-dark);
}

/* --- Info Section --- */
.info-section {
    padding: 80px 20px;
    background-color: var(--light-bg);
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1973&q=80');
    background-size: cover;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-content {
    display: flex;
    justify-content: flex-start;
}

.info-text-box {
    background-color: transparent;
    max-width: 600px;
    padding: 40px 0;
}

.info-heading {
    color: var(--dark-bg);
    font-weight: 600;
}

.gold-divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 20px 0;
}

.info-paragraph {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-outline-gold {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-outline-gold:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Properties Section --- */
.properties-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.section-heading {
    color: var(--dark-bg);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.property-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.property-card-content {
    padding: 20px;
    position: relative;
}

.property-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-price {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.property-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.property-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 105px;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-contact-info {
    font-weight: 500;
    color: var(--primary-color);
}

.phone-link {
    color: var(--primary-color);
}

.phone-link:hover {
    color: var(--primary-dark);
}

.footer-heading {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #444;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: 1px solid #555;
    border-radius: 50%;
    color: #ccc;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.copyright {
    color: #999;
    font-size: 0.85rem;
}

/* --- Single Property Details --- */
.single-property-section {
    padding: 60px 20px;
    background-color: var(--light-bg);
    min-height: 80vh;
}

.sp-header {
    margin-bottom: 30px;
    position: relative;
}

.relative-tag {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 4px;
    padding: 5px 15px;
}

.sp-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
}

.sp-location {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 5px;
}

.sp-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sp-gallery-column {
    flex: 2;
}

.sp-info-column {
    flex: 1;
    position: sticky;
    top: 150px;
}

.sp-main-image-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #000;
}

.sp-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.sp-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.sp-thumb:hover {
    opacity: 0.9;
}

.sp-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.sp-description-box {
    margin-top: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sp-description-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.sp-details-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sp-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.sp-property-type {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sp-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.sp-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.sp-spec-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sp-spec-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.sp-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #25d366;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.sp-contact-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    color: white;
}


/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .search-form {
        flex-direction: column;
        border-radius: 8px;
    }

    .form-group {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .form-group:last-child {
        border-bottom: none;
    }

    .search-input-group {
        display: flex;
    }

    .text-input {
        width: 100%;
    }

    .sp-layout {
        flex-direction: column;
    }

    .sp-info-column {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }

    .nav-links {
        position: absolute;
        top: 130px;
        left: -100%;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a,
    .dropdown {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #333;
    }

    .dropdown-content {
        position: relative;
        background-color: transparent;
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown-content a {
        color: #ccc;
    }

    .info-section {
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}