/*
  Lucy Ethiopia Tours — Tours Archive
  Load on: body.post-type-archive-product
  Requires: lucy-tours-theme.css
*/

/* ============================================================
   ARCHIVE HERO
   ============================================================ */
.ta-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.ta-hero__inner { padding: var(--s-5) 0 var(--s-4); }

/* Compact text-only breadcrumbs */
.ta-hero__crumbs { margin-bottom: var(--s-2); }
.ta-hero__crumbs,
.ta-hero__crumbs a,
.ta-hero__crumbs span {
  font-size: var(--t-sm); font-weight: 500; color: var(--text-muted);
  text-decoration: none;
}
.ta-hero__crumbs a:hover { color: var(--primary); text-decoration: underline; }

.ta-hero__title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.1;
  color: var(--text); margin: 0; letter-spacing: -0.02em;
}
.ta-hero__desc {
  font-size: var(--t-base); line-height: 1.65; color: var(--text-light);
  margin: 14px 0 0; max-width: 75ch;
}
.ta-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: var(--s-3); }
.ta-hero__trust {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: var(--t-sm); color: var(--text-light); line-height: 1;
}
.ta-hero__trust strong { color: var(--text); }
.ta-hero__trust:hover strong { color: var(--primary); }

/* Immersive 70vh hero variant */
.ta-hero.ta-hero--has-bg {
  position: relative;
  min-height: calc(100vh - 15rem);
  max-height: 860px;
  display: flex; align-items: center; justify-content: center;
  background-color: #0c2518; color: #fff;
  overflow: hidden; border: none; padding: 0;
}
.ta-hero__bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.ta-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,37,24,0.35) 0%, rgba(12,37,24,0.55) 100%);
  z-index: 2;
}
.ta-hero.ta-hero--has-bg .wrap {
  position: relative; z-index: 3; width: 100%;
  display: flex; justify-content: center; align-items: center;
}
.ta-hero.ta-hero--has-bg .ta-hero__title {
  color: #ffffff !important;
  font-family: var(--font-display) !important; /* Rector, serif */
  font-size: 72px !important;
  font-weight: 500 !important; 
  line-height: 79px !important;
  font-style: normal !important;
  letter-spacing: -0.02em !important;
  text-align: center !important; margin: 0 !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
}

.subpage-crumbs-wrap { padding-top: 24px; padding-bottom: 0; margin-bottom: 0; }


/* ============================================================
   EDITORIAL INTRODUCTION
   ============================================================ */
.ta-intro { padding: 90px 0 50px; background: var(--white); overflow: hidden; }
.ta-intro__grid { display: grid; grid-template-columns: 2fr 3fr; gap: 48px 60px; align-items: start; }
h2 {
  font-family: var(--font-display), 'Rector', serif;
  font-style: normal;
  font-weight: 500;
  color: rgb(25, 24, 21);
  font-size: 52px;
  line-height: 60px;
}
.ta-intro__heading { 
  font-family: var(--font-display), 'Rector', serif;
  font-style: normal;
  font-weight: 500;
  color: rgb(25, 24, 21);
  font-size: 52px; 
  line-height: 60px; 
  margin: 0 0 var(--s-4) 0; 
}
.ta-intro__lead-text {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 400; line-height: 1.2;
  color: var(--text); max-width: none; margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ta-intro__body { padding-top: 8px; }
.ta-intro__body p { font-family: var(--font-sans); font-size: 15px; line-height: 1.7; color: var(--text-body); margin: 0 0 16px; }
.ta-intro__body p:last-child { margin-bottom: 0; }

/* Catalog header */
.catalog-header { margin-bottom: 40px; }
.catalog-header__heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px); font-weight: 400;
  color: var(--text); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px;
}
.catalog-header__desc { font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--text-light); max-width: 650px; margin: 0; }


/* ============================================================
   TOOLBAR
   ============================================================ */
.ta-grid-section { background: var(--white); padding: 60px 0 100px; }
.ta-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 14px 20px; margin: 0 0 var(--s-4);
}
.ta-toolbar__count { font-size: var(--t-sm); color: var(--text-light); }
.ta-toolbar__count strong { color: var(--text); font-weight: 700; }
.ta-sort { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.ta-sort label { font-size: var(--t-sm); font-weight: 600; color: var(--text-muted); }
.ta-sort select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 38px 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-family: inherit; font-size: var(--t-sm); font-weight: 500; color: var(--text); cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.ta-sort select:hover { border-color: var(--primary-light); }
.ta-sort select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(106,153,78,0.14); }
.ta-sort__apply { height: 40px; padding: 0 18px; border: none; border-radius: var(--r-pill); background: var(--primary); color: #fff; font-weight: 600; font-size: var(--t-sm); cursor: pointer; }


/* ============================================================
   TOUR CARD (archive version — 4-zone luxury card)
   ============================================================ */
.ta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.ta-card {
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              border-color var(--dur-base);
}
.ta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: #d7e4dc; }

/* Zone 1 — Media */
.ta-card__media {
  position: relative; display: block;
  height: 220px; overflow: hidden; background: var(--border);
}
.ta-card__img,
.ta-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ta-card__img { z-index: 1; transition: transform .7s var(--ease-standard); }
.ta-card__video { z-index: 2; opacity: 0; transition: opacity .5s ease; }
.ta-card.has-video:hover .ta-card__video { opacity: 1; }
.ta-card:hover .ta-card__img { transform: scale(1.05); }

.ta-card__badge {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  background: var(--primary); color: #fff;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Save button */
.ta-card__media .yz-trip-save-btn {
  position: absolute; right: 12px; top: 12px; z-index: 20;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform var(--dur-fast), background var(--dur-fast);
}
.ta-card__media .yz-trip-save-btn:hover { transform: scale(1.05); background: var(--white); }
.ta-card__media .yz-trip-save-btn svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; }
.ta-card__media .yz-trip-save-btn.saved { background: var(--danger); }
.ta-card__media .yz-trip-save-btn.saved svg { fill: #fff; stroke: #fff; }

/* Zone 2 — Identity */
.ta-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }

.ta-card__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 6px; display: block;
}
.ta-card__title {
  font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1.3;
  margin: 0 0 8px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ta-card__title a { color: var(--text); text-decoration: none; transition: color var(--dur-fast); }
.ta-card:hover .ta-card__title a { color: var(--primary); }

.ta-card__route {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-body); line-height: 1.4; margin: 0 0 10px;
}
.ta-card__route svg { color: var(--primary); flex-shrink: 0; }

