/*
 * Shared styles for content-driven landing pages: country page and the
 * vacation-type (product_type) landings. Cards themselves come from the
 * _partials/product_card.php + destination_card.php markup.
 *
 * Loaded alongside common.css. Page-specific tweaks (if any) go in their own
 * stylesheet after this one.
 */

.lp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HERO ─────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: #f6efe4;
  padding: 48px 40px 60px;
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.lp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 8, 0.35), rgba(20, 14, 8, 0.55));
}
.lp-hero::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -48px;
  height: 96px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 62% 62% 0 0;
  z-index: 1;
}
.lp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}
.lp-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lp-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  max-width: 760px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.lp-hero-price {
  font-size: 15px;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.lp-hero-price strong { font-weight: 600; }
.lp-hero-search {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 12px 32px rgba(26, 26, 24, 0.16);
  max-width: 960px;
}
.lp-hero--plain .lp-hero-title { color: var(--text-primary); text-shadow: none; }
.lp-hero--plain .lp-hero-price { color: var(--text-secondary); text-shadow: none; }
.lp-hero--plain .lp-hero-bg::after { display: none; }

/* ── SECTIONS ─────────────────────────────────────────── */
.lp-section { padding: 44px 0; }
.lp-section + .lp-section { padding-top: 0; }
.lp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.lp-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 6px;
}
.lp-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}
.lp-title em { font-style: italic; }
.lp-link {
  font-size: 14px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.lp-link:hover { color: var(--purple-mid); }

/* ── PRODUCT CARD GRID ────────────────────────────────── */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 26, 24, 0.12);
  border-color: var(--border-strong);
}
.pcard-img {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-secondary);
  overflow: hidden;
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-type {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.pcard-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.pcard-fav:hover { color: #e0306b; }
.pcard-fav.fav-active { color: #e0306b; background: #fff; }
.pcard-fav.fav-active svg { fill: #e0306b; }
.pcard-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-stars { color: var(--orange); font-size: 12px; letter-spacing: 1px; margin-bottom: 6px; }
.pcard-stars .empty { color: var(--border-strong); }
.pcard-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 6px;
}
.pcard-region {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.pcard-region svg { color: var(--purple-light); flex-shrink: 0; }
.pcard-incl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pcard-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 999px;
  padding: 3px 9px;
}
.pcard-tag svg { color: var(--green-booking); }
.pcard-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}
.pcard-rating {
  background: var(--purple-pale);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
}
.pcard-price { text-align: right; line-height: 1.1; }
.pcard-price-from { display: block; font-size: 11px; color: var(--text-muted); }
.pcard-price-num { font-family: var(--font-serif); font-size: 22px; color: var(--text-primary); }
.pcard-price-pp { font-size: 12px; color: var(--text-muted); }

/* ── DESTINATION CARD GRID ────────────────────────────── */
.dcard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dcard {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.dcard-img {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-secondary);
}
.dcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.dcard:hover .dcard-img img { transform: scale(1.05); }
.dcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.72));
}
.dcard-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
}
.dcard-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
}
.dcard-price { font-size: 12px; color: rgba(255, 255, 255, 0.9); margin-top: 3px; }

/* ── COUNTRY FACTS + CMS BODY ─────────────────────────── */
.lp-body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.lp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.lp-fact-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.lp-fact-val { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.lp-cms {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.lp-cms h2, .lp-cms h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  margin: 24px 0 10px;
}
.lp-cms p { margin: 0 0 14px; }
.lp-cms a { color: var(--purple); text-decoration: underline; }
.lp-cms ul { padding-left: 18px; margin: 0 0 14px; }
.lp-cms li { margin-bottom: 6px; }
.lp-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 90px;
}
.lp-aside-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.lp-aside-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.lp-aside-nav a:hover, .lp-aside-nav a.active { background: var(--purple-pale); color: var(--purple); }
.lp-aside-nav svg { flex-shrink: 0; }

/* ── CLAMPED CMS INTRO (show more) ────────────────────── */
.lp-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.lp-intro .lp-cms { text-align: left; }
.lp-intro.is-clipped .lp-cms {
  max-height: 132px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.lp-intro-toggle {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  cursor: pointer;
}
.lp-intro-toggle:hover { border-color: var(--purple); background: #f7f4fd; }
.lp-intro-toggle svg { transition: transform 0.18s; }
.lp-intro:not(.is-clipped) .lp-intro-toggle svg { transform: rotate(180deg); }

/* ── DESTINATION FILTER TABS ──────────────────────────── */
.lp-tabs { display: flex; gap: 8px; }
.lp-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.lp-tab:hover { border-color: var(--purple-border); color: var(--purple); }
.lp-tab.active { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ── PAGINATION ───────────────────────────────────────── */
.lp-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.lp-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.lp-page-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); }
.lp-page-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.lp-page-btn:disabled { opacity: 0.4; cursor: default; }
.lp-page-ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: var(--text-muted); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .pcard-grid { grid-template-columns: repeat(2, 1fr); }
  .dcard-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-body-layout { grid-template-columns: 1fr; }
  .lp-aside-card { position: static; }
  .lp-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lp-wrap { padding: 0 20px; }
  .lp-hero { padding: 36px 20px 46px; }
  .pcard-grid { grid-template-columns: 1fr; }
  .dcard-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-hero-search { padding: 8px; }
}

/* ── WHY BOOK WITH US (USP) ───────────────────────────── */
.lp-usp {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.lp-usp-head { text-align: center; margin-bottom: 32px; }
.lp-usp-head .lp-kicker { justify-content: center; }
.lp-usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lp-usp-card {
  text-align: center; padding: 24px 16px;
  background: var(--bg-secondary); border-radius: var(--radius);
}
.lp-usp-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.lp-usp-icon img { max-width: 100%; max-height: 100%; }
.lp-usp-title { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }

/* ── ARTICLES ─────────────────────────────────────────── */
.lp-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-article {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lp-article:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); border-color: var(--border-strong); }
.lp-article-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-secondary); }
.lp-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.lp-article:hover .lp-article-img img { transform: scale(1.04); }
.lp-article-body { padding: 16px 18px 18px; }
.lp-article-title { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--text-primary); margin-bottom: 8px; }
.lp-article-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.lp-article-meta { font-size: 12px; color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────────── */
.lp-faq-head { margin-bottom: 20px; }
.lp-faq-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lp-faq-item { border-bottom: 1px solid var(--border); }
.lp-faq-item:last-child { border-bottom: none; }
.lp-faq-q {
  width: 100%; padding: 16px 20px; text-align: left;
  background: var(--bg-card); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--text-primary); transition: background 0.12s;
}
.lp-faq-q:hover { background: var(--bg-secondary); }
.lp-faq-q[aria-expanded="true"] { background: var(--purple-pale); color: var(--purple); }
.lp-faq-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.lp-faq-q[aria-expanded="true"] .lp-faq-chevron { transform: rotate(180deg); color: var(--purple); }
.lp-faq-a {
  display: none; padding: 0 20px 18px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.75; background: var(--purple-pale);
}
.lp-faq-a.open { display: block; }
.lp-faq-a :is(p, ul, ol) { margin: 0 0 10px; }
.lp-faq-a a { color: var(--purple); }

@media (max-width: 1024px) {
  .lp-usp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lp-usp { padding: 28px 20px; }
  .lp-usp-grid { grid-template-columns: 1fr; }
  .lp-articles-grid { grid-template-columns: 1fr; }
}
