﻿/* .map-box{
    position: relative;
} */
/* ========== 左侧筛选面板样式 ========== */
.mapbox{
    position: relative;
}
.left-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.filter-panel {
    padding: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

.filter-panel::-webkit-scrollbar {
    width: 6px;
}

.filter-panel::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.filter-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.list-name {
    display: block;
    min-height: 60px;
    padding: 0;
}

.list-name:empty::before {
    content: 'No dealers found';
    display: block;
    padding: 16px 20px;
    color: #64748b;
    font-size: 14px;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #182d82 0%, #2a4bb5 100%);
    color: white;
}

.filter-header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.filter-header-icon svg {
    color: white;
}

.filter-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.filter-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.filter-label svg {
    color: #182d82;
    flex-shrink: 0;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover:not(:disabled) {
    border-color: #182d82;
}

.filter-select:focus {
    outline: none;
    border-color: #182d82;
    box-shadow: 0 0 0 3px rgba(24, 45, 130, 0.1);
}

.filter-select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-divider {
    height: 8px;
    background: #f8f9fa;
}

.services-section {
    padding: 20px;
}

.services-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    flex-shrink: 0;
    padding: 6px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-label {
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
    font-weight: 500;
}

/* 现代化开关样式 */
.modern-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dee2e6;
    transition: all 0.3s ease;
    border-radius: 26px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-switch input:checked + .switch-slider {
    background: linear-gradient(135deg, #182d82 0%, #2a4bb5 100%);
}

.modern-switch input:checked + .switch-slider:before {
    transform: translateX(22px);
}

.modern-switch:hover .switch-slider {
    box-shadow: 0 0 0 3px rgba(24, 45, 130, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-header {
        padding: 16px;
    }

    .filter-title {
        font-size: 20px;
    }

    .filter-section {
        padding: 14px 16px;
    }

    .services-section {
        padding: 16px;
    }

    .service-label {
        font-size: 12px;
    }

    .modern-switch {
        width: 44px;
        height: 24px;
    }

    .switch-slider:before {
        height: 18px;
        width: 18px;
    }

    .modern-switch input:checked + .switch-slider:before {
        transform: translateX(20px);
    }
}

.check {
    background: #182d82;
    padding: 10px 15px;
    color: #fff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

/* ========== Google Maps 信息窗口样式 ========== */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    max-height: 400px !important;
}

.gm-style-iw-chr {
    display: none !important;
}

.info-window-content {
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.dealer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    border: 1px solid #e9ecef;
}

.dealer-logo-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-title {
    flex: 1;
    min-width: 0;
}

.info-ico {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.info-ico-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f4ff;
    color: #182d82;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.info-ico-item:hover {
    background: #182d82;
    color: #fff;
}

.info-ico-item:hover a {
    color: #fff;
}
.info-ico-item svg {
    flex-shrink: 0;
}

.info-title h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #e7f1ff;
    color: #182d82;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.verified-badge.success {
    background: #f0fdf4;
    color: #15803d;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
}

.info-body {
    padding: 16px;
}

.info-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
}
.service-url{
    display: block;
    margin-bottom: -4px;
    background: linear-gradient(to bottom, #000000, rgba(0, 0, 0, 0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-view-dealer {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #182d82 0%, #2a4bb5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(24, 45, 130, 0.2);
}

.btn-view-dealer:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 45, 130, 0.3);
}

.btn-view-dealer:active {
    transform: translateY(0);
}

.dealer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: #182d82;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #2a4bb5;
    text-decoration: underline;
}

.contact-item.address {
    cursor: default;
}

.contact-item.address:hover {
    background: #f8f9fa;
}

