/* Buttons */
.btn {
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tools sub-navigation pills */
.tools-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.tools-pill {
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

/* Tabs */
.tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tab {
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.tab .conflict-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  margin-left: 4px;
  vertical-align: middle;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Sub-tab pills — shared layout for all view pill navs */
.overview-pills, .plan-pills, .reservations-pills, .attractions-pills,
.setup-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.overview-pill, .plan-pill, .reservations-pill, .attractions-pill,
.setup-pill {
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.setup-section { display: none; }
.setup-section.active { display: block; }

/* More dropdown */
.tab-more-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.tab-more-dropdown {
  display: none;
  position: fixed;
  z-index: 100;
  min-width: 220px;
}
.tab-more-dropdown.show { display: block; }
.tab-more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.show { display: flex; animation: fadeIn 0.2s ease-out; }

.modal {
  max-width: 540px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s var(--ease-out);
}
.modal .form-group { margin-bottom: 14px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  max-height: 240px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.autocomplete-list.show { display: block; }
.ac-item {
  cursor: pointer;
}

/* Confirm modal layout */
.confirm-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.confirm-modal-backdrop.show { display: flex; animation: fadeIn 0.2s ease-out; }
.confirm-modal {
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.confirm-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.confirm-modal-btns .btn {
  min-width: 100px;
}

/* Mode toggle structure */
.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.mode-toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}
.mode-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out);
}

/* Star ratings */
.star-rate {
  display: inline-flex;
  gap: 2px;
  cursor: pointer;
}
.star-rate span {
  transition: color 0.15s;
}

/* FTUE */
.ftue-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.ftue-backdrop.show { display: flex; animation: fadeIn 0.25s ease-out; }
.ftue-step-indicator {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}
.ftue-buttons {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.ftue-buttons .btn { min-width: 80px; }

/* Toast — not in original CSS but referenced by ui-utils */
