/* style.css - Sanbada Real Estate Frontend Styles */

:root {
    --primary-gradient: linear-gradient(182deg, rgba(27, 195, 221, 1) 0%, rgba(22, 161, 231, 1) 100%);
    --primary-color: #1bc3dd;
    --secondary-color: #16a1e7;
    --success-color: #2ed573;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --info-color: #03A9F4;
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #747d8c;
    --border-color: #e3e6f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
}
#languageDropdown {
    border-color: #dee2e6;
    background: #ffffff;
    min-width: 140px;
    color: #000;
}

@media (min-width: 1400px) {
    nav .container{
        width: 90% !important;
        max-width: 90% !important;
    }
}



/* Language-specific fonts */
body {
    font-family: 'Noto Sans Thai', 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}
.btn-outline-primary {
    border-radius: 30px;
    font-size: 14px;
    padding: 8px 20px;
    color: #18aae5;
    border: 1px solid #18aae5;
}

body[lang="en"] {
    font-family: 'Poppins', sans-serif;
}

body[lang="cn"] {
    font-family: 'Noto Sans SC', sans-serif;
}

body[lang="ru"] {
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999999999;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
	font-size:14px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 195, 221, 0.3);
    color: white;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--primary-color);
}

/* Language Dropdown */
#languageDropdown {
    border-color: #dee2e6;
    background: white;
    min-width: 140px;
}

#languageDropdown:hover {
    border-color: var(--primary-color);
}

.dropdown-menu {
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
}

/* Search Box */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.search-tabs {
    border-bottom: 2px solid #e3e6f0;
    margin-bottom: 2rem;
}

.search-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.search-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
    border-bottom-color: var(--primary-color);
}

.search-form .form-select,
.search-form .form-control {
    border: 1px solid #e3e6f0;
    padding: 0.75rem 1rem;
    font-size: 15px;
    border-radius: 30px;
}

.search-form .btn-search {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
}

.search-form .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 195, 221, 0.3);
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* Area Cards */
.area-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.area-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.area-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.area-card p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

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

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

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

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

.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.property-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.property-details {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    font-size: 14px;
    color: var(--text-muted);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Banner Section */
.banner-section {
    padding: 4rem 0;
    background: white;
}

.banner-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.banner-image img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.banner-image:hover img {
    transform: scale(1.02);
}

/* Video Section */
.video-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.video-views {
    font-size: 14px;
    color: var(--text-muted);
}

/* Testimonial Section */
.testimonial-section {
    padding: 4rem 0;
    background: white;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
}

.testimonial-stars {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-author-info small {
    color: var(--text-muted);
}

/* Agent Section */
.agent-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.agent-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.agent-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
}

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

.agent-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.agent-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.agent-contact {
    font-size: 14px;
    color: var(--text-muted);
}

.agent-contact i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
}

.footer h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .search-box {
        padding: 1.5rem;
        margin-top: -60px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .property-types {
        padding: 2rem 0;
    }
    
    .property-type-item {
        padding: 1rem;
    }
    
    .property-features {
        font-size: 12px;
        gap: 0.5rem;
    }
    
    .property-features i {
        font-size: 14px;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .language-switcher {
        margin-top: 1rem;
    }
}










/* Property Types Section - Pill Style */
.property-types {
    padding: 40px 0;
}



.property-types .row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    justify-content: center;
}

/* Property Type Item - Pill Style */
.property-type-item {
    background: white;
    border-radius: 30px !important;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 10px 0px #00000005;
    border: 0;
}

.property-type-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

/* Icon Container */
.property-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon colors matching the image */
.property-types .col-lg-3:nth-child(1) .property-type-icon {
    background: #E3F2FD;
    color: #1976D2;
}

.property-types .col-lg-3:nth-child(2) .property-type-icon {
    background: #E8F5E9;
    color: #388E3C;
}

.property-types .col-lg-3:nth-child(3) .property-type-icon {
    background: #FFF3E0;
    color: #F57C00;
}

.property-types .col-lg-3:nth-child(4) .property-type-icon {
    background: #F3E5F5;
    color: #7B1FA2;
}

.property-types .col-lg-3:nth-child(5) .property-type-icon {
    background: #FCE4EC;
    color: #C2185B;
}

.property-types .col-lg-3:nth-child(6) .property-type-icon {
    background: #E8F5E9;
    color: #388E3C;
}

.property-types .col-lg-3:nth-child(7) .property-type-icon {
    background: #E0F2F1;
    color: #00796B;
}

.property-types .col-lg-3:nth-child(8) .property-type-icon {
    background: #E8EAF6;
    color: #303F9F;
}

