/* Properties Page Styles - Giống Articles Page Design */

/* CSS Variables - giống hệt articles page */
:root {
    --primary-gold: #5e936c;
    --primary-gold-light: #5e936c;
    --primary-beige: #5e936c;
    --text-dark: #23262f;
    --text-gray: #64748b;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 20px rgba(139, 114, 71, 0.1);
    --shadow-hover: 0 8px 40px rgba(35, 38, 47, 0.15);
    --gradient-primary: linear-gradient(135deg, #5e936c 0%, #5e936c 100%);
}

/* Museo Moderno Font Configuration for Properties - giống articles */
.properties-page,
.properties-page *,
.properties-page h1,
.properties-page h2,
.properties-page h3,
.properties-page h4,
.properties-page h5,
.properties-page h6,
.properties-page p,
.properties-page span,
.properties-page div,
.properties-page a,
.properties-page button,
.properties-page input,
.properties-page label,
.properties-page select {
    font-family: "Museo Moderno", "Inter", "Segoe UI", Tahoma, Geneva, Verdana,
        sans-serif !important;
}

/* Override background mặc định - giống articles */
body {
    background: none !important;
    font-family: "Museo Moderno", "Inter", "Segoe UI", Tahoma, Geneva, Verdana,
        sans-serif;
    color: var(--text-dark);
}

.main-background {
    display: none !important;
}

/* Override body background cho trang properties */
body:has(.properties-page) {
    background: none !important;
}

/* ====== Simple Properties Page Background - Giống hệt Articles ====== */
.properties-page {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    overflow: hidden;
    padding: 120px 0 60px;
}

/* Pattern overlay giống Featured Areas - Cùng design với Articles */
.properties-page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 80px,
            rgba(139, 114, 71, 0.08) 80px,
            rgba(139, 114, 71, 0.08) 82px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 120px,
            rgba(255, 255, 255, 0.05) 120px,
            rgba(255, 255, 255, 0.05) 121px
        );
    z-index: -1;
    pointer-events: none;
}

/* ====== Container Settings - giống Articles ====== */
.properties-page .container {
    position: relative;
    z-index: 1;
}

/* ====== Property Card Styles ====== */
.property-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 114, 71, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.property-header {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
    gap: 1.5rem;
}

.property-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.property-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(139, 114, 71, 0.02) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 114, 71, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* Hiệu ứng đặc biệt cho property content - giống articles */
.property-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-image {
    width: 200px;
    min-width: 200px;
    height: 140px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    flex-shrink: 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.property-badge {
    position: static;
    align-self: flex-start;
    background: var(--gradient-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.property-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.property-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 8px;
    border-left: 3px solid #5e936c;
}

.property-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.property-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.property-info-value i {
    color: #5e936c;
    margin-right: 0.25rem;
}

.property-price {
    background: white;
    color: #333;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border: 2px solid #5e936c;
    box-shadow: 0 4px 15px rgba(139, 114, 71, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.property-price::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(139, 114, 71, 0.05) 50%,
        transparent 70%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.property-price-label {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5e936c;
}

.property-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: #333;
}

.property-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-view {
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.9) 0%,
        rgba(139, 114, 71, 1) 100%
    );
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(139, 114, 71, 0.3);
}

.btn-view:hover {
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 1) 0%,
        rgba(139, 114, 71, 1) 100%
    );
    box-shadow: 0 4px 12px rgba(139, 114, 71, 0.4);
    color: white;
    text-decoration: none;
}

/* ====== Filters Section ====== */
.filters-section {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 114, 71, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.12);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    z-index: 20;
}

/* Hiệu ứng đặc biệt cho filters section - giống articles */
.filters-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.01) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(139, 114, 71, 0.01) 100%
    );
    pointer-events: none;
    z-index: -1;
}

.filters-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 114, 71, 0.15);
}

/* Form controls với hiệu ứng glass morphism - giống articles */
.filters-section .form-control,
.filters-section .form-select {
    border: 2px solid rgba(139, 114, 71, 0.3);
    border-radius: 15px;
    padding: 0rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: none;
    position: relative;
    z-index: 10;
    font-size: 1rem;
    height: 50px;
    font-family: "Museo Moderno", sans-serif;
    color: #333 !important;
    opacity: 1 !important;
}

.filters-section .form-control:focus,
.filters-section .form-select:focus {
    border-color: #5e936c !important;
    box-shadow: 0 0 0 4px rgba(139, 114, 71, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
    outline: none;
    z-index: 15;
}

/* Đặc biệt cho select dropdown */
.filters-section select.form-control {
    background: rgba(255, 255, 255, 1) !important;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    cursor: pointer;
}

.filters-section select.form-control option {
    background: rgba(255, 255, 255, 1) !important;
    color: #333 !important;
    padding: 8px 12px;
}

.filters-section .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 12;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    font-family: "Museo Moderno", sans-serif;
}

