/* Booking search → Arditi BUS app (2026-10-30, as Durmo's website). Loaded by home.php with ?v=filemtime (always fresh). */

/* the bus banner it replaces (first image of the "midservices" block) — only on the public page, the admin still shows it */
.intro-services #ipBlock-midservices > .ipWidget-Image:first-child { display: none; }

/* card = same look as the line cards below (.line_item_container) */
.sd_search {
    background: #fff;
    text-align: left;
    margin: 0 5px 30px;
    border-radius: 12px;
    padding: 22px 24px 24px;
    box-shadow: 0 0 15px #00000021;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.sd_search .sd_head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sd_search .sd_title { font-size: 22px; font-weight: 700; color: #000; }
/* one way / return: two pills, the chosen one red like the search button */
.sd_search .sd_tabs { display: inline-flex; background: #f2f2f2; border-radius: 54px; padding: 4px; }
.sd_search .sd_tab {
    border: 0;
    background: transparent;
    color: #555;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 54px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.sd_search .sd_tab:hover { color: #000; }
.sd_search .sd_tab.active { background: #ec1b24; color: #fff; }
.sd_search .sd_grid {
    display: grid;
    grid-template-columns: 1.6fr 1.6fr 1.2fr 0.75fr 0.75fr auto;
    gap: 12px;
    align-items: end;
}
.sd_search .sd_field { display: block; margin: 0; min-width: 0; }
.sd_search .sd_field span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    color: #b5afaf;
    margin-bottom: 6px;
    white-space: nowrap;
}
.sd_search select, .sd_search input.sd_date {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    font: inherit;
    font-size: 15px;
    margin: 0;
}
.sd_search select:focus, .sd_search input.sd_date:focus { outline: none; border-color: #ec1b24; }
.sd_search select:disabled { background-color: #f6f6f6; color: #999; }
.sd_search .sd_date { cursor: pointer; }
.sd_search .sd_go button {
    height: 48px;
    padding: 0 40px;
    border: 0;
    border-radius: 54px;
    background: #ec1b24;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}
.sd_search .sd_go button:hover { background: #c8141c; }
.sd_search .sd_msg { display: none; padding-top: 12px; color: #d0021b; font-weight: 600; }

/* searchable lists (Tom Select) = same box as the other fields */
.sd_search .ts-wrapper { width: 100%; }
.sd_search .ts-wrapper.single .ts-control {
    height: 48px;
    box-sizing: border-box;
    padding: 0 34px 0 12px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    color: #000;
    cursor: pointer;
}
.sd_search .ts-wrapper.single .ts-control > .item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd_search .ts-wrapper.single .ts-control input { font: inherit; font-size: 15px; color: #000; min-width: 0; }
.sd_search .ts-wrapper.single .ts-control input::placeholder { color: #777; }
.sd_search .ts-wrapper.focus .ts-control { border-color: #ec1b24; box-shadow: none; }
/* arrow (Tom Select's default CSS has none) */
.sd_search .ts-wrapper.single .ts-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    margin-top: -2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0;
    border-color: #555 transparent transparent;
}
.sd_search .ts-wrapper.single.dropdown-active .ts-control::after { margin-top: -3px; border-width: 0 5px 5px; border-color: transparent transparent #555; }
.sd_search .ts-wrapper.disabled .ts-control::after { border-top-color: #bbb; }
/* typed letters marked inside the names — the theme has its own .highlight style, reset it here */
.sd_search .ts-dropdown .highlight {
    display: inline;
    padding: 0;
    margin: 0;
    background: #fde2e2;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 2px;
}
.sd_search .ts-wrapper.disabled .ts-control { background: #f6f6f6; opacity: 1; cursor: default; }
.sd_search .ts-wrapper.disabled .ts-control input::placeholder { color: #aaa; }
.sd_search .ts-dropdown {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    font-size: 15px;
    color: #000;
    overflow: hidden;
    z-index: 1001;
}
.sd_search .ts-dropdown .ts-dropdown-content { max-height: 320px; }
.sd_search .ts-dropdown .optgroup-header {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #b5afaf;
    background: #fafafa;
    padding: 8px 12px 6px;
    cursor: default;
}
.sd_search .ts-dropdown .option { padding: 9px 12px; }
.sd_search .ts-dropdown .active { background: #fdecec; color: #000; }
.sd_search .ts-dropdown .selected { background: #ec1b24; color: #fff; }
.sd_search .ts-dropdown .no-results { padding: 10px 12px; color: #777; }

/* tablet: cities + date on one row, passengers + button on the next */
@media (max-width: 1000px) {
    .sd_search .sd_grid { grid-template-columns: repeat(6, 1fr); }
    .sd_search .sd_from, .sd_search .sd_to, .sd_search .sd_when { grid-column: span 2; }
    .sd_search .sd_adl, .sd_search .sd_chd { grid-column: span 1; }
    .sd_search .sd_go { grid-column: span 4; }
    .sd_search .sd_go button { width: 100%; }
}
/* phone: one field per row, adults + children side by side */
@media (max-width: 640px) {
    .sd_search { padding: 18px 16px 20px; }
    .sd_search .sd_title { font-size: 19px; }
    .sd_search .sd_tabs { width: 100%; }
    .sd_search .sd_tab { flex: 1; }
    .sd_search .sd_grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sd_search .sd_from, .sd_search .sd_to, .sd_search .sd_when, .sd_search .sd_go { grid-column: 1 / -1; }
    .sd_search .sd_adl, .sd_search .sd_chd { grid-column: span 1; }
}

/* calendar */
.ui-datepicker { z-index: 1000 !important; }
/* days with a departure: the whole cell green (as Durmo) — on the td, so rows keep their height; other days greyed out */
.ui-datepicker .ui-datepicker-calendar td.sd_day { background: #3aa76d; }
.ui-datepicker .ui-datepicker-calendar td.sd_day:hover { background: #2e8b57; }
.ui-datepicker .ui-datepicker-calendar td.sd_day a { color: #fff !important; background: none !important; border: 0 !important; font-weight: 700; }
.ui-datepicker .ui-datepicker-calendar td.sd_day.ui-datepicker-current-day { background: #1f6f45; }
/* prev / next arrows: datepicker.css uses the Glyphicons font, which this site does not load → plain characters */
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { font-family: inherit !important; cursor: pointer; text-decoration: none; }
.ui-datepicker .ui-datepicker-prev::before { content: "\2039" !important; font-family: inherit !important; font-size: 26px; line-height: 1; color: #ec1b24; }
.ui-datepicker .ui-datepicker-next::before { content: "\203A" !important; font-family: inherit !important; font-size: 26px; line-height: 1; color: #ec1b24; }
.ui-datepicker .ui-datepicker-prev.ui-state-disabled::before, .ui-datepicker .ui-datepicker-next.ui-state-disabled::before { color: #ccc; }
