/* Heritage List Styles */
/* 头部面包屑 */
.breadcrumb {
    padding: 20px 24px 0;
    font-size: 14px;
    color: #888;
}

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

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 20px 0;
    flex-wrap: wrap;
}

.region-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.region-selector select {
    height: 50px;
    padding: 8px 16px;
    border: 1px solid #F5EBDF;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.name-search {
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid #F5EBDF;
    border-radius: 10px;
}

.name-search input {
    width: 100%;
    height: 50px;
    padding: 0 36px 0 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    border: none;
    transition: all 0.2s;
}

.name-search input:focus {
    border: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ccc;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    transition: 0.2s;
}

.search-clear:hover {
    opacity: 1;
    background: #999;
}

.search-clear.hide {
    display: none;
}

/* 搜索下拉候选 */
.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.search-suggest.show {
    display: block;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggest-item:hover {
    background-color: #f5f9fc;
}

.suggest-img {
    width: 40px;
    height: 40px;
    background: #e1eef6;
    border-radius: 8px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="%23b0c4d9"><rect width="40" height="40" /><text x="8" y="26" font-size="16" fill="%23607d8b">🏥</text></svg>');
    background-size: cover;
}

.suggest-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggest-name {
    font-weight: 500;
    font-size: 15px;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 10px;
}

.suggest-addr {
    font-size: 13px; /* 字号比名称小一点 */
    color: #999;     /* 灰色 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;  /* 限制地址最大宽度 */
    text-align: right;
}

/* 关键字高亮样式 */
.highlight {
    color: #B98751; /* 蓝色 */
    font-weight: bold;
}

.reset-btn {
    width: 90px;
    height: 50px;
    background-color: #FFFFFF;
    border: 1px solid #F5EBDF;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

/* 列表容器 */
.list-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

/* 列表项 */
.heritage-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.heritage-item:hover {
    background-color: #f9f9f9;
}

/* 封面图 */
.item-cover {
    width: 224px;
    height: 126px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;
}

/* 信息区域 */
.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    /* 单行显示 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-detail-row {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.item-detail-row .label {
    width: 50px;
    flex-shrink: 0;
}

.item-detail-row .value {
    /* 单行显示 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 门店标签样式 */
.store-label {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #333333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-weight: 500;
}

.store-label:hover {
    background-color: #B98751;
    border-color: #B98751;
    color: #FFFFFF;
    z-index: 1000;
}

/* Modal Styles - Heritage Specific */

/* 弹窗容器调整 */
.modal-container {
    background: #FFFFFF;
}
.heritage-modal {
    width: 690px;
    max-height: 720px; /* 限制高度 */
}

.heritage-content {
    width: 100%;
    overflow-y: auto; /* 垂直滚动条 */
    overflow-x: hidden; /* 防止横向滚动 */
    padding: 20px 30px;
}

/* 顶部区域：大图 + 信息 */
.detail-top-section {
    width: 100%;
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.main-image-box {
    width: 320px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

#modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 修复 flex item 被子元素撑开的问题 */
    overflow: hidden; /* 强制约束子元素宽度 */
}

.detail-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    /* 最多两行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-row {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    line-height: 1.5;
}

.detail-row .label {
    color: #333;
    flex-shrink: 0;
}

.detail-row .value {
    color: #333;
    /* 地址最多一行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 缩略图列表 */
.thumbnails-box {
    width: 100%;
    margin-top: auto; /* 推到底部 */
    display: flex;
    gap: 12px;
    overflow-x: auto;
    /* 隐藏滚动条但保留功能 */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.thumbnails-box::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.thumb-item {
    width: 64px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.thumb-item.active {
    border-color: #B98751;
}

.thumb-item:hover {
    opacity: 0.9;
}

/* 简介区域 */
.intro-section {
    width: 100%;
    margin-bottom: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #734C22; /* 棕色标题 */
    margin-bottom: 6px;
}

.intro-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    /* 最多四行 */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 地图区域 */
.map-section {
    width: 100%;
    margin-bottom: 20px;
}

.modal-map {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    background: #f0f0f0;
    border: 1px solid #eee;
}

/* Modal Footer */
.modal-footer {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
}

.close-btn {
    padding: 8px 30px;
    background: #B98751;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #a37542;
}
