/* variables y Reset */
:root {
    --primary-blue: #0056ff;
    --dark-navy: #0f172a;
    --accent-gold: #c69026;
    --accent-teal: #319795;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    --hover-shadow: 0 20px 40px -10px rgba(198, 144, 38, 0.15);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: #334155;
    line-height: 1.65;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-600 {
    max-width: 600px;
}

/* Cabecera / Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.footer-top-bar {
    background-color: #263C4C;
    color: #ffffff;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share span {
    opacity: 0.6;
    font-weight: 700;
    font-size: 11px;
}

.social-icon {
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.top-nav-actions {
    display: flex;
    align-items: center;
}

.btn-top-newsletter {
    color: #ffffff;
    border: 1.5px solid var(--accent-gold);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    background-color: transparent;
}

.btn-top-newsletter:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
}

/* Marca CHL Rentals + STR Investment Opportunities */
.header-brand-bar {
    background-color: var(--dark-navy);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-and-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.header-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.15);
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.btn-top-brand-list {
    color: #ffffff;
    border: 1.5px solid var(--accent-gold);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    background-color: transparent;
    text-decoration: none;
}

.btn-top-brand-list:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
}

/* Héroe / Intro */
.hero-section {
    padding: 70px 0 40px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(198, 144, 38, 0.04) 0%, transparent 60%);
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-desc-box {
    max-width: 780px;
    margin: 0 auto 35px auto;
    background-color: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
}

.hero-cta-center {
    margin-top: 30px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-teal {
    background-color: var(--accent-teal);
    color: #ffffff;
}

.btn-teal:hover {
    background-color: #247573;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(49, 151, 149, 0.2);
}

.btn-blue {
    background-color: var(--dark-navy);
    color: #ffffff;
    border: 1px solid var(--dark-navy);
}

.btn-blue:hover {
    background-color: transparent;
    color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.1);
}

.btn-full {
    display: block;
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Grilla de Propiedades */
.properties-section {
    padding: 40px 0 80px 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
}

.property-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-gold);
}

.card-header {
    padding: 24px;
    background-color: #fafbfc;
    border-bottom: 1px solid var(--border-color);
}

.property-address {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1.35;
}

.property-location {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-wrapper {
    height: 230px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.property-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0f172a;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 10;
    pointer-events: none;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.no-property-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: #475569;
    font-weight: 600;
}

.detail-value {
    font-weight: 700;
    color: var(--dark-navy);
}

.font-highlight {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.highlight-teal {
    color: var(--accent-teal);
}

/* Indicador de tendencia */
.price-trend {
    font-size: 11px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.trend-down {
    color: #ef4444;
    background-color: #fee2e2;
}

.trend-up {
    color: #10b981;
    background-color: #d1fae5;
}

.card-footer {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    background-color: #fafbfc;
}

/* Vacío */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    color: #64748b;
}

/* Newsletter Section */
.newsletter-section {
    padding: 70px 0;
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
}

.newsletter-box {
    background-color: #ffffff;
    padding: 45px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.newsletter-box h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.newsletter-box p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

.newsletter-box .form-group {
    margin-bottom: 16px;
}

.newsletter-box input[type="text"],
.newsletter-box input[type="email"] {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.newsletter-box input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(198, 144, 38, 0.15);
}

.sub-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    display: none;
}

.msg-success {
    background-color: #d1fae5;
    color: #065f46;
}

.msg-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer */
.footer {
    background-color: var(--dark-navy);
    color: #94a3b8;
    padding: 50px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-center {
    text-align: center;
}

.footer-links {
    margin-top: 18px;
}

.footer-links a {
    color: #cbd5e1;
    margin: 0 12px;
    transition: color 0.2s;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .logo-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    .divider-line {
        width: 100%;
        height: 1px;
    }
}

/* Image Carousel Slider */
.slider-wrapper {
    position: relative;
    overflow: hidden;
}
.image-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-slider-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    z-index: 10;
}
.slider-btn:hover {
    background: var(--accent-gold);
    color: var(--dark-navy);
}
.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.slider-dots .dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}
.slider-dots .dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox-img.active {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #f8fafc;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--accent-gold);
    color: var(--dark-navy);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    position: absolute;
    bottom: -45px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 500;
}

/* Make images in gallery clickable and show cursor */
.image-wrapper img {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        top: auto;
        bottom: -60px;
        transform: none;
    }
    .lightbox-next {
        right: 10px;
        top: auto;
        bottom: -60px;
        transform: none;
    }
    .lightbox-caption {
        bottom: -110px;
    }
}

/* Inquire Modal */
.inquire-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.inquire-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: inquireFadeIn 0.3s ease;
}

@keyframes inquireFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inquire-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: var(--dark-navy);
    color: #ffffff;
}

.inquire-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.inquire-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.inquire-close:hover {
    color: var(--accent-gold);
}

.inquire-body {
    padding: 24px;
}

.inquire-body .form-group {
    margin-bottom: 20px;
}

.inquire-body label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inquire-body input[type="text"],
.inquire-body input[type="email"],
.inquire-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.inquire-body input:focus,
.inquire-body textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(198, 144, 38, 0.15);
}

.inquire-body textarea {
    resize: vertical;
    min-height: 100px;
}

.inquire-btn {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #ffffff;
}

.btn-gold:hover {
    background-color: #a8761a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(198, 144, 38, 0.25);
}

.inquire-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .inquire-btn-grid {
        grid-template-columns: 1fr;
    }
}

/* INTERACTIVE MAP STYLES */
.map-section {
    margin-bottom: 35px;
}
.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.map-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
}
.map-header span {
    font-size: 12px;
    color: #64748b;
}
#properties-map {
    height: 420px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
}
@media (max-width: 768px) {
    #properties-map {
        height: 320px;
    }
    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@keyframes pulseHighlight {
    0% { outline: 3px solid var(--accent-teal); box-shadow: 0 0 20px rgba(49, 151, 149, 0.5); transform: scale(1.02); }
    50% { outline: 3px solid var(--accent-gold); box-shadow: 0 0 30px rgba(198, 144, 38, 0.7); transform: scale(1.02); }
    100% { outline: 3px solid transparent; box-shadow: var(--card-shadow); transform: scale(1); }
}

.property-card.card-highlight {
    animation: pulseHighlight 2s ease-in-out;
}

.view-map-link {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.view-map-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}



