/* ===== Загальний контейнер ===== */

.ai-travel-planner{
    max-width:1400px;
    margin:30px auto;
    padding:25px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    font-family:Arial,sans-serif;
}

/* ===== Заголовок ===== */

.ai-travel-planner h2{
    margin-top:0;
    color:#45443d;
}

/* ===== Поля ===== */

.aitp-field{
    margin:20px 0;
}

.aitp-field label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.aitp-field input{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:12px;
    box-sizing:border-box;
}

.aitp-field input:focus{
    outline:none;
    border-color:#45443d;
}

/* ===== Кнопка ===== */

#plan-route{
    background:#45443d;
    color:#fff;
    border:none;
    padding:14px 24px;
    border-radius:8px;
    cursor:pointer;
    font-size:12px;
    font-weight:bold;
    transition:.2s;
}

#plan-route:hover{
    background:#0b5ed7;
}

#plan-route:disabled{
    opacity:.6;
    cursor:not-allowed;
}

/* ===== Фільтри ===== */

.aitp-filters{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin:20px 0;
    padding:15px;
    background:#f8f9fa;
    border-radius:10px;
}

/* ===== План ===== */

#aitp-info,
#aitp-trip-plan{
    margin:20px 0;
    padding:18px;
    background:#f8f9fa;
    border-left:5px solid #45443d;
    border-radius:10px;
}

/* ===== Макет ===== */

.aitp-layout{
    display:flex;
    gap:20px;
    margin-top:20px;
}

#map{
    flex:3;
    height:650px;
    border-radius:12px;
    overflow:hidden;
}

#aitp-sidebar{
    flex:1;
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    overflow-y:auto;
    max-height:650px;
}

#aitp-sidebar h3{
    margin-top:0;
}

/* ===== Картки місць ===== */

.aitp-place{
    padding:12px;
    margin-bottom:12px;
    border:1px solid #e6e6e6;
    border-radius:10px;
    cursor:pointer;
    transition:.2s;
}

.aitp-place:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

/* ===== Маркери ===== */

.aitp-marker{
    width:36px;
    height:36px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    border:2px solid #45443d;
    border-radius:50%;
    font-size:14px;
    box-shadow:0 3px 8px rgba(0,0,0,.25);
}

/* ===== Завантаження ===== */

#aitp-loading{
    text-align:center;
    padding:20px;
}

.aitp-spinner{
    width:48px;
    height:48px;
    margin:auto;
    border:5px solid #ddd;
    border-top:5px solid #45443d;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ===== Адаптивність ===== */

@media (max-width:992px){

    .aitp-layout{
        flex-direction:column;
    }

    #map{
        height:450px;
    }

    #aitp-sidebar{
        max-height:none;
    }

    .aitp-filters{
        flex-direction:column;
        gap:10px;
    }

    #plan-route{
        width:100%;
    }
}
.aitp-field select{

    width:100%;
    padding:12px;

    border:1px solid #ccc;

    border-radius:8px;

    font-size:12px;

    background:#fff;

}
#aitp-ai{

    margin-top:20px;

    padding:20px;

    background:#eef6ff;

    border-left:5px solid #45443d;

    border-radius:10px;

}

#aitp-ai h3{

    margin-top:0;

}

#aitp-ai ul{

    margin:10px 0 0;

    padding-left:20px;

}

#aitp-ai li{

    margin-bottom:8px;

}
#aitp-ai-top{

    margin-top:20px;

    padding:20px;

    background:#fff8e8;

    border-left:5px solid #ffc107;

    border-radius:10px;

}

.aitp-top-item{

    padding:12px;

    margin:10px 0;

    background:white;

    border-radius:8px;

    box-shadow:0 2px 6px rgba(0,0,0,.08);

}
#aitp-ai-top{

    margin-top:25px;

    padding:20px;

    background:#fff8e6;

    border-left:5px solid #ffb300;

    border-radius:10px;

}

.aitp-top-item{

    margin:12px 0;

    padding:15px;

    background:#fff;

    border-radius:10px;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

    transition:.2s;

}

.aitp-top-item:hover{

    transform:translateY(-2px);

}

.aitp-top-item h4{

    margin:0 0 8px;

    color:#45443d;

}

.aitp-top-item p{

    margin:4px 0;

}
.aitp-score{

    color:#ff9800;

    margin:8px 0;

    font-weight:bold;

}

.aitp-type{

    color:#444;

    margin-bottom:6px;

}

.aitp-recommend{

    color:#198754;

    margin-bottom:12px;

}

.aitp-show-place{

    width:100%;

    padding:10px;

    border:none;

    border-radius:8px;

    background:#45443d;

    color:white;

    cursor:pointer;

    font-size:12px;

    transition:.2s;

}

.aitp-show-place:hover{

    background:#0b5ed7;

}
.aitp-show-place{

    margin-top:10px;

    width:100%;

    padding:10px;

    background:#45443d;

    color:white;

    border:none;

    border-radius:6px;

    cursor:pointer;

}

.aitp-show-place:hover{

    background:#0b5ed7;

}

.aitp-place {
    font-size:12px;
}

@media (max-width:992px){

 
 #map {
    flex: 3;
    height: 650px;
    border-radius: 12px;
    overflow: hidden;
}
.aitp-layout {height: 650px;}
}