/* Custom Styles for Real Estate Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --dark-color: #212529;
}

/* Contact Header */
.contact-header {
    font-size: 14px;
}

.contact-header a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,208C960,192,1056,160,1152,165.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-contact {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.hero-contact a:hover {
    text-decoration: underline;
}

/* Property Cards */
.property-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.property-card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* Swiper Customization */
.propertySwiper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.propertySwiper .swiper-slide img {
    transition: transform 0.3s ease;
}

.propertySwiper .swiper-slide:hover img {
    transform: scale(1.02);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Thumbnail Gallery */
.thumbnail-hover {
    transition: all 0.3s ease;
    border-radius: 4px;
    border: 2px solid transparent;
}

.thumbnail-hover:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Filters */
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer {
    margin-top: 80px;
}

/* Contact Section */
#contact .card {
    border: none;
    transition: transform 0.3s ease;
}

#contact .card:hover {
    transform: translateY(-5px);
}

#contact a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

#contact a:hover {
    color: var(--primary-color);
}

/* Responsive Video */
video {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Video Poster Container */
.video-poster-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.video-poster-container.playing {
    min-height: auto;
}

.video-poster-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    padding: 2rem;
}

.video-play-button {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-play-button:hover {
    transform: scale(1.1);
    background: rgba(13, 110, 253, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.video-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
    margin-left: 5px;
}

.video-poster-container video {
    width: 100%;
    height: auto;
    display: none;
}

.video-poster-container.playing video {
    display: block;
}

.video-poster-container.playing .video-poster-logo,
.video-poster-container.playing .video-play-button {
    display: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sticky Navigation Shadow */
.navbar.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .property-card {
        margin-bottom: 1rem;
    }
    
    .contact-header {
        text-align: center;
    }
    
    .contact-header .col-md-6:first-child {
        margin-bottom: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .contact-header,
    .navbar,
    footer,
    .btn,
    .form-select {
        display: none !important;
    }
}