/* Custom Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

/* Global Image Reset */
img {
    max-width: 100%;
    height: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.property-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.property-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.property-features span {
    font-size: 0.9rem;
    color: #666;
}

.search-section {
    position: relative;
    z-index: 1000;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff !important;
}

.hero-image-placeholder,
.property-image-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.agent-card {
    transition: transform 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-3px);
}

.agent-avatar {
    color: #6c757d;
}

/* Admin Styles */
.sidebar {
    min-height: 100vh;
    background-color: #343a40;
}

.sidebar .nav-link {
    color: #fff;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: #495057;
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }

    .property-features {
        justify-content: center;
    }

    .sidebar {
        min-height: auto;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

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

.breadcrumb-item a {
    text-decoration: none;
}

/* Badge customization */
.badge {
    font-weight: normal;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Form styling */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
}

/* Footer styling */

/* Frontend Updates for New Features */
.area-conversion {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 5px;
    display: inline-block;
}

.property-features span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px;
    display: inline-block;
}

.feature-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    display: inline-block;
    font-size: 0.9rem;
}

.compare-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.property-card {
    position: relative;
}

.contact-widget {
    position: sticky;
    top: 20px;
}

/* Advanced Search Styles */
.advanced-filters {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

/* Image Gallery Improvements */
.property-gallery {
    position: relative;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-nav-btn:hover {
    opacity: 1;
}

.gallery-nav-btn.prev {
    left: 15px;
}

.gallery-nav-btn.next {
    right: 15px;
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .social-links {
        display: none !important;
    }

    .property-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filter-section {
        padding: 15px;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .property-details-grid {
        grid-template-columns: 1fr;
    }

    .property-features span {
        font-size: 0.75rem;
    }
}

/* Animation for new elements */
.property-card:hover .compare-btn {
    opacity: 1;
}

.compare-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Badge styles for new statuses */
.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Social sharing buttons */
.social-links .btn {
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* =========================================
   NEW MODERN STYLES (Homepage Upgrade)
   ========================================= */

/* Glassmorphism Search Card */
.glass-search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: -50px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .glass-search-card {
        margin-top: 20px;
        padding: 20px;
    }

    .hero-section {
        min-height: auto !important;
        padding: 60px 0 40px;
    }
}

.search-icon-input {
    position: relative;
}

.search-icon-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
}

.search-icon-input .form-select,
.search-icon-input .form-control {
    padding-left: 40px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Modern Property Card */
.property-card-modern {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

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

.property-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card-modern:hover .property-img-wrapper img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: #28a745;
    color: white;
}

.badge-rent {
    background: #007bff;
    color: white;
}

.property-price {
    color: #667eea;
    font-size: 1.25rem;
    font-weight: 700;
}

.property-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

.property-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Featured Locations */
.location-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 2;
}

.location-card:hover img {
    transform: scale(1.1);
}

/* Why Choose Us */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* CTA Section */


/* =========================================
   NEW MODERN STYLES (Homepage Upgrade)
   ========================================= */

/* Glassmorphism Search Card */
.glass-search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: -50px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .glass-search-card {
        margin-top: 20px;
        padding: 20px;
    }

    .hero-section {
        min-height: auto !important;
        padding: 60px 0 40px;
    }
}

.search-icon-input {
    position: relative;
}

.search-icon-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
}

.search-icon-input .form-select,
.search-icon-input .form-control {
    padding-left: 40px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Modern Property Card */
.property-card-modern {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

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

.property-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card-modern:hover .property-img-wrapper img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: #28a745;
    color: white;
}

.badge-rent {
    background: #007bff;
    color: white;
}

.property-price {
    color: #667eea;
    font-size: 1.25rem;
    font-weight: 700;
}

.property-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

.property-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Featured Locations */
.location-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 2;
}

.location-card:hover img {
    transform: scale(1.1);
}

/* Why Choose Us */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 20px;
    margin: 50px 0;
}

/* =========================================
   NEW ANIMATIONS & SECTIONS
   ========================================= */

/* Floating Shapes in Hero */
.hero-shapes .shape {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
    animation: float 15s infinite linear;
}

.hero-shapes .shape-1 {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    animation-duration: 25s;
}

.hero-shapes .shape-2 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: white;
    transform: rotate(45deg);
    animation-duration: 30s;
}

.hero-shapes .shape-3 {
    top: 40%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 5px solid white;
    border-radius: 50%;
    animation-duration: 20s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 40px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Stats Counter Section */
.stats-section {
    background: #fff;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 15px;
    text-align: center;
    position: relative;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid #667eea;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #777;
}

/* Why Choose Us Hover */
.feature-box {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-box:hover {
    border-color: #667eea;
    transform: translateY(-10px);
}