/* Temp Connect — Homepage Booking Calendar Preview
   Full-width marketplace band aligned with Avada Welcome section.
*/

.tc-bp {
  --tc-bp-teal: #42b9bb;
  --tc-bp-teal-deep: #2f9ea1;
  --tc-bp-teal-dark: #288f92;
  --tc-bp-teal-ink: #237a7d;
  --tc-bp-ink: #1a2428;
  --tc-bp-muted: #5a6569;
  --tc-bp-hint: #6b7579;
  --tc-bp-line: #e6eef0;
  --tc-bp-soft: #eef5f6;
  --tc-bp-warn-bg: #fff6e8;
  --tc-bp-ok-bg: #e8f7f4;
  --tc-bp-radius: 14px;
  --tc-bp-radius-sm: 10px;
  --tc-bp-font: inherit;

  position: relative;
  z-index: 2;
  margin: 0;
  padding: 48px 20px 56px;
  background: linear-gradient(180deg, #f6fbfb 0%, #ffffff 42%, #ffffff 100%);
  border-top: 1px solid var(--tc-bp-line);
  border-bottom: 1px solid var(--tc-bp-line);
  color: var(--tc-bp-ink);
  font-family: var(--tc-bp-font);
}

.tc-bp__inner {
  max-width: 1140px;
  margin: 0 auto;
}

/* ---- Header: title + segmented switcher ---- */
.tc-bp__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  margin-bottom: 22px;
}

.tc-bp__head-copy {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 640px;
}

.tc-bp__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-bp-teal);
}

.tc-bp__title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--tc-bp-teal-deep);
}

