/* Sử dụng cùng cấu trúc container như các trang khác */
.realestate-modern-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Responsive theo Bootstrap */
@media (min-width: 768px) {
    .realestate-modern-container {
        padding: 0 15px;
    }
}

@media (min-width: 992px) {
    .realestate-modern-container {
        padding: 0 15px;
    }
}

@media (min-width: 1200px) {
    .realestate-modern-container {
        padding: 0 15px;
    }
}

/* Filter bar */
.realestate-modern-filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 24px 0 32px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.realestate-modern-filter-bar select,
.realestate-modern-filter-bar input {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    min-width: 140px;
    font-size: 14px;
}

.realestate-modern-filter-bar .search-btn {
    background: #d32f2f;
    color: #fff;
    border-radius: 50%;
    width: 44px; 
    height: 44px;
    border: none;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.realestate-modern-filter-bar .search-btn:hover {
    background: #b71c1c;
}

.realestate-modern-filter-bar button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.realestate-modern-filter-bar button:hover {
    background: #e0e0e0;
}

/* Listing count */
.realestate-modern-listing-count {
    font-size: 16px;
    margin: 0 0 32px 0;
    color: #333;
}

.realestate-modern-listing-count b {
    color: #d32f2f;
    font-weight: 700;
}

/* Grid layout - Updated to maintain fixed card size */
.realestate-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 320px));
    gap: 24px;
    margin-bottom: 40px;
    justify-content: center;
}

/* Alternative: Using flexbox for better control */
.realestate-modern-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    justify-content: flex-start;
}

