/* ===================================
   Real Estate Website Custom Styles
   =================================== */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* New modern color scheme */
    --accent-color: #ff6b35;
    --gradient-start: #6a11cb;
    --gradient-end: #2575fc;
    --dark-accent: #2c3e50;
}

/* General Styles */
body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header / Navbar */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 600;
    margin: 0 0.7rem;
    color: var(--dark-accent);
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 2rem;
    transform: translateY(-50%);
}

.search-section .form-control {
    height: 58px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-section .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.search-section .btn {
    height: 58px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

.search-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.5);
}

/* Ensure consistent height for all form elements in search section */
.search-section .dropdown-selected {
    height: 58px;
    min-height: 58px;
}

/* Filters Section */
.filters-section {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 2rem 0;
}

.filters-section .form-control {
    height: 58px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filters-section .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.filters-section .btn {
    height: 58px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: none;
    transition: all 0.3s ease;
}

.filters-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

/* Ensure consistent height for all form elements in filters section */
.filters-section .form-control,
.filters-section .dropdown-selected {
    height: 58px;
    min-height: 58px;
}

/* Custom Dropdown Component */
.dropdown-container {
    position: relative;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.dropdown-selected {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-height: 58px;
    display: flex;
    align-items: center;
}

.dropdown-selected:hover {
    border-color: #ced4da;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-selected::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #6c757d;
}

.dropdown-options {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    position: relative;
    width: 100%;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-options li {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-options li:last-child {
    border-bottom: none;
}

.dropdown-options li:hover {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.dropdown-container.active .dropdown-options {
    display: block;
}

/* Bootstrap Dropdown Customization */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.1);
}

.dropdown-toggle::after {
    margin-left: 0.5em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Navbar Dropdown Specific Styles */
.navbar .dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.navbar .dropdown-item {
    padding: 0.75rem 1.25rem;
}

/* Split Button Dropdown */
.btn-group .dropdown-toggle-split {
    padding: 0.375rem 0.5rem;
}

/* Section Headings */
.section-heading {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--dark-color);
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* Property Cards */
.property-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.property-card img {
    transition: all 0.5s ease;
    height: 250px;
    object-fit: cover;
}

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

.property-card .card-body {
    padding: 1.5rem;
}

.property-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.property-card .badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.property-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0;
}

/* Property Image Slider */
.property-images .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 992px) {
    .property-images .carousel-item img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .property-images .carousel-item img {
        height: 350px;
    }
    
    .thumbnail-img {
        height: 80px !important;
    }
}

@media (max-width: 576px) {
    .property-images .carousel-item img {
        height: 250px;
    }
    
    .thumbnail-img {
        height: 60px !important;
    }
}

/* Ultra-mobile devices (very small screens) */
@media (max-width: 400px) {
    .property-images .carousel-item img {
        height: 200px;
    }
    
    .thumbnail-img {
        height: 50px !important;
    }
}

/* Ensure images are responsive */
.property-images img {
    max-width: 100%;
    height: auto;
}

/* Property image with responsive height */
.property-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Responsive adjustments for property images */
@media (max-width: 992px) {
    .property-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .property-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .property-image {
        height: 250px;
    }
}

/* Ultra-mobile devices (very small screens) */
@media (max-width: 400px) {
    .property-image {
        height: 200px;
    }
}

/* Property image placeholder */
.property-image-placeholder {
    height: 500px;
}

@media (max-width: 992px) {
    .property-image-placeholder {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .property-image-placeholder {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .property-image-placeholder {
        height: 250px;
    }
}

@media (max-width: 400px) {
    .property-image-placeholder {
        height: 200px;
    }
}

/* Thumbnail gallery */
.thumbnail-img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-img:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.2;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.stat-item .label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    position: relative;
    padding: 5rem 0;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    z-index: -1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-accent), #1a2a3a);
    color: white;
    position: relative;
}

.testimonials-section .section-heading h2 {
    color: white;
}

.testimonials-section .section-heading p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: white;
}

.testimonial-card .client-info h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.testimonial-card .client-info p {
    margin-bottom: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Client Icon Styles */
.testimonial-card .client-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
}

.testimonial-card .client {
    display: flex;
    align-items: center;
}

/* Contact Info Section */
.contact-info-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.info-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.info-box h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Social Media */
.social-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: white;
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    transform: translateY(-10px) rotate(10deg);
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 15px 30px rgba(37, 117, 252, 0.3);
}

