/* Контейнер плагіна */
.wayzi-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Карта */
#map {
    height: 380px;
    width: 100%;
    border-radius: 10px;
    margin: 25px 0;
}

/* Блоки */
.wayzi-box {
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin: 20px 0;
}

/* Калькулятор */
.wayzi-box input {
    padding: 8px;
    width: 100px;
    margin-right: 10px;
}

.wayzi-box button {
    padding: 8px 16px;
    background: #2962ff;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.wayzi-box button:hover {
    background: #1e48c7;
}

/* Блок топлива */
.fuel-box {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.fuel-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.fuel-col {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.fuel-col label {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.fuel-col input {
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: 0.2s;
}

.fuel-col input:focus {
    border-color: #3b7cff;
    box-shadow: 0 0 0 4px rgba(59, 124, 255, 0.15);
    background: #fff;
}

/* Убираем стрелки у number input */
.fuel-col input::-webkit-outer-spin-button,
.fuel-col input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fuel-col input[type=number] {
    -moz-appearance: textfield;
}

.btn-col {
    display: flex;
    justify-content: center;
}

#fuel_calc_btn {
    background: #2d73ff;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

#fuel_calc_btn:hover {
    background: #1a5ae8;
}

.fuel-result {
    margin-top: 20px;
    font-size: 18px;
}

/* Блок ссылок */
.wayzi-links-box {
    margin-top: 10px;
    background: #fafafa;
    padding: 25px;
    border: 1px solid #eee;
}

.wayzi-links-box h2 {
    margin-bottom: 25px;
    font-size: 20px;
}

.wayzi-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.wayzi-links a {
    display: inline-block;
    background: #eef3ff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: #0a3ab0;
    transition: 0.2s;
    font-weight: 600;
}

.wayzi-links a:hover {
    background: #dce6ff;
}

.wayzi-links a.big-city {
    font-weight: 600;
}

.wayzi-links a.small-city {
    font-weight: 500;
}

/* Карточки маршрута */
.route-cards {
    display: flex;
    gap: 20px;
    margin: 25px 0 40px;
    flex-wrap: wrap;
}

.rc-item {
    flex: 1 1 200px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.rc-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

.rc-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.rc-title {
    font-size: 15px;
    color: #666;
    margin-bottom: 6px;
}

.rc-value {
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

/* Кастом текст */
.route-custom-text {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

/* Машина и финишная точка */
.wayzi-car-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    color: #434343;
}

.wayzi-finish-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.finish-dot {
    width: 14px;
    height: 14px;
    background: #ff2b6e;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
    z-index: 2;
    box-shadow: 0 0 6px rgba(255,0,110,0.6);
}

.finish-ring {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,0,110,0.4);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    animation: finishPulse 1.8s infinite ease-out;
    transform-origin: center;
    z-index: 1;
}

@keyframes finishPulse {
    0% { transform: scale(0.5); opacity: 0.9; }
    100% { transform: scale(2.3); opacity: 0; }
}

/* Мобильные отступы только для H1 и H2 */
@media (max-width: 768px) {
    h1, h2 {
        padding-left: 30px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
}
