* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0D0D0D;
    color: #fff;
    min-height: 100vh;
}

.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.left-panel {
    width: 420px;
    background: linear-gradient(180deg, #1A1A2E 0%, #16213E 50%, #0F0F1A 100%);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(180deg, rgba(66, 153, 225, 0.03) 0%, transparent 50%);
    background-size: 20px 20px, 100% 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(66, 153, 225, 0.15);
    z-index: 10;
    backdrop-filter: blur(20px);
}

.panel-header {
    padding: 24px 20px;
    background: rgba(66, 153, 225, 0.05);
    border-bottom: 1px solid rgba(66, 153, 225, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.5));
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FF4500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #888;
    letter-spacing: 2px;
}

.search-box {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(66, 153, 225, 0.08);
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
}

.search-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #FF4500;
    background: rgba(255, 69, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.1);
}

.search-input-wrapper input::placeholder {
    color: #666;
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4299E1 0%, #3182CE 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(66, 153, 225, 0.4);
}

.quick-locations {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-label {
    font-size: 12px;
    color: #666;
}

.quick-btn {
    padding: 6px 12px;
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.2);
    border-radius: 20px;
    color: #4299E1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: rgba(66, 153, 225, 0.2);
    border-color: #4299E1;
}

.ktv-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.ktv-list::-webkit-scrollbar {
    width: 6px;
}

.ktv-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.ktv-list::-webkit-scrollbar-thumb {
    background: rgba(66, 153, 225, 0.3);
    border-radius: 3px;
}

.list-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(66, 153, 225, 0.1);
    border-top-color: #4299E1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.6); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1); 
        opacity: 0.6; 
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 215, 0, 0.5);
    }
    100% { 
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.marker-highlighted {
    z-index: 999 !important;
}

.ktv-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(66, 153, 225, 0.08);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
}

.ktv-item:hover {
    border-color: rgba(66, 153, 225, 0.35);
    transform: translateX(6px);
    background: linear-gradient(145deg, rgba(66, 153, 225, 0.08) 0%, rgba(66, 153, 225, 0.02) 100%);
    box-shadow: 0 4px 20px rgba(66, 153, 225, 0.08);
}

.ktv-item.active {
    background: #4299E1;
    border-color: #4299E1;
    box-shadow: 0 0 20px rgba(66, 153, 225, 0.3);
}

.ktv-item.active .ktv-name {
    color: #FFD700;
    font-size: 16.8px;
}

.ktv-item.active .ktv-price {
    color: #FFFFFF;
}

.ktv-item.active .ktv-info-row {
    color: #FFFFFF;
}

.ktv-item.active .ktv-area {
    color: #FFFFFF;
}

.ktv-item.matched {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 165, 0, 0.04) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.ktv-item.matched:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 165, 0, 0.06) 100%);
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.15);
}

.ktv-item.matched .ktv-name {
    color: #FFD700;
}

.ktv-item.matched .ktv-price {
    color: #FF6347;
}

.match-badge {
    padding: 3px 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #1A1A1A;
    margin-right: 8px;
}

.ktv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ktv-name {
    font-size: 14px;
    font-weight: 700;
    color: #E2E8F0;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-open {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-closed {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6464;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.ktv-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ktv-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #CBD5E0;
}

.ktv-info-row .icon {
    font-size: 12px;
    opacity: 0.6;
}

.ktv-price {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.ktv-distance {
    color: #00ff88;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.ktv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.ktv-area {
    font-size: 12px;
    color: #A0AEC0;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 10px;
}

.ktv-features {
    font-size: 11px;
    color: #666;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.right-panel {
    flex: 1;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-toolbar {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.toolbar-btn {
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 10px;
    color: #4299E1;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.toolbar-btn:hover {
    background: rgba(66, 153, 225, 0.2);
    border-color: #4299E1;
}

.info-window {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(66, 153, 225, 0.5);
    border-radius: 16px;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(66, 153, 225, 0.1);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(66, 153, 225, 0.1);
}

.info-header h3 {
    font-size: 18px;
    color: #FFD700;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #FFFFFF;
}

.info-label {
    color: #90CAF9;
    min-width: 50px;
    font-weight: 500;
}

.info-row .price {
    color: #ffd700;
    font-weight: 600;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 10px;
    padding: 14px 28px;
    color: #E2E8F0;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #4299E1;
    color: #4299E1;
}

.toast.error {
    border-color: #FF6347;
    color: #FF6347;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        height: 45%;
    }

    .right-panel {
        height: 55%;
    }

    .info-window {
        width: 90%;
        bottom: 10px;
    }
}