/* Zone 3 — Data matrix */
.ta-card__matrix { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ta-matrix__item {
  font-size: 12px; color: var(--text-light);
  display: inline-flex; align-items: center; gap: 4px;
}
.ta-matrix__item svg { color: var(--text-muted); flex-shrink: 0; }
.ta-matrix__item strong { color: var(--text); font-weight: 600; }

.ta-card__social {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-light); margin-bottom: 14px;
}
.ta-card__social strong { color: var(--text); font-weight: 600; }
.ta-card__social .ta-ta { color: var(--color-ta); display: inline-flex; align-items: center; }

/* Zone 4 — Conversion footer */
.ta-card__foot {
  border-top: 1px solid var(--border); padding-top: 16px;
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.ta-card__price { display: flex; flex-direction: column; }
.ta-card__price .plabel {
  font-size: 11px; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 2px;
}
.ta-card__price .now { font-size: 18px; font-weight: 700; color: var(--primary); }
.ta-card__price .now .from { font-size: 12px; color: var(--text-light); font-weight: 500; }
.ta-card__price .por { font-size: 14px; font-weight: 600; color: var(--text); }

.ta-card__explore {
  flex-shrink: 0;
  border: 1.5px solid var(--primary); color: var(--primary);
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--r-pill); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
  min-height: 36px;
}
.ta-card__explore:hover { background: var(--primary); color: #fff; }

/* Empty state */
.ta-empty {
  grid-column: 1 / -1; text-align: center; max-width: 480px; margin: 1rem auto;
  padding: 2.5rem; border: 1px dashed var(--border); border-radius: 14px; background: var(--cream);
}
.ta-empty p { font-size: 1.05rem; color: var(--text-light); margin: 0 0 1.25rem; }


/* ============================================================
   PAGINATION
   ============================================================ */
.ta-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.ta-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; color: var(--text-light);
  text-decoration: none; background: var(--white);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.ta-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.ta-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.ta-pagination .page-numbers.dots { border-color: transparent; background: transparent; }


/* ============================================================
   PROMISE PANEL
   ============================================================ */
.ta-promise { padding: 100px 0 100px; background: #F8F5F0; }
.ta-promise__grid {
    display: flex;
    align-items: stretch;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
}
.ta-promise__media { flex: 0 0 38%; position: relative; min-height: 240px; }
.ta-promise__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-top-left-radius: 20px; border-bottom-left-radius: 20px; }
.ta-promise__content {
  flex: 1; padding: 40px 44px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.ta-promise__label,
.ta-faq__head .eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase; font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; color: var(--primary); margin-bottom: 12px; display: block;
}
.ta-promise__title { font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 500; color: var(--text); margin: 0 0 var(--s-3); }
.ta-promise__desc { font-size: 15.5px; line-height: 1.7; color: var(--text-light); margin: 0 auto; max-width: 660px; }
.ta-promise__link {
  display: inline-block; margin-top: var(--s-3); font-size: 14.5px; font-weight: 600;
  color: var(--primary); text-decoration: none;
  border-bottom: 2px solid var(--primary-light); padding-bottom: 2px;
  transition: border-color var(--dur-fast);
}
.ta-promise__link:hover { border-color: var(--primary); }





/* ============================================================
   FLOATING STICKY CTA
   ============================================================ */
.floating-sticky-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity var(--dur-base) var(--ease-decel),
              transform var(--dur-base) var(--ease-decel),
              visibility var(--dur-base);
}
.floating-sticky-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.btn--sticky-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: var(--r-pill); text-decoration: none;
  box-shadow: 0 10px 30px rgba(31,92,57,0.35);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn--sticky-cta:hover { background: var(--primary-hover); transform: translateY(-2px); color: #fff; }

.cta-pulse-indicator {
  width: 9px; height: 9px; border-radius: 50%; background: var(--primary-light);
  animation: ta-cta-pulse 2s infinite;
}
@keyframes ta-cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(116,198,157,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(116,198,157,0); }
  100% { box-shadow: 0 0 0 0 rgba(116,198,157,0); }
}


/* ============================================================
   RESPONSIVE — Tours Archive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .ta-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ta-grid-section { padding: 48px 0 56px; }
  .ta-intro__grid { grid-template-columns: 1fr; gap: 24px; }
  .ta-promise__grid { flex-direction: column; }
  .ta-promise__media { flex: none; height: 280px; }
}

/* Mobile */
@media (max-width: 768px) {
  .ta-hero.ta-hero--has-bg { min-height: 50vh; }
  .ta-hero.ta-hero--has-bg .ta-hero__title { font-size: 32px !important; }
  .ta-intro { padding: 36px 0 40px; }
  .ta-intro__lead-text { font-size: 26px !important; }
  .ta-grid { grid-template-columns: 1fr; }
  .ta-promise__content { padding: 32px var(--s-3); }
  .floating-sticky-cta { right: 14px; bottom: 14px; }
  .ta-toolbar { flex-direction: column; align-items: flex-start; }
}
