/* Trips: the trail-ticket card (2026-10-13). A date stamp on the photo, a difficulty meter of
   three peaks, an accent edge per difficulty, and a torn-off stub for price and booking.
   Scoped to the trips page and loaded after journey-pages.css; the home page's card keeps its own
   look and never shows the stamp or the peaks. */
.page-trips .trip-card {
  --pad: 28px; --tone: #5d8a62;
  position: relative; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms;
}
.page-trips .trip-card.is-medium { --tone: #c8923a; }
.page-trips .trip-card.is-hard { --tone: #a4502f; }
.page-trips .trip-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--tone); z-index: 2; }
.page-trips .trip-card:hover { transform: translateY(-5px); box-shadow: 0 26px 36px -28px #183525; }
.page-trips .trip-image { position: relative; overflow: hidden; }
.page-trips .trip-image::after {
  display: block; inset: 0; opacity: 0; transition: opacity 320ms;
  background:
    repeating-radial-gradient(circle at 88% 118%, transparent 0 15px, rgba(255,255,255,.28) 15px 16.5px),
    linear-gradient(180deg, rgba(20,38,28,0) 55%, rgba(20,38,28,.4) 100%);
}
.page-trips .trip-card:hover .trip-image::after { opacity: 1; }
.page-trips .trip-card.is-past .trip-image { filter: grayscale(.7) contrast(.95); }

/* Date stamp */
.page-trips .trip-stamp {
  position: absolute; z-index: 1; top: 16px; inset-inline-start: 22px;
  display: grid; justify-items: center; width: 62px; padding: 0 0 7px;
  background: var(--surface); color: var(--ink); border-radius: 4px; text-align: center;
  border-top: 5px solid var(--tone); box-shadow: 0 8px 18px -8px rgba(10,24,16,.55);
  transform: rotate(-2.5deg); transition: transform 260ms cubic-bezier(.2,.7,.2,1);
}
[dir="rtl"] .page-trips .trip-stamp, body[dir="rtl"] .page-trips .trip-stamp { transform: rotate(2.5deg); }
.page-trips .trip-card:hover .trip-stamp { transform: rotate(0) translateY(-2px); }
.page-trips .trip-stamp b { font: 700 1.9rem/1.05 'Fraunces', 'Amiri', serif; padding-top: 5px; }
.page-trips .trip-stamp i { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tone); }
.page-trips .trip-stamp small { font-size: .66rem; color: var(--muted); }
.page-trips .trip-badge { inset-inline-start: auto; inset-inline-end: 16px; top: 18px; border-radius: 3px; box-shadow: 0 6px 14px -8px rgba(10,24,16,.6); }

