/* 页面标题样式 */
.page-header {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, 
        rgba(34, 139, 34, 0.7), 
        rgba(46, 204, 113, 0.6), 
        rgba(52, 152, 219, 0.7), 
        rgba(41, 128, 185, 0.8)), 
        url('../images/tourism-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(34, 139, 34, 0.2), 
        rgba(46, 204, 113, 0.15), 
        rgba(52, 152, 219, 0.2));
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #E8F5E8;
}

.page-header p {
    font-size: 1.5em;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #F0F8F0;
}

/* 导航菜单样式 */
.tourism-nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.nav-tabs a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-tabs a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-tabs a:hover::after,
.nav-tabs a.active::after {
    width: 100%;
}

.nav-tabs a.active {
    color: var(--primary-color);
}

/* 地图样式 */
.map-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.map-container {
    position: relative;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    width: 100%;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

#tourismMap {
    height: 600px;
    width: 100%;
    min-height: 600px;
    position: relative;
    z-index: 1;
    display: block;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

#tourismMap .leaflet-container {
    height: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

#tourismMap .leaflet-pane {
    z-index: 1 !important;
}

#tourismMap .leaflet-control {
    z-index: 2 !important;
}

.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-legend h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.map-legend ul {
    list-style: none;
}

.map-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
}

.legend-icon.nature {
    background-color: #4CAF50;
}

.legend-icon.culture {
    background-color: #2196F3;
}

.legend-icon.food {
    background-color: #FF9800;
}

/* 自然风光样式 */
.scenic-section {
    padding: 80px 0;
    background-color: var(--white);
}

.season-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.season-btn {
    padding: 10px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: none;
    color: var(--primary-color);
    font-size: 1.1em;
    cursor: pointer;
    transition: var(--transition);
}

.season-btn:hover,
.season-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.scenic-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.scenic-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scenic-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.scenic-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.scenic-item:hover img {
    transform: scale(1.05);
}

.scenic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.scenic-info h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* 人文景观样式 */
.culture-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.culture-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.culture-item:hover {
    transform: translateY(-10px);
}

.culture-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.culture-info {
    padding: 20px;
}

.culture-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.detail-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.detail-btn:hover {
    background-color: #d32f2f;
}

/* 推荐路线样式 */
.routes-section {
    padding: 80px 0;
    background-color: var(--white);
}

.routes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.route-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.route-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
}

.route-header h3 {
    margin-right: 100px;
}

.route-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.9em;
}

.route-content {
    padding: 20px;
}

.route-day {
    margin-bottom: 20px;
}

.route-day h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.route-day ul {
    list-style: none;
    padding-left: 20px;
}

.route-day li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 20px;
}

.route-day li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.route-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-price {
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
}

.book-btn {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.book-btn:hover {
    background-color: #d32f2f;
}

/* 自定义标记样式 */
.custom-marker {
    background-color: #4CAF50;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.custom-marker div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

/* 弹窗样式 */
.popup-content {
    padding: 10px;
    max-width: 200px;
}

.popup-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 14px;
}

.popup-content p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .scenic-gallery,
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .routes-container {
        grid-template-columns: 1fr;
    }
    
    #tourismMap {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5em;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-tabs a {
        font-size: 1em;
    }
    
    .season-tabs {
        flex-wrap: wrap;
    }
    
    .scenic-gallery,
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .map-legend {
        position: static;
        margin-top: 20px;
    }
}

/* 浏览器兼容性增强 */
/* 确保地图容器在所有浏览器中正确显示 */
.map-container {
    /* 添加更多浏览器前缀 */
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* 强制硬件加速 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    /* 确保正确的层叠上下文 */
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

#tourismMap {
    /* 确保地图元素在所有浏览器中正确渲染 */
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* 防止地图闪烁 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Leaflet地图元素兼容性 */
.leaflet-container {
    /* 确保Leaflet容器正确显示 */
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.leaflet-control-zoom {
    /* 确保缩放控件正确显示 */
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    background: #fff !important;
}

.leaflet-control-zoom a {
    /* 确保缩放按钮正确显示 */
    background-color: #fff !important;
    border-bottom: 1px solid #ccc !important;
    color: #000 !important;
    text-decoration: none !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f4f4f4 !important;
}

/* 自定义弹窗样式 */
.custom-popup .leaflet-popup-content-wrapper {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
    -webkit-box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
    -moz-box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
}

.custom-popup .leaflet-popup-tip {
    background: #fff !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
    -webkit-box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
    -moz-box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
}

/* 全屏控件样式 */
.leaflet-control-fullscreen {
    background: #fff !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
}

.leaflet-control-fullscreen a {
    background-color: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    display: block !important;
}

.leaflet-control-fullscreen a:hover {
    background-color: #f4f4f4 !important;
}

/* 比例尺控件样式 */
.leaflet-control-scale {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
    padding: 5px !important;
}

.leaflet-control-scale-line {
    border: 2px solid #333 !important;
    border-top: none !important;
    color: #333 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    padding: 2px 5px 1px !important;
    font-weight: bold !important;
    text-align: center !important;
}

/* IE浏览器兼容性 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .map-container {
        /* IE特定样式 */
        display: block;
        position: relative;
    }
    
    #tourismMap {
        /* IE特定样式 */
        display: block;
        position: relative;
    }
}

/* 旧版WebKit浏览器兼容性 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .map-container {
        /* WebKit特定样式 */
        -webkit-transform: translateZ(0);
    }
    
    #tourismMap {
        /* WebKit特定样式 */
        -webkit-transform: translateZ(0);
    }
} 