/**
 * NFTT World - 3D Globe & Two-Column Discovery Styles
 * Dedicated 2-column layout: Editorial left column, daylight interactive globe right column.
 * Clean text underline tabs, subtle search, zero pill clutter.
 */

/* ==========================================================================
   1. Hero Globe Section Layout
   ========================================================================== */
.hero-globe-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 76px);
  background: radial-gradient(circle at 75% 45%, #EBF4FC 0%, #F5F9FC 45%, #FFFFFF 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 0 1.25rem;
}

/* Left Editorial Backdrop Wash (ensures 100% text contrast & legibility without fogging the globe) */
.hero-editorial-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.94) 65%, rgba(255, 255, 255, 0) 100%);
}

/* Foreground Interactive Container Layer */
.hero-foreground-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  min-height: calc(100vh - 120px);
  pointer-events: none;
}

.hero-foreground-container > * {
  pointer-events: auto;
}

/* Main Content Row: Left Editorial Column + Right Floating Preview Card Slot */
.hero-main-row {
  display: grid;
  grid-template-columns: 480px 1fr;
  align-items: center;
  gap: 3rem;
  flex: 1;
  pointer-events: none;
  width: 100%;
}

.hero-preview-slot {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  min-height: 380px;
  pointer-events: none;
}

.hero-preview-slot > * {
  pointer-events: auto;
}

/* Legacy container alias for backward compatibility */
.hero-two-col-container {
  display: contents;
}

/* ==========================================================================
   2. Left Column: Editorial Travel Copy & Trust Elements
   ========================================================================== */
.hero-editorial-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 6;
  max-width: 520px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-orange);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

.hero-title-main {
  color: var(--color-brand-navy);
}

.hero-title-sub,
.hero-title-accent {
  color: var(--color-brand-orange);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-explore-travel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: var(--color-brand-orange);
  border: 1.5px solid var(--color-brand-orange);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-explore-travel:hover {
  background: #E06810;
  border-color: #E06810;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(244, 122, 32, 0.3);
}

.btn-whatsapp-travel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #128C7E;
  background: #FFFFFF;
  border: 1.5px solid #25D366;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-whatsapp-travel .nftt-icon {
  width: 15px;
  height: 15px;
  stroke: #128C7E;
  transition: stroke 0.2s ease;
}

.btn-whatsapp-travel:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-travel:hover .nftt-icon {
  stroke: #FFFFFF;
}

/* Horizontal Travel Trust Strip (Clean Typography, No Heavy Bullets) */
.hero-trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(17, 26, 70, 0.08);
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-brand-navy);
}

.hero-trust-strip .trust-sep {
  display: inline-block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--color-brand-orange);
  opacity: 0.7;
}

.hero-trust-strip .trust-pill {
  color: var(--color-brand-navy);
  opacity: 0.85;
}

/* ==========================================================================
   3. Right Column: Dedicated Globe Mount & Unified Controls
   ========================================================================== */
.hero-globe-col {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  z-index: 20;
  overflow: visible;
}

/* Top Sleek Discovery Toolbar (Floating Translucent Dock) */
.globe-header-toolbar,
.globe-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(17, 26, 70, 0.06);
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 30;
  flex-wrap: wrap;
}

/* Clean Text Navigation Tabs (Underline indicator, zero pill capsules) */
.globe-category-tabs {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.globe-tab {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: 0.35rem 0;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
}

.globe-tab::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-orange);
  transition: width 0.22s ease;
}

.globe-tab:hover {
  color: var(--color-brand-navy);
}

.globe-tab.active {
  color: var(--color-brand-navy);
  font-weight: 800;
}

.globe-tab.active::after {
  width: 100%;
}

.globe-tab[data-category="spiritual"].active {
  color: var(--color-brand-gold);
}

.globe-tab[data-category="spiritual"].active::after {
  background: var(--color-brand-gold);
}

.globe-toolbar-actions,
.globe-secondary-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Compact Expandable Quick Search */
.globe-search-compact,
.globe-quick-search {
  position: relative;
  display: flex;
  align-items: center;
}

.globe-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.globe-search-trigger:hover {
  border-color: var(--color-brand-navy);
  color: var(--color-brand-navy);
}

.globe-search-compact .search-input-wrap,
.globe-quick-search .search-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  box-shadow: 0 1px 3px rgba(17, 26, 70, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.25s ease;
}

.globe-search-compact .search-input-wrap:focus-within,
.globe-quick-search .search-input-wrap:focus-within {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 2px rgba(85, 183, 232, 0.25);
}

.globe-search-compact .search-icon,
.globe-quick-search .search-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  margin-right: 0.35rem;
}

.globe-search-compact .search-icon .nftt-icon,
.globe-quick-search .search-icon .nftt-icon {
  width: 13px;
  height: 13px;
}

.globe-search-compact .search-input,
.globe-quick-search .search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--color-text-primary);
  width: 110px;
  transition: width 0.2s ease;
}

