/* ============================================================================
   EXPLORE MODE - MODERN PALETTE ALIGNED WITH BOOKING UI
   ============================================================================ */

:root {
  --explore-bg: #f7f8fb;
  --explore-surface: #ffffff;
  --explore-ink: #0f172a;
  --explore-muted: #6b7280;
  --explore-primary: #295e9b;
  --explore-secondary: #3f6ea7;
  --explore-border: #e3e8ef;
  --explore-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

body[data-mode="explore"] {
  font-family: var(--font-family-base);
  color: #323232;
}

/* ============================================================================
   BOTTOM MENU BARS
   ============================================================================ */

.explore-bottom-shell {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--explore-border);
  box-shadow: var(--explore-shadow);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
}

.explore-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.explore-actions-primary {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.explore-actions-nav,
.explore-actions-account,
.explore-actions-utility {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.explore-bottom-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


/* ============================================================================
   DROPDOWNS
   ============================================================================ */

.dropdown-with-tooltip { position: relative; display: inline-block; }

.category-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  background: var(--explore-primary);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 700;
  box-shadow: 0 8px 16px rgba(41, 94, 155, 0.35);
}

.category-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  border: 8px solid transparent;
  border-bottom-color: var(--explore-primary);
}

.category-tooltip.visible {
  opacity: 1;
  transform: translateY(4px);
}

.explore-dropdown {
  flex: 0 0 auto;
  max-width: none;
  padding: 10px 34px 10px 12px;
  background: #fff;
  color: var(--explore-ink);
  border: 1px solid var(--explore-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f172a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  white-space: nowrap;
  line-height: 1.2;
}

.explore-dropdown:hover:not(:disabled) {
  border-color: var(--explore-secondary);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.explore-dropdown:focus {
  outline: none;
  border-color: var(--explore-secondary);
  box-shadow: 0 0 0 3px rgba(63, 110, 167, 0.18);
}

.explore-dropdown:disabled { opacity: 0.55; cursor: not-allowed; }
.explore-dropdown option { background: #fff; color: var(--explore-ink); }

/* ============================================================================
   BUTTONS
   ============================================================================ */

.explore-btn {
  padding: 9px 14px;
  background: #ffffff;
  color: var(--explore-ink);
  border: 1px solid var(--explore-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.explore-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.explore-btn:active:not(:disabled) { transform: translateY(0); }
.explore-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.explore-btn.primary {
  background: linear-gradient(180deg, #2f6fb3, #295e9b);
  color: #fff;
  border-color: rgba(41, 94, 155, 0.85);
}

.explore-btn.secondary {
  background: linear-gradient(180deg, #f5f7fb, #e8ecf4);
  color: #1f2937;
  border-color: var(--explore-border);
}

.explore-bottom-shell {
  justify-content: space-between;
}

.explore-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.explore-identity-label {
  font-family: var(--font-family-base);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.explore-identity-note {
  font-size: 13px;
  color: var(--explore-muted);
}

.explore-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--explore-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-pill {
  padding: 6px 10px;
  border: 1px solid var(--explore-border);
  border-radius: 12px;
  background: #eef2f7;
  color: var(--explore-ink);
  font-weight: 600;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .explore-bottom-bar {
    padding: 6px;
    gap: 6px;
  }

  .explore-bottom-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .explore-dropdown {
    flex: 1 1 auto;
    max-width: none;
    font-size: 13px;
    padding: 8px 30px 8px 10px;
  }

  .explore-btn {
    flex: 1 1 auto;
    min-width: 100px;
    justify-content: center;
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ============================================================================
   HIDE LEGACY/BOOKING MODE ELEMENTS IN EXPLORE MODE
   ============================================================================ */

body[data-mode="explore"] #bookingTopBar,
body[data-mode="explore"] #bookingBottomBar,
body[data-mode="explore"] #filterPopup,
body[data-mode="explore"] #datesPopup,
body[data-mode="explore"] #bookingSummaryPopup,
body[data-mode="explore"] #menuContainer,
body[data-mode="explore"] #poiMenuContainer {
  display: none !important;
}

/* Hide nav controls in explore mode */
body[data-mode="explore"] .nav-controls {
  display: none !important;
}
