/* ==========================================================================
   NOOR: LUXURY AI CONCIERGE CHAT BOX & ARABIAN OUD BACKGROUND MUSIC
   Travel Zone Luxury Expeditions
   ========================================================================== */

/* Floating Launcher Container */
.noor-launcher-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Floating Ambient Oud Music Toggle */
.noor-music-floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(21, 18, 12, 0.94);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #D4AF37;
  backdrop-filter: blur(12px);
  padding: 0;
}

.noor-music-floating-btn:hover {
  transform: scale(1.08);
  border-color: #FFFDF7;
  color: #FFFDF7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 22px rgba(212, 175, 55, 0.45);
}

.noor-music-floating-btn.playing {
  border-color: #D4AF37;
  color: #FFFDF7;
  background: radial-gradient(circle at 35% 35%, #2A2215 0%, #15120C 85%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.noor-music-floating-btn.playing::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.6);
  animation: musicRingSpin 8s linear infinite;
}

@keyframes musicRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Chat Launcher Button */
.noor-trigger-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #15120C;
  border: 2px solid #D4AF37;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
  padding: 0;
  overflow: visible;
}

.noor-trigger-btn:hover {
  transform: scale(1.08);
  border-color: #FFFDF7;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 28px rgba(212, 175, 55, 0.55);
}

.noor-trigger-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.noor-live-pulse-corner {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #15120C;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: liveGlow 2s infinite;
  z-index: 2;
}

@keyframes liveGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Chat Console Window */
.noor-modal-overlay {
  position: fixed;
  bottom: 105px;
  right: 28px;
  width: 440px;
  max-width: calc(100vw - 36px);
  height: 640px;
  max-height: calc(100vh - 125px);
  background: #0E0C09;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.18);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.noor-modal-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header */
.noor-modal-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, #1A150D 0%, #110E09 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.noor-brand-meta {
  display: flex;
  align-items: center;
  gap: 11px;
}

.noor-avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #D4AF37;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  background: #110E09;
  flex-shrink: 0;
}

.noor-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noor-title-wrap h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFDF7;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.noor-title-wrap p {
  margin: 1px 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: #D4AF37;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.noor-controls-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.noor-lang-switch {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #FFFDF7;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.noor-lang-switch:hover {
  background: #D4AF37;
  color: #110E09;
}

.noor-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #D4AF37;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.noor-icon-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #FFFDF7;
}

.noor-icon-btn.playing {
  background: rgba(212, 175, 55, 0.25);
  color: #FFFDF7;
  border-color: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Messages Feed */
.noor-messages-container {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #0E0C09;
  scroll-behavior: smooth;
}

.noor-messages-container::-webkit-scrollbar {
  width: 4px;
}

.noor-messages-container::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}

/* Message Rows with Avatar Thumbnail */
.noor-msg-row {
  display: flex;
  gap: 10px;
  max-width: 92%;
  animation: msgFadeIn 0.25s ease-out;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.noor-msg-row-bot {
  align-self: flex-start;
}

.noor-msg-row-user {
  align-self: flex-end;
  justify-content: flex-end;
}

.noor-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #D4AF37;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 4px;
  background: #110E09;
}

.noor-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noor-msg-content {
  display: flex;
  flex-direction: column;
}

.noor-msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  line-height: 1.52;
  letter-spacing: 0.01em;
}

.noor-msg-row-bot .noor-msg-bubble {
  background: #18140E;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #FFFDF7;
  border-top-left-radius: 4px;
}

.noor-msg-row-user .noor-msg-bubble {
  background: #D4AF37;
  color: #110E09;
  font-weight: 500;
  border-top-right-radius: 4px;
}

.noor-msg-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

.noor-msg-row-user .noor-msg-time {
  align-self: flex-end;
}

/* Rich Destination Image Card */
.noor-chat-card {
  margin-top: 10px;
  background: #15110B;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.noor-chat-card:hover {
  border-color: #D4AF37;
  transform: translateY(-2px);
}

.noor-chat-card-banner {
  height: 140px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.noor-chat-card-body {
  padding: 11px 14px 13px;
}

.noor-chat-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFDF7;
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}

.noor-chat-card-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  margin: 0 0 10px;
}

.noor-chat-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid #D4AF37;
  color: #FFFDF7;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.noor-chat-card-btn:hover {
  background: #D4AF37;
  color: #110E09;
}

/* Quick Suggestion Chips */
.noor-chips-wrapper {
  padding: 8px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #120F0B;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.noor-chips-wrapper::-webkit-scrollbar {
  display: none;
}

.noor-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #E2D9C8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.noor-chip:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #FFFDF7;
  border-color: #D4AF37;
}

/* Simple Clean Text Input Bar */
.noor-modal-footer {
  padding: 12px 14px;
  background: #14110C;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.noor-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1C1710;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 24px;
  padding: 4px 6px 4px 16px;
  transition: border-color 0.2s ease;
}

.noor-input-form:focus-within {
  border-color: #D4AF37;
}

.noor-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFDF7;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
}

.noor-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.noor-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #D4AF37;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.noor-mic-btn:hover {
  color: #FFFDF7;
}

.noor-mic-btn.listening {
  color: #EF4444;
}

.noor-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #D4AF37;
  border: none;
  color: #110E09;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.noor-send-btn:hover {
  background: #FFFDF7;
  transform: scale(1.05);
}

/* RTL Arabic Support */
.noor-modal-overlay.rtl-mode {
  direction: rtl;
  text-align: right;
}

.noor-modal-overlay.rtl-mode .noor-input-form {
  padding: 4px 16px 4px 6px;
}

.noor-modal-overlay.rtl-mode .noor-msg-row-bot .noor-msg-bubble {
  border-top-left-radius: 16px;
  border-top-right-radius: 4px;
}

.noor-modal-overlay.rtl-mode .noor-msg-row-user .noor-msg-bubble {
  border-top-right-radius: 16px;
  border-top-left-radius: 4px;
}

/* Responsiveness */
@media (max-width: 640px) {
  .noor-modal-overlay {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .noor-launcher-container {
    bottom: 20px;
    right: 20px;
    gap: 8px;
  }
  .noor-music-floating-btn {
    width: 44px;
    height: 44px;
  }
  .noor-trigger-btn {
    width: 56px;
    height: 56px;
  }
}
