/*
Theme Name: Real Estate Business Website
Version: 1.0
Author: Trần Quang Minh
Description: Theme FSE được phát triển từ N8nso.xyz
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Đăng ký doanh nghiệp
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Lazy Loading Image Styles for Performance Optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: #f0f0f0;
}

.lazy-loaded {
    opacity: 1;
}

.property-image img.lazy-load {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200' viewBox='0 0 300 200'%3E%3Crect width='300' height='200' fill='%23f0f0f0'%3E%3C/rect%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23999' font-family='Arial, sans-serif' font-size='14'%3EĐang tải...%3C/text%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.property-image img.lazy-loaded {
    background-image: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: #fff;
    position: relative;
    height: auto; /* Auto height to accommodate top-bar */
}

.header .container {
    background: #fff;
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
	margin-top:5px;
	margin-bottom:5px;
	border-radius: 5px;
	color: #1976d2;
}

.contact-info span {
    margin-right: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
	margin-top: 25px;
}

.contact-info i {
    margin-right: 6px;
    color: #1976d2;
    font-size: 0.9rem;
	margin-top: 25px;
}

.social-links a {
    color: #333;
    margin-left: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 4px;
    border-radius: 3px;
}

.social-links a:hover {
    color: #1976d2;
    background: rgba(25,118,210,0.1);
    transform: translateY(-1px);
}

.main-header {
    padding: 0;
    background: #fff;
    width: 100%;
    height: 70px; /* Fixed height for menubar */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop Navigation - Show by default */
.desktop-nav {
    display: block;
}

/* Mobile Menu Toggle - Hide by default */
.mobile-menu-toggle {
    display: none;
}
/* Removed compact mode - header stays the same size */
.logo {
    display: flex;
    align-items: center;
    max-width: 450px;
    overflow: hidden;
}

.logo img.custom-logo {
    width: auto;     
    height: auto;     
    max-width: 168px;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease-out;
}
/* Removed compact logo styles */
.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
/* Removed compact h1 styles */

.logo h1 a {
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation .nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}
/* Removed compact navigation styles */

.main-navigation .nav-menu a:hover {
    color: #3498db;
}

.main-navigation .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.main-navigation .nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-property-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}
/* Removed compact button styles */

