/* TOUR SCOPE R19.2 — additive visual system; never modifies approved baseline assets.
   Scope: typography, buttons, icon outlines, media frames, popup readability and reduced motion.
*/
:root{
  --ts-v2-navy:#061c34;--ts-v2-teal:#087f91;--ts-v2-aqua:#16b6c1;
  --ts-v2-radius:22px;--ts-v2-ease:cubic-bezier(.22,1,.36,1);
  --ts-v2-outline:rgba(19,91,109,.18);--ts-v2-shadow:0 20px 52px rgba(5,34,60,.12);
}
/* Respect the approved site's headings and section layout. No global font-size reset. */
:where(.trip-card,.experience-card,.signature-island-card,.xp-benefit,.xp-related a,.xp-gallery figure,.ts-x-tile){
  position:relative;border-radius:var(--ts-v2-radius)!important;
  border:1px solid var(--ts-v2-outline)!important;
  box-shadow:0 5px 14px rgba(6,28,52,.055),var(--ts-v2-shadow)!important;
  isolation:isolate;transition:transform .36s var(--ts-v2-ease),box-shadow .36s var(--ts-v2-ease),border-color .28s ease;
}
@media (hover:hover) and (pointer:fine){
  :where(.trip-card,.experience-card,.signature-island-card,.xp-benefit,.xp-related a,.xp-gallery figure,.ts-x-tile):hover{
    transform:translate3d(0,-5px,0);border-color:rgba(22,182,193,.56)!important;
    box-shadow:0 26px 67px rgba(6,28,52,.17)!important;
  }
}
/* Images get a consistent upscale editorial crop without losing source aspect on custom sections. */
:where(.trip-card-media,.card-image,.signature-island-media,.xp-benefit-media,.xp-gallery figure,.xp-media-frame,.ts-offer-media){
  position:relative;overflow:hidden;border-radius:inherit;background:linear-gradient(135deg,#dceef0,#a9d6dd 55%,#0b5470);
}
:where(.trip-card-media,.card-image,.signature-island-media,.xp-benefit-media,.xp-gallery figure,.xp-media-frame) img{
  display:block;max-width:100%;height:auto;object-fit:cover;
  transition:transform .65s var(--ts-v2-ease),filter .55s ease;
}
@media (hover:hover) and (pointer:fine){
  :where(.trip-card,.experience-card,.signature-island-card,.xp-benefit,.xp-gallery figure):hover img{
    transform:scale(1.04);filter:saturate(1.05);
  }
}
/* Buttons: equal-height, predictable wrapping, high-visibility focus states. */
:where(.trip-detail-button,.trip-whatsapp-button,.header-cta,.signature-header-cta,.signature-button,.xp-btn,.xp-header-cta,.ts-x-btn,.ts-offer-book,.ts-offer-view,.ts-discovery-nav>a,.button.primary,.button.coral){
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  min-height:46px;max-width:100%;padding-block:11px;padding-inline:18px;
  border-radius:13px!important;text-align:center;line-height:1.35;
  white-space:normal;overflow-wrap:anywhere;text-decoration:none;
  transition:transform .23s ease,filter .23s ease,box-shadow .23s ease,background-color .23s ease;
}
:where(.trip-detail-button,.trip-whatsapp-button,.signature-button,.xp-btn,.ts-x-btn,.ts-offer-book,.ts-offer-view):active{transform:translateY(1px) scale(.99)}
:where(.trip-actions,.xp-actions,.signature-hero-actions,.ts-offer-actions){flex-wrap:wrap;min-width:0}
:where(.trip-actions,.xp-actions,.signature-hero-actions) > :is(a,button){min-width:0;flex-shrink:1}
:where(.ts-offer-popover,.ts-server-offer){max-width:min(calc(100vw - 24px),440px);overflow-wrap:anywhere;border-radius:20px!important}
:where(.ts-offer-popover,.ts-server-offer) :is(a,button){touch-action:manipulation}
:where(.ts-offer-popover,.ts-server-offer) img{width:100%;height:100%;object-fit:cover}
/* Existing inline SVGs and new icon primitives share a consistent optical weight. */
:where(.ts-ui-icon,.signature-line-icon svg,.equipment-icon svg,.trip-actions svg,.xp-arrow,.signature-arrow){
  vertical-align:middle;flex-shrink:0;stroke-linecap:round;stroke-linejoin:round;
}
.ts-ui-icon{width:22px;height:22px;stroke-width:1.8}
.ts-x-card-icon,.ts-x-link-icon{display:inline-grid;place-items:center;color:#056779;background:linear-gradient(140deg,#dcf8f8,#edfafa);border:1px solid rgba(15,150,163,.16);border-radius:15px;box-shadow:inset 0 1px 0 #fff}
.ts-x-card-icon{width:52px;height:52px;margin-bottom:15px}
.ts-x-link-icon{min-width:48px;min-height:48px;padding:9px}
.ts-x-btn{background:linear-gradient(110deg,#027d90,#08a9b7);box-shadow:0 10px 23px rgba(0,123,142,.18);color:white}
.ts-x-btn:hover{background:linear-gradient(110deg,#086d83,#028c9c);color:white}
/* After Dark editorial cards are intentionally media-ready, with legible text and consistent actions. */
.ts-x-card{min-height:290px;padding:25px}.ts-x-card h3{font-size:clamp(20px,2.1vw,25px);letter-spacing:-.025em}
.ts-x-card p{margin-block:8px 15px;line-height:1.65}
.ts-x-card .ts-x-status{margin-top:auto}
.ts-x-card .ts-x-btn{margin-top:8px;width:fit-content}
.ts-x-contact-grid .ts-x-tile{transition:transform .25s ease,box-shadow .25s ease}
/* RTL layout: align controls in their own flow, but phone numbers and URLs keep LTR. */
[dir="rtl"] :is(.ts-x-page,.xp-page,.ts-offer-popover,.ts-server-offer){text-align:start}
[dir="rtl"] :is(.ts-x-menu,.ts-x-header,.ts-x-contact-grid,.ts-x-qr,.ts-x-footer){direction:rtl}
[dir="rtl"] :is(a[href^="tel:"],a[href^="mailto:"]){direction:ltr;unicode-bidi:isolate}
/* Accessible interaction target & contrast enhancement. */
:where(a,button,select,input,textarea):focus-visible{outline:3px solid #0b91b1!important;outline-offset:3px;box-shadow:0 0 0 5px rgba(255,255,255,.7)}
@media(max-width:600px){
  :where(.trip-card,.experience-card,.ts-x-tile){border-radius:18px!important}
  .ts-x-grid{grid-template-columns:minmax(0,1fr);padding-inline:15px}
  .ts-x-card{min-height:auto}
  :where(.trip-actions,.xp-actions,.ts-offer-actions) :is(a,button){font-size:clamp(12px,3.6vw,15px)}
  .ts-offer-popover{inset-inline:12px;max-width:calc(100vw - 24px)}
}
@media(prefers-contrast:more){
  :where(.trip-card,.experience-card,.ts-x-tile){border:2px solid #07596d!important}
  .ts-x-btn{background:#005e72}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  :where(.trip-card,.experience-card,.signature-island-card,.xp-benefit,.xp-gallery figure,.ts-x-tile):hover,
  :where(.trip-card,.experience-card,.signature-island-card,.xp-benefit,.xp-gallery figure):hover img{transform:none!important;filter:none!important}
}

.ts-x-card-media{margin:-25px -25px 21px;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(125deg,#072c47,#14a6b5)}
.ts-x-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s var(--ts-v2-ease)}
@media(hover:hover) and (pointer:fine){.ts-x-card:hover .ts-x-card-media img{transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){.ts-x-card:hover .ts-x-card-media img{transform:none!important}}