/* Footer */
.footer-section {
    background: #2c3e50 url('https://cekfisi.fra1.cdn.digitaloceanspaces.com/realInvest/static/images/footer-black.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0 0 0;
    color: #ecf0f1;
}

.footer-section h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.footer-section p {
    color: #bdc3c7;
}

.footer-section ul {
    color: #bdc3c7;
}

.footer-section li {
    color: #bdc3c7;
}

.footer-section a {
    color: #bdc3c7;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-section .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-section .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    color: #bdc3c7;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: none;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 117, 252, 0.5);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Construction Cards */
.construction-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.construction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

/* Hover Shadow Effect */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--dark-accent);
    border-color: #dee2e6;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border-color: var(--gradient-start);
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Contact Info Cards */
.contact-info .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Map Container - Full Card Fill Solution */
.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Fixed heights for different breakpoints */
@media (min-width: 992px) {
    .card-body .map-container {
        height: 400px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .card-body .map-container {
        height: 350px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .card-body .map-container {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .card-body .map-container {
        height: 250px;
    }
}

/* Prevent horizontal scrolling */
body,
.container,
.card-body {
    overflow-x: hidden;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary-color);
}

.breadcrumb-item a {
    color: var(--accent-color);
    font-weight: 500;
}

/* Property Info Card */
.property-info-card {
    margin-bottom: 1.5rem;
}

/* Contact Card */
#contactCard {
    margin-top: 1.5rem;
}

/* Ensure responsive spacing */
@media (max-width: 991px) {
    .property-info-card {
        margin-bottom: 1rem;
    }
    
    #contactCard {
        margin-top: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .search-section {
        margin-top: -30px;
        transform: translateY(-30%);
    }
    
    .search-section .form-control,
    .search-section .form-select,
    .search-section .btn {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .search-section {
        padding: 1.5rem;
        margin-top: -20px;
        transform: translateY(-20%);
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .property-card .card-body {
        padding: 1.25rem;
    }
    
    .stat-item .number {
        font-size: 2.2rem;
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    

    
    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .search-section {
        transform: translateY(-10%);
    }
    
    .section-heading h2 {
        font-size: 1.75rem;
    }
    
    .stat-item .number {
        font-size: 1.8rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .search-section,
    .btn {
        display: none;
    }
}

/* ===================================
   Floating WhatsApp and Phone Icons
   =================================== */
.floating-icon {
    position: fixed; /* Always visible during scroll */
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1020; /* Always on top */
    text-decoration: none;
    cursor: pointer;
    animation: pulse 2s infinite;
    will-change: transform; /* Performance optimization */
}

.floating-icon:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    animation: none;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

/* WhatsApp Icon */
.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-icon:hover {
    background: linear-gradient(135deg, #1fbd5a, #0d7a68);
}

/* Phone Icon */
.phone-icon {
    background: linear-gradient(135deg, #4285F4, #0d6efd);
}

.phone-icon:hover {
    background: linear-gradient(135deg, #3367d6, #0a58ca);
}

/* Position Classes - Fixed to viewport */
.floating-left {
    left: 25px;
    bottom: 100px;
}

.floating-right {
    right: 25px;
    bottom: 100px;
}

/* WhatsApp and Phone icons - always same height, one on each side */
.whatsapp-icon,
.phone-icon {
    bottom: 100px !important;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .floating-icon {
        width: 75px;
        height: 75px;
        font-size: 38px;
    }
    
    .floating-left {
        left: 22px;
        bottom: 90px;
    }
    
    .floating-right {
        right: 22px;
        bottom: 90px;
    }
    
    .whatsapp-icon,
    .phone-icon {
        bottom: 90px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }
    
    .floating-left {
        left: 18px;
        bottom: 80px;
    }
    
    .floating-right {
        right: 18px;
        bottom: 80px;
    }
    
    .whatsapp-icon,
    .phone-icon {
        bottom: 80px !important;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .floating-icon {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
    
    .floating-left {
        left: 15px;
        bottom: 70px;
    }
    
    .floating-right {
        right: 15px;
        bottom: 70px;
    }
    
    .whatsapp-icon,
    .phone-icon {
        bottom: 70px !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .floating-left {
        left: 12px;
        bottom: 60px;
    }
    
    .floating-right {
        right: 12px;
        bottom: 60px;
    }
    
    .whatsapp-icon,
    .phone-icon {
        bottom: 60px !important;
    }
}

/* Split Button Dropdown */
.btn-group .dropdown-toggle-split {
    padding: 0.375rem 0.5rem;
}

/* Custom Sections */
.custom-section {
    margin-bottom: 2rem;
}

.custom-section .text-content h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.custom-section .text-content h5 {
    font-weight: 500;
}

/* Add text wrapping and overflow handling for custom section content */
.custom-section .content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    line-height: 1.6;
}

.custom-section .content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    margin-bottom: 1rem;
}

/* Handle long words and URLs */
.custom-section .content a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.custom-section .content code,
.custom-section .content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Text alignment specific styles to prevent overflow */
.custom-section .text-content.text-left {
    text-align: left;
}

.custom-section .text-content.text-center {
    text-align: center;
}

.custom-section .text-content.text-right {
    text-align: right;
}

/* Ensure proper container sizing */
.custom-section .container {
    max-width: 100%;
}

.custom-section .row {
    margin-left: 0;
    margin-right: 0;
}

.custom-section .col-lg-8 {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.custom-section.image-left .content,
.custom-section.image-right .content,
.custom-section.image-center .content {
    margin-top: 1rem;
}

.custom-section.cards .card {
    transition: all 0.3s ease;
    height: 100%;
}

.custom-section.cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.custom-section.cards .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Logo Styles */
.logo-img {
    height: 50px;
    width: 180px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.footer-logo {
    height: 40px;
    width: 150px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Navbar Brand Logo Styles */
.navbar-brand .logo-img {
    height: 50px;
    width: 180px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Responsive adjustments for logos */
@media (max-width: 768px) {
    .logo-img,
    .navbar-brand .logo-img {
        height: 40px;
        width: 150px;
    }
    
    .footer-logo {
        height: 30px;
        width: 120px;
    }
}

@media (max-width: 576px) {
    .logo-img,
    .navbar-brand .logo-img {
        height: 35px;
        width: 130px;
    }
    
    .footer-logo {
        height: 25px;
        width: 100px;
    }
}

/* Responsive adjustments for custom sections */
@media (max-width: 992px) {
    .custom-section.image-left .content,
    .custom-section.image-right .content {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .custom-section {
        padding: 2rem 0;
    }
    
    .custom-section .text-content h2 {
        font-size: 1.8rem;
    }
    
    .custom-section.cards .card-img-top {
        height: 150px;
    }
    
    /* Ensure proper text wrapping on mobile */
    .custom-section .content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 576px) {
    .custom-section .text-content h2 {
        font-size: 1.5rem;
    }
    
    .custom-section.cards .card-img-top {
        height: 120px;
    }
    
    /* Additional text wrapping for small screens */
    .custom-section .content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .custom-section .text-content {
        padding: 0 15px;
    }
}

/* References Section */
.references-section {
    background-color: #f8f9fa;
}

.reference-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.reference-card img {
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.reference-card .video-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    cursor: pointer;
}

.reference-card .video-container video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.no-image-placeholder, .no-video-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

/* Media Toggle Buttons */
.media-section {
    position: relative;
}

.toggle-media.active {
    background-color: var(--primary-color);
    color: white;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}
