/* =========================================================
   Blog add-ons (single post): uncropped images + trek cards.
   Loaded after tt-blog.css.
   ========================================================= */

/* ---------- Images: show the whole photo, never crop ---------- */
.ttb .ttb-cover img {
	width: 100%;
	height: auto !important;
	max-height: none;
	aspect-ratio: auto;
	object-fit: contain;
}

/* Tall photos stay inside the screen and centre; wide photos fill the column. */
.ttb .ttb-prose > figure.wp-block-image:not(.alignleft):not(.alignright) img {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 85vh;
	margin-left: auto;
	margin-right: auto;
	object-fit: contain;
	aspect-ratio: auto !important;
}

/* ---------- Links to trek pages inside headings ---------- */
.ttb .ttb-prose :is(h2, h3) a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 94, 0, .45); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.ttb .ttb-prose :is(h2, h3) a:hover { color: var(--o); text-decoration-color: var(--o); }

/* ---------- Trek cards ---------- */
.ttb-treks { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.ttb-treks__head { margin-bottom: 20px; }
.ttb-treks__head h2 { margin-top: 6px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); }
.ttb-treks__head p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.ttb-treks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.ttb .ttb-trek { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ttb .ttb-trek:hover { border-color: #ddd3c5; box-shadow: 0 14px 34px rgba(18, 41, 74, .09); transform: translateY(-2px); }

.ttb-trek__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.ttb .ttb-trek__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.ttb-trek:hover .ttb-trek__media img { transform: scale(1.04); }
.ttb-trek__region { position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px); padding: 5px 10px; overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; color: var(--navy); background: rgba(255, 255, 255, .94); border-radius: 999px; }

.ttb-trek__body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.ttb-trek__title { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.ttb-trek:hover .ttb-trek__title { color: var(--o); }

.ttb-trek__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ttb-trek__facts li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--body); background: var(--sand); border-radius: 8px; }
.ttb-trek__facts .ttb-ic { width: 14px; height: 14px; color: var(--o); }

.ttb-trek__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.ttb-trek__price { font-size: 13px; color: var(--muted); }
.ttb-trek__price strong { display: block; font-size: 18px; font-weight: 800; color: var(--navy); }
.ttb-trek__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--o); white-space: nowrap; }
.ttb-trek__go .ttb-ic { width: 16px; height: 16px; transition: transform .2s; }
.ttb-trek:hover .ttb-trek__go .ttb-ic { transform: translateX(3px); }

@media (max-width: 640px) {
	.ttb .ttb-cover img { border-radius: 0; }
	.ttb-treks { margin-top: 44px; padding-top: 32px; }
	.ttb-treks__grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.ttb .ttb-trek,
	.ttb .ttb-trek__media img,
	.ttb-trek__go .ttb-ic { transition: none; }
	.ttb .ttb-trek:hover { transform: none; }
}