.property-type-icon i {
    font-size: 20px;
}

/* Property Name */
.property-type-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin: 0;
}

/* Remove Bootstrap column styling */
.property-types .col {
    width: auto;
    flex: none;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .property-types .row {
        gap: 8px;
    }

    .property-type-item {
        padding: 12px 16px;
    }

    .property-type-icon {
        width: 36px;
        height: 36px;
    }

    .property-type-icon i {
        font-size: 18px;
    }

    .property-type-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .property-types .row {
        flex-direction: column;
    }

    .property-type-item {
        width: 100%;
        justify-content: flex-start;
    }
}














/* Testimonial Carousel Styles */
.testimonial-carousel-container {
    position: relative;
    padding: 0 0px;
}

.testimonial-carousel {
    overflow: hidden;
}

.testimonial-carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab;
}

.testimonial-carousel-wrapper:active {
    cursor: grabbing;
}


@media (min-width: 768px) {
	.testimonial-carousel-wrapper {
		flex-wrap: wrap;
		justify-content: center; /*  space-evenly */
	}
}

.testimonial-carousel-item {
    flex: 0 0 25%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .testimonial-carousel-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .testimonial-carousel-item {
        flex: 0 0 100%;
    }
}
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: -52px;
}

.testimonial-carousel-container .carousel-nav.next {
    right: -35px;
}

.testimonial-carousel-container .carousel-nav.prev {
    left: -35px;
}

