/* ===== 门店定位组件 - 底部抽屉样式 ===== */

/* 遮罩层 */
.store-locator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    transition: background 0.3s ease;
}

.store-locator-overlay--visible {
    background: rgba(0, 0, 0, 0.45);
}

/* 抽屉面板 */
.store-locator-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
}

.store-locator-drawer--visible {
    transform: translateY(0);
}

/* 拖拽条 */
.store-locator-drag-bar {
    width: 36px;
    height: 4px;
    background: #d0d5e0;
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

/* 头部 */
.store-locator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 8px;
    flex-shrink: 0;
}

.store-locator-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-locator-title i {
    color: #4e6ef2;
    font-size: 16px;
}

.store-locator-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8c99b3;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.store-locator-close:hover {
    background: #e4e7ec;
    color: #5b6a92;
}

/* 搜索栏 */
.store-locator-search {
    display: flex;
    align-items: center;
    margin: 0 16px 10px;
    padding: 0 12px;
    height: 40px;
    background: #f5f7fa;
    border-radius: 12px;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.store-locator-search:focus-within {
    background: #fff;
    border-color: #4e6ef2;
    box-shadow: 0 0 0 3px rgba(78, 110, 242, 0.1);
}

.store-locator-search-icon {
    color: #b0b8d0;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}

.store-locator-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    height: 100%;
}

.store-locator-search-input::placeholder {
    color: #b0b8d0;
}

.store-locator-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #b0b8d0;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.store-locator-search-clear:hover {
    color: #8c99b3;
}

/* 内容区域 */
.store-locator-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.store-locator-body::-webkit-scrollbar {
    width: 3px;
}

.store-locator-body::-webkit-scrollbar-thumb {
    background: #d0d5e0;
    border-radius: 2px;
}

/* 加载状态 */
.store-locator-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8c99b3;
    font-size: 14px;
}

.store-locator-loading i {
    margin-right: 6px;
    color: #4e6ef2;
}

/* 定位提示条 */
.store-locator-loc-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #27ae60;
    background: #eafaf1;
    border: 1px solid #d5f5e3;
}

.store-locator-loc-hint i {
    font-size: 12px;
}

.store-locator-loc-hint.loc-pending {
    color: #f39c12;
    background: #fef9e7;
    border-color: #fdeaa8;
}

/* 门店列表 */
.store-locator-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 门店卡片 */
.store-locator-card {
    background: #f8fbfc;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e8ecf2;
    transition: all 0.2s ease;
    position: relative;
}

.store-locator-card:hover {
    border-color: #c5d0f6;
    box-shadow: 0 4px 16px rgba(78, 110, 242, 0.08);
}

.store-locator-card.nearest {
    border-color: #4e6ef2;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fbfc 100%);
    box-shadow: 0 2px 12px rgba(78, 110, 242, 0.10);
}

/* 卡片头部：名称 + 距离 */
.store-locator-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.store-locator-name {
    font-size: 15px;
    font-weight: 600;
    color: #2442cf;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 最近标签 */
.store-locator-nearest-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #4e6ef2 0%, #6c8cff 100%);
    flex-shrink: 0;
    line-height: 18px;
}

/* 距离标签 */
.store-locator-dist {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #4e6ef2;
    background: #eef2ff;
    flex-shrink: 0;
    white-space: nowrap;
}

.store-locator-dist i {
    font-size: 11px;
    opacity: 0.7;
}

.store-locator-dist.dist-pending {
    color: #f39c12;
    background: #fef9e7;
}

/* 地址行 */
.store-locator-addr {
    font-size: 13px;
    color: #5b6a92;
    line-height: 1.5;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.store-locator-addr i {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* 营业时间 */
.store-locator-hours {
    font-size: 12px;
    color: #8c99b3;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-locator-hours i {
    font-size: 11px;
    color: #f39c12;
}

/* 卡片底部：租户 + 导航 */
.store-locator-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #e8ecf2;
}

.store-locator-tenant {
    font-size: 12px;
    color: #8c99b3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.store-locator-tenant i {
    font-size: 11px;
}

/* 导航按钮 */
.store-locator-nav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4e6ef2 0%, #6c8cff 100%);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(78, 110, 242, 0.25);
}

.store-locator-nav:hover {
    background: linear-gradient(135deg, #3a5bd9 0%, #5a7ae8 100%);
    box-shadow: 0 4px 14px rgba(78, 110, 242, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.store-locator-nav i {
    font-size: 12px;
}

/* 空状态 */
.store-locator-empty {
    text-align: center;
    padding: 30px 20px;
}

.store-locator-empty-icon {
    font-size: 40px;
    color: #d0d5e0;
    margin-bottom: 12px;
}

.store-locator-empty-text {
    font-size: 14px;
    color: #5b6a92;
    font-weight: 500;
    margin-bottom: 4px;
}

.store-locator-empty-sub {
    font-size: 12px;
    color: #8c99b3;
}

/* 加载更多 */
.store-locator-load-more {
    text-align: center;
    padding: 16px 20px 8px;
    color: #8c99b3;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.store-locator-load-more i {
    color: #4e6ef2;
    font-size: 13px;
}

/* 没有更多了 */
.store-locator-no-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px 8px;
}

.store-locator-no-more-line {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: #e0e5ee;
}

.store-locator-no-more-text {
    font-size: 12px;
    color: #b0b8d0;
    white-space: nowrap;
}

/* ===== 卡片内嵌的"查看门店"入口 - 底部主办方栏 ===== */

/* 主办方底部栏 */
.tenant-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e8ecf2;
    display: flex;
    align-items: center;
}

/* 主办方文字（不可点击态） */
.tenant-name {
    font-size: 12px;
    color: #8c99b3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 20px;
}

.tenant-name i.fa-building {
    font-size: 11px;
    color: #b0b8d0;
}

/* 主办方可点击查看门店（胶囊标签） */
.tenant-store {
    cursor: pointer;
    color: #4e6ef2 !important;
    transition: all 0.2s;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 3px 10px 3px 6px;
    border-radius: 14px;
    background: rgba(78, 110, 242, 0.06);
    border: 1px solid rgba(78, 110, 242, 0.10);
    max-width: 100%;
    line-height: 20px;
    font-size: 12px;
}

.tenant-store:hover {
    background: rgba(78, 110, 242, 0.12);
    border-color: rgba(78, 110, 242, 0.22);
    color: #3a5bd9 !important;
}

.tenant-store:active {
    opacity: 0.7;
    transform: scale(0.97);
}

.tenant-store i.fa-store {
    font-size: 10px;
    color: #4e6ef2;
    flex-shrink: 0;
}

.tenant-store-arrow {
    font-size: 9px;
    color: #b0b8d0;
    margin-left: 2px;
    flex-shrink: 0;
}

/* 旧版内联标签（兼容） */
.store-locator-entry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 10px;
    background: rgba(78, 110, 242, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(78, 110, 242, 0.12);
    line-height: 20px;
}

.store-locator-entry:hover {
    background: rgba(78, 110, 242, 0.12);
    border-color: rgba(78, 110, 242, 0.25);
}

.store-locator-entry:active {
    transform: scale(0.96);
}

.store-locator-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e6ef2 0%, #6c8cff 100%);
    color: #fff;
    font-size: 9px;
    flex-shrink: 0;
}

.store-locator-entry-text {
    font-size: 11px;
    color: #4e6ef2;
    font-weight: 500;
    white-space: nowrap;
}

.store-locator-entry-arrow {
    color: #b0b8d0;
    font-size: 9px;
    margin-left: 1px;
}