/* Place on one side, difficulty peaks on the other */
.page-trips .trip-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.page-trips .trip-meta-date, .page-trips .trip-ico-mountain { display: none; }
.page-trips .trip-meta > .trip-meta-place { font-weight: 700; color: var(--ink); min-width: 0; }
.page-trips .trip-meta-diff { gap: 8px; color: var(--muted); flex-shrink: 0; }
.page-trips .trip-peaks { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; color: var(--tone); }
.page-trips .trip-peaks i { width: 9px; background: var(--line); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.page-trips .trip-peaks i:nth-child(1) { height: 9px; }
.page-trips .trip-peaks i:nth-child(2) { height: 12px; }
.page-trips .trip-peaks i:nth-child(3) { height: 15px; }
.page-trips .trip-peaks[data-level="1"] i:nth-child(-n+1),
.page-trips .trip-peaks[data-level="2"] i:nth-child(-n+2),
.page-trips .trip-peaks[data-level="3"] i { background: currentColor; }

/* The stub: dashed tear line with a notch bitten out of each side of the card */
.page-trips .trip-body { padding: 24px var(--pad) 0; }
.page-trips .trip-footer {
  position: relative; margin: auto calc(var(--pad) * -1) 0; padding: 20px var(--pad) 22px;
  border-top: 0; background: var(--tz-stitch-line) repeat-x left top / 8px 8px, color-mix(in srgb, var(--bg) 45%, var(--surface));
}
.page-trips .trip-footer::before, .page-trips .trip-footer::after {
  content: ""; position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.page-trips .trip-footer::before { inset-inline-start: -10px; }
.page-trips .trip-footer::after { inset-inline-end: -10px; }
.page-trips .trip-card p { margin-bottom: 24px; }
.page-trips .trip-price { font-family: 'Fraunces', 'Amiri', serif; }
.page-trips .trip-cta { width: 46px; height: 46px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; position: relative; transition: transform 240ms, background 200ms; }
.page-trips .trip-cta > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-trips .trip-cta .icon { width: 20px; height: 20px; }
.page-trips .trip-card:hover .trip-cta { transform: scale(1.1); background: var(--tone); }
.page-trips .trip-card.is-past .trip-cta { background: var(--ink-soft); }

/* Featured card keeps its split layout; larger stamp, roomier text column */
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp { width: 74px; top: 22px; inset-inline-start: 28px; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp b { font-size: 2.3rem; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 40px; padding-top: 36px; }
.page-trips .trips-grid.list .trip-body { padding: 22px var(--pad) 0; }
.page-trips .trips-grid.list .trip-card p { margin-bottom: 20px; }

@media (max-width: 1000px) {
  .page-trips .trip-card { --pad: 24px; }
  .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 28px; padding-top: 28px; }
}
@media (max-width: 800px) {
  .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp { width: 62px; top: 16px; inset-inline-start: 22px; }
  .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp b { font-size: 1.9rem; }
  .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 24px; padding-top: 24px; }
  .page-trips .trips-grid.list .trip-stamp { width: 50px; top: 12px; inset-inline-start: 16px; }
  .page-trips .trips-grid.list .trip-stamp b { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .page-trips .trip-card, .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 20px; }
  .page-trips .trip-body, .page-trips .trips-grid.list .trip-body { padding-top: 20px; }
  .page-trips .trip-meta { padding-bottom: 12px; margin-bottom: 14px; }
  .page-trips .trip-stamp, .page-trips .trips-grid.list .trip-stamp { width: 54px; top: 14px; inset-inline-start: 18px; }
  .page-trips .trip-stamp b, .page-trips .trips-grid.list .trip-stamp b { font-size: 1.6rem; }
  .page-trips .trip-badge { top: 16px; inset-inline-end: 12px; }
  .page-trips .trip-footer { padding-block: 16px 18px; }
  .page-trips .trip-cta { width: 44px; height: 44px; }
}
/* Compact text section: tighter padding, smaller type */
.page-trips .trip-card { --pad: 20px; }
.page-trips .trip-body { padding-top: 16px; }
.page-trips .trip-meta { font-size: .78rem; padding-bottom: 10px; margin-bottom: 12px; }
.page-trips .trip-card h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 8px; }
.page-trips .trip-card p { font-size: .88rem; line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.page-trips .trip-footer { padding-block: 12px 14px; }
.page-trips .trip-price { font-size: 1.3rem; }
.page-trips .trip-price-meta { font-size: .72rem; }
.page-trips .trip-cta { width: 40px; height: 40px; }
.page-trips .trip-cta .icon { width: 18px; height: 18px; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child { min-height: 380px; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child h3 { font-size: 1.6rem; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 28px; padding-top: 24px; }
.page-trips .trips-grid.list .trip-card { min-height: 0; }
.page-trips .trips-grid.list .trip-card h3 { font-size: 1.2rem; }
.page-trips .trips-grid.list .trip-body { padding-top: 16px; }
@media (max-width: 800px) {
  .page-trips .trips-grid:not(.list) > .trip-card:first-child { min-height: 0; }
  .page-trips .trips-grid:not(.list) > .trip-card:first-child h3 { font-size: 1.35rem; }
  .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 20px; padding-top: 16px; }
}
@media (max-width: 560px) {
  .page-trips .trip-card, .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 18px; }
  .page-trips .trip-card h3, .page-trips .trips-grid:not(.list) > .trip-card:first-child h3 { font-size: 1.15rem; }
  .page-trips .trip-body, .page-trips .trips-grid.list .trip-body { padding-top: 14px; }
  .page-trips .trip-footer { padding-block: 10px 12px; }
  .page-trips .trip-cta { width: 40px; height: 40px; }
}

/* Shorter photos */
.page-trips .trip-image { aspect-ratio: 16 / 9; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child { min-height: 320px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
.page-trips .trips-grid.list .trip-card { grid-template-columns: 200px minmax(0,1fr); }
.page-trips .trip-stamp { width: 52px; top: 12px; inset-inline-start: 18px; }
.page-trips .trip-stamp b { font-size: 1.5rem; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp { width: 58px; top: 16px; inset-inline-start: 22px; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp b { font-size: 1.7rem; }
@media (max-width: 800px) {
  .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-image { aspect-ratio: 16 / 9; }
  .page-trips .trips-grid.list .trip-card { grid-template-columns: 130px minmax(0,1fr); }
}
@media (max-width: 560px) {
  .page-trips .trip-image, .page-trips .trips-grid.list .trip-image { aspect-ratio: 2 / 1; }
  .page-trips .trips-grid.list .trip-card { grid-template-columns: minmax(0,1fr); }
  .page-trips .trip-stamp, .page-trips .trips-grid.list .trip-stamp { width: 46px; top: 10px; inset-inline-start: 14px; }
  .page-trips .trip-stamp b, .page-trips .trips-grid.list .trip-stamp b { font-size: 1.3rem; }
}

/* Smaller cards: three to a row, no oversized lead card, body font for titles, "more info" back */
.page-trips .trips-grid:not(.list) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child,
.page-trips .trips-grid:not(.list) > .trip-card:nth-child(2):last-child { grid-column: auto; display: flex; grid-template-columns: none; min-height: 0; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-image,
.page-trips .trips-grid:not(.list) > .trip-card:nth-child(2):last-child .trip-image { grid-column: auto; grid-row: auto; height: auto; aspect-ratio: 16 / 9; }
.page-trips .trips-grid:not(.list) > .trip-card:nth-child(2):last-child .trip-body { grid-column: auto; grid-row: auto; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp { width: 52px; top: 12px; inset-inline-start: 18px; }
.page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-stamp b { font-size: 1.5rem; }
.page-trips .trip-card, .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { --pad: 16px; }
.page-trips .trip-body, .page-trips .trips-grid.list .trip-body, .page-trips .trips-grid:not(.list) > .trip-card:first-child .trip-body { padding-top: 14px; }
/* Title family and weight come from journey-pages.css (Tajawal, set in the other session); only the size and gap live here. */
.page-trips .trip-card h3,
.page-trips .trips-grid:not(.list) > .trip-card:first-child h3,
.page-trips .trips-grid.list .trip-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.page-trips .trip-card p { font-size: .84rem; line-height: 1.6; margin-bottom: 12px; -webkit-line-clamp: 2; }
.page-trips .trip-meta { font-size: .74rem; padding-bottom: 8px; margin-bottom: 10px; }
.page-trips .trip-footer { padding-block: 10px 12px; gap: 10px; flex-wrap: nowrap; }
.page-trips .trip-price { font-size: 1.15rem; }
.page-trips .trip-cta { width: auto; height: 36px; padding: 0 14px; gap: 6px; border-radius: 3px; font-size: .8rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.page-trips .trip-cta > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.page-trips .trip-cta .icon { width: 15px; height: 15px; }
.page-trips .trip-card:hover .trip-cta { transform: none; }
@media (max-width: 1100px) { .page-trips .trips-grid:not(.list) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .page-trips .trips-grid:not(.list) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-trips .trip-card h3, .page-trips .trips-grid:not(.list) > .trip-card:first-child h3 { font-size: 1.02rem; }
}

@media (hover: none) {
  .page-trips .trip-card:hover { transform: none; }
  .page-trips .trip-card:hover .trip-stamp { transform: rotate(-2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-trips .trip-card, .page-trips .trip-stamp, .page-trips .trip-cta { transition: none; }
  .page-trips .trip-card:hover { transform: none; }
}
