/* Viajario 0.13.12 · edición directa del título desde el resumen */

body.day-title-modal-open {
    overflow: hidden;
}

.itinerary-section .day-collapsible > summary.day-head {
    grid-template-columns: 48px minmax(0, 1fr) auto auto auto auto !important;
}

.day-title-quick-edit {
    min-height: 38px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #061857;
    background: #fff;
    border: 1px solid #d8deea;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.day-title-quick-edit:hover,
.day-title-quick-edit:focus-visible {
    color: #fff;
    background: #d96b60;
    border-color: #d96b60;
    outline: none;
}

.day-title-quick-edit > span {
    font-size: 16px;
    line-height: 1;
}

.day-title-dialog {
    position: fixed;
    z-index: 10500;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.day-title-dialog.is-open {
    display: flex;
}

.day-title-dialog-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(2, 10, 40, .68);
    border: 0;
    backdrop-filter: blur(3px);
    cursor: default;
}

.day-title-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    overflow: hidden;
    color: #202637;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(2, 10, 40, .38);
}

.day-title-dialog-panel > header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #061857;
    background: #f6f8fc;
    border-bottom: 1px solid #e1e6f0;
}

.day-title-dialog-panel h2 {
    margin: 3px 0 0;
    font-size: 21px;
}

.day-title-dialog-close {
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: #061857;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.day-title-dialog-close:first-letter {
    font-size: 22px;
    line-height: 1;
}

.day-title-dialog-panel > form {
    padding: 22px;
}

.day-title-dialog-panel .field input {
    font-size: 16px;
}

.day-title-dialog-panel .field-help {
    margin: 9px 0 0;
}

.day-title-dialog-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 980px) {
    .itinerary-section .day-collapsible > summary.day-head {
        grid-template-columns: 48px minmax(0, 1fr) auto auto auto !important;
    }

    .itinerary-section .day-collapsible .current-day-badge {
        display: none;
    }

    .day-title-quick-edit b {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 760px) {
    .itinerary-section .day-collapsible > summary.day-head {
        grid-template-columns: 42px minmax(0, 1fr) 38px 38px !important;
        gap: 8px !important;
    }

    .day-title-quick-edit {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
        padding: 0;
    }

    .day-title-dialog {
        padding: 8px;
    }

    .day-title-dialog-panel {
        border-radius: 10px;
    }

    .day-title-dialog-panel > header,
    .day-title-dialog-panel > form {
        padding: 15px 14px;
    }

    .day-title-dialog-close span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .day-title-dialog-close {
        width: 40px;
        justify-content: center;
        padding: 0;
        font-size: 22px;
    }

    .day-title-dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .day-title-dialog-actions .button {
        width: 100%;
    }
}
