.dsb-booking-widget {
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 18px;
    padding: 26px; margin: 32px 0; box-shadow: 0 12px 32px rgba(26,43,72,0.08);
    font-family: 'DM Sans', -apple-system, sans-serif; color: #232323;
}
.dsb-widget-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; }
.dsb-widget-header h3 { margin: 6px 0 0; font-size: 20px; color: #1A2B48; }
.dsb-pill { display: inline-block; background: #eef3ff; color: #3b71fe; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dsb-pill-orange { background: #fff1ed; color: #FA5636; }
.dsb-date-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dsb-date-bar label { display: block; font-size: 12px; font-weight: 600; color: #5E6D77; margin-bottom: 4px; }
.dsb-date-bar input { height: 40px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 10px; }

.dsb-widget-grid, .dsb-car-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.dsb-room-item {
    display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid #e2e8f0;
    border-radius: 12px; margin-bottom: 12px; transition: all .2s;
}
.dsb-room-item.selected { border-color: #3b71fe; background: #f8faff; }
.dsb-room-thumb { width: 96px; height: 74px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.dsb-room-meta { flex: 1; }
.dsb-room-meta h4 { margin: 0 0 4px; font-size: 16px; color: #1A2B48; }
.dsb-avail { font-size: 13px; color: #5E6D77; }
.dsb-room-right { text-align: right; }
.dsb-price strong { display: block; font-size: 17px; color: #3b71fe; }
.dsb-price small { font-size: 12px; color: #5E6D77; }

.dsb-checkout-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.dsb-summary-box { background: #eef3ff; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.dsb-summary-box small { display: block; font-size: 12px; color: #5E6D77; }
.dsb-summary-box strong { display: block; color: #1A2B48; font-size: 15px; }
.dsb-summary-box span { font-size: 13px; color: #3b71fe; font-weight: 600; }

.dsb-fg { margin-bottom: 10px; }
.dsb-fg label, .dsb-row-2 label, .dsb-row-3 label { display: block; font-size: 12px; font-weight: 600; color: #1A2B48; margin-bottom: 4px; }
.dsb-booking-widget input, .dsb-booking-widget select {
    width: 100%; height: 40px; border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 0 10px; background: #fff; font-size: 14px; box-sizing: border-box;
}
.dsb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.dsb-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.dsb-coupon-row { display: flex; gap: 8px; margin-bottom: 6px; }
.dsb-coupon-msg { font-size: 13px; margin-bottom: 10px; }

.dsb-driver-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dsb-drv-btn { padding: 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.dsb-drv-btn span { display: block; font-size: 12px; color: #5E6D77; }
.dsb-drv-btn strong { font-size: 15px; color: #1A2B48; }
.dsb-drv-btn.active { border-color: #3b71fe; background: #eef3ff; }
.dsb-extras label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; cursor: pointer; }
.dsb-extras input { width: auto; height: auto; }

.dsb-total-box { border-top: 1px dashed #cbd5e1; padding-top: 12px; margin: 12px 0; }
.dsb-total-box > div { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.dsb-grand { font-size: 17px !important; font-weight: 700; color: #1A2B48; border-top: 1px solid #cbd5e1; padding-top: 8px; }
.dsb-grand strong { color: #3b71fe; font-size: 20px; }

.dsb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1.5px solid transparent; transition: .2s; }
.dsb-btn-primary { background: #3b71fe; color: #fff; }
.dsb-btn-primary:hover { background: #2558e0; }
.dsb-btn-outline { background: #fff; color: #3b71fe; border-color: #3b71fe; }
.dsb-btn-full { width: 100%; height: 44px; font-size: 15px; }

.dsb-modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.65); z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.dsb-modal.open { display: flex; }
.dsb-modal-box { background: #fff; border-radius: 18px; padding: 28px; max-width: 420px; width: 100%; text-align: center; position: relative; }
.dsb-modal-close { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 24px; cursor: pointer; }
.dsb-modal-icon { width: 52px; height: 52px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 26px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.dsb-modal-code { background: #f1f5f9; padding: 10px; border-radius: 8px; margin: 10px 0; }

@media (max-width: 860px) {
    .dsb-widget-grid, .dsb-car-grid { grid-template-columns: 1fr; }
    .dsb-room-item { flex-direction: column; align-items: flex-start; }
    .dsb-room-right { text-align: left; }
}

/* Smart Filter Bar & Grid */
.dsb-smart-filter { margin: 24px 0; font-family: 'DM Sans', sans-serif; }
.dsb-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; background: #fff; padding: 16px; border-radius: 14px; border: 1.5px solid #e2e8f0; margin-bottom: 20px; }
.dsb-filter-bar input, .dsb-filter-bar select { flex: 1; min-width: 150px; height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 12px; font-size: 14px; }
.dsb-filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dsb-fcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(26,43,72,0.06); display: flex; flex-direction: column; }
.dsb-fcard img { width: 100%; height: 190px; object-fit: cover; display: block; }
.dsb-fcard-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.dsb-fcard-body h4 { margin: 0 0 6px; font-size: 16px; color: #1A2B48; }
.dsb-fcard-meta { font-size: 13px; color: #5E6D77; margin-bottom: 12px; }
.dsb-fcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.dsb-fcard-price { font-weight: 700; color: #3b71fe; font-size: 16px; }
@media (max-width: 768px) { .dsb-filter-grid { grid-template-columns: 1fr; } }

/* Visual Polish & Optimization for Traveler Theme Pages */
.st-single-car-page .st-form-book-wrapper,
.single-st_cars .form-book-wrapper,
.single-st_cars .st-form-book-wrapper,
.single-st_tours .form-book-wrapper,
.single-st_tours .st-form-book-wrapper,
.single-st_hotel .form-book-wrapper,
.single-st_hotel .st-form-book-wrapper {
    display: none !important;
}
.dsb-sidebar-replaced {
    margin-top: 0 !important;
}
.st-car-feature-list, .st-hotel-header, .st-gallery {
    border-radius: 16px !important;
}
.service-border, .item-service .service-border {
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.service-border:hover, .item-service .service-border:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(26, 43, 72, 0.1) !important;
}

/* Fix single-column layout when widget is inside Traveler's narrow right sidebar */
.dsb-sidebar-replaced {
    padding: 18px !important;
    margin: 0 0 24px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
}
.dsb-sidebar-replaced .dsb-widget-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
}
.dsb-sidebar-replaced .dsb-widget-header h3 {
    font-size: 17px !important;
    line-height: 1.4 !important;
}
.dsb-sidebar-replaced .dsb-car-grid,
.dsb-sidebar-replaced .dsb-widget-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}
.dsb-sidebar-replaced .dsb-checkout-box {
    padding: 14px !important;
}
.dsb-sidebar-replaced .dsb-coupon-row input {
    min-width: 0 !important;
    flex: 1 !important;
}
.dsb-sidebar-replaced .dsb-coupon-row .dsb-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0 14px !important;
}
.dsb-sidebar-replaced .dsb-total-box > div {
    gap: 8px;
    align-items: center;
}
.dsb-sidebar-replaced .dsb-grand strong {
    font-size: 18px !important;
    white-space: nowrap;
}

/* Compact & Crisp Room Cards inside narrow right sidebar */
.dsb-sidebar-replaced .dsb-date-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}
.dsb-sidebar-replaced .dsb-date-bar > button {
    grid-column: span 2;
    width: 100%;
}
.dsb-sidebar-replaced .dsb-room-item {
    display: grid !important;
    grid-template-columns: 58px 1fr !important;
    gap: 10px !important;
    padding: 10px !important;
    align-items: start !important;
}
.dsb-sidebar-replaced .dsb-room-thumb {
    width: 58px !important;
    height: 58px !important;
    border-radius: 8px !important;
}
.dsb-sidebar-replaced .dsb-room-meta h4 {
    font-size: 15.5px !important;
    line-height: 1.35 !important;
    margin: 0 0 4px 0 !important;
}
.dsb-sidebar-replaced .dsb-avail {
    font-size: 13.5px !important;
}
.dsb-sidebar-replaced .dsb-room-right {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    margin-top: 4px;
}
.dsb-sidebar-replaced .dsb-price strong {
    display: inline !important;
    font-size: 16px !important;
}
.dsb-sidebar-replaced .dsb-select-room {
    padding: 8px 14px !important;
    font-size: 13.5px !important;
}
.dsb-sidebar-replaced .dsb-summary-box strong {
    font-size: 16px !important;
}
.dsb-sidebar-replaced .dsb-summary-box span,
.dsb-sidebar-replaced .dsb-summary-box small {
    font-size: 13.5px !important;
}
.dsb-sidebar-replaced .dsb-fg label,
.dsb-sidebar-replaced .dsb-row-3 label,
.dsb-sidebar-replaced .dsb-row-2 label {
    font-size: 13.5px !important;
}
.dsb-sidebar-replaced input,
.dsb-sidebar-replaced select {
    font-size: 14.5px !important;
    height: 42px !important;
}

/* Mobile Check-in / Check-out Box Polish */
@media (max-width: 991px) {
    .dsb-booking-widget,
    .dsb-sidebar-replaced {
        margin: 20px 0 !important;
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }
    .dsb-sidebar-replaced .dsb-date-bar {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px;
        gap: 10px;
    }
    .dsb-sidebar-replaced .dsb-date-bar > div {
        min-width: 0;
    }
    .dsb-sidebar-replaced .dsb-date-bar label {
        font-size: 13px !important;
        font-weight: 600;
        color: #1A2B48;
        margin-bottom: 5px;
    }
    .dsb-sidebar-replaced .dsb-date-bar input[type="date"] {
        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 10px !important;
        padding: 0 10px !important;
        background: #fff !important;
        font-size: 14px !important;
        -webkit-appearance: none;
    }
    .dsb-sidebar-replaced .dsb-date-bar > button {
        height: 44px !important;
        border-radius: 10px !important;
        background: #eef3ff !important;
        font-size: 14px !important;
    }
}
@media (max-width: 420px) {
    .dsb-sidebar-replaced .dsb-date-bar {
        grid-template-columns: 1fr !important;
    }
    .dsb-sidebar-replaced .dsb-date-bar > button {
        grid-column: span 1 !important;
    }
}
