/* Travel with Amira – Trip Popup
   Front-end styles. Scoped under #twa-popup-root (.twa-root). */

.twa-root, .twa-root * { box-sizing: border-box; }

.twa-root {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: none;             /* zero layout footprint when closed — cannot widen the page */
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.twa-root[data-open="1"] { display: flex; }

/* ---------- overlay ---------- */
.twa-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 120% at 50% 20%, rgba(40,20,24,.66), rgba(24,11,14,.9));
	cursor: pointer;
}
.twa-root[data-open="1"] .twa-overlay { animation: twa-fade .26s ease both; }

/* ---------- modal ---------- */
.twa-modal {
	position: relative;
	z-index: 2;
	width: min(940px, 100%);
	height: min(560px, 88vh);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 44px 100px rgba(28,12,15,.55);
	outline: none;             /* the dialog receives focus on open — never show a ring */
}
.twa-root[data-open="1"] .twa-modal { animation: twa-pop .38s cubic-bezier(.16,.84,.44,1) both; }

.twa-hero {
	position: absolute;
	inset: 0;
	background-color: #3a2224;       /* warm fallback before the photo loads */
	background-size: cover;          /* image auto-fills, never leaves gaps */
	background-position: center;
	background-repeat: no-repeat;
}
.twa-root[data-open="1"] .twa-hero { animation: twa-kenburns 6s ease-out both; }  /* one gentle settle, then rests */
.twa-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(24,11,13,.86) 0%, rgba(28,13,16,.62) 42%, rgba(28,13,16,.12) 72%, rgba(28,13,16,.35) 100%);
}
.twa-vignette {
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 120px rgba(0,0,0,.4);
	pointer-events: none;
}

/* ---------- close ---------- */
.twa-close {
	position: absolute;
	z-index: 6;
	top: 20px; right: 20px;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.45);
	background: rgba(28,15,18,.42);
	color: #fff;
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.twa-close:hover { background: var(--twa-rose); border-color: var(--twa-rose); transform: scale(1.07); }
.twa-close:focus { outline: none; }                              /* no ring on mouse/programmatic focus */
.twa-close:focus-visible {                                       /* keyboard users still see one */
	outline: 2px solid rgba(255,255,255,.9);
	outline-offset: 2px;
}

