/* ============================= */
/* WRAPPER */
/* ============================= */
.drm-map-wrapper {
    position: relative;
    width: 100%;
}

/* ============================= */
/* MAP */
/* ============================= */
#drm-map,
.drm-map-canvas {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
}

/* ============================= */
/* INFO CARD */
/* ============================= */
.drm-map-info {
    position: absolute;
    top: auto;
	bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 16px;
    border-radius: 16px;
    z-index: 5;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    max-width: 380px;
}

/* ============================= */
/* TITLE */
/* ============================= */
.drm-route-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* ============================= */
/* META */
/* ============================= */
.drm-route-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* ============================= */
/* WAYPOINTS */
/* ============================= */
.drm-waypoints {
    margin-bottom: 12px;
    font-size: 13px;
    color: #333;
}

.drm-waypoints strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #111;
}

.drm-waypoint {
    padding-left: 4px;
    margin-bottom: 3px;
    position: relative;
}

/* номер + точка */
.drm-waypoint::before {
    content: "•";
    position: absolute;
    left: -8px;
    color: #2b6cff;
}

/* ============================= */
/* BUTTON */
/* ============================= */
.drm-map-btn-inline {
    display: inline-block;
	width: 100%;
    text-align: center;
    margin-top: 4px;
    background: linear-gradient(135deg, #2b6cff, #1f4ed8);
    color: #fff;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(43, 108, 255, 0.4);
}

.drm-map-btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(43, 108, 255, 0.5);
}

/* ============================= */
/* GOOGLE UI FIX */
/* ============================= */
.gm-style button,
.gm-style .gm-fullscreen-control {
    z-index: 10 !important;
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 768px) {

    #drm-map,
    .drm-map-canvas {
        height: 380px;
    }

    .drm-map-info {
        top: auto;
        left: 10px;
        padding: 12px;
        max-width: 90%;
		height: auto;
    }

    .drm-route-title {
        font-size: 15px;
    }

    .drm-route-meta {
        font-size: 13px;
    }

    .drm-waypoints {
        font-size: 12px;
    }

    .drm-map-btn-inline {
        padding: 9px 12px;
        font-size: 12px;
    }
}

.gm-style button {
    border-radius: 16px !important;
}

.gm-style-mtc:not(:last-child) {
    margin-right: 8px !important;
}