.realestate-modern-card {
    flex: 0 0 320px;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .realestate-modern-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 280px));
        gap: 16px;
    }
    
    .realestate-modern-card {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .realestate-modern-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .realestate-modern-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Property cards */
.realestate-modern-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.realestate-modern-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.realestate-modern-card .card-badge {
    position: absolute;
    top: 16px; 
    left: 16px;
    background: #d32f2f;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
}

.realestate-modern-card .card-badge.sold,
.realestate-modern-card .card-badge.rented {
    background: #666;
}

.realestate-modern-card .card-image {
    width: 100%; 
    height: 220px;
    object-fit: cover;
    display: block;
}

.realestate-modern-card .card-fav {
    position: absolute;
    top: 16px; 
    right: 16px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 36px; 
    height: 36px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #d32f2f;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.realestate-modern-card .card-fav:hover {
    background: #fff;
    transform: scale(1.1);
}

.realestate-modern-card .card-content {
    padding: 20px;
}

.realestate-modern-card .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realestate-modern-card .card-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realestate-modern-card .card-price {
    color: #d32f2f;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.realestate-modern-card .card-price-per-m2 {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.realestate-modern-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.realestate-modern-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.realestate-modern-card .card-meta i {
    color: #999;
    font-size: 12px;
}

/* Pagination */
.realestate-modern-pagination {
    margin: 40px 0;
    text-align: center;
}

.realestate-modern-pagination .pagination {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.realestate-modern-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.2s;
    font-weight: 500;
}

.realestate-modern-pagination .page-link:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.realestate-modern-pagination .page-link.active {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* Responsive */
@media (max-width: 767px) {
    .realestate-modern-container {
        padding: 0 15px;
    }
    
    .realestate-modern-filter-bar {
        padding: 16px;
        gap: 8px;
    }
    
    .realestate-modern-filter-bar select,
    .realestate-modern-filter-bar input {
        min-width: 120px;
        font-size: 13px;
    }
    
    .realestate-modern-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .realestate-modern-card .card-content {
        padding: 16px;
    }
} 

/* ===== DETAIL PAGE STYLES ===== */

/* Breadcrumb */
.realestate-breadcrumb {
    margin: 24px 0 16px 0;
    font-size: 14px;
    color: #666;
}

.realestate-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.realestate-breadcrumb a:hover {
    color: #d32f2f;
}

.realestate-breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* Detail Layout */
.realestate-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-top: 24px;
}

/* Main Content */
.realestate-detail-main {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Property Header */
.property-header {
    margin-bottom: 32px;
}

.property-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.property-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: #d32f2f;
    margin-left: 16px;
    white-space: nowrap;
}

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

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

.view-map-link {
    color: #d32f2f;
    text-decoration: none;
    margin-left: 8px;
}

.view-map-link:hover {
    text-decoration: underline;
}

.property-actions {
    display: flex;
    gap: 8px;
}

.share-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* Property Overview */
.property-overview {
    margin-bottom: 32px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.overview-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
}

.overview-label {
    color: #666;
    font-size: 14px;
}

.overview-value {
    color: #222;
    font-weight: 600;
    font-size: 14px;
}

/* Property Amenities */
.property-amenities {
    margin-bottom: 32px;
}

.amenities-carousel {
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.carousel-nav:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-nav.prev {
    left: 16px;
}

.carousel-nav.next {
    right: 16px;
}

.amenities-images {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 8px 0;
}

.amenity-image {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
}

.amenity-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.amenities-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

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

/* Sidebar */
.realestate-detail-sidebar {
    position: sticky;
    top: 24px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}

.contact-avatar {
    margin-bottom: 16px;
}

.contact-name {
    font-size: 18px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 4px;
}

.contact-role {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-phone-btn {
    display: block;
    background: #d32f2f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.contact-phone-btn:hover {
    background: #b71c1c;
    color: #fff;
    text-decoration: none;
}

.contact-zalo-btn {
    display: block;
    background: #fff;
    color: #333;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.contact-zalo-btn:hover {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
    .realestate-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .realestate-detail-sidebar {
        position: static;
    }
    
    .property-title-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .property-price {
        margin-left: 0;
    }
    
    .overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 767px) {
    .realestate-detail-main {
        padding: 16px;
    }
    
    .property-title {
        font-size: 20px;
    }
    
    .property-price {
        font-size: 18px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-images {
        flex-direction: column;
    }
    
    .amenity-image {
        flex: none;
    }
} 

/* ===== PROPERTY GALLERY ===== */
.property-gallery {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-main {
    position: relative;
    height: 400px;
    background: #f5f5f5;
}

.gallery-main .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-main:hover .gallery-overlay {
    opacity: 1;
}

.gallery-nav {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-nav:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-counter {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: white;
    overflow-x: auto;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #d32f2f;
}

.thumbnail:hover {
    border-color: #d32f2f;
    transform: scale(1.05);
}

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

/* Responsive */
@media (max-width: 768px) {
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumbnails {
        padding: 12px;
        gap: 6px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
} 

/* ===== REALESTATE GALLERY BANNER - FULL WIDTH ===== */
.realestate-gallery-slide {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.gallery-main-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
}

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

.gallery-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.gallery-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-nav {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-nav:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-counter {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    color: #333;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-thumbnails-overlay {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thumbnail-item {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.thumbnail-item.active {
    border-color: #d32f2f;
    opacity: 1;
}

.thumbnail-item:hover {
    border-color: #d32f2f;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .realestate-gallery-slide {
        height: 400px;
        background-image: none;
    }
    
    .gallery-overlay-content {
        padding: 20px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-counter {
        top: 20px;
        right: 20px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .gallery-thumbnails-overlay {
        gap: 8px;
        padding: 15px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .realestate-gallery-slide {
        height: 300px;
    }
    
    .gallery-thumbnails-overlay {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 38px;
    }
} 

/* Override page-slide background for realestate gallery */
.realestate-gallery-slide {
    background-image: none !important;
    background: transparent !important;
    min-height: auto;
}

.realestate-gallery-slide .inner {
    display: none;
}

/* Ensure gallery slide takes full height */
.realestate-gallery-slide {
    height: 500px;
    background: transparent;
}

@media (max-width: 768px) {
    .realestate-gallery-slide {
        height: 400px;
        background-image: none;
    }
}

@media (max-width: 480px) {
    .realestate-gallery-slide {
        height: 300px;
    }
}

/* Amenities Grid Layout */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .amenities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.amenities-section {
    display: flex;
    flex-direction: column;
}

.amenities-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.amenities-subtitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #d32f2f;
}

.amenities-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .amenities-list {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #d32f2f;
    transition: all 0.2s ease;
    cursor: pointer;
}

.amenity-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.amenity-item i {
    font-size: 16px;
    color: #d32f2f;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.amenity-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.amenity-item.available {
    border-left-color: #4caf50;
}

.amenity-item.available i {
    color: #4caf50;
}

.amenity-item.unavailable {
    opacity: 0.6;
    border-left-color: #ccc;
}

.amenity-item.unavailable i {
    color: #999;
}

.amenity-item.unavailable span {
    color: #666;
}

/* Responsive for amenities */
@media (max-width: 767px) {
    .amenities-grid {
        gap: 24px;
    }
    
    .amenities-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .amenity-item {
        padding: 10px 14px;
    }
    
    .amenity-item i {
        font-size: 14px;
    }
    
    .amenity-item span {
        font-size: 13px;
    }
}

/* Gallery Image Transition */
.gallery-main-image img {
    transition: opacity 0.3s ease-in-out;
}

/* Thumbnail hover and active states */
.thumbnail-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.thumbnail-item.active {
    border-color: #d32f2f;
    opacity: 1;
    transform: scale(1.05);
}

/* Gallery navigation buttons enhancement */
.gallery-nav {
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile touch feedback */
@media (max-width: 768px) {
    .gallery-main-slide {
        touch-action: pan-y pinch-zoom;
    }
} 

/* Hide gallery navigation controls and counter but keep space */
.gallery-nav-controls {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.gallery-counter {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
} 