/* Extend the shared builder, disclosure, chips and calendar semantic tokens. */
.search-goals { margin-bottom:16px; }
#exploreSearchPanel .field { margin-bottom:16px; }
#exploreSearchPanel .restaurant-setup { margin-bottom:16px; }
.explore-party .chips { gap:6px; }
.explore-party .chip { width:auto; flex:0 0 auto; min-width:var(--min-control-target); min-height:var(--min-control-target); margin:0; padding:6px 10px; }
.explore-party .has-opening:not(.selected) { border-color:var(--match-border); }
.explore-filters { margin-bottom:18px; }
.explore-filters summary { display:none; }
#exploreFilterFields { display:grid; grid-template-columns:minmax(0,1fr) 160px; gap:20px; }
#exploreFilterDone { display:none; }
.explore-output { min-width:0; }
.explore-calendar-column, .explore-results-column { min-width:0; }
#exploreCalendarHost .search-date-calendar { width:min(520px,100%); margin:0; justify-self:start; }
#exploreSearchPanel .calendar-day { position:relative; }
#exploreSearchPanel .calendar-day.has-opening:not(.selected) { background:var(--match-soft); color:var(--match); font-weight:700; }
#exploreSearchPanel .calendar-day.selected { background:var(--accent); color:white; }
#exploreSearchPanel .calendar-day.is-explore-active { outline:1px solid var(--text); outline-offset:-1px; }
.explore-day-mark { position:absolute; bottom:2px; left:0; right:0; font-size:12px; line-height:1; }
#exploreDateHost:not(:empty) { margin-top:16px; margin-bottom:12px; }
#exploreStatus:empty { display:none; }
#exploreStatus { margin:10px 0; }
.explore-day-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:16px 0 10px; }
.explore-day-head h4 { font:700 16px/1.3 var(--ui-font); margin:0; }
.explore-date-action:not(.btn-danger) { color:var(--green); border-color:var(--match-border); }
.explore-date-action:not(.btn-danger):hover { background:var(--match-soft); }
.explore-restaurant-slots h5 { margin:0; }
.explore-restaurant-slots { position:relative; }
.explore-restaurant-slots .discover-card-heading .title { display:flex; align-items:center; gap:8px; min-height:20px; }
.explore-restaurant-slots .title .restaurant-detail-link { min-width:0; }
.explore-card-orb { display:block; flex:0 0 20px; width:20px; height:20px; pointer-events:none; }
.explore-card-orb canvas { display:block; width:20px; height:20px; }
.explore-party-slots + .explore-party-slots { margin-top:12px; }
@media (max-width:713px) { #exploreSlots .explore-party-slots > .small { color:rgba(255,255,255,.78); } }
#exploreSlots { color:var(--text2); font-size:13px; }
#exploreExactParty { margin-bottom:16px; }
@media (min-width:1000px) {
  #exploreSearchPanel:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:28px; align-items:start; }
  .explore-inputs { grid-column:1; display:flex; flex-direction:column; gap:20px; min-width:0; align-self:start; }
  .explore-output { grid-column:2; grid-row:1; align-self:start; }
  #exploreFilterFields { display:block; }
  #exploreFilterFields #fSeating { max-width:180px; }
}
@media (max-width:713px) {
  .search-goals { margin-bottom:12px; }
  #exploreSearchPanel .restaurant-setup, #exploreSearchPanel .field { margin-bottom:12px; }
  .explore-party .chips { display:grid; grid-template-columns:1.28fr repeat(8,minmax(0,1fr)); gap:4px; overflow:visible; margin:0; padding:0; width:100%; min-width:0; }
  .explore-party .chip { min-width:0; min-height:36px; width:100%; height:36px; padding:0; font-size:13px; letter-spacing:-.3px; white-space:nowrap; }
  #exploreSearchPanel .explore-party { margin-inline:0; padding-inline:0; min-width:0; }
  .explore-filters { border-block:1px solid var(--border); margin-bottom:14px; }
  .explore-filters summary { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:var(--min-control-target); padding:10px 0; cursor:pointer; }
  .explore-filters summary::after { content:'⌄'; }
  .explore-filters[open] summary::after { content:'⌃'; }
  .explore-filters summary strong { font:600 13px/1.3 var(--ui-font); }
  #exploreFilterSummary { font-size:12px; color:var(--text2); text-align:right; }
  #exploreFilterFields { display:block; padding-top:10px; }
  #exploreFilterDone { display:block; margin:0 0 12px auto; }
  .explore-output { display:block; }
  #exploreCalendarHost .search-date-calendar { width:100%; }
}
/* Search type extends the existing rail and purposeful Scout artwork. */
.builder-wizard.is-choosing .builder-panes { display:flex; flex-direction:column; }
.builder-wizard.is-choosing .builder-actions { display:none; }
.search-type-choice { flex:none; margin-block:auto; padding:24px 0; }
.search-type-cards { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.search-type-card { display:grid; grid-template-columns:minmax(0,1fr) 96px; align-items:center; gap:12px; width:100%; min-height:240px; padding:24px; text-align:left; background:var(--surface); border:1px solid var(--border); border-radius:4px; color:var(--text); box-shadow:none; }
.search-type-card:hover { background:var(--surface); border-color:var(--accent); box-shadow:none; transform:none; }
.search-type-card strong { display:block; font:600 25px/1.2 var(--ui-font); }
.search-type-description { display:block; margin-top:12px; font:400 15px/1.5 var(--ui-font); color:var(--text2); }
.search-type-next { display:block; margin-top:24px; font:600 13px/1.3 var(--ui-font); color:var(--text); }
.search-type-next span { color:var(--accent2); }
.search-type-card img { width:96px; height:96px; object-fit:contain; }
#restaurantIdeasGroup:not([hidden]) { margin:16px 0 28px; padding:16px; background:var(--surface); border:1px solid var(--border); border-radius:4px; }
.builder-pane[data-builder-panel="3"] #restaurantIdeasGroup:not([hidden]) { margin-bottom:0; }
#restaurantIdeasHeading { margin:0 0 14px; font:600 16px/1.3 var(--ui-font); }
#restaurantIdeasGroup .restaurant-source-tabs { margin-top:0; }
#builderWizard [data-builder-step][hidden] { display:none; }
@media(max-width:713px) {
  .search-type-choice { padding:18px 0 24px; }
  .search-type-cards { grid-template-columns:1fr; gap:14px; }
  .search-type-card { min-height:169px; padding:18px; grid-template-columns:minmax(0,1fr) 80px; }
  .search-type-card strong { font-size:24px; }
  .search-type-description { font-size:14px; margin-top:9px; }
  .search-type-next { font-size:12px; margin-top:16px; }
  .search-type-card img { width:80px; height:85px; }
  #restaurantIdeasGroup:not([hidden]) { padding:14px; margin-bottom:26px; }
}

/* Discovered times retain the shared slot shape while verification owns links. */
#exploreSlots .explore-slot[aria-disabled="true"] { opacity:.6; cursor:wait; }
#exploreSlots .explore-slot[aria-disabled="true"]:is(:hover,:active) .availability-slot-label { background:var(--surface); border-color:var(--border); }

/* Approved compact filters and per-date states. Unknown is never empty. */
#exploreSearchPanel .calendar-day.no-opening:not(.selected) { background:#f6e4e0; color:#a83e2a; font-weight:700; }
.explore-date-orb { position:absolute; bottom:2px; left:50%; transform:translateX(-50%); width:18px; height:18px; pointer-events:none; }
.explore-date-orb canvas { display:block; width:18px; height:18px; }
.explore-filter-content { overflow:hidden; }
@media(max-width:713px) {
  #exploreSearchPanel .calendar-day { display:flex; justify-content:center; align-items:flex-start; padding-top:4px; padding-bottom:0; line-height:1.2; }
  .explore-date-orb { width:15px; height:15px; bottom:1px; }
  .explore-date-orb canvas { width:15px; height:15px; }
  #exploreFilters[open] { background:var(--surface2); border:1px solid var(--border); border-radius:4px; padding:0 12px 12px; }
  #exploreFilters[open] summary { border-bottom:1px solid var(--border); }
  .explore-filter-content #exploreFilterFields { padding-top:14px; }
}
@media(max-width:350px) {
  .explore-party .chips { gap:3px; }
  .explore-party .chip { height:32px; min-height:32px; font-size:12px; }
}

/* Keep desktop meal presets together without changing the phone disclosure. */
@media(min-width:714px) {
  #exploreSearchPanel .quick-time-presets { flex-wrap:nowrap; gap:5px; }
  #exploreSearchPanel .quick-time-preset { flex:1 1 auto; padding:8px 6px; white-space:nowrap; }
}

#exploreSearchPanel #availabilityPreference { display:none; }

.explore-day-failed { position:absolute; bottom:2px; left:0; right:0; color:#8f2d1b; font-size:12px; line-height:1; font-weight:700; }
@media(min-width:1000px) and (max-width:1199px) {
  #exploreSearchPanel .quick-time-presets { gap:3px; }
  #exploreSearchPanel .quick-time-preset { padding-inline:4px; font-size:11px; }
}