/* ---------- badge ---------- */
.twa-badge {
	position: absolute;
	z-index: 5;
	top: 20px; right: 74px;
	width: 92px; height: 92px;
	border-radius: 50%;
	padding: 4px;
	background: conic-gradient(from 210deg, var(--twa-gold), #f0d9a6 25%, var(--twa-gold) 50%, #e6c988 75%, var(--twa-gold));
	box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.twa-badge-inner {
	width: 100%; height: 100%;
	border-radius: 50%;
	background: radial-gradient(120% 120% at 50% 12%, #fffdf8, #fbf3e6);
	border: 1px solid rgba(184,146,74,.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 2px;
}
.twa-badge-star { display: flex; align-items: center; gap: 4px; color: var(--twa-gold); }
.twa-badge-rule { width: 14px; height: 1px; background: linear-gradient(90deg, transparent, var(--twa-gold)); }
.twa-badge-rule--r { background: linear-gradient(90deg, var(--twa-gold), transparent); }
.twa-badge-top {
	font-family: 'Sacramento', cursive;
	font-size: 24px;
	color: var(--twa-rose);
	line-height: .72;
}
.twa-badge-bottom {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 7px;
	letter-spacing: 2.4px;
	color: var(--twa-gold);
	margin-top: 2px;
}

/* ---------- content ---------- */
.twa-content {
	position: absolute;
	z-index: 4;
	inset: 0;
	padding: 44px 46px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
}

.twa-ribbon {
	position: absolute;
	top: 26px; left: 46px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--twa-rose);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 1.6px;
	padding: 8px 16px 8px 14px;
	border-radius: 30px;
	box-shadow: 0 10px 24px rgba(196,99,107,.5);
}
.twa-dot { position: relative; width: 8px; height: 8px; }
.twa-dot-ping { position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: twa-pulse 1.6s ease-in-out infinite; }
.twa-dot-core { position: absolute; inset: 2px; border-radius: 50%; background: #fff; }

.twa-eyebrow {
	font-family: 'Cinzel', serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 6px;
	color: #f4d9b0;
	margin-bottom: 20px;
}
.twa-title {
	font-family: 'Sacramento', cursive;
	font-weight: 400;
	font-size: 82px;
	line-height: .78;
	margin: 0;
	text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.twa-desc {
	margin: 16px 0 0;
	max-width: 460px;
	font-size: 15.5px;
	line-height: 1.55;
	color: #f0e6db;
	text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.twa-highlight {
	font-family: 'Caveat', cursive;
	font-size: 22px;
	color: #f4d9b0;
}

/* chips */
.twa-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 20px;
}
.twa-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.16);
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 30px;
	padding: 9px 15px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: .5px;
	color: #fff;
}
.twa-chip-ico { width: 16px; height: 16px; display: block; color: #f4d9b0; }
.twa-chip-ico svg { display: block; }

/* bottom bar */
.twa-bar {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 26px;
	flex-wrap: wrap;
}
.twa-meta--departs { border-right: 1px solid rgba(255,255,255,.25); padding-right: 22px; }
.twa-meta-label {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 10px;
	letter-spacing: 2px;
	color: #dcc6b4;
}
.twa-meta-value {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 21px;
	letter-spacing: .5px;
}
.twa-price {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
}
.twa-per {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .5px;
	color: #dcc6b4;
}

/* CTA */
.twa-cta {
	position: relative;
	overflow: hidden;
	margin-left: auto;
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	background: var(--twa-rose);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .8px;
	padding: 17px 30px;
	border-radius: 34px;
	box-shadow: 0 16px 34px rgba(196,99,107,.55);
	transition: transform .2s, background-color .2s, box-shadow .2s;
}
.twa-cta-text { position: relative; z-index: 2; }
.twa-cta:focus { outline: none; }
.twa-cta:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 3px; }
.twa-cta:hover {
	transform: translateY(-2px);
	background-color: #bc9349;
	box-shadow: 0 16px 34px rgba(188,147,73,.6);
}
.twa-cta-shine {
	position: absolute;
	top: 0; left: 0;
	width: 40%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
	transform: skewX(-18deg);
	animation: twa-shine 3.4s ease-in-out infinite;
}

/* ---------- floating reopen tab ---------- */
.twa-tab {
	position: fixed;
	z-index: 999980;
	bottom: 22px; right: 22px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	background: var(--twa-rose, #c4636b);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .6px;
	padding: 11px 14px 11px 16px;
	border-radius: 32px;
	max-width: min(240px, calc(100vw - 44px));
	box-sizing: border-box;
	box-shadow: 0 14px 30px rgba(0,0,0,.28);
	animation: twa-float 3s ease-in-out infinite;
}
.twa-tab[hidden] { display: none; }
.twa-tab:focus { outline: none; }
.twa-tab:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 3px; }
.twa-tab-star { color: #f4d9b0; font-size: 13px; }
.twa-tab-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}
.twa-tab-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px; height: 20px;
	margin-left: 2px;
	border-radius: 50%;
	background: rgba(255,255,255,.22);
	font-size: 15px;
	line-height: 1;
}
.twa-tab-x:hover { background: rgba(255,255,255,.4); }

/* ============================================================
   PORTRAIT LAYOUT
   Add class "twa-root--portrait" on #twa-popup-root to switch the
   banner into a tall, narrow card. Same photo + brand language,
   reflowed vertically. The plugin's "Layout" setting toggles this.
   ============================================================ */
.twa-root--portrait .twa-modal {
	width: min(460px, 100%);
	height: min(730px, 92vh);
}
/* photo reads across the whole top; copy sits on a deep bottom fade */
.twa-root--portrait .twa-scrim {
	background: linear-gradient(180deg,
		rgba(24,11,13,.04) 0%,
		rgba(24,11,13,.26) 36%,
		rgba(24,11,13,.72) 66%,
		rgba(20,9,11,.95) 100%);
}
.twa-root--portrait .twa-content {
	padding: 32px 30px 34px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
/* ribbon rides at the very top of the card and pushes the copy to the bottom */
.twa-root--portrait .twa-ribbon {
	position: static;
	align-self: flex-start;
	margin: 0 0 auto;
}
.twa-root--portrait .twa-eyebrow { margin: 16px 0 13px; }
.twa-root--portrait .twa-title { font-size: 52px; line-height: .9; }
.twa-root--portrait .twa-desc { max-width: none; margin-top: 13px; }
.twa-root--portrait .twa-chips { margin-top: 15px; }

/* footer stacks: DEPARTS | FROM on one line, CTA full-width beneath */
.twa-root--portrait .twa-bar { gap: 16px 20px; margin-top: 20px; }
.twa-root--portrait .twa-meta--price { margin-left: auto; text-align: right; }
.twa-root--portrait .twa-cta {
	flex: 1 0 100%;
	margin-left: 0;
	justify-content: center;
	padding: 16px 26px;
}

@media (max-width: 480px) {
	.twa-root--portrait .twa-modal { height: min(88vh, 700px); }
	.twa-root--portrait .twa-title { font-size: 46px; }
	.twa-root--portrait .twa-content { padding: 26px 24px 28px; }
}

/* ---------- animations ---------- */
@keyframes twa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes twa-pop { 0% { opacity: 0; transform: translateY(26px) scale(.965); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes twa-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twa-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .4; } }
@keyframes twa-kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes twa-shine { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(220%); } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
	.twa-root { padding: 14px; }
	.twa-modal { height: min(88vh, 620px); border-radius: 22px; }
	.twa-content { padding: 26px 24px; overflow-y: auto; }
	.twa-scrim { background: linear-gradient(180deg, rgba(24,11,13,.35) 0%, rgba(24,11,13,.55) 45%, rgba(24,11,13,.9) 100%); }
	.twa-badge { width: 66px; height: 66px; top: 16px; right: 60px; padding: 3px; }
	.twa-badge-top { font-size: 17px; }
	.twa-badge-bottom { font-size: 5.5px; letter-spacing: 1.8px; }
	.twa-close { top: 14px; right: 14px; width: 36px; height: 36px; font-size: 19px; }
	.twa-ribbon { position: static; margin-bottom: auto; align-self: flex-start; }
	.twa-eyebrow { font-size: 11px; letter-spacing: 4px; margin: 14px 0 12px; }
	.twa-title { font-size: 56px; }
	.twa-desc { font-size: 14px; max-width: none; }
	.twa-highlight { font-size: 19px; }
	.twa-chips { gap: 7px; margin-top: 16px; }
	.twa-chip { padding: 7px 12px; font-size: 10.5px; }
	.twa-bar { gap: 14px 18px; margin-top: 20px; }
	.twa-meta-value { font-size: 18px; }
	.twa-price { font-size: 20px; }
	.twa-cta { margin-left: 0; width: 100%; justify-content: center; padding: 15px 24px; }
	.twa-tab { bottom: 14px; right: 14px; padding: 10px 12px; font-size: 11.5px; }
	.twa-tab-label { max-width: 120px; }
}

@media (max-width: 400px) {
	.twa-title { font-size: 46px; }
	.twa-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.twa-hero, .twa-cta-shine, .twa-tab, .twa-dot-ping,
	.twa-root[data-open="1"] .twa-hero,
	.twa-root[data-open="1"] .twa-modal,
	.twa-root[data-open="1"] .twa-overlay { animation: none !important; }
}