.post-property-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Banner Search Section */
.banner-search {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9)), url('assets/images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

/* Ensure desktop search form works properly */
@media (min-width: 769px) {
    .search-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr 1fr 200px !important;
        gap: 20px !important;
        align-items: end !important;
        justify-items: stretch !important;
    }
    
    .search-field {
        display: block !important;
    }
    
    .search-field select,
    .search-field input {
        width: 100% !important;
        padding: 12px 15px !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
    }
    
    .search-field:last-child {
        justify-self: center !important;
        width: 200px !important;
    }
    
    .search-btn {
        width: 100% !important;
        padding: 12px 20px !important;
        background: #e53935 !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: background 0.3s ease !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .search-btn:hover {
        background: #d32f2f !important;
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.banner-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin: 0px auto;
	margin-bottom: 30px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: #3498db;
}

.search-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.search-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.search-btn i {
    margin-right: 8px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Property Categories */
.property-categories {
	margin-top: 20px;
    margin-bottom: 40px;
}

.property-categories h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Property Listings */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.property-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.property-type {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.btn-wishlist,
.btn-share {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover,
.btn-share:hover {
    background: #e74c3c;
    color: white;
}

.property-content {
    padding: 25px;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

.price-unit {
    font-size: 0.9rem;
    color: #666;
}

.property-title {
    margin-bottom: 15px;
}

.property-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #3498db;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #666;
}

.property-location i {
    color: #e74c3c;
}

.property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.detail-item i {
    color: #3498db;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #999;
}

.property-meta i {
    margin-right: 5px;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.agent-info span {
    font-size: 0.9rem;
    color: #666;
}

.contact-btns {
    display: flex;
    gap: 10px;
}

.btn-call,
.btn-message {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-call {
    background: #27ae60;
    color: white;
}

.btn-message {
    background: #3498db;
    color: white;
}

.btn-call:hover,
.btn-message:hover {
    transform: scale(1.1);
}

.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-properties i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.quick-search-form {
    display: flex;
    gap: 10px;
}

.quick-search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.quick-search-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quick-search-form button:hover {
    background: #2980b9;
}

.property-categories-list,
.location-list,
.area-list {
    list-style: none;
}

.property-categories-list li,
.location-list li,
.area-list li {
    margin-bottom: 10px;
}

.property-categories-list a,
.location-list a,
.area-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.property-categories-list a:hover,
.location-list a:hover,
.area-list a:hover {
    background: #f8f9fa;
    color: #3498db;
}

.property-categories-list span,
.location-list span,
.area-list span {
    color: #999;
    font-size: 0.9rem;
}

.price-range-filter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-from,
.price-to {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.price-separator {
    color: #666;
    font-weight: bold;
}

.btn-filter-price {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-filter-price:hover {
    background: #c0392b;
}

.featured-properties {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.featured-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.featured-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    flex: 1;
}

.featured-content h4 {
    margin-bottom: 8px;
}

.featured-content h4 a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.featured-content h4 a:hover {
    color: #3498db;
}

.featured-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.featured-location {
    color: #666;
    font-size: 0.8rem;
}

.featured-location i {
    color: #e74c3c;
    margin-right: 5px;
}

.contact-cta {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.contact-cta h3 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.contact-cta p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-item i {
    color: #fff;
}

.btn-contact {
    background: #e74c3c;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-contact:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
    background: white;
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.experience-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #3498db;
    color: white;
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin-bottom: 10px;
}

.stat-item:hover .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.stat-item:hover .stat-label {
    color: white;
}

.experience-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e8f4f8;
    transform: translateX(10px);
}

.feature-item i {
    font-size: 2rem;
    color: #3498db;
    margin-top: 5px;
}

.feature-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.experience-image {
    text-align: center;
}

.experience-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #3498db;
    opacity: 0.3;
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-text p {
    color: #666;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
}

.testimonial-rating i {
    color: #ddd;
    font-size: 1.1rem;
}

.testimonial-rating i.active {
    color: #f39c12;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer Updates */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 8px 0;
    color: #bdc3c7;
    border-bottom: 1px solid #34495e;
    transition: color 0.3s ease;
}

.footer-section ul li:hover {
    color: #3498db;
}

.footer-section ul li:last-child {
    border-bottom: none;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* Mobile Advertisement Styles - Only visible on mobile */
.mobile-ads-section {
    display: block; /* Shown on desktop */
    padding: 15px 0;
    background: #f5f5f5;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.mobile-ads-banner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-ads-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-ads-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mobile-ads-item img {
    width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.mobile-ads-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mobile-ads-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.9rem;
}

.mobile-ads-text p {
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile ads placeholder styles */
.mobile-ads-placeholder {
    background: #ffffff;
    border: 2px dashed #ddd;
}

.mobile-ads-placeholder-content {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.mobile-ads-placeholder-content i {
    font-size: 2rem;
    color: #bbb;
    margin-bottom: 10px;
    display: block;
}

.mobile-ads-placeholder-content p {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #555;
}

.mobile-ads-placeholder-content span {
    font-size: 0.8rem;
    color: #999;
}

/* Mobile Menu Styles - Dantri Style - Hidden on Desktop */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none; /* Hide on desktop */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: none; /* Hide on desktop */
}

.mobile-menu-sidebar.active {
    left: 0;
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.mobile-logo h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.mobile-logo img {
    max-height: 35px;
    max-width: 150px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.mobile-navigation {
    padding: 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-menu li a:hover {
    background: #f8f9fa;
    color: #1976d2;
    padding-left: 30px;
}

.mobile-menu-footer {
    padding: 20px;
    background: #f8f9fa;
    margin-top: auto;
}

.mobile-contact-info {
    margin-bottom: 20px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.mobile-contact-item i {
    color: #1976d2;
    width: 20px;
    margin-right: 10px;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #1976d2;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-links a:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.mobile-post-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #e53935;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-post-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

/* Desktop Specific Styles */
@media (min-width: 769px) {
    /* Ensure mobile menu is completely hidden on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu-sidebar {
        display: none !important;
    }
    
    /* Show desktop navigation */
    .desktop-nav {
        display: block !important;
    }
    
    /* Fix experience section alignment */
    .experience-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 60px !important;
        align-items: center !important;
    }
    
    .experience-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    /* Fix testimonials section alignment */
    .testimonials-slider {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 30px !important;
    }
    
    /* Ensure proper container alignment */
    .container {
        padding: 0 20px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    /* Show "Đăng tin" button on desktop */
    .post-property-btn {
        display: inline-block !important;
        background: #e74c3c !important;
        color: white !important;
        padding: 12px 20px !important;
        border-radius: 25px !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        font-size: 1rem !important;
    }
    
    .post-property-btn:hover {
        background: #c0392b !important;
        transform: translateY(-2px) !important;
    }
    
    /* Always show search bar on desktop */
    .banner-search {
        display: block !important;
    }
    
    /* Fix search form desktop layout */
    .search-form-container {
        background: white !important;
        padding: 30px !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
    }
    
    .property-search-form .search-row {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px !important;
        align-items: end !important;
    }
    
    .search-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px 20px !important;
        margin: 0 auto !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        display: none; /* Hide top-bar on mobile */
    }
    
    .header {
        height: auto;
    }
    
    .main-header {
        height: 60px;
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .main-header .container {
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        order: 1;
    }
    
    /* Show mobile advertisement section on mobile */
    .mobile-ads-section {
        display: block !important;
    }
    
    /* Hide search bar on mobile for non-home pages */
    .single .banner-search,
    .archive .banner-search,
    .category .banner-search,
    .page .banner-search,
    .error404 .banner-search {
        display: none !important;
    }
    
    /* Keep search bar visible on home and search pages */
    .home .banner-search,
    .search .banner-search {
        display: block !important;
    }
    
    /* Show mobile menu elements */
    .mobile-menu-overlay {
        display: none; /* Still hidden by default, shown when active */
    }
    
    .mobile-menu-sidebar {
        display: none; /* Still hidden by default, shown when active */
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .mobile-menu-sidebar.active {
        display: block;
    }
    
    /* Hide desktop navigation */
    .desktop-nav {
        display: none;
    }
    
    /* Logo positioning */
    .logo {
        order: 2;
        flex: 1;
        text-align: left;
        margin-left: 15px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo img.custom-logo {
        max-width: 120px;
        max-height: 35px;
    }
    
    /* Header actions */
    .header-actions {
        order: 3;
        flex-shrink: 0;
    }
    
    .post-property-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Recent Posts Styling */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: #e8f4f8;
}

.recent-post-content h5 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.recent-post-content h5 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
    color: #3498db;
}

.recent-post-meta {
    color: #666;
    font-size: 0.8rem;
}

/* Featured Properties Styling */
.featured-properties {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.featured-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.featured-image {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    flex: 1;
}

.featured-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.featured-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h4 a:hover {
    color: #3498db;
}

.featured-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.featured-location {
    color: #666;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-location i {
    color: #3498db;
}

/* Continue mobile media query from above - Fix syntax error */
@media (max-width: 768px) {
    .header-actions {
        display: flex;
        align-items: center;
    }
    
    .post-property-btn {
        display: none;
    }
    
    .logo {
        flex: 0 1 auto;
        max-width: calc(100vw - 80px);
        min-width: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .logo img.custom-logo {
        max-width: 100px;
        max-height: 40px;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .logo h1 {
        font-size: 1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }
    
    .logo h1 a {
        text-decoration: none;
        color: inherit;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header-actions {
        flex-shrink: 0;
        width: 50px;
        justify-content: flex-end;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        position: static;
        margin-top: 20px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-tabs {
        flex-direction: column;
    }
    
    .experience-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .experience-stats {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 20px 0;
    }

    .sidebar-widget {
        margin-bottom: 20px;
    }
}

/* End mobile-specific CSS from above */

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; } 

/* Dantri-style Menu */
.header-container {
    background-color: #fff;
}

.logo-area {
    text-align: center;
    padding: 20px 0;
}

.main-navigation-wrapper {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-navigation .nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.main-navigation .nav-menu li {
    flex-shrink: 0; /* Prevent items from shrinking */
}

.main-navigation .nav-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    white-space: nowrap; /* Prevent line breaks */
}

.banner-search {
    background-color: #fff;
} 