/* Travelieons shared component styles (Bootstrap 5 augmentation, no build step). */

:root {
  /* Design-brief palette (tenant CRM) */
  --ti-primary: #1E6F8E;
  --ti-primary-dark: #155066;
  --ti-accent: #F59E0B;
  --ti-success: #16A34A;
  --ti-warning: #D97706;
  --ti-danger: #DC2626;
  --ti-info: #0EA5E9;
  --ti-bg: #F5F7FA;
  --ti-border: #E5E9F0;
  --ti-text: #1F2937;
}

/* ---- Searchable select / country dropdown shared panel ---- */
.ti-ss,
.ti-phone { position: relative; }

.ti-ss-native { display: none !important; }

.ti-ss-toggle { cursor: pointer; }

.ti-ss-panel {
  display: none;
  position: absolute;
  z-index: 1080;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  min-width: 260px;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--ti-border);
  border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .12);
  overflow: hidden;
}
.ti-ss-panel.show { display: block; }

.ti-ss-search { padding: .5rem; border-bottom: 1px solid var(--ti-border); }

.ti-ss-list { max-height: 260px; overflow-y: auto; padding: .25rem 0; }

.ti-ss-item {
  padding: .4rem .75rem;
  cursor: pointer;
  font-size: .925rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ti-ss-item:hover { background: var(--ti-bg); }
.ti-ss-item.active { background: rgba(30, 111, 142, .1); font-weight: 600; }

.ti-ss-empty { padding: .6rem .75rem; color: #6c757d; font-size: .875rem; }

/* ---- Phone input ---- */
.ti-phone .ti-phone-toggle {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.ti-phone-item-flag { font-size: 1.1rem; }
.ti-phone-item-name { flex: 1 1 auto; }
.ti-phone-item-code { flex: 0 0 auto; }
