/* ======================================================
   STANDALONE TRIP OVERLAY & TRIP PLANNER CSS
   ====================================================== */

.tt-widget-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0 0 0 / 78%);
    z-index: 10;
    cursor: default;
    top: 7dvh;
}

.tt-widget-popover {
    position: absolute;
    width: 400px;
    /* background-color: #121316; */
    border-radius: 20px;
    /* padding: 1.25rem; */
    color: #f3f4f6;
  
   background-color: #090909bf;
    box-sizing: border-box;
    z-index: 9999;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    
}

.tt-widget-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 21px;
  width: 12px;
  height: 12px;
  background-color: #090909;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

.tt-widget-drag-handle { display: none; }

/* Close Button */
.tt-widget-header {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 10;
}

.tt-widget-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
}

.tt-widget-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --- PLANNER / EDIT TRIP FORM STYLES --- */
.tt-plan-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.tt-plan-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #94a3b8;
  flex-shrink: 0;
  display: none;
}

.tt-plan-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: none;
}

.tt-plan-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.tt-plan-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.72rem;
  color: #9ca3af;
}

.tt-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 2rem 0 0.5rem 0;
}

/* Date Selector Grid */
.tt-date-picker-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.tt-date-box {
    background: rgb(0 0 0 / 76%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: .8;
}

.tt-date-box:hover, .tt-date-box.active {
opacity: 1 !important;
 
}

.tt-date-lbl {
  font-size: 0.68rem;
  color: #9ca3af;
  font-weight: 500;
}

.tt-date-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tt-date-arrow {
  color: #6b7280;
  font-size: 0.8rem;
}

/* Guest Selector */
.tt-guest-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.tt-guest-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.tt-guest-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

/* Form Footer */
.tt-form-footer-note {
  font-size: 0.68rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.6rem;
}


/* --- CUSTOM RANGE CALENDAR POPUP STYLES --- */
.tt-calendar-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: #18191d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.2rem;
  z-index: 10000;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

.tt-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tt-cal-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.tt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.tt-cal-day-name {
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 600;
  padding-bottom: 6px;
}

.tt-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 8px;
  color: #e5e7eb;
  cursor: pointer;
  user-select: none;
}

.tt-cal-day:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.tt-cal-day.disabled {
  color: #374151;
  cursor: not-allowed;
}

.tt-cal-day.selected {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
}

.tt-cal-day.in-range {
  background: rgba(37, 99, 235, 0.25);
  color: #a5b4fc;
  border-radius: 0;
}

.tt-cal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tt-widget-body{
  background: #22256a29;
}

/* --- TRIPS & CONNECTIONS EXISTING UI --- */
.tt-widget-trip-card {        padding: 1.25rem;
    background: #22256a29;
   }
.tt-widget-trip-body {         display: grid;
    gap: 0.85rem;
    align-items: center;
    grid-template-columns: 3rem 1fr 4rem; }
