/* כפתור הוספה למסלול (עיגול צף על התמונה) */
.tdm-itinerary-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 5;
    color: #555;
}

.tdm-itinerary-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: #0073aa;
}

/* מצב פעיל (כשהאטרקציה במסלול) */
.tdm-itinerary-btn.active {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
}

/* סרגל תחתון צף (המסלול שלי) */
#tdm-itinerary-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 25px;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* אפקט קפיצה נחמד */
    min-width: 320px;
    justify-content: space-between;
}

.itinerary-info {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itinerary-info .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #f1c40f; /* צהוב למיקום */
}

#tdm-generate-route-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

#tdm-generate-route-btn:hover {
    background: #219150;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

#tdm-generate-route-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* אנימציית כניסה */
@keyframes slideUp {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* התאמה למובייל */
@media (max-width: 600px) {
    #tdm-itinerary-bar {
        width: 90%;
        padding: 12px 20px;
        bottom: 20px;
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
    }
    
    #tdm-generate-route-btn {
        width: 100%;
        justify-content: center;
    }
}

/* סידור הכפתורים בבר התחתון */
.tdm-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* עיצוב כפתור המחיקה */
#tdm-clear-all-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

#tdm-clear-all-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin: 0;
}

#tdm-clear-all-btn:hover {
    background-color: #e74c3c; /* צבע אדום */
    border-color: #e74c3c;
    transform: scale(1.1);
}



/*=====*/


/* סרגל צד - רשימת מסלול */
.tdm-sortable-list {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tdm-mini-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s;
    position: relative;
}

.tdm-mini-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tdm-mini-handle {
    cursor: grab;
    color: #ccc;
    margin-left: 8px;
}

.tdm-mini-thumb img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 10px;
}

.tdm-mini-details {
    flex-grow: 1;
    text-align: right;
}

.tdm-mini-details h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tdm-mini-cat {
    display: inline-block;
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

.tdm-mini-remove {
    background: transparent;
    border: none;
    color: #ffbaba;
    cursor: pointer;
    transition: color 0.2s;
}

.tdm-mini-remove:hover { color: #ff5252; }

/* Placeholder בזמן גרירה */
.tdm-sortable-placeholder {
    height: 58px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

/* כפתור ניווט סופי בסרגל הצד */
.tdm-route-ready-btn {
    width: 100%;
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}


/* Sidebar Itinerary Container */
.tdm-sortable-list {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tdm-mini-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 8px 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.tdm-mini-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #d1d8dd;
}

.tdm-mini-handle {
    cursor: grab;
    color: #cbd5e0;
    margin-left: 10px;
}

.tdm-mini-handle:active { cursor: grabbing; }

.tdm-mini-thumb img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 12px;
}

.tdm-mini-details {
    flex-grow: 1;
    text-align: right;
}

.tdm-mini-details h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.2;
}

.tdm-mini-cat-dot {
    display: block;
    width: 15px;
    height: 3px;
    border-radius: 2px;
    margin-top: 4px;
}

.tdm-mini-remove {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.tdm-mini-remove:hover { color: #e53e3e; }

/* Placeholder during drag */
.tdm-mini-item-placeholder {
    background: #f7fafc;
    border: 2px dashed #edf2f7;
    border-radius: 10px;
    height: 54px;
}

/* Sidebar Button */
.tdm-route-ready-btn {
    width: 100%;
    background: #2d3748;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

.tdm-route-ready-btn:hover { background: #1a202c; }








