
/* Hero Section Adjustments */
.hero-section { margin-top: 0; }

/* Article Card Styles */
.article-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    background: white;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-body {
    padding: 1.25rem;
}

.article-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.article-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Performance: Lazy loading placeholder */
img[loading="lazy"] {
    background: var(--light-color);
}
/* Service Card with Image Styles */
.service-card-with-image {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-with-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-with-image:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(37, 99, 235, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.service-card-with-image:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    color: white;
    font-size: 2rem;
    transform: translateX(-10px);
    transition: var(--transition);
}

.service-card-with-image:hover .service-overlay i {
    transform: translateX(0);
}

.service-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-body .service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-body p {
    flex: 1;
    margin-bottom: 1rem;
}

.service-body .btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto !important;
        min-height: 450px !important;
        padding-bottom: 3rem !important;
    }
    
    .search-container {
        position: relative !important;
        z-index: 100 !important;
        margin-bottom: 2rem !important;
    }
    
    main > section:first-child {
        margin-top: 2rem !important;
        background: white !important;
        position: relative !important;
        z-index: 1 !important;
    }
}
/* Testimonials Section */
.testimonial-slide {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--light-color);
}

.testimonial-user-info {
    flex: 1;
}

.testimonial-user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.testimonial-country {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem;
}

.testimonial-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-agent {
    display: flex;
    align-items: center;
}

.testimonial-agent i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
/* 修复 Swiper 分页小圆点在浅色背景下不可见的问题 */
.swiper-pagination-bullet {
    background: var(--primary-color) !important;
    opacity: 0.4 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--primary-color) !important;
}

