/* ================================================= */
/*           Estrutura do Resumo do Roteiro          */
/* ================================================= */

.resumo_roteiro_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    width: 100%;
    padding: 20px;

    background-color: #f7f7f7;
    box-sizing: border-box;
}

.add-day-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* ================================================= */
/*              Seções de Dias do Roteiro            */
/* ================================================= */

.dias-roteiro {
    width: 100%;
    max-width: 800px;

    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    overflow: hidden;
}

.dia-item {
    border-bottom: 1px solid #cccccc;
}

.dia-item:last-child {
    border-bottom: none;
}

.dia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 20px;

    background-color: #fff;
    color: #2c3e50;

    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

.toggle-dia {
    user-select: none;
}

.toggle-dia i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.dia-header.expanded .toggle-dia i {
    transform: rotate(90deg);
}

.dia-content {
    display: none;
    padding: 10px 0;
    border-top: 1px solid #cccccc;
}

.dia-header.expanded + .dia-content {
    display: block;
}

/* ================================================= */
/*               Itens de Atividade                  */
/* ================================================= */

.atividade-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    position: relative;
    padding: 10px 20px;
    min-height: 48px;

    border-left: 2px solid transparent;
    user-select: none;
}

.atividade-border {
    position: absolute;
    left: 45px; right: 0px;

    height: 1px; width: auto;

    background: #e2e2e2;

    margin-top: 8px;
    bottom: 0;
}

.atividade-item:last-child .atividade-border {
    display: none;
}

.timeline-bar {
    position: absolute;
    left: 45px;
    top: 0;

    width: 2px;
    height: 100%;

    bottom: 0;
    z-index: 0;

    background-color: #e2e2e2;
}

.atividade-item:before {
    position: absolute;
    left: 41px;
    top: 50%;

    width: 10px;
    height: 10px;


    background-color: #ccc;
    border-radius: 50%;

    content: '';
    z-index: 1;

    transform: translateY(-50%);
}

.atividade-info {
    flex: 1 1 auto;
    margin-left: 25px;
}

.atividade-time {
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.atividade-nome {
    font-weight: 600;
    color: #2c3e50;
}

.atividade-comentario {
    display: block;
    color: #777;
    font-size: 0.9rem;
}

.atividade-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    position: static;
    margin: 0 24px 0 0;
    padding: 18px;

    font-size: 1.5rem;
    color: black;

    border: 1px solid black;
    border-radius: 5px;
}

.show-on-map {
    margin-left: 5px;
    cursor: pointer;
}

.time-selector-wrapper {
    display: flex;
    gap: 15px;
}

.time-selector {
    flex: 1;
}

.time-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.time-selector .select-wrapper {
    position: relative;
}

.time-selector .select-wrapper select {
    width: 100%;
    padding: 10px;

    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: white;

    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.time-selector .select-wrapper select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.time-selector .dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;

    pointer-events: none;
    color: #666;
    transform: translateY(-50%);
}

/* ================================================= */
/*                        BTN                        */
/* ================================================= */



.delete-dia-btn {
    background: none;
    border: none;

    color: #999;
    cursor: pointer;

    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.delete-dia-btn:hover {
    color: #e74c3c;
}

.edit-atividade-btn {
    background: none;
    border: none;

    color: #999;
    cursor: pointer;

    font-size: 1rem;
    margin-right: 15px;
    transition: color 0.2s ease;
}

.edit-atividade-btn:hover {
    color: #3498db;
}

.remove-atividade-btn {
    background: none;
    border: none;
    color: #999;

    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.remove-atividade-btn:hover {
    color: #e74c3c;
}

.add-day-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; height: 50px;

    background-color: #ffffff;
    color: white;
    border: none; 

    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-day-btn i {
    color: #2C3E50;
}

.add-day-btn:hover {
    background-color: #34495e;
}

.add-day-btn:hover .fa-plus {
    color: white;
}