.filters-section .form-label i {
    color: #5e936c;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

/* Styling đặc biệt cho input search */
.filters-section input[type="text"] {
    background: rgba(255, 255, 255, 1) !important;
    border: 2px solid rgba(139, 114, 71, 0.3) !important;
    color: #333 !important;
    z-index: 10;
}

.filters-section input[type="text"]:focus {
    border-color: #5e936c !important;
    box-shadow: 0 0 0 4px rgba(139, 114, 71, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.filters-section input[type="text"]::placeholder {
    color: #999 !important;
    opacity: 0.8;
}

/* Đảm bảo dropdown options hiển thị đúng */
.filters-section select.form-control:focus {
    z-index: 1000 !important;
}

/* ====== Sidebar Styles giống Articles ====== */
.sidebar-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 114, 71, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(139, 114, 71, 0.02) 100%
    );
    pointer-events: none;
}

.sidebar-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 114, 71, 0.12);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Museo Moderno", sans-serif;
    position: relative;
    z-index: 1;
}

.sidebar-title i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

/* Recent Properties List */
.recent-properties-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.recent-property {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 114, 71, 0.1);
}

.recent-property:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.12);
    border-color: rgba(139, 114, 71, 0.2);
    text-decoration: none;
    color: inherit;
}

.recent-property-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.recent-property-content h6 {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-family: "Museo Moderno", sans-serif;
}

.recent-property:hover .recent-property-content h6 {
    color: var(--primary-gold);
}

.recent-property-price {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recent-property-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.recent-property-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recent-property-meta i {
    color: var(--primary-gold);
}

/* Area Stats */
.area-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.area-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 114, 71, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.area-stat-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 114, 71, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 114, 71, 0.1);
}

.area-stat-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-family: "Museo Moderno", sans-serif;
}

.area-stat-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.area-stat-link {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(139, 114, 71, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.area-stat-link:hover {
    background: rgba(139, 114, 71, 0.2);
    transform: scale(1.1);
    color: var(--primary-gold);
    text-decoration: none;
}

/* Contact Info Styles - giống Articles */
.contact-info-wrapper {
    background: rgba(255, 255, 255, 1) !important;
    border: 2px solid rgba(139, 114, 71, 0.2);
    box-shadow: 0 10px 40px rgba(139, 114, 71, 0.15);
}

.contact-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid rgba(139, 114, 71, 0.2);
}

.contact-avatar .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: "Museo Moderno", sans-serif;
}

.contact-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.contact-details .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 114, 71, 0.1);
    text-align: left;
}

.contact-details .contact-item:last-child {
    border-bottom: none;
}

.contact-details .contact-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details .contact-link,
.contact-details .contact-text {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.contact-details .contact-link:hover {
    color: #5e936c;
    text-decoration: none;
}

.contact-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.contact-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.contact-icon-btn.phone-icon {
    background: #28a745;
}

.contact-icon-btn.email-icon {
    background: #dc3545;
}

/* Hiệu ứng cho section title - giống articles page */
.section-title {
    font-family: "Museo Moderno", sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    position: relative;
}

.title-main {
    color: var(--text-dark);
}

.title-highlight {
    background: linear-gradient(135deg, #3e5f44 0%, #3e5f44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #5e936c, #a08660);
    margin: 0 auto;
    border-radius: 2px;
}

/* Button styling cải tiến - giống articles */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: "Museo Moderno", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 114, 71, 0.2);
    padding: 1rem 2rem;
    height: 50px;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.3);
    color: var(--white);
}

.btn-outline-secondary {
    border: 2px solid rgba(139, 114, 71, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #5e936c;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Museo Moderno", sans-serif;
    padding: 1rem 2rem;
    text-decoration: none;
}

.btn-outline-secondary:hover {
    background: #5e936c;
    border-color: #5e936c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.3);
    text-decoration: none;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 114, 71, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.08);
    position: relative;
    overflow: hidden;
}

.no-results::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(139, 114, 71, 0.02) 100%
    );
    pointer-events: none;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #5e936c;
}

.no-results .suggestions {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.no-results .suggestions h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: "Museo Moderno", sans-serif;
}

.no-results .suggestions ul li {
    text-align: left;
    padding: 0.5rem 0;
    color: var(--text-gray);
}

