/* 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-dup { background-color: #e0f2fe; border: 1px solid #7dd3fc; color: #0284c7; border-radius: 4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; cursor: pointer; padding: 0; line-height: 1; transition: 0.2s;}
button.btn-dup:hover { background-color: #bae6fd; color: #0369a1; }

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; transition: transform 0.1s;}
button.btn-main:hover { background-color: #005a87; }
button.btn-main:active { transform: scale(0.98); }

/* 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; }

/* HOVERABLE TABLE ROW FOR QUOTATION GENERATOR */
.dtc-res-row { transition: background 0.2s; cursor: pointer; }
.dtc-res-row:hover { background-color: #f0f9ff; }

/* 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; }

.hidden { display: none !important; }

/* COMPACT 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; backdrop-filter: blur(2px); }
.dtc-modal-content { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: popIn 0.2s ease-out; display: flex; flex-direction: column; max-height: 95vh; }
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dtc-modal-header { background: #0f172a; color: #fff; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;}
.dtc-modal-header h2 { margin: 0; font-size: 14px; font-weight:bold; }
.dtc-close { font-size: 24px; cursor: pointer; line-height: 1; transition: 0.2s; }
.dtc-close:hover { color: #ef4444; }
.dtc-modal-body { padding: 12px; overflow-y: auto; flex-grow: 1; }

/* CUSTOM CHECKBOXES */
.dtc-place-cb { width: 14px; height: 14px; cursor: pointer; margin: 0; }

/* 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; cursor: default; }
.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; }

.dtc-info-wrap:hover .dtc-tooltip,
.dtc-info-wrap:focus .dtc-tooltip,
.dtc-info-wrap:active .dtc-tooltip { visibility: visible; opacity: 1; }

@media (max-width: 768px) { 
    .input-master-table { grid-template-columns: 1fr; } 
    .dtc-tooltip { right: auto; top: auto; bottom: 150%; left: 50%; transform: translateX(-50%); }
    .dtc-tooltip::after { left: 50%; top: 100%; margin-left: -5px; border-color: #1e293b transparent transparent transparent; margin-top: 0;}
}