/* WingPal Discover Screen Styles (Buddies & Wings) */

.lead-nav-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lead-nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  text-decoration: none;
}

.lead-nav-link:hover {
  color: #0D9488;
}

.lead-nav-link.active-pill {
  background-color: #0D9488;
  color: #FFFFFF;
  padding: 8px 20px;
}

.lead-nav-link.active-pill:hover {
  color: #FFFFFF;
  background-color: #0F766E;
}

.nav-msg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-msg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #EA580C;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
}

/* Discover Main */
.discover-main {
  padding-top: 24px;
  padding-bottom: 72px;
}

/* ==========================================================================
   DISCOVER HERO CARD
   ========================================================================== */
.discover-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  background-color: #FFFFFF;
  margin-bottom: 24px;
  min-height: 220px;
}

.discover-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  z-index: 1;
  transition: background-image 0.3s ease;
}

.discover-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 38%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 2;
}

.discover-hero-content {
  position: relative;
  z-index: 3;
  padding: 32px 36px;
  max-width: 600px;
}

.discover-eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #0D9488;
  margin-bottom: 6px;
}

.discover-hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.discover-hero-sub {
  font-size: 15px;
  color: #64748B;
  margin-bottom: 20px;
  line-height: 1.45;
}

/* Discover Mode Toggle */
.discover-mode-toggle {
  display: inline-flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.discover-toggle-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.discover-toggle-opt:hover {
  color: #0F172A;
}

.discover-toggle-opt.active {
  background-color: #E6F7F5;
  color: #0F172A;
  box-shadow: 0 1px 4px rgba(13, 148, 136, 0.15);
}

.toggle-icon {
  width: 17px;
  height: 17px;
}

.icon-crown-gold {
  color: #EA580C;
}

/* ==========================================================================
   SEARCH & FILTERS BAR
   ========================================================================== */
.search-filters-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 0 16px;
  height: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.search-glass-icon {
  width: 19px;
  height: 19px;
  color: #64748B;
  flex-shrink: 0;
}

.search-main-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #0F172A;
  font-family: inherit;
  background: transparent;
}

.search-main-input::placeholder {
  color: #94A3B8;
}

.filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 0 16px;
  height: 48px;
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-dropdown-btn:hover, .filter-settings-btn:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
}

.filter-mini-icon {
  width: 16px;
  height: 16px;
  color: #64748B;
}

.chevron-sm {
  width: 13px;
  height: 13px;
  color: #64748B;
}

.filter-settings-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 0 18px;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

/* ==========================================================================
   CATEGORY PILLS BAR
   ========================================================================== */
.category-pills-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-bottom: 32px;
}

.category-pills-row::-webkit-scrollbar {
  display: none;
}

.discover-cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex: 1;
  min-width: 82px;
}

.discover-cat-pill svg {
  width: 20px;
  height: 20px;
}

.discover-cat-pill:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #0D9488;
}

.discover-cat-pill.active {
  background-color: #E6F7F5;
  border-color: #CCFBF1;
  color: #0D9488;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.08);
}

/* ==========================================================================
   SECTION HEADER (COUNT & SORT)
   ========================================================================== */
.discover-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.discover-grid-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.discover-count-badge {
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

.sort-by-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 14px;
  color: #64748B;
}

.sort-select-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
}

/* 3-Column Grid */
.discover-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   VIEW 1: ACTIVITY DISCOVER CARD
   ========================================================================== */
.activity-discover-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.activity-discover-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #CCFBF1;
}

.act-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background-color: #F1F5F9;
}

.act-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.floating-cat-tag svg {
  width: 14px;
  height: 14px;
}

.btn-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-fav svg {
  width: 17px;
  height: 17px;
}

.btn-card-fav:hover {
  color: #EF4444;
  background-color: #FFFFFF;
}

.act-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.act-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.act-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 6px;
}

.act-meta-icon {
  width: 14px;
  height: 14px;
  color: #64748B;
  flex-shrink: 0;
}

.act-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.act-action-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.people-going-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0D9488;
}

.people-going-count svg {
  width: 14px;
  height: 14px;
}

.btn-act-view {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #0D9488;
  background-color: #E6F7F5;
  border: 1px solid #CCFBF1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-act-view:hover {
  background-color: #0D9488;
  color: #FFFFFF;
}

/* ==========================================================================
   VIEW 2: WING PROFILE DISCOVER CARD
   ========================================================================== */
.wing-profile-discover-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
}

.wing-profile-discover-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #CCFBF1;
}

.wing-photo-wrap {
  position: relative;
  width: 145px;
  flex-shrink: 0;
}

.wing-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wing-profile-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wing-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wing-profile-name {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}

.verified-check-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wing-rating-location {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.rating-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.star-gold-char {
  color: #EA580C;
  font-size: 14px;
}

.location-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #64748B;
}

.location-inline svg {
  width: 13px;
  height: 13px;
}

.service-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.service-tag {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background-color: #F1F5F9;
  border-radius: var(--radius-full);
}

.wing-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.avail-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}

.green-status-dot {
  width: 7px;
  height: 7px;
  background-color: #22C55E;
  border-radius: var(--radius-full);
}

.rate-and-book-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rate-from-text {
  font-size: 14px;
  color: #0F172A;
}

.rate-from-text strong {
  font-weight: 800;
  font-size: 16px;
}

.btn-wing-book {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #0D9488;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

.btn-wing-book:hover {
  background-color: #0F766E;
}

/* Responsive */
@media (max-width: 1150px) {
  .discover-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .discover-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .lead-nav-center {
    display: none;
  }
  
  .search-filters-bar {
    flex-direction: column;
  }
  
  .search-input-wrap, .filter-dropdown-btn, .filter-settings-btn {
    width: 100%;
  }
}

/* Worldwide city search, shared with the home city picker. */
.discover-city-search { margin: 24px 0 16px; padding: 20px; border: 1px solid var(--slate-200, #e2e8f0); border-radius: 16px; background: white; }
.discover-city-search label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.discover-city-search input { display: block; width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; border: 1px solid #cbd5e1; border-radius: 12px; }
.discover-city-search input:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.discover-city-search p { margin-top: 8px; color: #475569; font-size: 14px; }
.discover-city-search small { display: block; margin-top: 6px; font-size: 11px; color: #64748b; }
.discover-city-search a { text-decoration: underline; }
.discover-content-section article[hidden] { display: none !important; }

.nearby-distance { display: block; padding: 8px 12px; color: #0f766e; font-size: 12px; font-weight: 600; }

.nearby-empty { padding: 24px; color: #475569; border: 1px dashed #e2e8f0; border-radius: 12px; }
.nearby-empty[hidden] { display: none; }

/* Keep the live search input at its touch-target height when the bar stacks. */
@media (max-width: 768px) {
  .search-filters-bar .search-input-wrap { flex: none; min-height: 48px; min-width: 0; }
}
