.ncslots-finder {
  --ncf-navy: #081A2C;
  --ncf-blue: #3AA8E8;
  --ncf-blue-dark: #0876b5;
  --ncf-teal: #0B6B68;
  --ncf-gold: #F2B84B;
  --ncf-ink: #172033;
  --ncf-muted: #5F6877;
  --ncf-line: #D8DEE8;
  --ncf-soft: #F7FAFC;
  --ncf-white: #fff;
  --nc-navy: #081A2C;
  --nc-blue: #3AA8E8;
  --nc-blue-dark: #0876b5;
  --nc-teal: #0B6B68;
  --nc-teal-dark: #07514f;
  --nc-gold: #F2B84B;
  --nc-off-white: #F7FAFC;
  --nc-ink: #172033;
  --nc-muted: #5F6877;
  --nc-border: #D8DEE8;
  --nc-white: #fff;
  width: 100%;
  color: var(--ncf-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ncslots-finder *,
.ncslots-finder *::before,
.ncslots-finder *::after {
  box-sizing: border-box;
}

.ncslots-finder h2,
.ncslots-finder h3,
.ncslots-finder p,
.ncslots-finder fieldset {
  margin: 0;
}

.ncslots-finder button,
.ncslots-finder input,
.ncslots-finder select {
  font: inherit;
}

.ncslots-finder__intro {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 22px;
}

.ncslots-finder__intro h2 {
  color: var(--ncf-navy);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.ncslots-finder__intro > p:last-child {
  color: var(--ncf-muted);
  line-height: 1.55;
}

.ncslots-finder__eyebrow {
  color: var(--ncf-teal);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ncslots-finder__controls,
.ncslots-finder__card,
.ncslots-finder__state {
  border: 1px solid var(--ncf-line);
  border-radius: 14px;
  background: var(--ncf-white);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.07);
}

.ncslots-finder__controls {
  display: grid;
  gap: 15px;
  padding: 18px;
  margin-bottom: 22px;
}

.ncslots-finder__control-heading {
  display: grid;
  gap: 4px;
}

.ncslots-finder__control-heading h3,
.ncslots-finder__results-heading h3,
.ncslots-finder__card h3,
.ncslots-finder__state h3 {
  color: var(--ncf-navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.ncslots-finder__control-heading p,
.ncslots-finder__results-heading p,
.ncslots-finder__card-heading p,
.ncslots-finder__field-message,
.ncslots-finder__feedback {
  color: var(--ncf-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ncslots-finder__location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.ncslots-finder__field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ncf-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.ncslots-finder__field input,
.ncslots-finder__field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b8c6d1;
  border-radius: 8px;
  background: var(--ncf-white);
  color: var(--ncf-ink);
  padding: 10px 12px;
}

.ncslots-finder__field input:focus,
.ncslots-finder__field select:focus,
.ncslots-finder__button:focus-visible,
.ncslots-finder__chip:focus-visible,
.ncslots-finder__arrival-option input:focus-visible {
  outline: 3px solid rgba(75, 159, 216, 0.35);
  outline-offset: 2px;
}

.ncslots-finder__field-message {
  min-height: 1.2em;
}

.ncslots-finder__field-message.is-error {
  color: #9e2a2b;
}

.ncslots-finder__fieldset {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
}

.ncslots-finder__fieldset legend {
  color: var(--ncf-navy);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ncslots-finder__chips,
.ncslots-finder__features,
.ncslots-finder__meta,
.ncslots-finder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ncslots-finder__chip,
.ncslots-finder__button {
  min-height: 44px;
  border: 1px solid #b8c6d1;
  border-radius: 8px;
  background: var(--ncf-white);
  color: var(--ncf-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.ncslots-finder__chip:hover,
.ncslots-finder__button--secondary:hover {
  border-color: var(--ncf-blue-dark);
  background: #f1f8fd;
}

.ncslots-finder__chip[aria-pressed="true"] {
  border-color: var(--ncf-teal);
  background: #e9f7f5;
  color: #075d57;
}

.ncslots-finder__button--primary {
  border-color: var(--ncf-navy);
  background: var(--ncf-navy);
  color: var(--ncf-white);
}

.ncslots-finder__button--primary:hover {
  border-color: #1a4770;
  background: #1a4770;
  color: var(--ncf-white);
}

.ncslots-finder__controls > .ncslots-finder__button--primary {
  width: 100%;
}

.ncslots-finder__switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 44px;
  color: var(--ncf-ink);
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
}

.ncslots-finder__switch input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ncf-teal);
}

.ncslots-finder__results-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ncslots-finder__results {
  display: grid;
  gap: 14px;
}

.ncslots-finder__card,
.ncslots-finder__state {
  display: grid;
  gap: 13px;
  padding: 17px;
}

.ncslots-finder__classification {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #eaf4fb;
  color: #155b88;
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.1;
}

.ncslots-finder__classification span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ncf-blue-dark);
  flex: 0 0 auto;
}

.ncslots-finder__card[data-border="true"] .ncslots-finder__classification {
  background: #f6f1e5;
  color: #6f531a;
}

.ncslots-finder__card[data-border="true"] .ncslots-finder__classification span {
  background: var(--ncf-gold);
}

.ncslots-finder__card-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.ncslots-finder__card-heading > div:first-child {
  min-width: 0;
  flex: 1 1 220px;
}

.ncslots-finder__card h3 a {
  color: var(--ncf-navy);
  text-decoration: none;
}

.ncslots-finder__card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ncslots-finder__distance {
  color: var(--ncf-navy);
  font-weight: 760;
  text-align: right;
  white-space: nowrap;
}

.ncslots-finder__distance small {
  display: block;
  color: var(--ncf-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.ncslots-finder__summary,
.ncslots-finder__state p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.ncslots-finder__features span,
.ncslots-finder__age {
  border: 1px solid var(--ncf-line);
  border-radius: 999px;
  background: var(--ncf-soft);
  padding: 5px 9px;
  color: var(--ncf-ink);
  font-size: 0.78rem;
  font-weight: 690;
}

.ncslots-finder__features span.is-selected-match {
  border-color: #78bcb5;
  background: #e9f7f5;
}

.ncslots-finder__meta {
  color: var(--ncf-muted);
  font-size: 0.8rem;
}

.ncslots-finder__actions {
  align-items: stretch;
}

.ncslots-finder__actions .ncslots-finder__button {
  flex: 1 1 150px;
}

.ncslots-finder__verification {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ncf-line);
  padding-top: 11px;
  color: var(--ncf-muted);
  font-size: 0.76rem;
}

.ncslots-finder__verification a {
  color: var(--ncf-blue-dark);
  font-weight: 700;
}

.ncslots-finder__arrival-panel {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--ncf-line);
  padding-top: 12px;
}

.ncslots-finder__arrival-panel[hidden] {
  display: none;
}

.ncslots-finder__arrival-panel fieldset {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
}

.ncslots-finder__arrival-panel legend {
  margin-bottom: 8px;
  color: var(--ncf-navy);
  font-weight: 760;
}

.ncslots-finder__arrival-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 44px;
  cursor: pointer;
}

.ncslots-finder__arrival-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ncf-teal);
}

.ncslots-finder__arrival-option span {
  display: grid;
  gap: 2px;
}

.ncslots-finder__arrival-option small {
  color: var(--ncf-muted);
  line-height: 1.35;
}

.ncslots-finder__state {
  margin-bottom: 14px;
  border-left: 4px solid var(--ncf-blue);
  box-shadow: none;
}

.ncslots-finder__state[hidden],
.ncslots-finder__card[hidden],
.ncslots-finder__card.is-filtered-out {
  display: none;
}

/* Keep Finder filtering authoritative when a theme applies broad article/card display rules. */
.ncslots-finder__card.is-filtered-out {
  display: none !important;
}

@media (min-width: 700px) {
  .ncslots-finder__controls {
    grid-template-columns: minmax(250px, 1.2fr) minmax(190px, 0.8fr);
  }

  .ncslots-finder__control-heading,
  .ncslots-finder__location-row,
  .ncslots-finder__field-message,
  .ncslots-finder__fieldset,
  .ncslots-finder__switch,
  .ncslots-finder__controls > .ncslots-finder__button--primary,
  .ncslots-finder__feedback {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .ncslots-finder__location-row {
    grid-template-columns: 1fr;
  }

  .ncslots-finder__location-row .ncslots-finder__button,
  .ncslots-finder__actions .ncslots-finder__button {
    width: 100%;
    flex-basis: 100%;
  }

  .ncslots-finder__distance {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ncslots-finder__chip,
  .ncslots-finder__button {
    transition: none;
  }
}
