/* =========================================================
   Trip Tradition - shared trip UI: package card (.ttc) + enquiry popup (.ttm)
   Font: DM Sans | Primary: #ff5e00
   ========================================================= */
.ttc, .ttm, .ttd {
	--o: var(--tt-color-brand-orange, #ff5e00);
	--o-deep: var(--tt-color-orange-deep, #e05400);
	--o-wash: var(--tt-color-orange-wash, #fff4ed);
	--navy: var(--tt-color-deep-navy, #1a365d);
	--ink: var(--tt-color-slate-text, #2d3748);
	--body: var(--tt-color-ink-body, #4a5568);
	--muted: var(--tt-color-muted-gray, #718096);
	--line: var(--tt-color-clay-line, #e8e2d9);
	--mist: var(--tt-color-off-white-surface, #f7fafc);
	font-family: "DM Sans", sans-serif;
}
.ttc *, .ttc *::before, .ttc *::after,
.ttm *, .ttm *::before, .ttm *::after { box-sizing: border-box; }
.ttc :where(h3, p, ul, li), .ttm :where(h2, p) { margin: 0; padding: 0; }
.ttc :where(ul) { list-style: none; }
.ttc :where(h3, p, li, span, a, button), .ttm :where(h2, p, span, a, button) { font-family: inherit; }
.tt-ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hello Elementor paints every <button> hover/focus pink - neutralise */
.ttc button, .ttm button { appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; background: none; color: inherit; padding: 0; font: inherit; line-height: inherit; cursor: pointer; text-transform: none; }
.ttc button:hover, .ttc button:focus, .ttc button:active,
.ttm button:hover, .ttm button:focus, .ttm button:active { background-color: transparent; color: inherit; text-decoration: none; box-shadow: none; }
.ttc a, .ttm a { text-decoration: none; }
.ttc :focus-visible, .ttm :focus-visible { outline: 3px solid var(--o); outline-offset: 2px; border-radius: 8px; }

/* ---------------------------------------------------------
   Grid (use on listing pages)
   --------------------------------------------------------- */
.ttc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .ttc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 680px) { .ttc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------
   Card
   --------------------------------------------------------- */
.ttc {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
	box-shadow: 0 1px 2px rgba(26, 54, 93, .04);
	transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
}
@media (hover: hover) {
	.ttc:hover { transform: translateY(-4px); border-color: rgba(255, 94, 0, .35); box-shadow: 0 18px 44px rgba(26, 54, 93, .14); }
	.ttc:hover .ttc__media img { transform: scale(1.06); }
}
.ttc[hidden] { display: none; }

.ttc__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.ttc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.ttc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 40, .28) 0%, rgba(10, 20, 40, 0) 38%, rgba(10, 20, 40, 0) 62%, rgba(10, 20, 40, .35) 100%); pointer-events: none; }
.ttc__ph { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 94, 0, .16), rgba(26, 54, 93, .24)); }
.ttc__dur, .ttc__tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; padding: 7px 12px; }
.ttc__dur { left: 14px; top: 14px; background: rgba(255, 255, 255, .94); color: var(--navy); backdrop-filter: blur(8px); }
.ttc__dur .tt-ic { color: var(--o); }
.ttc__tag { right: 14px; bottom: 14px; background: var(--o); color: #fff; letter-spacing: .01em; }

.ttc__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 18px 18px 18px; }
.ttc .ttc__title { font-size: 19px; font-weight: 800; line-height: 1.28; letter-spacing: -.01em; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ttc .ttc__title a { color: inherit; }
.ttc .ttc__title a:hover { color: var(--o); }
.ttc__from { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--body); }
.ttc__from .tt-ic { color: var(--o); }
.ttc__from strong { color: var(--ink); font-weight: 700; }
.ttc__route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; font-weight: 600; color: var(--body); }
.ttc__route > span:not(.ttc__arr) { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.ttc__arr { color: var(--o); font-weight: 800; }

.ttc__inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.ttc__inc li { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; }
.ttc__inc li .tt-ic { color: var(--o); width: 16px; height: 16px; }

.ttc__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ttc__price { display: flex; flex-direction: column; gap: 1px; }
.ttc__price-l { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ttc__price-v { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--o); }
.ttc__price-v small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ttc__price-v.is-quote { font-size: 18px; color: var(--navy); }
.ttc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ttc .ttc__btn { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid transparent; border-radius: 999px; padding: 12px 10px; font-size: 14.5px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.ttc .ttc__btn:active { transform: scale(.98); }
.ttc .ttc__btn--primary, .ttc .ttc__btn--primary:hover, .ttc .ttc__btn--primary:focus, .ttc .ttc__btn--primary:active { background: var(--o); color: #fff; }
.ttc .ttc__btn--primary:hover, .ttc .ttc__btn--primary:focus { background: var(--o-deep); }
.ttc .ttc__btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.ttc .ttc__btn--ghost:hover, .ttc .ttc__btn--ghost:focus { border-color: var(--navy); background: #fff; color: var(--navy); }
@media (max-width: 380px) { .ttc__btns { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Popup
   --------------------------------------------------------- */
.ttm[hidden] { display: none; }
.ttm { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ttm__overlay { position: absolute; inset: 0; background: rgba(10, 20, 40, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.ttm.is-open .ttm__overlay { opacity: 1; }
.ttm__dialog {
	position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
	overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 24px; outline: 0;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(18px) scale(.98);
	transition: opacity .22s, transform .22s cubic-bezier(.2, .7, .3, 1);
}
.ttm.is-open .ttm__dialog { opacity: 1; transform: none; }
html.ttm-lock { overflow: hidden; }
.ttm .ttm__close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy); }
.ttm .ttm__close:hover, .ttm .ttm__close:focus { background: var(--o-wash); color: var(--o); }
.ttm__head { display: flex; align-items: center; gap: 14px; padding: 20px 56px 16px 20px; background: linear-gradient(135deg, var(--o-wash), #fff); border-bottom: 1px solid var(--line); }
.ttm__thumb { flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--mist); }
.ttm__thumb[hidden] { display: none; }
.ttm__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttm__meta { min-width: 0; }
.ttm__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--o); }
.ttm .ttm__title { font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--navy); margin-top: 2px; }
.ttm .ttm__sub { font-size: 13.5px; font-weight: 600; color: var(--body); margin-top: 3px; }
.ttm__form { padding: 16px 20px 6px; font-family: "Twemoji Country Flags", "DM Sans", sans-serif; }
.ttm__foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 20px 18px; font-size: 12.5px; color: var(--muted); text-align: center; }
.ttm__foot .tt-ic { color: #2f9e44; flex: none; }
.ttm__note { font-size: 13px; color: #b45309; background: #fffbeb; border: 1px dashed #f59e0b; border-radius: 10px; padding: 10px 12px; }

/* FormForge inside popup - compact */
.ttm__form * { font-family: "Twemoji Country Flags", "DM Sans", sans-serif; }
.ttm__form :is(h1, h2, h3, h4, h5, h6), .ttm__form [class*="form-title"], .ttm__form [class*="form_title"] { display: none; }
.ttm__form form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ttm__form form > *, .ttm__form [class*="field"], .ttm__form [class*="group"] { margin-top: 0 !important; margin-bottom: 0 !important; }
.ttm__form label { display: block; margin: 0 0 3px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ttm__form input:where(:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=hidden])),
.ttm__form textarea, .ttm__form select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; box-shadow: none; margin: 0; }
.ttm__form input:where(:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=hidden], [type=tel])), .ttm__form select { padding: 9px 12px; height: 42px; }
.ttm__form input[type=tel] { height: 42px; }
.ttm__form textarea { padding: 9px 12px; height: 120px; min-height: 120px; resize: none; }
.ttm__form input:focus, .ttm__form textarea:focus, .ttm__form select:focus { outline: 2px solid var(--o); outline-offset: 0; border-color: transparent; background: #fff; }
.ttm__form button[type=submit], .ttm__form input[type=submit] { width: 100%; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--o); color: #fff; padding: 12px 24px; margin: 2px 0 0; font-size: 16px; font-weight: 700; cursor: pointer; }
.ttm__form button[type=submit]:hover, .ttm__form button[type=submit]:focus, .ttm__form button[type=submit]:active,
.ttm__form input[type=submit]:hover, .ttm__form input[type=submit]:focus { background: var(--o-deep); color: #fff; }

@font-face {
	font-family: "Twemoji Country Flags";
	unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
	src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") format("woff2");
	font-display: swap;
}

@media (max-width: 560px) {
	.ttm { align-items: flex-end; padding: 0; }
	.ttm__dialog { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
	.ttc, .ttc *, .ttm, .ttm * { transition: none !important; }
}
