/* 
  Real Estate Landing Page Styles
  Colors:
  - Primary: #d91023 (Peruvian red)
  - Secondary: #ffffff (White)
  - Text: #333333
  - Background: #f8f9fa
  - Accents: #e60023 (Brighter red for emphasis)
*/

/* Base Elements */
:root {
    --primary-color: #d91023;
    --primary-color-light: #e94c5d;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --background-color: #f8f9fa;
    --accent-color: #e60023;
    --gray-light: #f0f0f0;
    --gray-medium: #dddddd;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header Section */
.header-section {
    padding: 1.5rem 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--gray-medium);
}

.price-tag {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.price-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.price-value {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    padding: 0;
    background-color: var(--secondary-color);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    overflow: hidden;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 0;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item svg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Section */
.video-section {
    padding: 3rem 0;
    background-color: var(--gray-light);
}

.video-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    color: var(--text-color);
    background-color: var(--gray-medium);
    min-height: 400px;
}

/* Property Details Section */
.property-details {
    padding: 3rem 0;
}

.property-description {
    line-height: 1.8;
}

.property-features {
    list-style-type: none;
    padding-left: 0;
}

.property-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

.property-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.property-specs {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.property-specs-list {
    list-style-type: none;
    padding-left: 0;
}

.property-specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

.spec-label i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.spec-value {
    font-weight: 600;
}

.spec-value.bold {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Amenities */
.property-amenities {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Estilo para la sección de características adicionales a ancho completo */
.property-amenities-full {
    padding: 3rem 0;
}

.property-amenities-full .amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.amenity-item i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Floor Plan Section */
.floor-plan-section {
    padding: 3rem 0;
    background-color: var(--gray-light);
}

/* Agent Contact Section */
.agent-contact {
    padding: 3rem 0;
    background-color: var(--secondary-color);
}

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

.agent-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.agent-name {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.agent-title {
    color: var(--primary-color);
    font-weight: 500;
}

.agent-contact-info {
    padding: 1.5rem;
    background-color: var(--gray-light);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-method i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.btn-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #FD1D1D, #E1306C, #C13584, #833AB4, #5851DB, #405DE6);
    color: white;
}

/* Location Section */
.location-section {
    padding: 3rem 0;
    background-color: var(--gray-light);
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--secondary-color);
    padding: 2rem 0;
}

.footer-social {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-social li a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social li a:hover {
    color: var(--primary-color-light);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .property-specs, .property-amenities {
        margin-top: 2rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .header-section {
        text-align: center;
    }
    
    .price-tag {
        margin-top: 1rem;
    }
    
    .agent-info {
        margin-bottom: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-section .col-6 {
        width: 50%;
    }
}

/* Peruvian Accent Touches */
.accent-peruvian {
    position: relative;
}

.accent-peruvian::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color) 50%, var(--secondary-color) 50%);
    background-size: 100% 20px;
}
