/* -------------------------------------- */
/* Location Page - location.css (M&Y 品牌色调) */
/* -------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* --- 导航栏和头部 (统一) --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    border-bottom: 3px solid #990000;
}

.logo a { 
    display: flex; /* 使用 Flexbox 实现图片和文本对齐 */
    align-items: center; /* 垂直居中对齐 */
    text-decoration: none; /* 移除链接下划线 */
    /* 移除原来的固定宽度和高度 */
}

/* 调整 .logo img 样式 */
.logo img { 
    height: 50px; /* 固定 Logo 图片高度 */
    width: auto;
    margin-right: 10px; /* 在图片和文本之间增加间距 */
}

/* 新增：品牌名称样式 */
.brand-name {
    color: #990000; /* 深红色品牌主色 */
    font-size: 1.5em; /* 适当放大文字 */
    font-weight: bold; /* 突出显示 */
    white-space: nowrap; /* 防止名称换行 */
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 25px;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #990000;
    border-bottom: 3px solid #990000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #990000;
}

/* --- 全局按钮和链接样式 --- */
.cta-button {
    display: inline-block;
    background-color: #FFCC00;
    /* 品牌辅色：黄色 */
    color: #333;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.link-button {
    display: inline-block;
    color: #990000;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #990000;
    padding-bottom: 2px;
}

.cta-button-small {
    display: inline-block;
    background-color: #990000;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #f0c000;
}

.cta-button-small:hover {
    background-color: #770000;
}


/* --- 搜索区域 --- */
.search-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.search-section h1 {
    color: #990000;
    margin-bottom: 30px;
}

.search-container {
    background-color: #f7f7f7;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-group input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.or-separator {
    margin: 15px 0;
    color: #777;
    font-weight: bold;
}

.find-location-button {
    font-size: 1.1em;
    cursor: pointer;
}


/* --- 筛选区域 --- */
.filter-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.filter-section h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-button.active {
    background-color: #990000;
    color: white;
    border-color: #990000;
}

.filter-button:hover:not(.active) {
    background-color: #ddd;
}


/* --- 结果和地图区域 --- */
.results-map-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.results-map-section h2 {
    color: #990000;
    margin-bottom: 20px;
}

/* ⬇️ 新增的地图容器样式 ⬇️ */
.map-container {
    width: 100%;
    height: 400px;
    /* 定义地图高度 */
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    /* 确保地图在容器内并遵循圆角 */
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    /* 移除可能的底边空白 */
}

/* ⬆️ 新增的地图容器样式 ⬆️ */


.fallback-message {
    background-color: #fff8e1;
    border-left: 5px solid #FFCC00;
    padding: 20px;
    text-align: left;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 4px;
}

.fallback-message strong {
    color: #990000;
}

.location-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.store-card {
    flex: 0 1 350px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.store-card h3 {
    color: #990000;
    margin-bottom: 10px;
}

.store-card p {
    margin-bottom: 5px;
}

/* --- 页脚 (统一) --- */
.main-footer {
    background-color: #222;
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
}

.main-footer p {
    margin: 0;
    line-height: 1.5;
}

/* -------------------------------------- */
/* 📱 媒体查询 (手机端兼容) */
/* -------------------------------------- */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        border-top: 1px solid #ddd;
        z-index: 100;
        flex-direction: column;
        text-align: center;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav .nav-list {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: none !important;
    }

    .main-nav .nav-list a.active {
        color: #FFCC00;
    }

    .search-input-group {
        flex-direction: column;
    }

    .store-card {
        flex: 0 1 100%;
    }

    .filter-buttons {
        flex-direction: column;
    }

    /* 隐藏品牌名以节省移动设备上的空间 */
    .brand-name {
        display: none;
    }
}