/* The trip configurator shares one dialog across hotel page variants. */
[data-hd-trip-open]:focus-visible {
    outline: 3px solid var(--primary, #1e3c72);
    outline-offset: 6px;
    border-radius: 8px;
}
.hd-trip-modal .modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(21, 42, 79, .2);
}
.hd-trip-modal__header {
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px 20px;
    border-color: #e9edf2;
}
.hd-trip-modal__header > div { flex: 1; min-width: 0; }
.hd-trip-modal__eyebrow {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.hd-trip-modal .modal-title {
    color: var(--primary, #1e3c72);
    font-size: 24px;
    font-weight: 700;
}
.hd-trip-modal__intro {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}
.hd-trip-modal .btn-close {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px;
}
.hd-trip-modal .modal-body {
    padding: 20px 28px;
    overscroll-behavior: contain;
}
.hd-trip-modal .hd-trip-card__inner {
    margin: 0;
    padding: 0;
    border: 0;
}
.hd-trip-modal .hd-trip-tabs,
.hd-trip-modal .hd-trip-tabs-dropdown { display: none !important; }
.hd-trip-modal .hd-trip-actions {
    position: sticky;
    bottom: -20px;
    z-index: 4;
    margin-bottom: -20px;
    padding: 16px 0;
    background: #fff;
    border-top: 1px solid #e9edf2;
}
.hd-trip-dialog-open #hdStickyMobileCta,
.hd-trip-dialog-open .sticky-price-bar {
    visibility: hidden !important;
    pointer-events: none !important;
}
@media (max-width: 767.98px) {
    .hd-trip-modal .modal-content { border-radius: 0; }
    .hd-trip-modal__header { padding: 18px 16px 14px; }
    .hd-trip-modal .modal-title { font-size: 21px; }
    .hd-trip-modal__intro { font-size: 13px; }
    .hd-trip-modal .modal-body {
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    }
    .hd-trip-modal .hd-trip-actions {
        bottom: calc(-16px - env(safe-area-inset-bottom));
        margin-bottom: calc(-16px - env(safe-area-inset-bottom));
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    .hd-trip-modal .hd-trip-action { min-height: 44px; }
    .hd-trip-modal .hd-trip-card__inner .hd-trip-panel { min-width: 0; }
}

/* The page shows one entry card per transport section. */
#hdAggiungiViaggio.is-trip-added {
    background: #fff;
    border-color: #e9ecef;
}
.hd-trip-card__header--sections .hd-trip-card__icon-wrap { display: none; }
#hdAggiungiViaggio .hd-trip-card__header--sections .hd-trip-card__title { color: #1a2235; }
#hdAggiungiViaggio .hd-trip-card__header--sections .hd-trip-card__title::before { content: none; }
#hdAggiungiViaggio .hd-trip-card__header--sections .hd-trip-card__subtitle {
    color: #6b7280;
    font-weight: 400;
}
.hd-trip-card__header--sections {
    cursor: default;
    flex-wrap: wrap;
    align-items: center;
}
.hd-trip-card__header--sections > div:nth-child(2) { min-width: 170px; }
.hd-trip-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.hd-trip-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
    color: var(--primary, #1e3c72);
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 14px;
    text-align: left;
    transition: border-color .15s, box-shadow .15s;
}
.hd-trip-choice:hover {
    border-color: var(--accent, #f5a623);
    box-shadow: 0 4px 16px rgba(30, 60, 114, .08);
}
.hd-trip-choice__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    color: var(--primary, #1e3c72);
    background: #f0f4fa;
    border-radius: 11px;
    font-size: 21px;
}
.hd-trip-choice__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.hd-trip-choice__description { color: #64748b; font-size: 12px; line-height: 1.5; }
.hd-trip-choice__action { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; }
.hd-trip-choice.is-added { border-color: #198754; background: #f3fbf6; }
.hd-trip-choice.is-added .hd-trip-choice__action { color: #157347; }
.hd-trip-choice.is-pending { border-color: var(--accent, #f5a623); background: #fffaf0; }
.hd-trip-summary-link {
    padding: 8px 12px;
    color: var(--primary, #1e3c72);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .hd-trip-choices { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; }
    .hd-trip-choice {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 46px;
        padding: 8px 10px;
        border-radius: 10px;
    }
    .hd-trip-choice__icon {
        width: 28px;
        height: 28px;
        margin: 0;
        border-radius: 8px;
        font-size: 17px;
    }
    .hd-trip-choice__title { font-size: 13px; line-height: 1.3; }
    .hd-trip-choice__description { display: none; }
    .hd-trip-choice__action {
        max-width: 90px;
        margin: 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.3;
        text-align: right;
    }
}