/* Testimonial Preview Card Styles */
.testimonial-preview-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.preview-customer {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.preview-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.preview-avatar i {
    color: #dee2e6;
    font-size: 20px;
}

.preview-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.preview-info small {
    color: #666;
    font-size: 13px;
}

.preview-rating {
    margin-bottom: 15px;
}

.preview-rating i {
    color: #ffc107;
    font-size: 14px;
    margin-right: 2px;
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.preview-comment {
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-date i {
    font-size: 11px;
}

/* Featured and Verified Badges for Testimonials */
.testimonial-preview-card .featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.testimonial-preview-card .featured-badge i {
    font-size: 9px;
}

.verified-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28a745;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.verified-badge i {
    font-size: 12px;
}

/* Testimonial Section Background */
.testimonial-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-preview-card {
        padding: 20px;
    }
    
    .preview-customer {
        margin-bottom: 12px;
    }
    
    .preview-avatar {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .preview-info h5 {
        font-size: 15px;
    }
    
    .preview-title {
        font-size: 15px;
    }
    
    .preview-comment {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 576px) {
    .testimonial-section {
        padding: 60px 0;
    }
    
    .testimonial-preview-card {
        padding: 18px;
    }
    
    .preview-avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .preview-info h5 {
        font-size: 14px;
    }
    
    .preview-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .preview-comment {
        font-size: 12px;
        margin-bottom: 12px;
    }
}


#languageDropdown {
    border-color: #dee2e6;
    background: white;
    min-width: 140px;
    height: 40px;
    border-radius: 30px;
}
.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 16px !important;
    transition: color 0.3s;
}
/* === Unit Vertical Tabs Layout === */
.unit-layout{
    display:grid;
    grid-template-columns: 320px 1fr;
    gap:24px;
    align-items:start;
}
.unit-nav{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.unit-tab{
    background:#fff;
    border:1px solid var(--border-color);
    border-radius:16px;
    padding:18px 20px;
    text-align:left;
    cursor:pointer;
    box-shadow:var(--shadow);
    transition:all .2s ease;
}
.unit-tab:hover{ transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.unit-tab.active{
    background:#1c1c1c;
    color:#fff;
    border-color:#1c1c1c;
}
.unit-tab-title{ font-weight:700; margin:0 0 6px; }
.unit-tab-meta{ color: var(--text-muted); font-size:13px; }
.unit-tab.active .unit-tab-meta{ color: rgba(255,255,255,.8); }

@media (max-width: 992px){
    .unit-layout{ grid-template-columns: 1fr; }
    .unit-nav{ flex-direction:row; overflow:auto; gap:8px; }
    .unit-tab{ white-space:nowrap; min-width:220px; }
}



/* ==== Project Detail Polishing ==== */
.project-summary { padding: 20px 0 0; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.stat-chip {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-chip .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.stat-chip .value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Facilities polish */
.facilities-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:24px;
}
.facility-category{
  background:#fff;
  border:1px solid var(--border-color);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
}
.facility-category-header{
  display:flex; align-items:center; gap:12px; margin-bottom:12px;
}
.facility-category-icon{
  width:36px;height:36px;border-radius:10px; background:#f5f7fb; display:flex; align-items:center; justify-content:center;
}
.facility-list{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px 16px; }
.facility-item{ background:#fafbff; border:1px dashed #e6ebf5; border-radius:10px; padding:10px 12px; }
.facility-item i{ color: var(--secondary-color); }
.facility-item .facility-name{ font-weight:600; }

/* Unit vertical tabs polish */
.unit-layout{ grid-template-columns: 300px 1fr; gap: 18px; }
.unit-nav{ position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow:auto; padding-right: 6px; }
.unit-tab{ display:flex; flex-direction:column; gap:6px; }
.unit-tab .unit-tab-title{ font-size:15px; }
.unit-tab .unit-tab-meta{ display:flex; gap:10px; flex-wrap:wrap; }

.unit-spec-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; }
.unit-spec{ background:#fff; border:1px solid var(--border-color); border-radius:12px; padding:12px; }

/* Responsive */
@media (max-width: 1200px){
  .summary-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .facility-list{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .summary-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facilities-grid{ grid-template-columns: 1fr; }
  .unit-spec-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px){
  .summary-grid{ grid-template-columns: 1fr; }
}



/* ===== Mosaic Gallery ===== */
.gallery-main{
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
  padding: 0; /* ensure container doesn't add height */
}
.gallery-grid.mosaic{
  --gheight: clamp(300px, 48vh, 520px);
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:12px;
  padding: 14px;
  align-items: stretch;
}
.gallery-left{
  position:relative;
  height: var(--gheight);
  border-radius:14px;
  overflow:hidden;
}
.gallery-left img{ width:100%; height:100%; object-fit:cover; display:block; }

.gallery-expand-btn{
  position:absolute; top:14px; right:14px;
  border:0; background:rgba(255,255,255,.92);
  padding:10px 12px; border-radius:12px;
  display:flex; align-items:center; gap:8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor:pointer;
}

.gallery-right{
  display:grid;
  grid-template-rows: 1fr 1fr;
  gap:12px;
  height: var(--gheight);
}
.gallery-right .right-top,
.gallery-right .right-bottom a{
  display:block; border-radius:14px; overflow:hidden; position:relative; height:100%;
}
.gallery-right .right-top img{ width:100%; height:100%; object-fit:cover; display:block; }

.right-bottom{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.right-bottom a img{ width:100%; height:100%; object-fit:cover; display:block; }

.more-photos .more-label{
  position:absolute; right:10px; bottom:10px;
  background:rgba(0,0,0,.55); color:#fff; padding:6px 10px;
  border-radius:10px; font-weight:600;
}

/* Mobile */
@media (max-width: 768px){
  .gallery-grid.mosaic{ grid-template-columns: 1fr; --gheight: clamp(220px, 40vh, 420px); }
  .gallery-right{ height:auto; grid-template-rows: auto; }
  .right-top{ height: var(--gheight); }
  .right-bottom a{ aspect-ratio: 1/1; }
}


.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: left;
}

@media (max-width: 768px) {
    .col-md-6 {
        width: 50%;
        padding: 0 5px;
    }
	.property-image {
		position: relative;
		height: 120px;
		overflow: hidden;
	}
	.property-details {
		padding: 15px;
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	.property-price {
        font-size: 18px !important;
    }
    .property-info-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
	.video-views {
		font-size: 13px;
		color: var(--text-muted);
	}
    .footer {
        padding: 40px !important;
    }
	.footer-links-inline a {
		color: #888;
		font-size: 13px !important;
		text-decoration: none;
		transition: color 0.3s ease;
	}
	.footer-bottom p {
		color: #888;
		margin: 0;
		text-align: center !important;
	}
	.footer h5 {
		font-size: 15px !important;
		font-weight: 500;
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 991px) {
    .navbar-toggler {
        border: 0 !important;
        padding: 4px 12px;
        border-radius: 8px;
    }
}




/* Sold Property Overlay */
.property-card.sold {
    position: relative;
}

.property-card.sold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 12px;
}

.property-card.sold .sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    color: #e74c3c;
    font-size: 30px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.property-card.sold .property-image img,
.property-card.sold .property-details {
    opacity: 0.6;
}

/* For mobile */
@media (max-width: 768px) {
    .property-card.sold .sold-overlay {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .property-card.sold .sold-overlay {
        font-size: 28px;
    }
	.price-range-inputs {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 0;
		flex-direction: column;
	}
	.filter-menu {
        border-radius: 16px;
        width: 100%;
        min-width: 310px;
    }
	.filter-r {
		left: -83% !important;
		width:auto !important;
	}
}

