:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 221 83% 53%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 221 83% 53%;
    --radius: 1rem;
}

.dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 217 91% 60%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 217 91% 60%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

/* Additional styles for components that are hard to replicate with just Tailwind */
[data-state=open]>div {
    display: block;
}

[data-state=closed]>div {
    display: none;
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.tabs-list button[aria-selected="true"] {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
}

.tabs-list button {
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.dark .tabs-list button[aria-selected="true"] {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
}

.dark .tabs-list button {
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground));
}

/* 地图标记容器（覆盖整个地图，作为蓝点的定位上下文） */
.map-markers-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Map marker base styles + animations（静态 CSS，不依赖 Tailwind 动态编译） */
.map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #2563eb;
    border-radius: 9999px;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 10;
    animation: pulse 2s infinite;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.dark .map-marker {
    border-color: #1f2937;
}

@media (min-width: 768px) {
    .map-marker {
        width: 16px;
        height: 16px;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.map-marker:hover {
    animation: none;
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 1;
}

/* Ensure map container has proper positioning context */
.map-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

b,
strong {
    font-weight: bolder;
}

/* Map marker tooltip（JS 驱动，fixed 定位避免被 overflow/transform 裁剪） */
.map-tooltip {
    position: fixed;
    z-index: 9999;
    padding: 5px 10px;
    border-radius: 6px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-8px);
    transition: opacity 0.15s ease;
}

.map-tooltip.visible {
    opacity: 1;
}

/* ===== 定价卡片（JS 渲染，样式由静态 CSS 提供，避免依赖 Tailwind 动态编译） ===== */
.pricing-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(229, 231, 235, 0.4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to bottom, #ffffff, rgba(249, 250, 251, 0.1));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pricing-card.popular {
    border: 2px solid #2563eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.pricing-card .popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-bottom-left-radius: 0.5rem;
}

.dark .pricing-card {
    border-color: rgba(31, 41, 55, 0.4);
    background-image: linear-gradient(to bottom, #000000, rgba(17, 24, 39, 0.1));
}

.dark .pricing-card.popular {
    border-color: #2563eb;
}

.order-btn {
    width: 100%;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.order-btn.primary {
    background-color: #2563eb;
    color: #ffffff;
}

.order-btn.primary:hover {
    background-color: #1d4ed8;
}

.order-btn.secondary {
    background-color: #f3f4f6;
    color: #1f2937;
}

.order-btn.secondary:hover {
    background-color: #e5e7eb;
}

.dark .order-btn.secondary {
    background-color: #1f2937;
    color: #e5e7eb;
}

.dark .order-btn.secondary:hover {
    background-color: #374151;
}

/* footer 底部链接 */
.footer-link {
    font-size: 0.75rem;
    color: #bfdbfe;
    transition: color 0.15s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: #ffffff;
}

/* 定价卡片内部元素（静态 CSS，避免依赖 Tailwind 动态编译） */
.pricing-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.pricing-price-row {
    display: flex;
    align-items: baseline;
    margin-top: 1rem;
}

.pricing-price-value {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}

.pricing-price-unit {
    color: #6b7280;
    margin-left: 0.25rem;
}

.dark .pricing-price-unit {
    color: #9ca3af;
}

.pricing-desc {
    color: #6b7280;
    margin-top: 0.5rem;
}

.dark .pricing-desc {
    color: #9ca3af;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
}

.pricing-features li:first-child {
    margin-top: 0;
}

.feature-check {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    color: #3b82f6;
    flex-shrink: 0;
}