input::placeholder {
    color: #999;
    font-size: 12px !important;
}

/* ── 整体布局：左列表 + 右地图 ── */
.house {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.house-left {
    flex: 1;
    min-width: 0;
    padding: 0 32px 60px 40px;
}

.house-right {
    width: 480px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

/* ── 面包屑（在 house-left 内） ── */
.crumb {
    padding-top: 20px;
    padding-bottom: 8px;
    font-size: 12px;
}

/* ── 搜索区 ── */
.house-search {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.house-search-item {
    display: flex;
    width: 100%;
    height: 36px;
    position: relative;
}

.house-search-item .iconfont {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    font-size: 16px !important;
    color: #999 !important;
    pointer-events: none;
}

.search-item-input {
    flex: 1;
    min-width: 0;
    border: 0.5px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 12px;
    color: #1a1a1a;
    height: 36px;
    box-sizing: border-box;
    padding-left: 36px;
}

.search-item-btn {
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
    height: 36px;
    padding: 0 20px;
    cursor: pointer;
    background: #ff7744;
    font-weight: 500;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
}

/* ── 城市下拉 ── */
.house-search-city {
    width: 100%;
    background: #fff;
    border-radius: 6px;
    position: absolute;
    top: 52px;
    left: 0;
    display: none;
    z-index: 999;
    border: 1px solid #f5f5f5;
}

.search-city-title {
    color: #333;
    padding: 10px 30px;
    font-size: 16px;
    background: #f8f8f6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
}

.city-title-text {
    cursor: pointer;
    padding: 10px 0;
    margin-right: 40px;
    white-space: nowrap;
    font-size: 14px;
}

.city-title-text:hover { color: #ff5212; }

.city-title-active {
    color: #ff5212;
    border-bottom: 2px #ff5212 solid;
}

.search-city-content {
    padding: 20px 30px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.city-content-item {
    width: 100px;
    margin-bottom: 4px;
    padding: 6px 6px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

.city-item-text { color: #666; }
.city-item-text:hover { color: #ff5212; }

/* ── 自动补全 ── */
.search-top-auto {
    width: 100%;
    max-height: 500px;
    background: #fff;
    border-radius: 6px;
    position: absolute;
    top: 52px;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 8px 0 rgb(0 0 0 / 20%);
    overflow-y: scroll;
    box-sizing: border-box;
    display: none;
}

.auto-city-label {
    height: 50px;
    font-size: 14px;
    color: #666;
    padding-left: 20px;
    line-height: 50px;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
    margin-left: 30px;
    margin-right: 30px;
    background: url(/img/city.png) no-repeat left center;
    background-size: 15px 15px;
}

.auto-region-label {
    height: 50px;
    font-size: 14px;
    color: #666;
    padding-left: 20px;
    line-height: 50px;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
    margin-left: 30px;
    margin-right: 30px;
    background: url(/img/region.png) no-repeat left center;
    background-size: 15px 15px;
}

.auto-item-value {
    overflow: hidden;
    height: 56px;
    padding-left: 50px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.auto-item-value:hover { background: #f5f5f5; }

.value-left-master {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-top: 10px;
}

.value-left-slave {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.item-value-right {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
    padding-right: 30px;
}

/* ── 横排过滤条 ── */
.house-filter-bar {
    display: flex;
    gap: 12px;
    width: 100%;
}

.filter-item {
    position: relative;
    flex: 1;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: 38px;
    border: 0.5px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    user-select: none;
    box-sizing: border-box;
}


.filter-btn-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 38px;
}

/* CSS 实心三角箭头 */
.filter-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ff7744;
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.2s;
    position: relative;
    top: 1px;
}

.filter-btn.open .filter-chevron {
    transform: rotate(180deg);
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    z-index: 200;
    padding: 6px 0;
    white-space: nowrap;
}

.filter-dropdown.open {
    display: block;
}

.filter-opt {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
}

.filter-opt:hover { background: #fff5f2; color: #ff5212; }
.filter-opt-active { color: #ff5212; font-weight: 600; }

/* ── 日期过滤：使用 datepicker 原生弹窗 ── */
.filter-item-date { position: relative; }

/* 不可见锚点，贴在按钮底边，让 datepicker 弹窗定位到按钮正下方 */
.filter-date-anchor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.filter-date-anchor input {
    display: block;
    width: 100%;
    height: 1px;
}

/* ── 排序 & 列表 ── */
.house-item { width: 100%; }

.house-item-title {
    background: #f5f5f5;
    border-radius: 5px;
    width: 100%;
    height: 40px;
    line-height: 40px;
    margin-top: 10px;
}

.house-title-item { margin-left: 40px; cursor: pointer; }

.house-title-text {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.house-title-text:hover { color: #ff5212; }
.title-text-active { color: #ff5212; }

/* ── 空状态 ── */
.house-empty {
    width: 100%;
    border-radius: 10px;
    background: #f5f5f5;
    margin: 40px 0;
    padding: 100px 0 200px;
    box-sizing: border-box;
    text-align: center;
}

.house-empty-image {
    width: 210px;
    height: 160px;
    margin: 0 auto;
}

.house-empty-tip {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

.house-empty-publish {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-top: 8px;
}

.house-publish-text { color: #f74; }

/* ── 房源列表：竖向卡片 3 列 grid ── */
.house-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: 400px;
}

.house-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 0.5px solid #f0f0f0;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.house-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* 封面图 */
.card-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: #e5e5e5;
}

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

.house-card:hover .card-cover-img {
    transform: scale(1.05);
}

/* Available 徽章 */
.card-avail {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Video 徽章 */
.card-video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    background: rgba(0,0,0,0.6) url("../img/video.png") no-repeat 8px center;
    background-size: 10px 6px;
    height: 20px;
    border-radius: 10px;
    font-size: 12px;
    padding: 0 10px 0 24px;
    line-height: 20px;
}

/* 发布者头像 */
.card-user-avatar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    border: 1.5px solid #fff;
}

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

/* 信息区 */
.card-info {
    padding: 10px 12px 12px;
}

.card-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.card-price {
    font-size: 13px;
    color: #ff7744;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    gap: 4px;
}

.card-address {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.card-address .iconfont {
    font-size: 12px !important;
    flex-shrink: 0;
}

.card-count {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.card-count .iconfont {
    font-size: 12px !important;
}

/* ── 地图弹层详情 ── */
.mapboxgl-popup-content {
    position: relative;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    padding: 3px 5px;
    pointer-events: auto;
    background: #d6ebff;
    border: 1px solid #adc1ff;
}

.mapboxgl-popup-content .map-tag { color: #182a61 !important; }

.mapboxgl-popup-content:hover .map-tag { color: #fff !important; }

.mapboxgl-popup-content:hover,
.mapboxgl-popup-anchor-bottom:hover .mapboxgl-popup-content,
.mapboxgl-popup-anchor-top:hover .mapboxgl-popup-content {
    background: #ff5212;
    border: 1px solid #a45d45 !important;
    cursor: pointer;
    z-index: 999999;
}

.mapboxgl-popup-tip {
    border: 0;
    width: 10px;
    height: 10px;
    background: #d6ebff;
    transform: rotate(45deg);
    margin-top: -5px;
    border-bottom: 1px solid #adc1ff !important;
    border-right: 1px solid #adc1ff;
    z-index: 999999;
}

.mapboxgl-popup-anchor-bottom:hover .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top:hover .mapboxgl-popup-tip {
    background: #ff5212;
    border-bottom: 1px solid #a45d45 !important;
    border-right: 1px solid #a45d45;
    cursor: pointer;
    z-index: 1000024;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    align-self: center;
    border-top: 0;
    position: absolute;
    top: 28px;
}

.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
    align-self: center !important;
}

.map-tag { font-size: 12px; }

/* ── 地图房源详情卡片 ── */
.map-detail {
    width: 200px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #f5f5f5;
    display: none;
    position: absolute;
    z-index: 999;
    cursor: pointer;
}

.map-detail-cover {
    width: 180px;
    height: 120px;
    border-radius: 10px;
    margin: 10px;
}

.map-detail-close {
    position: absolute;
    right: 5px;
    cursor: pointer;
}

.map-detail-title {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    margin: 0 10px 2px 10px;
}

.map-detail-address {
    color: #999;
    font-size: 12px;
    margin: 0 10px 5px 10px;
}

.map-detail-price {
    color: #ff5212;
    font-size: 18px;
    margin: 0 10px 5px 10px;
    font-weight: bold;
}

@media screen and (max-width: 1200px) {
    .house-left { padding: 0 20px 40px 20px; }
    .house-right { width: 380px; }
    .house-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 900px) {
    .house { flex-direction: column; }
    .house-left { padding: 0 20px 40px; width: 100%; }
    .house-right { display: none; }
    .house-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .house-filter-bar { flex-wrap: nowrap; gap: 8px; }
    .filter-item { flex: 1 1 0; min-width: 0; }
    .search-item-btn { font-size: 14px; padding: 0 14px; }
    .search-city-title { font-size: 13px; padding: 8px 16px; }
    .city-title-text { font-size: 12px; margin-right: 20px; }
}

@media screen and (max-width: 500px) {
    html, body {
        overflow-x: hidden;
    }
    .c-datepicker-picker.c-datepicker-date-picker.c-datepicker-popper {
        max-width: calc(100vw - 16px) !important;
        left: 8px !important;
        right: 8px !important;
        transform: none !important;
    }
}

@media screen and (max-width: 374px) {
    .house-left { padding: 0 12px 40px; }
    .house-grid { grid-template-columns: 1fr; gap: 10px; }
    .house-filter-bar { flex-wrap: wrap; gap: 8px; }
    .filter-item { flex: 0 0 100px; min-width: 0; }
    .filter-item-date { flex: 0 0 100px; }
    .search-item-btn { font-size: 12px; padding: 0 10px; }
    .search-city-title { font-size: 12px; padding: 6px 12px; }
    .city-title-text { font-size: 11px; margin-right: 12px; }
}
