/* =============================================
   td-sticky-bar.css — شريط سفلي مشترك
   يعمل على: viewtrip, touristspot, live-trip
   ============================================= */

/* ===== STICKY BAR ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 9, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.10);
  direction: rtl;
}

.sticky-cta-main {
  flex: 1;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2b14b 0%, rgba(242,177,75,.80) 100%);
  color: #161616;
  font-family: 'Tajawal','Cairo',ui-sans-serif,system-ui,sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 20px rgba(242,177,75,.25);
}
.sticky-cta-main:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(242,177,75,.15);
}
.sticky-cta-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sticky-cta-share {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sticky-cta-share:active {
  background: rgba(255,255,255,.14);
  transform: scale(0.95);
}

/* ===== SHARE MENU (Bottom Sheet) ===== */
.share-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  transition: visibility 0.3s;
}
.share-menu.hidden {
  visibility: hidden;
  pointer-events: none;
}
.share-menu.hidden .share-menu-backdrop {
  opacity: 0;
}
.share-menu.hidden .share-menu-panel {
  transform: translateY(100%);
}

.share-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.50);
  transition: opacity 0.3s;
}

.share-menu-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a2236;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  transition: transform 0.3s ease;
  direction: rtl;
}

.share-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  font-family: 'Tajawal','Cairo',ui-sans-serif,system-ui,sans-serif;
}

.share-menu-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 12px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #e2e8f0;
  font-family: 'Tajawal','Cairo',ui-sans-serif,system-ui,sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  text-align: right;
}
.share-menu-item:active {
  background: rgba(255,255,255,.08);
}

.share-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.share-menu-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 4px 12px;
}

/* ===== CALENDAR MENU ===== */
.cal-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
  z-index: 10000;
}
#tdCalendarMenu.open .cal-menu-backdrop { opacity: 1; }

.cal-menu-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a2236;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  z-index: 10001;
  transform: translateY(100%);
  transition: transform .3s ease;
  direction: rtl;
  font-family: 'Tajawal','Cairo',ui-sans-serif,system-ui,sans-serif;
}
#tdCalendarMenu.open .cal-menu-sheet { transform: translateY(0); }

.cal-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.cal-menu-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 16px;
}
.cal-menu-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #e2e8f0;
  font-family: 'Tajawal','Cairo',ui-sans-serif,system-ui,sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.cal-menu-opt:active { background: rgba(255,255,255,.10); }
.cal-menu-cancel {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
  font-weight: 500;
  justify-content: center;
}

/* ===== TOAST ===== */
.sticky-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(52, 211, 153, 0.95);
  color: #0b1220;
  padding: 12px 24px;
  border-radius: 14px;
  font-family: 'Tajawal','Cairo',ui-sans-serif,system-ui,sans-serif;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.sticky-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}