.tc-bp__subtitle {
  margin: 0;
  color: var(--tc-bp-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.tc-bp__tabs {
  display: inline-flex;
  flex: 0 1 auto;
  gap: 4px;
  padding: 4px;
  background: var(--tc-bp-soft);
  border: 1px solid #dce8ea;
  border-radius: 12px;
  max-width: 100%;
}

.tc-bp__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--tc-bp-muted);
  border-radius: 10px;
  padding: 11px 16px;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tc-bp__tab:hover {
  color: var(--tc-bp-ink);
}

.tc-bp__tab.is-active {
  background: linear-gradient(145deg, var(--tc-bp-teal) 0%, var(--tc-bp-teal-deep) 55%, var(--tc-bp-teal-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 158, 161, 0.28);
}

.tc-bp__banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--tc-bp-radius-sm);
  background: #eef6f7;
  border: 1px solid #d5e8e9;
  color: var(--tc-bp-ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.tc-bp__banner.is-ok {
  background: var(--tc-bp-ok-bg);
  border-color: #b9e4dc;
}

.tc-bp__banner.is-warn {
  background: var(--tc-bp-warn-bg);
  border-color: #f0d7a8;
}

/* ---- Unified search dock ---- */
.tc-bp__filters {
  margin-bottom: 22px;
}

.tc-bp__dock {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.9fr auto;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid #d7e4e6;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(26, 36, 40, 0.05);
  overflow: hidden;
}

/* Fixed 2-row field grid keeps Role / Location / Date on one baseline */
.tc-bp__field {
  display: grid;
  grid-template-rows: 12px 20px;
  row-gap: 4px;
  align-content: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 10px 16px;
  border-right: 1px solid var(--tc-bp-line);
}

.tc-bp__field label {
  display: block;
  margin: 0;
  padding: 0;
  height: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tc-bp-muted);
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-bp__field input,
.tc-bp__field input[type="search"],
.tc-bp__field input[type="text"],
.tc-bp__field input[type="date"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500;
  background: transparent !important;
  color: var(--tc-bp-ink) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tc-bp__field input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.tc-bp__field input::placeholder {
  color: #9aa4a8;
  opacity: 1;
  line-height: 20px;
}

/* Date: lock native edit metrics to the same 20px value row */
.tc-bp__field input[type="date"] {
  position: relative;
  min-width: 0;
  color-scheme: light;
}

.tc-bp__field input[type="date"]::-webkit-datetime-edit,
.tc-bp__field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0;
  margin: 0;
  line-height: 20px;
}

.tc-bp__field input[type="date"]::-webkit-datetime-edit-text,
.tc-bp__field input[type="date"]::-webkit-datetime-edit-month-field,
.tc-bp__field input[type="date"]::-webkit-datetime-edit-day-field,
.tc-bp__field input[type="date"]::-webkit-datetime-edit-year-field {
  padding: 0;
  margin: 0;
  line-height: 20px;
}

.tc-bp__field input[type="date"]::-webkit-inner-spin-button,
.tc-bp__field input[type="date"]::-webkit-clear-button {
  display: none;
}

.tc-bp__field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  opacity: 0.55;
  cursor: pointer;
}

.tc-bp__field input[type="search"]::-webkit-search-decoration,
.tc-bp__field input[type="search"]::-webkit-search-cancel-button,
.tc-bp__field input[type="search"]::-webkit-search-results-button,
.tc-bp__field input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.tc-bp__search {
  appearance: none;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 156px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, var(--tc-bp-teal) 0%, var(--tc-bp-teal-deep) 55%, var(--tc-bp-teal-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.tc-bp__search:hover {
  filter: brightness(0.97);
}

.tc-bp__subbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  min-height: 0;
}

.tc-bp__toolbar-note {
  color: var(--tc-bp-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.tc-bp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-bp__chip {
  appearance: none;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #d7e0e2;
  background: #fff;
  color: var(--tc-bp-ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tc-bp__chip.is-active,
.tc-bp__chip:hover {
  border-color: var(--tc-bp-teal);
  color: var(--tc-bp-teal-ink);
  background: rgba(66, 185, 187, 0.1);
}

/* ---- Live summary pulse ---- */
.tc-bp__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.tc-bp__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e8f7f5;
  color: var(--tc-bp-teal-ink);
  font-weight: 700;
  font-size: 0.84rem;
}

.tc-bp__windows {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tc-bp__window {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tc-bp-line);
  font-size: 0.8rem;
  color: var(--tc-bp-muted);
}

.tc-bp__window strong {
  color: var(--tc-bp-ink);
}

/* ---- Structured marketplace cards ---- */
.tc-bp__results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.tc-bp__card {
  background: #fff;
  border: 1px solid #e3ecee;
  border-radius: var(--tc-bp-radius);
  padding: 16px 16px 0;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(26, 36, 40, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

.tc-bp__card:hover {
  border-color: rgba(66, 185, 187, 0.45);
  box-shadow: 0 10px 24px rgba(26, 36, 40, 0.08);
  transform: translateY(-1px);
}

.tc-bp__card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.tc-bp__pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f7f5;
  color: var(--tc-bp-teal-ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.tc-bp__pill--pay {
  background: #eef3f8;
  color: #2f4a5c;
}

.tc-bp__card--booking {
  border-color: #d7e8e8;
}

.tc-bp__card--booking .tc-bp__pill:not(.tc-bp__pill--pay) {
  background: rgba(66, 185, 187, 0.14);
  color: var(--tc-bp-teal-ink);
}

.tc-bp__lock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(90, 101, 105, 0.1);
  color: var(--tc-bp-muted);
}

.tc-bp__lock svg {
  width: 14px;
  height: 14px;
  display: block;
}

.tc-bp__card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--tc-bp-ink);
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tc-bp__subhead {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--tc-bp-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tc-bp__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--tc-bp-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.tc-bp__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.tc-bp__meta-item svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  opacity: 0.75;
}

.tc-bp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tc-bp__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--tc-bp-soft);
  border: 1px solid #dce8ea;
  color: var(--tc-bp-ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.tc-bp__count,
.tc-bp__pay,
.tc-bp__slots,
.tc-bp__empty,
.tc-bp__loading,
.tc-bp__note {
  margin: 0;
  color: var(--tc-bp-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tc-bp__count,
.tc-bp__pay {
  color: var(--tc-bp-ink);
  font-weight: 700;
}

.tc-bp__hint {
  margin: auto -16px 0;
  padding: 10px 16px;
  border-top: 1px solid #f0f3f4;
  background: #fafcfc;
  font-size: 0.8rem;
  color: var(--tc-bp-hint);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
}

.tc-bp__hint svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.7;
}

.tc-bp__card-cta {
  appearance: none;
  margin: 4px 0 12px;
  min-height: 40px;
  border: 1px solid var(--tc-bp-teal);
  background: rgba(66, 185, 187, 0.08);
  color: var(--tc-bp-teal-ink);
  border-radius: var(--tc-bp-radius-sm);
  font-weight: 650;
  cursor: pointer;
}

.tc-bp__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--tc-bp-line);
  margin-top: 4px;
}

.tc-bp__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--tc-bp-radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
}

.tc-bp__cta--primary {
  background: linear-gradient(145deg, var(--tc-bp-teal) 0%, var(--tc-bp-teal-deep) 55%, var(--tc-bp-teal-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 158, 161, 0.25);
}

.tc-bp__cta--primary:hover {
  filter: brightness(0.97);
  color: #fff;
}

.tc-bp__cta--link {
  background: transparent;
  color: var(--tc-bp-teal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 40px;
  padding: 8px 4px;
  font-weight: 650;
}

.tc-bp__empty,
.tc-bp__loading {
  grid-column: 1 / -1;
  padding: 22px;
  background: #f7fafa;
  border: 1px dashed #d7dde0;
  border-radius: var(--tc-bp-radius);
}

@media (max-width: 960px) {
  .tc-bp__dock {
    grid-template-columns: 1fr 1fr;
  }

  .tc-bp__field--date {
    border-right: 0;
    border-top: 1px solid var(--tc-bp-line);
  }

  .tc-bp__search {
    grid-column: 1 / -1;
    min-height: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .tc-bp__field:nth-child(2) {
    border-right: 0;
  }

  .tc-bp__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tc-bp {
    padding: 36px 16px 44px;
  }

  .tc-bp__head {
    flex-direction: column;
    align-items: stretch;
  }

  .tc-bp__tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tc-bp__tab {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  .tc-bp__dock {
    grid-template-columns: 1fr;
  }

  .tc-bp__field {
    border-right: 0;
    border-bottom: 1px solid var(--tc-bp-line);
  }

  .tc-bp__field--date {
    border-top: 0;
  }

  .tc-bp__search {
    width: 100%;
  }

  .tc-bp__subbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tc-bp__results {
    grid-template-columns: 1fr;
  }

  .tc-bp__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .tc-bp__cta {
    width: 100%;
  }
}
