/* WRAPPER & BASE */
.dtc-wrapper { 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    max-width: 100%; 
    margin: 0 auto; 
    color: #111; 
    font-size: 13px; 
    line-height: 1.3; 
}
.dtc-wrapper * { 
    box-sizing: border-box; 
}

/* INPUT AREA */
.input-master-table { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-bottom: 10px; 
}
.compact-box { 
    background: #fff; 
    border: 1px solid #bbb; 
    border-radius: 6px; 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.compact-label { 
    font-size: 11px; 
    font-weight: 800; 
    color: #0073aa; 
    text-transform: uppercase; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 4px; 
    display: flex; 
    justify-content: space-between; 
}
.u-field { 
    width: 100%; 
    padding: 4px 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 13px; 
    height: 32px; 
    background: #fff; 
    outline: none; 
    transition: border-color 0.2s; 
}
.u-field:focus { 
    border-color: #0073aa; 
}
.mini-toggles { 
    display: flex; 
    background: #f1f1f1; 
    border-radius: 4px; 
    padding: 2px; 
    margin-bottom: 8px; 
}
.mini-toggles input { 
    display: none; 
}
.mini-toggles label { 
    flex: 1; 
    text-align: center; 
    padding: 4px 2px; 
    font-size: 10px; 
    font-weight: 700; 
    color: #666; 
    cursor: pointer; 
    border-radius: 3px; 
    transition: 0.2s; 
}
.mini-toggles input:checked + label { 
    background: #fff; 
    color: #0073aa; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); 
}

/* CUSTOM BUILDER ROWS & BUTTONS */
.build-row { 
    display: flex; 
    align-items: center; 
    background: #f9f9f9; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    padding: 4px 6px; 
    gap: 6px; 
    margin-bottom: 6px; 
}
button.btn-add { 
    background-color: #f0f7ff; 
    border: 1px solid #0073aa; 
    color: #0073aa; 
    border-radius: 4px; 
    padding: 6px; 
    font-size: 11px; 
    font-weight: 700; 
    cursor: pointer; 
    width: 100%; 
    text-align: center; 
    margin-top: 2px; 
}
button.btn-add:hover { 
    background-color: #0073aa; 
    color: #ffffff; 
}
button.btn-rem { 
    background-color: #fee2e2; 
    border: 1px solid #fca5a5; 
    color: #dc2626; 
    border-radius: 4px; 
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px; 
    font-weight: 700; 
    cursor: pointer; 
    padding: 0; 
    line-height: 1;
}
button.btn-rem:hover { 
    background-color: #dc2626; 
    color: #ffffff; 
}
button.btn-main { 
    background-color: #0073aa; 
    color: #ffffff; 
    border: none; 
    padding: 12px; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 800; 
    width: 100%; 
    cursor: pointer; 
    margin-top: 10px; 
    text-transform: uppercase; 
}
button.btn-main:hover { 
    background-color: #005a87; 
}

/* RESULTS TABLE */
.res-container { 
    width: 100%; 
    overflow-x: auto; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    margin-top: 15px; 
}
.tour-table { 
    border-collapse: collapse; 
    width: auto; 
    min-width: 100%; 
    background: #fff; 
}
.tour-table th, .tour-table td { 
    padding: 10px 15px; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
    border-right: 1px solid #eee; 
    vertical-align: middle; 
}
.tour-table th { 
    background: #0073aa; 
    color: #fff; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 10px; 
}
.tour-table tbody tr:hover {
    background: #f8fafc;
}

/* BADGES */
.badge-list { 
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 6px; 
    align-items: center; 
}
.u-badge { 
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 600; 
    border: 1px solid #e2e8f0; 
    line-height: 1.2; 
    white-space: nowrap; 
}
.badge-room-std { 
    background: #f8fafc; 
}
.badge-veh { 
    background: #f0f9ff; 
    border-color: #bae6fd; 
    color: #0369a1; 
}

/* UTILITY CLASSES */
.hidden { 
    display: none !important; 
}

/* MODAL GUI */
.dtc-modal { 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.dtc-modal-content { 
    background: #fff; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}
.dtc-modal-header { 
    background: #0f172a; 
    color: #fff; 
    padding: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.dtc-modal-header h2 { 
    margin: 0; 
    font-size: 18px; 
}
.dtc-close { 
    font-size: 28px; 
    cursor: pointer; 
    line-height: 1; 
    transition: 0.2s; 
}
.dtc-close:hover { 
    color: #ef4444; 
}

/* TOOLTIP & INFO BUBBLE */
.dtc-info-wrap { 
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    outline: none; 
}
.dtc-info-icon { 
    background: #0ea5e9; 
    color: #fff; 
    border-radius: 50%; 
    width: 15px; 
    height: 15px; 
    font-size: 10px; 
    font-family: serif; 
    font-style: italic; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    line-height: 1; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
}
.dtc-tooltip { 
    visibility: hidden; 
    opacity: 0; 
    position: absolute; 
    top: 50%; 
    right: 150%; 
    transform: translateY(-50%); 
    background: #1e293b; 
    color: #f8fafc; 
    padding: 10px 12px; 
    border-radius: 6px; 
    font-size: 11px; 
    min-width: 140px; 
    z-index: 100; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
    transition: opacity 0.2s, visibility 0.2s; 
    pointer-events: none; 
    font-weight: normal; 
    text-transform: none; 
}
.dtc-tooltip::after { 
    content: ""; 
    position: absolute; 
    top: 50%; 
    left: 100%; 
    margin-top: -5px; 
    border-width: 5px; 
    border-style: solid; 
    border-color: transparent transparent transparent #1e293b; 
}

/* Trigger tooltip on Hover, Click, or Focus */
.dtc-info-wrap:hover .dtc-tooltip,
.dtc-info-wrap:focus .dtc-tooltip,
.dtc-info-wrap:active .dtc-tooltip { 
    visibility: visible; 
    opacity: 1; 
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) { 
    .input-master-table { 
        grid-template-columns: 1fr; 
    } 
}