.contact-item.address span {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.dealer-banner {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.dealer-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式调整 */
@media screen and (max-width: 576px) {
    .info-header {
        padding: 12px;
    }

    .info-body {
        padding: 12px;
    }

    .dealer-logo,
    .dealer-logo-placeholder {
        width: 40px;
        height: 40px;
    }

    .info-title h3 {
        font-size: 14px;
    }
}

/* ========== 现代化弹窗样式 ========== */
.modern-modal {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 24px 28px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #182d82 0%, #2a4bb5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(24, 45, 130, 0.2);
}

.modal-icon svg {
    width: 28px;
    height: 28px;
}

.modal-icon svg path {
    fill: white !important;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.modern-modal .modal-body {
    padding: 28px;
}

.modern-modal .btn-close {
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.modern-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 表单样式 */
.verify-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form-label svg {
    flex-shrink: 0;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    color: #212529;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #182d82;
    box-shadow: 0 0 0 4px rgba(24, 45, 130, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* 国家下拉框容器 */
.input-with-dropdown {
    position: relative;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.country-dropdown li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.country-dropdown li:hover {
    background: #f8f9fa;
    color: #182d82;
}

.country-dropdown li.selected {
    background: #e7f1ff;
    color: #182d82;
    font-weight: 500;
}

.country-dropdown li[style*="cursor:default"] {
    color: #adb5bd;
    cursor: default !important;
}

.country-dropdown li[style*="cursor:default"]:hover {
    background: transparent;
}

/* 验证码输入组 */
.verification-input-group {
    display: flex;
    gap: 12px;
}

.verification-input-group .form-control {
    flex: 1;
}

.btn-get-code {
    padding: 12px 20px;
    background: linear-gradient(135deg, #182d82 0%, #2a4bb5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(24, 45, 130, 0.2);
}

.btn-get-code:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 45, 130, 0.3);
}

.btn-get-code:active:not(:disabled) {
    transform: translateY(0);
}

.btn-get-code:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #182d82 0%, #2a4bb5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(24, 45, 130, 0.2);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 45, 130, 0.35);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

/* 消息提示 */
.alert-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease;
}

.alert-message:not(:empty) {
    display: block;
}

.alert-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-message.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media screen and (max-width: 576px) {
    .modern-modal .modal-header {
        padding: 20px;
    }

    .modern-modal .modal-body {
        padding: 20px;
    }

    .modal-header-content {
        gap: 12px;
    }

    .modal-icon {
        width: 40px;
        height: 40px;
    }

    .modal-icon svg {
        width: 24px;
        height: 24px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .verification-input-group {
        flex-direction: column;
    }

    .btn-get-code {
        width: 100%;
    }

    .form-control {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
}

/* 旧样式兼容性保留 */
.verify_form {
    background: #fff;
    padding: 0;
}

.verify_form li {
    list-style: none;
    margin-bottom: 0;
}

.msg {
    color: #c53030;
}

.msg.success {
    color: #15803d;
}

/* 地图加载遮罩层样式 */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #182d82;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    font-weight: bold;
    color: #182d82;
    margin-bottom: 10px;
}

.loading-details {
    font-size: 14px;
    color: #666;
    text-align: center;
    max-width: 300px;
}

/* 确保地图容器立即显示 */
#map {
    min-height: 500px;
    background: #f8f9fa;
}

.dealers_Name span{
	float: left;
	width: 240px;
	line-height: 30px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	position: relative;
}

.dealers_Name{
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s;
    overflow: hidden;
}

.dealers_Name:hover {
    background-color: #f5f5f5;
}

.btn-navigate {
    background: #182d82;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    float: right;
}

.btn-navigate:hover {
    background: #0f1d5c;
}

/* 旧的国家输入框样式 - 已整合到新设计中 */
#countryInput {
    /* 样式已由 .form-control 统一管理 */
}

#countryList {
    /* 样式已由 .country-dropdown 统一管理 */
}

.country-dealers h4 {
	padding: 10px;
	background: #182d82;
	color: #fff;
	margin: 0 0 10px 0;
	border-radius: 3px;
	cursor: pointer;
	user-select: none;
}

.country-dealers h4:hover {
	background: #0f1d5c;
}

.dealer-list {
	transition: all 0.3s ease;
}

.map-search-results {
	max-height: 500px;
	overflow-y: auto;
}

.area-hint {
	padding: 20px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.area-countries {
	padding: 5px 0;
}

.country-item {
	padding: 12px 10px;
	border-bottom: 1px solid #ddd;
	cursor: pointer;
	transition: background-color 0.2s;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.country-item:hover {
	background-color: #f5f5f5;
}

.country-name {
	font-weight: 500;
	color: #333;
	flex: 1;
}

.dealer-count {
	font-size: 12px;
	color: #666;
	background: #e8e8e8;
	padding: 3px 8px;
	border-radius: 10px;
}

/* 开关样式 */
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
	float: right;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.4s;
	font-size: 9px;
	font-weight: bold;
	color: white;
	line-height: 24px;
}

.slider:after {
	content: "OFF";
	position: absolute;
	right: 6px;
	top: 0;
}

.slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.4s;
	z-index: 2;
}

input:checked + .slider {
	background-color: #182d82;
}

input:checked + .slider:after {
	content: "ON";
	left: 8px;
	right: auto;
}

input:checked + .slider:before {
	transform: translateX(26px);
}

.slider.round {
	border-radius: 24px;
}

.slider.round:before {
	border-radius: 50%;
}

@media screen and (max-width: 750px) {
    .filter-panel {
        max-height: 70vh;
    }

	.verify_form{
		padding: 0;
		width: 200px;
	}

	#countryInput {
		width: 100%;
		margin-bottom: 10px;
	}

	#contact {
		width: 100%;
	}

	.filter-select {
		font-size: 13px;
	}
}
