/**
 * Single Property Template CSS
 */

/* Global styles for single property */
.property-single-wrapper * {
    font-family: "Marcellus", Sans-serif !important;
}
.property-single-wrapper{
    width: 100%;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Banner */
.property-hero-banner {
    width: 100vw;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-banner-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

/* Property Header Info */
.property-header-info {
    text-align: center;
    margin: 50px 0 30px;
}

.property-build-year {
    font-size: 1.2rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 10px;
}

.property-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
}

.property-status-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Two Column Layout */
.property-main-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

/* Gallery Column (80%) */
.property-gallery-wrapper {
    position: relative;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-prev { left: -18px; }
.gallery-next { right: -18px; }

/* Gallery Column (80%) */
.property-gallery-column {
    width: 80%;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, 230px);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background: #f5f5f5;
}

.gallery-item.hero {
    grid-row: 1 / 3;
    height: 100%;
    min-height: 100%;
}

.gallery-item.small {
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item.placeholder {
    background-color: #f5f5f5;
}

.view-all-gallery {
    margin-top: 15px;
    text-align: right;
}

.view-gallery-btn {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
}

.view-gallery-btn:hover {
    text-decoration: underline;
}

/* Details Column (20%) */
.property-details-column {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.property-price-large {
    margin-bottom: 30px;
}

.price-label, .area-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: 400;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
}

.area-amount {
    font-size: 2rem;
    font-weight: 400;
    color: #333;
}

/* Description Section */
.property-description-section {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.property-description {
    flex: 1;
    line-height: 1.6;
    color: #555;
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #555;
}

/* Amenities Strip */
.property-amenities-strip {
    background-color: #D4AF37;  /* Gold color */
    color: #fff;
    height: 100px;
    width: 100vw;
    margin-left: 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 30px;
    font-size: 1.2rem;
    font-weight: 400;
}

@keyframes slideAmenities {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* FAQ Section */
.property-faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.faq-heading {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 2rem;
    color: #333;
}

.property-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.property-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
}

.property-faq-item-title {
    padding: 20px 25px;
    font-weight: 400;
    font-size: 1.1rem;
    color: #333;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-toggle-icon:before,
.faq-toggle-icon:after {
    content: '';
    position: absolute;
    background-color: #333;
    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:after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.property-faq-item-content {
    display: none;
    padding: 0 25px;
}

.property-faq-item.active .property-faq-item-content,
.property-faq-item-title.active + .property-faq-item-content {
    display: block;
    padding: 0 25px 20px;
}

/* Location Section */
.property-location-section {
    padding: 60px 0;
}

.location-heading {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 2rem;
    color: #333;
}

.property-location-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.location-actions {
    margin-top: 12px;
    text-align: right;
}

.map-open-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.map-open-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .property-main-columns {
        flex-direction: column;
    }
    
    .property-gallery-column,
    .property-details-column {
        width: 100%;
    }
    
    .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: 20px;
    }
}

@media (max-width: 768px) {
    .property-hero-banner {
        height: 350px;
    }
    
    .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-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(2) {
        display: none;
    }
}

/* More Projects (uses [property_slider] shortcode) */
.more-projects-section {
    position: relative;
    padding: 60px 0;
    background: url("https://figueiras.com.mx/wp-content/uploads/2025/12/Rectangle-5-1.jpg");
    background-size: cover;
    background-position: center;
}
.more-projects-section h2{
    color: #fff;
    z-index: 2;
}
.more-projects-overlay{
    background-color:rgba(11, 39, 53, 0.5);
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Contact Form Section */
.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: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #D4AF37;
    outline: none;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.property-contact-submit {
    padding: 14px 40px;
    background-color: #D4AF37;
    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: #c09c31;
}

.property-contact-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.form-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-messages.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.form-messages.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}
