/* =========================================================
   meu destino — Laravel Extension Styles
   Auth, Trip Workspace, Invites, Places, Ratings & Visibility
   ========================================================= */

.auth-body {
  min-height: 100vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.22), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(244, 63, 94, 0.16), transparent 45%),
              #070b17;
}

.auth-shell {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: rgba(15, 22, 41, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 28px 65px rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
}

.auth-brand {
  margin-bottom: 20px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 22px;
}

.auth-alert {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #fecdd3;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.auth-alert p + p {
  margin-top: 4px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #cbd5e1;
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 0.95rem;
  margin-top: 4px;
}

.auth-demo-box {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.11);
  border: 1px solid rgba(99, 102, 241, 0.26);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.auth-demo-box strong {
  display: block;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.auth-demo-box code {
  background: rgba(15, 23, 42, 0.8);
  padding: 2px 6px;
  border-radius: 6px;
  color: #c4b5fd;
  font-size: 0.78rem;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Visibility pills */
.vis-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.vis-public {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.32);
}

.vis-trip_friends {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.36);
}

.vis-private {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.32);
}

/* Form controls inside modals */
.modal-form select,
.modal-form textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  padding: 10px 12px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form select:focus,
.modal-form textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.modal-form textarea {
  resize: vertical;
  min-height: 82px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Large workspace modal */
.modal-card-lg {
  width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.modal-card-md {
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
}

.trip-modal-hero {
  position: relative;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  background: #0f172a;
}

.trip-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.trip-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 23, 0.25) 0%, rgba(11, 16, 32, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 24px;
}

.trip-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.trip-modal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trip-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.trip-modal-sub {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.workspace-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(11, 16, 32, 0.92);
  flex-wrap: wrap;
}

.workspace-tab {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workspace-tab.active,
.workspace-tab:hover {
  background: rgba(139, 92, 246, 0.24);
  border-color: rgba(167, 139, 250, 0.55);
  color: #fff;
}

.workspace-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.day-group {
  margin-bottom: 18px;
}

.day-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
  margin-bottom: 10px;
}

.place-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.place-card {
  background: rgba(18, 26, 48, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.place-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.place-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.place-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f8fafc;
}

.cat-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.place-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.place-notes {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.place-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-action-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mini-action-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}

.mini-action-btn.danger:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fecdd3;
}

.mini-action-btn.success {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.status-select-inline {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

/* Participants & Invite UI */
.invite-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.invite-search-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.invite-search-row input {
  flex: 1;
  min-width: 180px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 9px 12px;
  color: #f8fafc;
  font-size: 0.86rem;
}

.invite-search-row select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 9px 12px;
  color: #f8fafc;
  font-size: 0.84rem;
}

.user-search-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(18, 26, 48, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.participant-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.participant-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
}

.participant-handle {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Star Rating Picker */
.star-picker {
  display: flex;
  gap: 6px;
  align-items: center;
}

.star-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  font-size: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.star-btn.active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
}

.star-btn:hover {
  transform: translateY(-1px);
}

/* Reviews list */
.review-item-card {
  background: rgba(18, 26, 48, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.review-item-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.review-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.review-item-body {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.review-inline-list {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-inline-row {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Center Stage alternate views (Explore / Diary / Invites) */
.stage-view-panel {
  padding: 20px 26px 26px;
  overflow-y: auto;
  flex: 1;
}

.stage-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.stage-view-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
}

.empty-state {
  padding: 28px 18px;
  text-align: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 0.86rem;
}

/* Sidebar logout / profile enhancements */
.profile-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.73rem;
  cursor: pointer;
}

.logout-btn:hover {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fecdd3;
}

.nav-badge-pill {
  margin-left: auto;
  background: #f43f5e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.trip-card-vis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.trip-card-rating {
  font-size: 0.74rem;
  color: #fbbf24;
  font-weight: 600;
}

.detail-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* =========================================================
   State / Region Drill-Down Map & Specific Places
   ========================================================= */
.map-drill-bar {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 17, 34, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.36);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(14px);
  max-width: calc(100% - 32px);
}

.map-drill-bar[hidden] {
  display: none;
}

.drill-back-btn {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.drill-back-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(167, 139, 250, 0.6);
}

.drill-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drill-info strong {
  font-size: 0.88rem;
  color: #f8fafc;
}

.drill-info span {
  font-size: 0.76rem;
  color: #94a3b8;
}

.drill-pin-mode-btn {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #e9d5ff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.drill-pin-mode-btn:hover,
.drill-pin-mode-btn.active {
  background: linear-gradient(135deg, #f43f5e, #8b5cf6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}

.map-canvas-wrap.pin-drop-mode {
  cursor: crosshair;
}

.map-canvas-wrap.pin-drop-mode .country-path {
  cursor: crosshair;
}

.open-states-cta {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
}

.region-inspector {
  margin: 0 18px 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(17, 25, 48, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.region-inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.region-kicker {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
  font-weight: 700;
}

.region-inspector-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.region-inspector-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.region-inspector-controls select {
  flex: 1;
  min-width: 130px;
}

.region-add-pin-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.region-pins-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.region-pins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.region-pins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
}

.region-pin-item {
  background: rgba(10, 15, 30, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.region-pin-item.highlighted {
  border-color: rgba(192, 132, 252, 0.75);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.region-pin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.region-pin-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
}

.region-pin-meta {
  font-size: 0.73rem;
  color: #94a3b8;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.region-pin-notes {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.state-label-text {
  font-size: 8px;
  fill: rgba(248, 250, 252, 0.78);
  font-weight: 600;
  pointer-events: none;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(7, 11, 23, 0.82);
  stroke-width: 2.4px;
}
