/**
 * ITINERARY PLANNER - REFINED CSS
 */

.planner-page {
    background: #f1f5f9;
    min-height: calc(100vh - 72px);
    display: flex;
}

.planner-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: calc(100vh - 72px);
    width: 100%;
}

/* SIDEBAR */
.planner-sidebar {
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 30px;
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    overflow-y: auto;
    z-index: 10;
}

.sidebar-header h3 { font-size: 1.4rem; color: #0B1F4D; margin-bottom: 5px; }
.sidebar-header p { font-size: 0.85rem; color: #64748b; margin-bottom: 30px; }

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.filter-tabs button {
    flex: 1; height: 45px; border-radius: 10px; border: 1px solid #e2e8f0;
    background: #fff; cursor: pointer; transition: 0.3s;
}
.filter-tabs button.active { background: #2563EB; color: #fff; border-color: #2563EB; }

.service-discovery-list { display: flex; flex-direction: column; gap: 15px; }

.service-item {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    background: #fff; border: 1.2px solid #e2e8f0; border-radius: 14px;
    cursor: grab; transition: 0.25s;
}
.service-item:hover { transform: scale(1.02); border-color: #2563EB; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.item-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.item-icon.flight { background: #eff6ff; color: #2563EB; }
.item-icon.hotel { background: #fdf2f8; color: #db2777; }
.item-icon.tour { background: #f0fdf4; color: #16a34a; }

.item-details strong { display: block; font-size: 0.9rem; color: #0B1F4D; }
.item-details span { font-size: 0.75rem; color: #64748b; font-weight: 600; }

/* MAIN CANVAS */
.planner-main {
    padding: 60px;
    background: #f8fafc;
    flex: 1;
}

.planner-header { text-align: center; margin-bottom: 50px; }
.planner-header h1 { font-size: 2.5rem; margin-bottom: 10px; color: #0B1F4D; }

.itinerary-canvas { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; padding-bottom: 150px; }

.day-slot { position: relative; }
.day-label {
    font-weight: 900; font-size: 0.8rem; color: #2563EB; letter-spacing: 2px; margin-bottom: 15px;
}

.drop-zone {
    min-height: 120px; background: #fff; border: 2px dashed #cbd5e1; border-radius: 20px;
    display: flex; flex-direction: column; gap: 15px; padding: 20px; transition: 0.3s;
}
.drop-zone.drag-over { background: #eff6ff; border-color: #2563EB; border-style: solid; }

.drop-placeholder {
    height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 0.9rem; gap: 10px;
}
.drop-placeholder i { font-size: 1.8rem; opacity: 0.3; }

/* PLANNED ITEMS */
.planned-item-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 15px; padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); animation: popIn 0.3s ease;
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } }

.item-card-inner { display: flex; align-items: center; gap: 20px; }
.item-card-inner i { font-size: 1.3rem; }
.icon-flight { color: #2563EB; }
.icon-hotel { color: #db2777; }
.icon-tour { color: #16a34a; }

.item-text { flex: 1; }
.item-text strong { display: block; font-size: 0.95rem; color: #0B1F4D; }
.item-text span { font-size: 0.85rem; color: #2563EB; font-weight: 700; }

.remove-btn { background: none; border: none; color: #cbd5e1; cursor: pointer; transition: 0.2s; }
.remove-btn:hover { color: #ef4444; transform: scale(1.1); }

/* SUMMARY BAR */
.planner-summary-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e2e8f0; padding: 20px 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1); z-index: 1000;
}

.summary-item label { font-size: 0.7rem; font-weight: 800; color: #94a3b8; letter-spacing: 1px; margin: 0; }
.summary-item .value { font-size: 1.4rem; font-weight: 900; color: #0B1F4D; }

@media (max-width: 1024px) {
    .planner-layout { grid-template-columns: 1fr; }
    .planner-sidebar { display: none; }
    .planner-main { padding: 40px 20px; }
}
