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

/* ── 1. Hero: Compact banner (breadcrumb only) ──────────── */
.exp-hero {
  position: relative;
  height: 30vh;
  min-height: 260px;
  max-height: 320px;
  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 120px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb i {
  font-size: 0.55rem;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}

/* ── 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 card — overlaps hero bottom edge ────────── */
.exp-controls {
  position: relative;
  z-index: 10;
  max-width: calc(var(--max-w) - 80px);
  margin: -80px auto 44px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

/* Search + sort row */
.exp-controls__search {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 22px;
}

.exp-search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.exp-search:focus-within {
  border-color: var(--deep-green);
  box-shadow: 0 0 0 4px rgba(45, 90, 66, 0.08);
}

.exp-search__icon {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.exp-search__input {
  flex: 1;
  height: 100%;
  padding: 0 20px 0 52px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.exp-search__input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Sort icon button + dropdown */
.exp-sort {
  position: relative;
  flex-shrink: 0;
}

.exp-sort__btn {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-sort__btn:hover {
  border-color: var(--deep-green);
  color: var(--deep-green);
}

.exp-sort__btn[aria-expanded="true"],
.exp-sort__btn.is-active {
  border-color: var(--deep-green);
  color: var(--deep-green);
  background: rgba(45, 90, 66, 0.05);
}

.exp-sort__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  padding: 6px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}

.exp-sort__menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.exp-sort__menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 8px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
}

.exp-sort__menu button:hover {
  background: var(--warm-white);
}

.exp-sort__menu button.active {
  color: var(--deep-green);
  font-weight: 700;
}

/* Two-tier pill filters — with a rule and generous spacing */
.exp-controls__pills {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.exp-type {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px 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. Place tiles — sit below the controls card ────────── */
.pc-places {
  position: relative;
  z-index: 1;
}

/* ── 4. 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;
}

/* ── Card shell ─────────────────────────────────────────── */
.exp-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.09);
  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);
}

/* ── Card image — full width, no gap ────────────────────── */
.exp-card__image {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--warm-white);
}

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

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

.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;
}

/* Type badge — top-left of the image */
.exp-card__image .exp-badge--type {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

/* Operator — top-right of the image, replaces the old price overlay slot */
.exp-card__operator {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: calc(100% - 130px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-card__operator i {
  color: var(--sage);
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── Badges (shared) ────────────────────────────────────── */
.exp-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-badge--type {
  background: rgba(26, 58, 46, 0.9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

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

/* ── Card body — tighter, no dead space ─────────────────── */
.exp-card__body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.exp-card__place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.exp-card__place i {
  font-size: 0.65rem;
}

.exp-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.25;
}

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

/* Duration + category chips */
.exp-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.exp-chip {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--warm-white);
  border: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Stay / transport included tags inside the card */
.exp-card .pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

/* ── Footer: price on the left, View on the right ───────── */
.exp-card__footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.exp-card__price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.exp-card__price-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-card__price-unit {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.exp-card__view-btn {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--deep-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--trans-base);
}

.exp-card:hover .exp-card__view-btn {
  gap: 10px;
}

.exp-card__footer--selected .exp-card__view-btn {
  color: var(--sage);
}

/* ── 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: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE DETAIL — content classes reused on
   experience-detail.html
   ══════════════════════════════════════════════════════════ */
.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-book-btn--outline {
  background: transparent;
  color: var(--deep-green);
  border: 1.5px solid rgba(45, 90, 66, 0.25);
  box-shadow: none;
}

.exp-book-btn--outline:hover {
  background: rgba(45, 90, 66, 0.04);
  border-color: var(--deep-green);
  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;
}

/* ── Toast ───────────────────────────────────────────────── */
.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: 900px) {
  .exp-hero {
    min-height: 220px;
  }

  .exp-hero__content {
    padding-bottom: 100px;
  }

  .exp-controls {
    margin-top: -70px;
  }
}

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

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

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

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

  .exp-controls {
    margin: -70px 16px 32px;
    border-radius: 18px;
  }

  .exp-controls__inner {
    padding: 20px;
  }

  .exp-controls__search {
    margin-bottom: 18px;
  }

  .exp-search,
  .exp-sort__btn {
    height: 52px;
  }

  .exp-sort__btn {
    width: 52px;
  }

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

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

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