/* ═══════════════════════════════════════════════════════════
   QARIBIA — Experiences Page
   ══════════════════════════════════════════════════════════ */

/* ── 1. Hero: Compact banner (breadcrumb only) ──────────── */
.exp-hero {
  position: relative;
  height: 32vh;
  min-height: 260px;
  max-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.exp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.exp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(13, 27, 42, 0.97) 0%, rgba(13, 27, 42, 0.8) 50%, rgba(13, 27, 42, 0.6) 100%);
}

.exp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 40px;
}

/* ── Leg-context banner (arriving via ?forLeg=) ─────────── */
.leg-banner {
  max-width: calc(var(--max-w) - 80px);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 4;
}

.leg-banner__inner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(26, 58, 46, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 14px 22px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.leg-banner__text {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.leg-banner__label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leg-banner__label i {
  color: var(--amber);
}

.leg-banner__status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.leg-banner__status--filled {
  color: var(--sage);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-banner__back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--amber);
  border: 1px solid var(--amber);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans-base);
  flex-shrink: 0;
}

.leg-banner__back:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* ── 2. Controls Bar ─────────────────────────────────────── */
.exp-controls {
  position: sticky;
  top: 80px;
  z-index: 90;
  max-width: calc(var(--max-w) - 80px);
  margin: -30px auto 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.exp-controls__inner {
  padding: 24px 28px;
}

.exp-controls__row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.exp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  max-width: 280px;
}

.exp-field label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.exp-select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
}

.exp-types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exp-type {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-base);
}

.exp-type:hover {
  border-color: var(--gold);
}

.exp-type.active {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: #fff;
}

/* ── 3. Grid + Cards ─────────────────────────────────────── */
.exp-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 40px 100px;
}

.exp-results-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.exp-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  position: relative;
}

.exp-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(45, 90, 66, 0.15);
}

.exp-card--selected {
  border-color: var(--deep-green);
  box-shadow: 0 0 0 2px var(--deep-green), 0 24px 48px rgba(0, 0, 0, 0.08);
}

.exp-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.exp-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.exp-card:hover .exp-card__image img {
  transform: scale(1.06);
}

.exp-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  color: rgba(0, 0, 0, 0.15);
  font-size: 2rem;
}

.exp-card__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-badge {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.exp-badge--type {
  background: rgba(26, 58, 46, 0.85);
  color: #fff;
}

.exp-badge--selected {
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.exp-card__price-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: right;
}

.exp-card__price-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.exp-card__body {
  padding: 20px 22px 22px;
}

.exp-card__destination {
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-card__name {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.exp-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exp-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exp-card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Empty state ─────────────────────────────────────────── */
.exp-empty {
  text-align: center;
  padding: 80px 20px;
}

.exp-empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.2);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.exp-empty h3 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.exp-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── 4. Modal ────────────────────────────────────────────── */
.exp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.exp-modal.open {
  display: flex;
}

.exp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(6px);
}

.exp-modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 28px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}

.exp-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exp-modal__image {
  width: 100%;
  height: 280px;
}

.exp-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-modal__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  color: rgba(0, 0, 0, 0.15);
  font-size: 3rem;
}

.exp-modal__body {
  padding: 32px;
}

.exp-modal__destination {
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-modal__name {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.exp-modal__meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.exp-modal__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
}

.exp-modal__meta-item i {
  color: var(--amber);
}

.exp-modal__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.exp-modal__book {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
}

.exp-modal__price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.exp-modal__price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.exp-modal__per {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exp-book-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--deep-green), var(--forest));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(26, 58, 46, 0.25);
  margin-bottom: 12px;
}

.exp-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 58, 46, 0.35);
}

.exp-book-btn--remove {
  background: transparent;
  color: #E53E3E;
  border: 1.5px solid rgba(229, 62, 62, 0.3);
  box-shadow: none;
}

.exp-book-btn--remove:hover {
  background: rgba(229, 62, 62, 0.06);
  box-shadow: none;
}

.exp-modal__secure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.exp-modal__confirmed {
  text-align: center;
  padding: 8px 0 4px;
}

.exp-modal__confirmed-icon {
  font-size: 2.2rem;
  color: var(--sage);
  margin-bottom: 12px;
}

.exp-modal__confirmed h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.exp-modal__confirmed-ref {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.exp-modal__confirmed-ref strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.exp-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--charcoal);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 400px;
}

.exp-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.exp-toast i {
  color: var(--amber);
  font-size: 1.2rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1280px) {
  .exp-hero__content, .exp-main {
    padding-left: 32px;
    padding-right: 32px;
  }

  .exp-controls {
    max-width: calc(var(--max-w) - 64px);
  }

  .leg-banner {
    max-width: calc(var(--max-w) - 64px);
    padding: 0 32px;
  }
}

@media (max-width: 1024px) {
  .exp-controls__row {
    flex-direction: column;
  }

  .exp-field {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .exp-hero {
    height: 24vh;
    min-height: 200px;
  }

  .exp-hero__content {
    padding: 0 20px 24px;
  }

  .leg-banner {
    padding: 0 20px;
  }

  .leg-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-controls {
    margin: -20px 20px 30px;
    border-radius: 16px;
  }

  .exp-main {
    padding: 20px 20px 80px;
  }

  .exp-grid {
    grid-template-columns: 1fr;
  }

  .exp-modal__body {
    padding: 24px;
  }

  .exp-toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}
