/* 
* Real Estate Template Custom Styles
* For use with the Real Estate Landing Page template
*/

/* Hero Section */
.re-hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.re-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.re-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.re-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.re-hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.re-cta-button {
    display: inline-block;
    background-color: #e63946;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.re-cta-button:hover {
    background-color: #c1121f;
}

/* About Section */
.re-about {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 60px;
}

.re-about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.re-about-text {
    flex: 1;
    padding: 0 20px;
    min-width: 300px;
}

.re-about-image {
    flex: 1;
    padding: 0 20px;
    min-width: 300px;
}

.re-about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.re-section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1d3557;
}

.re-section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #457b9d;
}

/* Services Section */
.re-services {
    padding: 60px 0;
    margin-bottom: 60px;
}

.re-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.re-service-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s;
}

.re-service-card:hover {
    transform: translateY(-10px);
}

.re-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d3557;
}

.re-service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e63946;
}

/* Testimonials Section */
.re-testimonials {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 60px;
}

.re-testimonial-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 40px;
    position: relative;
}

.re-testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.re-testimonial-author {
    font-weight: bold;
    color: #1d3557;
}

.re-quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: #e6e6e6;
    z-index: 0;
}

/* Properties Grid */
.re-properties {
    padding: 60px 0;
    margin-bottom: 60px;
}

.re-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.re-property-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.re-property-card:hover {
    transform: translateY(-10px);
}

.re-property-image {
    height: 250px;
    overflow: hidden;
}

.re-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.re-property-card:hover .re-property-image img {
    transform: scale(1.05);
}

.re-property-details {
    padding: 20px;
}

.re-property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 10px;
}

.re-property-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1d3557;
}

.re-property-address {
    color: #6c757d;
    margin-bottom: 10px;
}

.re-property-features {
    display: flex;
    margin-bottom: 15px;
}

.re-property-feature {
    margin-right: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.re-property-feature span {
    margin-left: 5px;
}

.re-property-view {
    text-align: right;
}

.re-property-view-link {
    display: inline-block;
    background-color: #457b9d;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.re-property-view-link:hover {
    background-color: #1d3557;
    color: white;
}

/* Contact Form */
.re-contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.re-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.re-form-group {
    flex: 1;
    min-width: 250px;
    margin: 0 10px 20px 10px;
}

.re-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.re-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.re-form-control:focus {
    border-color: #457b9d;
    outline: none;
}

.re-form-textarea {
    height: 150px;
    resize: vertical;
}

.re-form-button {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.re-form-button:hover {
    background-color: #c1121f;
}

/* Gallery Section */
.re-gallery {
    padding: 60px 0;
    margin-bottom: 60px;
}

.re-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.re-gallery-item {
    height: 250px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.re-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.re-gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal Gallery */
.re-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    padding: 50px;
    box-sizing: border-box;
}

.re-gallery-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.re-gallery-modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.re-gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.re-gallery-modal-prev,
.re-gallery-modal-next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transform: translateY(-50%);
}

.re-gallery-modal-prev {
    left: 30px;
}

.re-gallery-modal-next {
    right: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .re-hero h1 {
        font-size: 2.5rem;
    }
    
    .re-hero p {
        font-size: 1.2rem;
    }
    
    .re-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .re-about-container {
        flex-direction: column;
    }
    
    .re-about-text, 
    .re-about-image {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .re-hero {
        height: 500px;
    }
    
    .re-hero h1 {
        font-size: 2rem;
    }
    
    .re-hero p {
        font-size: 1rem;
    }
    
    .re-gallery-modal {
        padding: 20px;
    }
    
    .re-gallery-modal-prev,
    .re-gallery-modal-next {
        font-size: 30px;
    }
    
    .re-gallery-modal-prev {
        left: 15px;
    }
    
    .re-gallery-modal-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .re-hero {
        height: 400px;
    }
    
    .re-hero h1 {
        font-size: 1.8rem;
    }
    
    .re-section-title {
        font-size: 1.8rem;
    }
    
    .re-form-row {
        flex-direction: column;
    }
    
    .re-form-group {
        margin: 0 0 20px 0;
    }
}