/* 如果还想添加额外的视觉效果 */
.section-light .swiper-pagination-bullet,
.section-padding .swiper-pagination-bullet {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 字母头像样式 */
.avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.testimonial-avatar.avatar-fallback {
    width: 60px;
    height: 60px;
}

/* 为不同首字母生成不同的背景色 */
.avatar-fallback[data-letter^="A"],
.avatar-fallback[data-letter^="B"],
.avatar-fallback[data-letter^="C"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.avatar-fallback[data-letter^="D"],
.avatar-fallback[data-letter^="E"],
.avatar-fallback[data-letter^="F"] {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.avatar-fallback[data-letter^="G"],
.avatar-fallback[data-letter^="H"],
.avatar-fallback[data-letter^="I"] {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.avatar-fallback[data-letter^="J"],
.avatar-fallback[data-letter^="K"],
.avatar-fallback[data-letter^="L"] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.avatar-fallback[data-letter^="M"],
.avatar-fallback[data-letter^="N"],
.avatar-fallback[data-letter^="O"] {
    background: linear-gradient(135deg, #10b981, #059669);
}

.avatar-fallback[data-letter^="P"],
.avatar-fallback[data-letter^="Q"],
.avatar-fallback[data-letter^="R"] {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.avatar-fallback[data-letter^="S"],
.avatar-fallback[data-letter^="T"],
.avatar-fallback[data-letter^="U"] {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.avatar-fallback[data-letter^="V"],
.avatar-fallback[data-letter^="W"],
.avatar-fallback[data-letter^="X"],
.avatar-fallback[data-letter^="Y"],
.avatar-fallback[data-letter^="Z"] {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}


.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}



.agent-card:hover .agent-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3),
                0 0 0 1px var(--primary-color);
    transform: scale(1.05);
}

.agent-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.agent-card .btn {
    margin-top: 0.5rem;
}
/* 修复 Agent Swiper 的分页圆点位置，避免覆盖头像 */
.agents-swiper {
    padding-bottom: 50px !important;
}

.agents-swiper .swiper-pagination {
    bottom: 0 !important;
}

/* 同样修复其他 swiper 的间距 */
.newest-swiper,
.hot-swiper,
.testimonials-swiper {
    padding-bottom: 50px !important;
}

.newest-swiper .swiper-pagination,
.hot-swiper .swiper-pagination,
.testimonials-swiper .swiper-pagination {
    bottom: 0 !important;
}
/* Advanced Filters Styles */
.advanced-filters-panel {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

#advancedFiltersToggle {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

#advancedFiltersToggle:hover {
    color: var(--secondary-color);
}

#advancedFiltersIcon {
    transition: transform 0.3s ease;
}

#advancedFiltersToggle.active #advancedFiltersIcon {
    transform: rotate(180deg);
}

/* Hero Dual Range Slider Styles */
.hero-dual-range-slider {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 1rem 0;
}

.hero-dual-range-track {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.hero-dual-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.hero-dual-range-input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-dual-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.hero-quick-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.hero-quick-btn {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-quick-btn:hover,
.hero-quick-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-quick-select {
        gap: 0.4rem;
    }
    
    .hero-quick-btn {
        flex: 1 1 calc(50% - 0.2rem);
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}
/* 多选下拉框容器 */
.multiselect-wrapper {
    position: relative;
    width: 100%;
}

/* 模拟的 select 触发器 */
.multiselect-trigger {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-color);
    min-height: 48px;
}

.multiselect-trigger:hover {
    border-color: var(--primary-color);
}

.multiselect-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.multiselect-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multiselect-trigger-text.placeholder {
    color: #6b7280;
}

.multiselect-trigger-icon {
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.multiselect-trigger.active .multiselect-trigger-icon {
    transform: rotate(180deg);
}

/* 多选下拉框容器 */
.multiselect-wrapper {
    position: relative;
    width: 100%;
}

/* 模拟的 select 触发器 - 改进设计 */
.multiselect-trigger {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #1f2937;
    min-height: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.multiselect-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.multiselect-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #f8fafc;
}

.multiselect-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

/* 占位文本样式 - 更柔和的颜色 */
.multiselect-trigger-text.placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.multiselect-trigger-icon {
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
    color: #6b7280;
    font-size: 0.9rem;
}

.multiselect-trigger.active .multiselect-trigger-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* 下拉面板 */
.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multiselect-dropdown.active {
    display: block;
}

/* 选项列表 */
.multiselect-options {
    padding: 0.5rem;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
    margin-bottom: 0.25rem;
}

.multiselect-option:hover {
    background-color: #f3f4f6;
}

.multiselect-option.selected {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.multiselect-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.85rem;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.multiselect-option-label {
    flex: 1;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 400;
}

.multiselect-option.selected .multiselect-option-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* 底部操作栏 */
.multiselect-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    position: sticky;
    bottom: 0;
}

.multiselect-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.multiselect-actions {
    display: flex;
    gap: 0.5rem;
}

.multiselect-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.multiselect-btn-clear {
    background: #fee2e2;
    color: #dc2626;
}

.multiselect-btn-clear:hover {
    background: #fecaca;
}

.multiselect-btn-apply {
    background: var(--primary-color);
    color: white;
}

.multiselect-btn-apply:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* 已选标签 - 修复颜色问题 */
.multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: calc(100% - 30px);
}

.multiselect-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: #ffffff;  /* 明确设置为白色 */
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.multiselect-tag-remove {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #ffffff;  /* 明确设置为白色 */
    opacity: 0.9;
    font-weight: bold;
    font-size: 1rem;
}

.multiselect-tag-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 多选数量文字 */
.multiselect-count-text {
    color: #1f2937;
    font-weight: 500;
}

/* 空状态 */
.multiselect-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* 滚动条样式 */
.multiselect-dropdown::-webkit-scrollbar {
    width: 8px;
}

.multiselect-dropdown::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.multiselect-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.multiselect-dropdown::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* 响应式 */
@media (max-width: 768px) {
    .multiselect-dropdown {
        max-height: 280px;
    }
    
    .multiselect-trigger {
        padding: 0.75rem 2.5rem 0.75rem 0.875rem;
        min-height: 46px;
    }
}
/* Property Card Enhancements */
.property-card {
    display: flex;
    flex-direction: column;
}
.property-details {
    flex-grow: 1; /* 让内容区域填充空间 */
    display: flex;
    flex-direction: column;
}
.property-meta {
    margin-top: auto; /* 将规格信息推到底部（如果需要） */
}
.property-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem; /* 与上方元素的间距 */
}
.property-agent {
    display: flex;
    align-items: center;
}
.agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
}
.agent-name {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}
/* Badges Styling */
.property-image {
    position: relative;
}
.property-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.property-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.property-badge.featured { background: var(--primary-color); }
.property-badge.new { background: var(--secondary-color); }
/* ============================================= */
/*       经纪人展示区 (Our Agents Section)         */
/* ============================================= */

/* 全新设计的 Agent Card 样式 (大头像) */
.agent-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.agent-avatar-link {
    display: block;
    margin-bottom: 1.25rem;
}

/* 这里是经纪人展示区的大头像 */
.agent-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.agent-card:hover .agent-avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

/* 这里是经纪人展示区的大号名字 */
.agent-name {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.25rem;
}

.agent-card .btn {
    margin-top: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* ============================================= */
/*          房源卡片 (Property Card)             */
/* ============================================= */

/* 这里是房源卡片底部的小头像 */
.property-card-agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
}

/* 这里是房源卡片底部的小号名字 */
.property-card-agent-name {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: auto;
}