.no-results .suggestions ul li i {
    color: #5e936c;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ====== Range Slider Styles ====== */
.range-slider-wrapper {
    position: relative;
    height: 40px;
    margin: 10px 0;
}

.range-slider-wrapper input[type="range"] {
    position: absolute;
    width: 100%;
    height: 8px;
    background: transparent;
    -webkit-appearance: none;
    pointer-events: none;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e936c 0%, #bfa76a 100%);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 1;
}

.range-slider-wrapper input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.range-slider-wrapper input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e936c 0%, #bfa76a 100%);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
}

.range-slider-wrapper input[type="range"]:focus {
    outline: none;
}

.range-slider-wrapper input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(139, 114, 71, 0.3);
}

.price-range-container,
.area-range-container {
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(191, 167, 106, 0.2);
}

.range-values .badge {
    font-size: 0.875rem;
    padding: 6px 12px;
}

/* Active range highlighting */
.range-slider-wrapper::before {
    content: "";
    position: absolute;
    height: 8px;
    background: linear-gradient(135deg, #5e936c 0%, #bfa76a 100%);
    border-radius: 4px;
    top: 16px;
    z-index: 0;
}

/* ====== Modal Styles - giống articles ====== */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(139, 114, 71, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    border: none;
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
    border: none;
}

.modal-title {
    font-family: "Museo Moderno", sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

.form-check-input:checked {
    background-color: #5e936c;
    border-color: #5e936c;
}

.form-check-input:focus {
    border-color: #5e936c;
    box-shadow: 0 0 0 0.25rem rgba(139, 114, 71, 0.25);
}

.form-check-label {
    font-family: "Museo Moderno", sans-serif;
}

/* Filter button styles */
.filters-section .form-control[data-bs-toggle="modal"] {
    cursor: pointer;
    background: rgba(255, 255, 255, 1) !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(139, 114, 71, 0.3) !important;
    color: #333 !important;
    opacity: 1 !important;
    z-index: 10;
}

.filters-section .form-control[data-bs-toggle="modal"]:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #5e936c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 114, 71, 0.2) !important;
}

/* Styling cho text bên trong modal buttons */
.filters-section .form-control[data-bs-toggle="modal"] span {
    color: #333 !important;
    font-weight: 500;
}

.filters-section .form-control[data-bs-toggle="modal"] i {
    color: #5e936c !important;
}

/* Ẩn modal backdrop nếu cần thiết */
.modal-backdrop {
    display: none !important;
}

/* Đảm bảo modal hiển thị đúng cách mà không cần backdrop */
.modal.show {
    background-color: rgba(0, 0, 0, 0.5);
}

/* ====== Range Highlighting ====== */
.range-slider-wrapper::before {
    left: var(--range-min, 0%);
    width: calc(var(--range-max, 100%) - var(--range-min, 0%));
}

/* ====== Responsive Design ====== */
/* Responsive cho property cards */
@media (max-width: 768px) {
    .property-header {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .property-image {
        width: 100% !important;
        min-width: auto !important;
        height: 180px !important;
        border-radius: 15px !important;
    }

    .property-content {
        padding: 0 1rem 1rem 1rem !important;
    }

    .property-title {
        font-size: 1.2rem !important;
    }

    .property-meta {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
    }

    .property-views {
        margin-left: 0 !important;
    }

    .sidebar-section {
        margin-top: 2rem;
    }

    .filters-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .properties-page {
        padding: 100px 0 40px;
    }

    .property-header {
        padding: 0.75rem !important;
    }

    .property-content {
        padding: 0 0.75rem 0.75rem 0.75rem !important;
    }

    .property-title {
        font-size: 1.1rem !important;
        line-clamp: 3 !important;
        -webkit-line-clamp: 3 !important;
    }

    .property-description {
        line-clamp: 2 !important;
        -webkit-line-clamp: 2 !important;
        font-size: 0.85rem !important;
    }

    .property-image {
        height: 160px !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
    }

    .filters-section {
        padding: 1.5rem;
    }
}

/* Property Price Action Row Styles */
.property-price-action-row {
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.property-price-label {
    font-weight: 600;
    color: #5e936c;
    font-size: 1rem;
    margin-bottom: 0;
}

.property-price-value {
    font-size: 1.2rem;
    color: #d63384;
    font-family: "Museo Moderno", sans-serif;
}

.btn.btn-outline-primary.btn-sm {
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.98rem;
    transition: all 0.2s;
}

.btn.btn-outline-primary.btn-sm:hover {
    background: #5e936c;
    color: #fff;
    border-color: #5e936c;
}

@media (max-width: 576px) {
    .property-price-action-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding: 0.7rem 0.7rem;
    }

    .btn.btn-outline-primary.btn-sm {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Price Unit Selection Styles */
.btn-group .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
}

.btn-group .btn-outline-primary {
    border-color: var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
}

.btn-group .btn-outline-primary:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
}
