/* ═══════════════════════════════════════════════════════
   BHARAT EXPLORE — AI ASSISTANT & SMART ITINERARY PLANNER CSS
   Modular stylesheet for streaming chat, AI orb, & planner
   ═══════════════════════════════════════════════════════ */

/* AI Split Section & Streaming Chat */
.split-section {
  padding: 85px 8vw;
  background: radial-gradient(circle at 75% 25%, #102d21 0%, #0a2118 60%, #071711 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.ai-header-badge {
  display: inline-flex;
  padding: 5px 12px;
  background: rgba(82, 183, 136, 0.18);
  border: 1px solid rgba(82, 183, 136, 0.4);
  color: #74c69d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  border-radius: 99px;
  margin-bottom: 12px;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ai-suggestions button {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(116, 198, 157, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-suggestions button:hover {
  background: rgba(82, 183, 136, 0.22);
  border-color: #74c69d;
  color: #fff;
  transform: translateY(-2px);
}

.chat {
  background: #faf8f2;
  color: var(--ink, #0a1c14);
  border-radius: var(--radius, 16px);
  height: 540px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--depth-lg, 0 18px 48px rgba(10, 18, 26, 0.14));
  border: 1.5px solid rgba(82, 183, 136, 0.25);
}

.chat-head {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  align-items: center;
  background: #f4efe4;
  flex-shrink: 0;
}

/* Refined AI Orb (Smooth, Non-Distracting) */
.ai-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  transition: all 0.3s ease;
}

.ai-orb.idle {
  background: linear-gradient(135deg, #2d6a4f 0%, #1a4332 100%);
  box-shadow: 0 0 12px rgba(82, 183, 136, 0.45);
}

.ai-orb.thinking {
  background: linear-gradient(135deg, #52b788 0%, #e9c46a 100%);
  box-shadow: 0 0 18px rgba(82, 183, 136, 0.6);
  animation: orbThinking 1.4s linear infinite;
}

@keyframes orbThinking {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-orb.streaming {
  background: linear-gradient(135deg, #2d6a4f 0%, #74c69d 100%);
  box-shadow: 0 0 22px rgba(82, 183, 136, 0.7);
}

.chat-model-tag {
  margin-left: auto;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 700;
  color: var(--muted, #5f707a);
}

.messages {
  padding: 22px;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 18, 26, 0.2) transparent;
}

.messages::-webkit-scrollbar {
  width: 6px;
}

.messages::-webkit-scrollbar-track {
  background: transparent;
}

.messages::-webkit-scrollbar-thumb {
  background: rgba(10, 18, 26, 0.18);
  border-radius: 99px;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 18, 26, 0.35);
}

.msg {
  max-width: 84%;
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
}

.msg.bot {
  background: #ffffff;
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.msg.user {
  background: linear-gradient(135deg, #2d6a4f 0%, #1a4332 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.35);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-form {
  display: flex;
  padding: 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.chat-form input {
  flex: 1;
  border: 0;
  background: #ffffff;
  border: 1px solid rgba(45, 106, 79, 0.18);
  outline: 0;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13.5px;
}

.chat-form button {
  background: #1b4332;
  color: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  margin-left: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.chat-form button:hover:not(:disabled) {
  background: #2d6a4f;
}

.chat-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.typing-cursor {
  display: inline-block;
  color: #2d6a4f;
  margin-left: 3px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* AI Markdown Response Styles */
.ai-para {
  margin: 0 0 8px;
  line-height: 1.7;
}

.ai-para:last-child {
  margin-bottom: 0;
}

.bot-text strong {
  color: var(--ink, #0a1c14);
  font-weight: 700;
}

.ai-bullet {
  color: #52b788;
  font-weight: 800;
  margin-right: 4px;
}

.ai-heading {
  margin: 10px 0 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0a1c14);
}

.ai-list-item {
  margin: 4px 0;
  padding-left: 2px;
  line-height: 1.6;
}

.ai-num {
  color: #2d6a4f;
  font-weight: 700;
  margin-right: 5px;
}

.bot-text p.ai-para + p.ai-para {
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   SMART ITINERARY PLANNER
   ═══════════════════════════════════════════════════════ */

.planner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
}

.planner-form {
  background: #faf8f2;
  border-radius: var(--radius, 16px);
  padding: 30px;
  display: grid;
  gap: 14px;
  box-shadow: var(--depth-sm, 0 4px 14px rgba(10, 26, 19, 0.08));
  border: 1px solid rgba(45, 106, 79, 0.14);
}

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

.planner-form label {
  font-size: 12px;
  font-weight: 700;
  display: grid;
  gap: 6px;
  color: var(--muted, #5f707a);
}

.planner-form label input,
.planner-form label select {
  width: 100%;
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: var(--radius-sm, 8px);
  padding: 11px 14px;
  background: #fafaf8;
  color: var(--ink, #0a1c14);
  outline: 0;
  transition: border-color 0.2s ease;
}

.planner-form label input:focus,
.planner-form label select:focus {
  border-color: #2d6a4f;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ink, #0a1c14);
  font-size: 12.5px;
  font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2d6a4f;
}

.itinerary-output {
  background: var(--surface-dark, #0c231a);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border-radius: var(--radius, 16px);
  padding: 30px;
  min-height: 380px;
  box-shadow: var(--depth-md, 0 10px 28px rgba(10, 18, 26, 0.12));
  border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.12));
}

.empty-state {
  color: #9da8ac;
  padding: 90px 20px;
  text-align: center;
}

.day {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 18px;
}

.day:last-child {
  border-bottom: 0;
}

.day strong {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-pop, #e9c46a);
}

.day h3 {
  margin: 0 0 5px;
  font-size: 17.5px;
}

.day p {
  margin: 0;
  color: #b8c1c4;
  font-size: 13px;
}

/* Live Pass Advisory Alert Badges */
.pass-advisory-badge {
  margin-top: 10px;
  padding: 11px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.pass-advisory-badge.status-open {
  border-left: 4px solid #52b788;
}

.pass-advisory-badge.status-caution {
  border-left: 4px solid #f4a261;
}

.pass-advisory-badge.status-restricted {
  border-left: 4px solid #e63946;
}

/* AI & Planner Responsive Adjustments */
@media (max-width: 1100px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .planner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .chat {
    height: 480px;
    max-height: 70vh;
  }
}
