/* =========================================================================
   Quick Metro Calculator Styles (mos77.ru)
   ========================================================================= */

.vc-metro-quick-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    animation: vcMqFadeIn 0.2s ease-out;
}

.vc-metro-quick-modal {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    overflow-y: auto;
}

.vc-metro-quick-panel {
    pointer-events: auto;
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), 0 4px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 24px;
    animation: vcMqPanelIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

@keyframes vcMqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vcMqPanelIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Head */
.vc-mq-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.vc-mq-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #fee2e2;
    color: #ef161e;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.vc-mq-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.vc-mq-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.vc-mq-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Inputs Box */
.vc-mq-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    margin-bottom: 16px;
}

.vc-mq-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vc-mq-input-group:focus-within {
    border-color: #2d81e0;
    box-shadow: 0 0 0 3px rgba(45, 129, 224, 0.12);
    background: #ffffff;
}

.vc-mq-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vc-mq-dot--from {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.vc-mq-dot--to {
    background: #ef161e;
    box-shadow: 0 0 0 3px rgba(239, 22, 30, 0.2);
}

.vc-mq-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.vc-mq-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}

.vc-mq-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.vc-mq-clear {
    background: none;
    border: none;
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}

.vc-mq-clear:hover {
    color: #0f172a;
}

.vc-mq-swap-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.vc-mq-swap-btn:hover {
    border-color: #2d81e0;
    color: #2d81e0;
    transform: translateY(-50%) rotate(180deg);
}

/* Suggest Dropdown */
.vc-mq-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    border: 1px solid #e2e8f0;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    padding: 6px;
}

.vc-mq-sug-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.12s ease;
}

.vc-mq-sug-item:hover,
.vc-mq-sug-item.is-active {
    background: #f1f5f9;
}

.vc-mq-sug-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vc-mq-sug-line {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 400;
    margin-left: auto;
}

/* Quick Stations Pills */
.vc-mq-quick-stations {
    margin-bottom: 16px;
}

.vc-mq-qs-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.vc-mq-qs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vc-mq-qs-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.vc-mq-qs-pill:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef161e;
}

/* Result Box */
.vc-mq-result {
    margin-bottom: 18px;
    animation: vcMqResIn 0.2s ease-out;
}

@keyframes vcMqResIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.vc-mq-res-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.vc-mq-res-hero {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.vc-mq-res-time {
    font-size: 32px;
    font-weight: 900;
    color: #0369a1;
    line-height: 1;
}

.vc-mq-res-sub {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.vc-mq-res-carriage {
    font-size: 13px;
    color: #0284c7;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-mq-btn-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: #ef161e;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(239, 22, 30, 0.25);
    transition: all 0.2s ease;
}

.vc-mq-btn-map:hover {
    background: #dc141c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239, 22, 30, 0.35);
}

/* Hub Routes */
.vc-mq-hub-routes {
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.vc-mq-hr-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vc-mq-hr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.vc-mq-hr-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #ef161e;
}

.vc-mq-hr-arrow {
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.vc-mq-hr-item:hover .vc-mq-hr-arrow {
    transform: translateX(3px);
    color: #ef161e;
}

/* Footer Button */
.vc-mq-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.vc-mq-btn-full:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Sidebar Trigger Button */
.vc-metro-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(239, 22, 30, 0.1);
    color: #ef161e;
    border: none;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.15s ease;
}

.vc-metro-quick-btn:hover {
    background: #ef161e;
    color: #ffffff;
}

/* Card metro clickable trigger */
.js-metro-card-trigger {
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.js-metro-card-trigger:hover {
    color: #ef161e !important;
}