.globe-search-compact .search-input:focus,
.globe-quick-search .search-input:focus {
  width: 155px;
}

.globe-search-compact .search-input::placeholder,
.globe-quick-search .search-input::placeholder {
  color: var(--color-text-muted);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 250px;
  max-height: 250px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
  z-index: 100;
  display: none;
}

.search-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background-color: var(--color-bg-secondary);
}

.search-item-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-brand-navy);
}

.search-item-sub {
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  display: block;
}

/* View Focus: World / India Buttons */
.globe-view-toggle,
.view-focus-control {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn,
.view-toggle-btn,
.focus-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand-navy);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-btn:hover,
.view-toggle-btn:hover,
.focus-btn:hover {
  color: var(--color-brand-orange);
}

.view-btn.active,
.view-toggle-btn.active,
.focus-btn.active {
  background: var(--color-brand-navy);
  color: #FFFFFF;
}

/* Living 3D Earth Daylight Canvas Mount (Full natural sphere silhouette, zero mask clipping) */
.hero-globe-bg-mount,
.nftt-globe-mount {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  right: 2rem;
  width: min(58%, 900px);
  height: calc(100% - 2rem);
  z-index: 1;
  cursor: grab;
  outline: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.hero-globe-bg-mount:active,
.nftt-globe-mount:active {
  cursor: grabbing;
}

.hero-globe-bg-canvas,
.nftt-globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent !important;
}

/* Legacy container fallback */
.globe-natural-mount,
.globe-canvas-wrapper {
  display: contents;
}

/* Globe Bottom Caption & NASA Attribution */
.globe-bottom-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.71875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.65rem;
  text-align: center;
}

.globe-caption-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.caption-attribution {
  font-size: 0.65rem;
  color: #94A3B8;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(85, 183, 232, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(85, 183, 232, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(85, 183, 232, 0); }
}

/* ==========================================================================
   4. Compact Editorial Destination Preview Card (280px, Non-Intrusive)
   ========================================================================== */
.destination-preview-card {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  top: auto;
  width: 310px;
  max-width: calc(100% - 2rem);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(17, 26, 70, 0.12);
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.destination-preview-card.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dp-card-inner,
.dp-compact-content {
  padding: 0.95rem 1.1rem;
}

.dp-card-header,
.dp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.dp-badge {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-domestic {
  background: var(--color-brand-orange);
  color: #FFFFFF;
}

.badge-international {
  background: var(--color-brand-blue);
  color: #FFFFFF;
}

.badge-spiritual {
  background: var(--color-brand-gold);
  color: #FFFFFF;
}

.dp-duration-text {
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.dp-close-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-brand-navy);
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5;
}

.dp-close-btn:hover {
  background: var(--color-bg-secondary);
  color: var(--color-brand-orange);
}

.dp-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-brand-navy);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.dp-location-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.71875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.dp-sep {
  opacity: 0.5;
}

.dp-description {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.dp-food-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
}

.dp-food-label,
.food-label {
  font-weight: 700;
  color: var(--color-brand-navy);
}

.dp-food-tags,
.food-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.food-pill {
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 700;
}

.veg-pill {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.jain-pill {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dp-card-footer,
.dp-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border-light);
  gap: 0.5rem;
}

.dp-price-block {
  display: flex;
  flex-direction: column;
}

.dp-price-label,
.price-sub {
  font-size: 0.59375rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.dp-price-val,
.price-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-brand-orange);
  line-height: 1.1;
}

.dp-action-btns {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-dp-explore,
.dp-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-dp-explore .nftt-icon,
.dp-explore-btn .nftt-icon {
  width: 12px;
  height: 12px;
}

.btn-dp-explore:hover,
.dp-explore-btn:hover {
  background: var(--color-brand-navy);
  border-color: var(--color-brand-navy);
  color: #FFFFFF;
}

.btn-dp-wa,
.dp-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-dp-wa .nftt-icon,
.dp-wa-btn .nftt-icon {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
}

.btn-dp-wa:hover,
.dp-wa-btn:hover {
  background: #1EBE5D;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.demo-price-disclaimer {
  font-size: 0.65625rem;
  color: var(--color-text-muted);
}

.dp-actions {
  display: flex;
  gap: 0.65rem;
}

.dp-actions .btn-nftt {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
}

/* Marker Tooltip */
.globe-marker-tooltip {
  position: absolute;
  z-index: 15;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  box-shadow: var(--shadow-card);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.globe-marker-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -130%);
}

.tooltip-badge {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-orange);
}

.tooltip-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-brand-navy);
}

.tooltip-hint {
  display: block;
  font-size: 0.65625rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   5. WebGL Fallback View
   ========================================================================== */
.webgl-fallback-container,
.webgl-fallback-view {
  width: 100%;
  max-width: var(--container-max);
  margin: 2rem auto 0;
  padding: 0 1.75rem;
}

.fallback-card,
.fallback-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.fallback-badge {
  display: inline-block;
  background: var(--color-brand-blue-soft);
  color: var(--color-brand-blue-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