.tt-widget-trip-thumb { width: 100%;
    height: 100%; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.tt-widget-badge {
      display: inline-block;
    /* background: #3e47ff; */
    color: #ffffff;
    font-size: 0.55rem;
    /* font-weight: 700; */
    padding: 2px 6px;
    /* border-radius: 4px; */
    text-transform: uppercase;
    margin-bottom: 3px;
    border: 1px solid #ffffff3d;
    display: none;
}
.tt-widget-trip-title { margin: 0; font-size: 1.2rem; font-weight: 600; color: #ffffff; }
.tt-widget-trip-dates { font-size: 1rem; font-weight: 600; color: #e4e4e7; margin-top: 2px; }
.tt-widget-trip-meta {     font-size: 0.8rem;
    color: #ffffff;
    opacity: .8;}
.txt{
  font-size: .8rem;
}
.tt-widget-primary-btn {
     width: 100%;
    background: linear-gradient(135deg, #3e47ff 0%, #3e47ff 100%);
    border: none;
    /* border-radius: 10px; */
    padding: 1REM;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
       align-items: center;
    font-family: var(--fa-font-regular);
    justify-content: center;
    gap: 0.4rem;
    border-radius: 8px;
    MARGIN-TOP: .5REM;
  
}
.tt-widget-primary-btn:hover { filter: brightness(1.15); }

.tt-widget-tabs { display: flex;  }
.tt-widget-tab-btn {     flex: 1;
    background: none;
    border: none;
    color: #71717a;
    font-size: .9rem;
    font-weight: 600;
    padding: 1rem 0;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-bottom: 1px solid transparent;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    background: #0000005e;}
.tt-widget-tab-btn.active { color: #ffffff; border-bottom-color: #3b82f6a1; }
.tt-widget-tab-count {         color: #e4e4e7;
    font-size: 10px;
    /* padding: 1px 6px; */
    border-radius: 10px;
    width: 2rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; 
    display: none;
  }

.tt-widget-contacts {       display: flex;
      background: #05050e;
    flex-direction: column;
 
    /* margin: 1rem 0; */
}
.tt-widget-contact-row {transition: all 0.2s; opacity: .75; display: flex; align-items: center; padding: 1rem; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.tt-widget-contact-row:hover { opacity: 1 !important;background: #000; }
.tt-widget-avatar-wrap { position: relative; margin-right: 0.75rem; flex-shrink: 0; }
.tt-widget-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover;opacity: 0; transition: all 0.2s; }
.tt-widget-online-indicator { display: none;position: absolute; bottom: 1px; right: 1px; width: 9px; height: 9px; background-color: #22c55e; border: 2px solid #121316; border-radius: 50%; }
.tt-widget-contact-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tt-widget-info-top { display: flex; justify-content: space-between; align-items: baseline; }
.tt-widget-contact-name { font-size: 1rem; font-weight: 400; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-widget-msg-time {     text-transform: capitalize;font-size: 0.68rem; color: #fff; flex-shrink: 0; margin-left: 0.5rem;    opacity: .5; }
.tt-widget-msg-time.highlight { color: #22c55e; }
.tt-widget-info-bottom { display: flex; justify-content: space-between; align-items: center; }
.tt-widget-msg-preview { font-size: 1rem; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 0.3rem; }
.tt-widget-msg-preview i { font-size: 0.7rem; color: #3b82f6; }
.tt-widget-unread-badge { background-color: #22c55e; color: #000000; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.unread .tt-widget-contact-name{
  font-weight: 600 !important;
}
.unread {
  opacity: 1 !important;
}

/* --- MOBILE OVERRIDES (screen <= 640px) --- */
@media screen and (max-width: 640px) {
.tt-widget-backdrop{
  background: #000000bf !important;
}
  .tt-widget-popover {
position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top:7dvh;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0;
   
        border-bottom: none;
        /* padding: 0.75rem 1.25rem 2rem 1.25rem; */
      
        animation: ttSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        height: 93dvh;
                overflow-y: scroll;
                display: flex;
                        align-items: flex-end;
                                background: transparent !important;
  }
  
  .tt-widget-popover::before { display: none; }
  .tt-widget-drag-handle {
    display: block; width: 38px; height: 4px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px; margin: 0 auto 0.75rem auto;
  }
}

@keyframes ttSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
/* --- INLINE CALENDAR STYLES --- */
.tt-calendar-container {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  animation: ttFadeIn 0.2s ease-in-out;
      background: rgb(0 0 0 / 76%);
}

@keyframes ttFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tt-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.tt-cal-month-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.tt-cal-nav-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.tt-cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.tt-cal-day-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: #6b7280;
  padding-bottom: 0.4rem;
  text-transform: uppercase;
}

.tt-cal-day {
  font-size: 0.72rem;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: #d1d5db;
  transition: all 0.15s ease;
  user-select: none;
}

.tt-cal-day:hover:not(.empty):not(.disabled) {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.tt-cal-day.empty { cursor: default; }

.tt-cal-day.selected-start {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.tt-cal-day.selected-end {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.tt-cal-day.in-range {
    background: #2563eb4a !important;

  border-radius: 0;
}

/* Selected input box active state matching screenshot */
.tt-date-box.active {
opacity: 1 !important;
}
.tt-call-btn{
        background: transparent;
    border: 0;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
/* --- CHAT SUB-VIEW OVERLAY STYLES --- */
.tt-chat-header {
     display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
    margin-top: -.75rem;
    padding-bottom: 1rem !important;
    width: calc(100%);
    margin-left: 0;
    padding: 1rem 1rem !important;
    margin-top: 0;
    margin-bottom: 0;
    height: 4rem;
            background: #131435;
}
.rhs{
        height: calc(80dvh - 8rem);
    overflow-y: scroll;
    scrollbar-width: none;
    display: flex;
    flex-direction: column-reverse;
    position: relative;
        padding: 0 1rem;
            background: #070707;
}

.csOW{
         display: grid;
       grid-template-rows: calc(4rem) auto calc(4rem);
}

.tt-back-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.isACall .dTick{
    display: none !important;
}

.tt-back-btn:hover { color: #ffffff; }

.tt-chat-host-info { flex: 1; display: flex; align-items: center; gap: 0.65rem; }
.tt-chat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tt-chat-host-name { font-size: 1.1rem; font-weight: 600; color: #ffffff; margin: 0; }
.tt-chat-host-status { font-size: 0.68rem; color: #10b981; display: flex; align-items: center; gap: 4px; }
.tt-chat-host-status::before {content: '';
  width: 6px;
  height: 6px;
  background: currentColor; /* Dynamically switches between green (#4ade80) and gray (#a1a1aa) */
  border-radius: 50%;
  display: inline-block;
 }
 .is-calling  .tt-chat-host-status{
  display: none !important;
 }
  .is-calling .tt-chat-host-status-info{
 display: none !important;
 }
/* Video Preview Embed */
.tt-chat-video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tt-chat-video-card video { width: 100%; display: block; max-height: 160px; object-fit: cover; }

/* Message Thread Scroll Area */
.tt-chat-messages {


  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 4px;

     
}
.chatView{
  min-height: 50dvh;
}

.tt-msg-bubble {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.4;
  position: relative;
}

.tt-msg-bubble.incoming {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.tt-msg-bubble.outgoing {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.tt-msg-time {
  font-size: 0.6rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
  display: block;
}

/* Chat Input Bar */
.tt-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  border-radius: 24px;

}

.tt-chat-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.78rem;
}

.tt-chat-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
}
.tt-host-avatar {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 50%;
}

.tt-host-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.tt-iframe-view-wrap .backBtn2{
  display: none !important;
}