/* Transport Connector Styles */
/* 交通连接器容器 - 确保透明背景 */
.transport-connector-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.transport-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.15rem 0;
    position: relative;
    z-index: 10;
    background: transparent;
}

.transport-line {
    width: 2px;
    height: 8px;
    background-color: #e0e0e0;
    margin-bottom: 1px;
}

/* Transport Button Group - Split into Mode + Link */
.transport-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
}

.transport-mode-btn {
    background-color: transparent !important;
    border: none !important;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transport-mode-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #495057;
}

/* ... */

/* 公交时间填写按钮 - 与主按钮风格一致 */
.transport-time-btn {
    background-color: transparent !important;
    border: none !important;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.transport-time-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #495057;
    transform: scale(1.02);
}

.transport-time-btn u {
    text-decoration: underline;
    color: inherit;
}

/* Transport Link Button (External Map) - Earth Tone */
.transport-link-btn {
    background-color: transparent !important;
    border: none !important;
    border-radius: 8px;
    /* Slightly squarer match screenshot */
    padding: 6px;
    font-size: 0.9rem;
    color: #626F47 !important;
    /* Sage */
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: 4px;
}

.transport-link-btn:hover {
    color: #4C5735 !important;
    background-color: rgba(98, 111, 71, 0.1) !important;
    transform: scale(1.1);
}

/* Legacy - keep for backward compatibility */
.transport-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transport-btn:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: scale(1.05);
}

.transport-btn i {
    font-size: 0.9rem;
}

.transport-options {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    flex-direction: row;
    /* Horizontal list */
    gap: 0.5rem;
    z-index: 20;
    margin-top: 5px;
}

.transport-options.show {
    display: flex;
}

.transport-option-item {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
    color: #555;
    transition: background 0.2s;
}

.transport-option-item:hover {
    background-color: #f0f0f0;
    color: #626F47;
    /* Primary color */
}

/* Specific Icons colors if needed */
.fa-car {
    color: #626F47;
}

/* Blue for car */
.fa-person-walking {
    color: #A4B465;
}

/* Green for walking */
.fa-train-subway {
    color: #F0BB78;
}

/* Orange for transit */

/* ================================
   公交时间输入弹窗样式
   ================================ */
.transit-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.transit-modal-overlay.show {
    display: flex;
}

.transit-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transit-modal-header {
    background: linear-gradient(135deg, #F0BB78 0%, #D99F59 100%);
    padding: 20px 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.transit-modal-header i {
    font-size: 1.3rem;
}

.transit-modal-body {
    padding: 24px;
}

.transit-modal-hint {
    margin: 0 0 20px 0;
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.transit-input-group {
    position: relative;
}

.transit-time-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    color: #111827;
    transition: all 0.2s;
    box-sizing: border-box;
}

.transit-time-input:focus {
    outline: none;
    border-color: #F0BB78;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.transit-time-input::placeholder {
    color: #9CA3AF;
}

.transit-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.transit-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.transit-btn-secondary {
    background: #F3F4F6;
    color: #4B5563;
}

.transit-btn-secondary:hover {
    background: #E5E7EB;
}

.transit-btn-primary {
    background: linear-gradient(135deg, #F0BB78 0%, #D99F59 100%);
    color: white;
}

.transit-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}