/**
 * Enhanced Single Property Template CSS
 */

/* Global styles for single property */
.property-single-wrapper * {
    font-family: "Marcellus", Sans-serif;
}

.property-single-wrapper {
    width: 100%;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Variables para colores principales */
:root {
    --color-primary: #0b2735; /* Color azul principal */
    --color-primary-light: #1a4a65;
    --color-primary-dark: #071921;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-background: #f9f9f9;
    --color-white: #ffffff;
}

/* Hero Banner - Enhanced with overlay and text */
.property-hero-banner {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: transform 8s ease;
}

.property-hero-banner:hover .hero-banner-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 100px 5% 50px;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    max-width: 800px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
}

.no-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Property Header Info */
.property-header-info {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.property-build-year {
    font-size: 1.2rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.property-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
}

.property-status-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Two Column Layout - Enhanced spacing */
.property-main-columns {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

/* Gallery Column (80%) - Improved grid and hover effects */
.property-gallery-column {
    width: 80%;
}

.property-gallery-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 8px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 0;
    background: #f5f5f5;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item.hero {
    grid-row: 1 / 3;
    height: 100%;
}

.gallery-item.small {
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    z-index: 5;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

/* Gallery photo count indicator */
.gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 5;
}

/* Details Column (20%) - Simplified styling */
.property-details-column {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.property-details-card {
    background: var(--color-white);
    border-radius: 4px;
    padding: 20px;
    border: 1px solid #eee;
}

.property-price-large {
    margin-bottom: 20px;
}

.price-label, .area-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
}

.price-amount {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-primary);
}

.area-amount {
    font-size: 1.6rem;
    font-weight: 400;
    color: #333;
}

/* Description Section - Simplified spacing and typography */
.property-description-section {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.property-description {
    flex: 1;
    line-height: 1.7;
    color: var(--color-text-light);
    font-size: 1rem;
}

.property-contact-btn {
    margin-top: 10px;
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--color-primary-light);
}

/* Custom Info Section - Clean styles */
.property-custom-info-section {
    margin-top: 40px;
    padding: 40px 0;
    border-top: 1px solid #eaeaea;
    position: relative;
}

.property-custom-info-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-primary);
}

.custom-info-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
    text-align: center;
}

.property-custom-description {
    line-height: 1.7;
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.property-custom-description h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 400;
    color: #444;
}

.property-custom-description p {
    margin-bottom: 20px;
}

.property-custom-description ul,
.property-custom-description ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.property-custom-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* Amenities Strip - Clean blue styling */
.property-amenities-strip {
    background-color: var(--color-primary);
    color: #fff;
    height: 100px;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.amenities-slider {
    display: flex;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: slideAmenities 30s linear infinite;
}

.amenity-item {
    padding: 0 35px;
    font-size: 1.2rem;
    font-weight: 400;
    position: relative;
}

.amenity-item::after {
    content: '•';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
}

.amenity-item:last-child::after {
    display: none;
}

@keyframes slideAmenities {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* FAQ Section - Clean accordion style */
.property-faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.faq-heading {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 1.8rem;
    color: #333;
}

.property-faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.property-faq-item {
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    background-color: #fff;
}

.property-faq-item-title {
    padding: 18px 20px;
    font-weight: 400;
    font-size: 1.1rem;
    color: #333;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-faq-item-title:hover {
    color: var(--color-primary);
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-toggle-icon:before,
.faq-toggle-icon:after {
    content: '';
    position: absolute;
    background-color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-toggle-icon:before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-toggle-icon:after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.property-faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.property-faq-item-content {
    display: none;
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.7;
}

.property-faq-item.active .property-faq-item-content,
.property-faq-item-title.active + .property-faq-item-content {
    display: block;
}

/* Location Section - Clean map container */
.property-location-section {
    padding: 60px 0;
}

.location-heading {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 1.8rem;
    color: #333;
}

.property-location-map {
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

.property-location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-actions {
    margin-top: 15px;
    text-align: right;
}

.map-open-link {
    color: var(--color-primary);
    font-weight: 400;
    text-decoration: none;
}

.map-open-link:hover {
    text-decoration: underline;
}

/* Contact Form Section - Clean form styling */
.property-contact-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.property-contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.form-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 400;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #D4AF37;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    color: #555;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background-color: #fff;
}

.form-submit {
    text-align: center;
    margin-top: 35px;
}

.property-contact-submit {
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.property-contact-submit:hover {
    background-color: var(--color-primary-light);
}

.property-contact-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-messages {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-messages.success {
    background-color: #e3f5e6;
    color: #3c763d;
    border-left: 4px solid #3c763d;
}

.form-messages.error {
    background-color: #f9e4e4;
    color: #a94442;
    border-left: 4px solid #a94442;
}

/* More Projects Section - Enhanced styling */
.more-projects-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.more-projects-overlay {
    background-color: rgba(11, 39, 53, 0.7);
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.more-projects-section .container {
    position: relative;
    z-index: 2;
}

.contact-heading {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 1.8rem;
    color: #fff;
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
    .property-gallery-grid {
        grid-template-rows: repeat(2, 220px);
    }
}

@media (max-width: 992px) {
    .property-hero-banner {
        height: 50vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .property-main-columns {
        flex-direction: column;
    }
    
    .property-gallery-column,
    .property-details-column {
        width: 100%;
    }

    .property-details-column {
        order: -1; /* Move details above gallery on mobile */
        margin-bottom: 30px;
    }
    
    .property-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 200px);
    }
    
    .gallery-item.hero {
        grid-row: 1 / 3;
    }
    
    .property-description-section {
        flex-direction: column;
    }
    
    .property-contact-btn {
        text-align: center;
        margin-top: 30px;
    }

    .property-contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .property-hero-banner {
        height: 40vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .area-amount {
        font-size: 1.6rem;
    }
    
    .amenity-item {
        font-size: 1rem;
        padding: 0 20px;
    }

    .property-details-card {
        padding: 20px;
    }
    
    .property-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
    }
    
    .gallery-item:not(:first-child) {
        display: none;
    }

    .gallery-counter {
        bottom: 10px;
        right: 10px;
    }

    .custom-info-title,
    .faq-heading,
    .location-heading,
    .form-title,
    .contact-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .property-hero-banner {
        height: 30vh;
    }

    .property-contact-form-wrapper {
        padding: 25px 20px;
    }

    .form-control,
    .property-contact-submit {
        font-size: 0.95rem;
    }
}

/* Enhanced Light Gallery Styles */
.lg-backdrop {
    background-color: rgba(11, 39, 53, 0.9);
}

.lg-toolbar {
    background-color: transparent;
}

.lg-outer .lg-thumb-outer {
    background-color: rgba(0, 0, 0, 0.3);
}
