/* Site look: blue + orange on white (light) or deep navy (dark).
   Loaded last, after tailwind.build.css, so these rules win over page utility classes.
   Colours come from the tokens in skylink.css (:root = light, html.dark = dark).
   Light/dark is set by the header sun/moon button (see includes/header.php). */

/* ---------- Light/dark switch ---------- */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color .3s ease, border-color .3s ease, color .2s ease, fill .2s ease !important;
}
.skylink-theme-toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--skylink-primary-rgb), .18);
  border-radius: 999px;
  color: var(--header-link-color);
  background: rgba(var(--skylink-primary-rgb), .05);
  cursor: pointer;
}
.skylink-theme-toggle:hover { background: rgba(var(--skylink-primary-rgb), .12); color: var(--skylink-primary); }
.skylink-theme-toggle svg { width: 18px; height: 18px; }
.skylink-theme-toggle__sun { display: none; }
html.dark .skylink-theme-toggle { color: #85CCEF; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
html.dark .skylink-theme-toggle:hover { color: #FFD08A; background: rgba(255, 255, 255, .09); }
html.dark .skylink-theme-toggle__sun { display: block; }
html.dark .skylink-theme-toggle__moon { display: none; }
.skylink-theme-toggle.lg\:hidden { margin-inline-end: 4px; }
@media (min-width: 1024px) { .skylink-theme-toggle.lg\:hidden { display: none; } }

/* ---------- Base ---------- */
html.dark body { background-color: var(--skylink-bg) !important; color: var(--skylink-text) !important; }
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: var(--skylink-text); }
/* Plain links only; link-buttons keep their own text colour. */
html.dark a:not([class*="text-"]):not([class*="btn"]):not([class*="bg-"]) { color: #85C4EA; }
html.dark a:not([class*="text-"]):not([class*="btn"]):not([class*="bg-"]):hover { color: #A9C8FF; }

/* Buttons: solid brand blue; key actions use the blue-to-orange gradient. */
.btn-primary, .btn.primary, button.bg-primary { border-radius: 12px; }
.btn-primary:hover, .btn.primary:hover, button.bg-primary:hover { background-color: #1744C8 !important; }
html.dark .btn-primary:hover, html.dark .btn.primary:hover, html.dark button.bg-primary:hover { background-color: #2A4890 !important; }
.btn-accent { background: var(--skylink-orange); color: var(--skylink-primary-dark); }
.btn-accent:hover { background: #F0660A; color: #fff; }
.skylink-gradient-btn,
.hero .skylink-search-card button[type="submit"],
.hero .skylink-search-card input[type="submit"],
.hero .skylink-search-card form button.btn:not([type]) {
  border: 0 !important;
  background: linear-gradient(90deg, #2D4E9D 0%, #3A64B5 40%, #3F7FB5 100%) !important;
  background-size: 140% 100% !important;
  background-position: 0 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(45, 78, 157, .28) !important;
  transition: background-position .35s ease, box-shadow .2s ease, transform .15s ease !important;
}
.skylink-gradient-btn:hover,
.hero .skylink-search-card button[type="submit"]:hover,
.hero .skylink-search-card input[type="submit"]:hover,
.hero .skylink-search-card form button.btn:not([type]):hover {
  background-position: 100% 0 !important;
  box-shadow: 0 12px 28px rgba(93, 187, 232, .3) !important;
}
.hero .skylink-search-card button[type="submit"] *,
.hero .skylink-search-card form button.btn:not([type]) * { color: #fff !important; }

/* Cards: soft corners, thin border, quiet shadow. */
.card, .hotel-card, .flight-card { border-radius: 18px; }
.card:hover, .hotel-card:hover, .flight-card:hover { border-color: rgba(var(--skylink-primary-rgb), .45); }

/* ---------- Contact strip ---------- */
.skylink-contact-bar { background: #12224A; color: #C9D4EC; }
html.dark .skylink-contact-bar { background: #050914; border-bottom: 1px solid #141D33; }
.skylink-contact-bar__location svg, .skylink-contact-bar__email svg, .skylink-contact-bar__phone svg { stroke: #85C4EA; }

/* ---------- Header ---------- */
header.skylink-header { box-shadow: 0 4px 20px rgba(18, 34, 74, .06) !important; }
html.dark header.skylink-header {
  background-color: rgba(6, 11, 24, .82) !important;
  border-bottom-color: rgba(120, 146, 200, .14) !important;
  box-shadow: none !important;
}
header.skylink-header .nav-link:hover, header.skylink-header .nav-link:focus-visible { background: rgba(var(--skylink-primary-rgb), .08) !important; }
html.dark header.skylink-header .skylink-locale-control {
  border-color: rgba(255, 255, 255, .14);
  color: #EAF0FF;
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}
/* Sign in: outlined pill. Sign up: solid blue (light) / orange (dark), as in the mockups. */
header.skylink-header .skylink-login-button {
  padding: 6px 16px;
  border: 1px solid rgba(var(--skylink-primary-rgb), .25);
  border-radius: 10px;
  text-decoration: none;
}
header.skylink-header .skylink-login-button:hover { border-color: var(--skylink-primary); background: rgba(var(--skylink-primary-rgb), .06); }
html.dark header.skylink-header .skylink-login-button { color: #EAF0FF; border-color: rgba(255, 255, 255, .2); }
html.dark header.skylink-header .skylink-login-button:hover { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
header.skylink-header .skylink-signup-button,
header.skylink-header .skylink-mobile-signup {
  padding: 6px 16px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #2D4E9D;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(45, 78, 157, .25);
}
header.skylink-header .skylink-signup-button:hover,
header.skylink-header .skylink-mobile-signup:hover { background: #1744C8; color: #fff; transform: translateY(-1px); }
html.dark header.skylink-header .skylink-signup-button,
html.dark header.skylink-header .skylink-mobile-signup { background: #2F76AD; box-shadow: 0 6px 16px rgba(93, 187, 232, .28); }
html.dark header.skylink-header .skylink-signup-button:hover,
html.dark header.skylink-header .skylink-mobile-signup:hover { background: #F0660A; }
header.skylink-header .skylink-signup-button *, header.skylink-header .skylink-mobile-signup * { color: inherit !important; }
html.dark header.skylink-header .skylink-menu-toggle { color: #EAF0FF; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
html.dark header.skylink-header .skylink-mobile-menu { background: #0A1222; border-color: #1C2742; }
html.dark header.skylink-header .skylink-mobile-setting { color: #EAF0FF; }
html.dark header.skylink-header .skylink-mobile-locale-group { background: #0E1830; border-color: #1C2742; }
html.dark header.skylink-header .skylink-mobile-login { color: #EAF0FF; }

/* Header over the homepage hero (before scrolling): light mode uses dark text on the
   light hero; dark mode keeps white text. */
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) {
  --header-link-color: #12224A;
  --header-link-hover-color: #2D4E9D;
}
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-brand-logo-color { display: block; }
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-brand-logo-white { display: none; }
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .nav-link { color: #12224A !important; }
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .nav-link:hover,
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .nav-link:focus-visible { color: #2D4E9D !important; background: rgba(45, 78, 157, .08) !important; }
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-locale-control {
  border-color: rgba(45, 78, 157, .18); color: #12224A; background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px);
}
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-locale-control .w-px { background-color: rgba(45, 78, 157, .2); }
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-switcher-button:hover,
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-switcher-button[aria-expanded="true"] { background: rgba(45, 78, 157, .09); }
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-control-group .relative.group > button:not(.skylink-signup-button),
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-login-button,
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-login-button:hover { color: #12224A; }
html:not(.dark) body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-menu-toggle { color: #12224A; border-color: rgba(45, 78, 157, .22); background: rgba(255, 255, 255, .8); }
html.dark body:has(.hero) header.skylink-header:not([data-scrolled="true"]) .skylink-locale-control { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }

/* ---------- Homepage hero ---------- */
.hero.hero { background-color: var(--skylink-bg); }
/* Wash over the photo/video: solid on the text side, fading out to the right, blending
   into the page at the bottom; plus a soft blue glow, like the mockup globe. */
.hero > .absolute.inset-0.z-\[2\] {
  background:
    radial-gradient(ellipse 45% 55% at 80% 38%, rgba(45, 78, 157, .22), transparent 70%),
    linear-gradient(180deg, rgba(245, 248, 255, .9) 0, rgba(245, 248, 255, 0) 150px),
    linear-gradient(0deg, var(--skylink-bg) 0, rgba(245, 248, 255, 0) 32%),
    linear-gradient(90deg, rgba(245, 248, 255, .97) 0%, rgba(245, 248, 255, .9) 36%, rgba(245, 248, 255, .45) 66%, rgba(245, 248, 255, .12) 100%) !important;
}
html.dark .hero > .absolute.inset-0.z-\[2\] {
  background:
    radial-gradient(ellipse 45% 55% at 80% 38%, rgba(45, 110, 255, .32), transparent 70%),
    linear-gradient(180deg, rgba(6, 11, 24, .85) 0, rgba(6, 11, 24, 0) 150px),
    linear-gradient(0deg, var(--skylink-bg) 0, rgba(6, 11, 24, 0) 32%),
    linear-gradient(90deg, rgba(6, 11, 24, .96) 0%, rgba(6, 11, 24, .86) 36%, rgba(6, 11, 24, .45) 66%, rgba(6, 11, 24, .2) 100%) !important;
}
/* Eyebrow becomes a small pill badge. */
html body .hero .skylink-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1rem;
  padding: .4rem .9rem;
  border: 1px solid rgba(45, 78, 157, .22);
  border-radius: 999px;
  color: #2D4E9D;
  background: rgba(45, 78, 157, .08);
  font-size: .72rem;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
}
html.dark body .hero .skylink-eyebrow { color: #85C4EA; border-color: rgba(93, 166, 219, .3); background: rgba(45, 78, 157, .14); }
html body .hero .skylink-eyebrow span { color: #5DBBE8; }
/* Big two-tone headline: slogan in navy/white, main line in the blue-to-orange gradient. */
.hero .skylink-slogan {
  margin-bottom: .35rem;
  color: #12224A;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
}
html.dark .hero .skylink-slogan { color: #FFFFFF; }
.hero .skylink-slogan-dot { color: #5DBBE8; }
.hero h1 {
  width: fit-content;
  max-width: 100%;
  color: transparent !important;
  background: linear-gradient(90deg, #2D4E9D 0%, #3A67B8 45%, #5DBBE8 85%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none !important;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em;
  padding-bottom: .08em;
}
html.dark .hero h1 { background: linear-gradient(90deg, #4D74C9 0%, #8A6BFF 45%, #5DBBE8 85%); -webkit-background-clip: text; background-clip: text; }
.hero h1 + p {
  color: #4A5878 !important;
  text-shadow: none !important;
  max-width: 38rem !important;
}
html.dark .hero h1 + p { color: #B4C0DA !important; }

/* ---------- Homepage search card ----------
   "html body" prefix: outranks the older "html .hero …" card rules in skylink-polish.css. */
html body .hero .skylink-search-card {
  --skylink-search-field: #FFFFFF;
  --skylink-search-field-hover: #F7F9FF;
  --sl-field-label: #55617E;
  --sl-field-value: #12224A;
  --sl-field-placeholder: #646F8B;
  --sl-field-border: #E2E8F4;
  --sl-field-border-hover: #B9CBF2;
  --sl-chip-bg: #F1F5FD;
  --sl-chip-border: #E2E8F4;
  --sl-chip-text: #4A5878;
  --sl-tab: #4A5878;
  --sl-tab-active: #2D4E9D;
  border: 1px solid #E2E8F4;
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  color: #12224A;
  box-shadow: 0 24px 60px rgba(18, 34, 74, .12);
}
html.dark body .hero .skylink-search-card {
  --skylink-search-field: #0E1830;
  --skylink-search-field-hover: #121E3A;
  --sl-field-label: #8592B0;
  --sl-field-value: #EAF0FF;
  --sl-field-placeholder: #6F7C9C;
  --sl-field-border: #22304F;
  --sl-field-border-hover: #34508A;
  --sl-chip-bg: rgba(255, 255, 255, .04);
  --sl-chip-border: #22304F;
  --sl-chip-text: #A9B6D3;
  --sl-tab: #A9B6D3;
  --sl-tab-active: #85C4EA;
  border-color: #1C2742;
  background: rgba(10, 17, 34, .94);
  color: #EAF0FF;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
/* Tabs: plain text, blue underline on the active one. */
html body .hero .skylink-search-card nav[role="tablist"] { padding: 4px 14px 0; border-bottom: 1px solid var(--sl-field-border) !important; }
html body .hero .skylink-search-card [role="tab"] {
  height: 50px;
  border-radius: 0;
  border-bottom: 2px solid transparent !important;
  color: var(--sl-tab) !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .hero .skylink-search-card [role="tab"]:hover { color: var(--sl-tab-active) !important; }
html body .hero .skylink-search-card [role="tab"][aria-selected="true"],
html body .hero .skylink-search-card [role="tab"].active {
  color: var(--sl-tab-active) !important;
  border-bottom-color: var(--sl-tab-active) !important;
}
html body .hero .skylink-search-card > [x-ref="panels"] { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html body .hero .skylink-search-card [role="tabpanel"] > .w-full { padding: 16px 18px 18px; }
html body .hero .skylink-search-card [role="tabpanel"] .absolute.inset-0.bg-white { background: transparent !important; }
/* Fields: boxed, small muted label, bold value. */
html body .hero .skylink-search-card .field-box,
html body .hero .skylink-search-card [id$="_trigger"],
html body .hero .skylink-search-card [role="tabpanel"] [class~="h-[58px]"].cursor-pointer {
  border: 1px solid var(--sl-field-border) !important;
  background: var(--skylink-search-field) !important;
  color: var(--sl-field-value);
  box-shadow: none;
}
html body .hero .skylink-search-card .field-box:hover,
html body .hero .skylink-search-card [id$="_trigger"]:hover,
html body .hero .skylink-search-card [role="tabpanel"] [class~="h-[58px]"].cursor-pointer:hover {
  border-color: var(--sl-field-border-hover) !important;
  background: var(--skylink-search-field-hover) !important;
  box-shadow: 0 6px 16px rgba(18, 34, 74, .08);
}
html body .hero .skylink-search-card .field-box:focus-within,
html body .hero .skylink-search-card [id$="_trigger"]:focus-within {
  border-color: #4D74C9 !important;
  box-shadow: 0 0 0 3px rgba(77, 116, 201, .22);
}
html body .hero .skylink-search-card .bg-white { background-color: var(--skylink-search-field) !important; color: var(--sl-field-value); }
html body .hero .skylink-search-card input,
html body .hero .skylink-search-card input.field-box-input { background-color: transparent !important; color: var(--sl-field-value) !important; }
html body .hero .skylink-search-card .field-box-label { text-transform: none; letter-spacing: 0; font-weight: 500; }
html body .hero .skylink-search-card :is(.field-box-icon, [id$="_trigger"] > svg:first-child, [id$="_trigger"] > .material-symbols-outlined:first-child, [class~="h-[58px]"] > svg:first-child, [class~="h-[58px]"] > .material-symbols-outlined:first-child, .field-box .material-symbols-outlined:first-child) { color: var(--sl-tab-active) !important; }
/* Swap button between From and To. */
html body .hero .skylink-search-card button[class*="-right-5"] {
  border: 1px solid var(--sl-field-border) !important;
  background: var(--skylink-search-field) !important;
  color: var(--sl-tab-active) !important;
  box-shadow: 0 4px 12px rgba(18, 34, 74, .12);
}
html body .hero .skylink-search-card button[class*="-right-5"]:hover { background: var(--skylink-search-field-hover) !important; }
/* Trip-type switch and option buttons (Economy, Vehicles…). */
html body .hero .skylink-search-card .bg-\[\#f2f4f7\].rounded-md.p-1 { background: var(--sl-chip-bg) !important; border-color: var(--sl-chip-border); }
html body .hero .skylink-search-card .bg-\[\#f2f4f7\].rounded-md.p-1 > button { color: var(--sl-chip-text) !important; }
html body .hero .skylink-search-card .bg-\[\#f2f4f7\].rounded-md.p-1 > button:hover { color: var(--sl-tab-active) !important; background: transparent !important; }
html body .hero .skylink-search-card .bg-\[\#f2f4f7\].rounded-md.p-1 > button.bg-white {
  background: #2D4E9D !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(45, 78, 157, .3);
}
html body .hero .skylink-search-card :is(.skylink-ferry-option, .skylink-search-option, button[class~="h-[42px]"][class~="bg-white"]) {
  border: 1px solid var(--sl-chip-border) !important;
  background: var(--sl-chip-bg) !important;
  color: var(--sl-field-value) !important;
}
html body .hero .skylink-search-card :is(.skylink-ferry-option, .skylink-search-option, button[class~="h-[42px]"][class~="bg-white"]):hover {
  border-color: var(--sl-field-border-hover) !important;
  background: var(--skylink-search-field-hover) !important;
}
/* Supplier logos are white cut-outs, so they sit on a navy band at the bottom of the card. */
html body .hero .skylink-search-card .skylink-supplier-strip {
  border-top: 1px solid var(--sl-field-border);
  border-radius: 0 0 19px 19px;
  background: #12224A;
}
html.dark body .hero .skylink-search-card .skylink-supplier-strip { background: rgba(255, 255, 255, .02); }
html body .hero .skylink-search-card .text-red-600 { color: #DC372F; }
html.dark body .hero .skylink-search-card .text-red-600 { color: #FF8A80; }

/* Eyebrow / slogan: drop the old dark-photo shadows. */
html body .hero .skylink-eyebrow { box-shadow: none; }
html body .hero .skylink-slogan { text-shadow: none; }

/* ---------- Footer ---------- */
footer { background-color: #12224A !important; color: #B4C0DA; }
html.dark footer { background-color: #050914 !important; border-top-color: #141D33 !important; }
footer::before { opacity: .05; }
footer a:hover { color: #85C4EA !important; }
footer .footer-accent { background: linear-gradient(90deg, #2D4E9D, #5DBBE8); }

/* ---------- Dark mode for pages built with plain Tailwind classes ----------
   Most pages use white panels with gray text. In dark mode these become navy panels with
   light text, so every page follows the switch without being rewritten. */
html.dark :is(.bg-white, .bg-gray-50, .bg-slate-50, .bg-neutral-50):not(.hero .skylink-search-card *) { background-color: var(--skylink-surface) !important; }
html.dark :is(.bg-gray-100, .bg-slate-100, .bg-gray-200, .bg-slate-200) { background-color: var(--skylink-surface-secondary) !important; }
html.dark .bg-background { background-color: var(--skylink-bg) !important; }
html.dark :is(.bg-white\/90, .bg-white\/95, .bg-white\/80) { background-color: rgba(12, 20, 38, .9) !important; }
html.dark :is(.hover\:bg-gray-50, .hover\:bg-slate-50, .hover\:bg-gray-100, .hover\:bg-slate-100, .hover\:bg-white):hover { background-color: #15213D !important; }
html.dark :is(.hover\:bg-gray-200, .hover\:bg-slate-200):hover { background-color: #1A2747 !important; }

html.dark :is(.text-gray-900, .text-slate-900, .text-gray-800, .text-slate-800, .text-black, .text-neutral-900, .text-foreground) { color: #EAF0FF !important; }
html.dark :is(.text-gray-700, .text-slate-700, .text-neutral-700) { color: #C9D3EA !important; }
html.dark :is(.text-gray-600, .text-slate-600, .text-neutral-600) { color: #A9B6D3 !important; }
html.dark :is(.text-gray-500, .text-slate-500, .text-neutral-500) { color: #8B98B6 !important; }
html.dark :is(.text-gray-400, .text-slate-400) { color: #7380A0 !important; }
html.dark :is(.hover\:text-gray-900, .hover\:text-gray-700, .hover\:text-slate-900, .hover\:text-slate-700):hover { color: #FFFFFF !important; }

html.dark :is(.border-gray-100, .border-gray-200, .border-gray-300, .border-slate-100, .border-slate-200, .border-slate-300, .border-neutral-200) { border-color: var(--skylink-border) !important; }
html.dark :is(.hover\:border-gray-300, .hover\:border-slate-300):hover { border-color: #2C3B60 !important; }
html.dark :is(.divide-gray-100, .divide-gray-200, .divide-slate-100, .divide-slate-200) > :not([hidden]) ~ :not([hidden]) { border-color: var(--skylink-border) !important; }
html.dark :is(.shadow, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl) { --tw-shadow-color: rgba(0, 0, 0, .45); }

/* Brand-coloured text and tints read on navy. */
html.dark .text-primary { color: #85C4EA !important; }
html.dark .bg-primary { background-color: #4D74C9 !important; }
html.dark :is(.bg-blue-50, .bg-blue-100, .bg-primary\/5, .bg-primary\/10) { background-color: rgba(77, 116, 201, .14) !important; }
html.dark :is(.text-blue-400, .text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800) { color: #85C4EA !important; }
html.dark :is(.bg-green-50, .bg-emerald-50) { background-color: rgba(52, 211, 153, .12) !important; }
html.dark :is(.bg-red-50) { background-color: rgba(248, 113, 113, .12) !important; }
html.dark :is(.bg-yellow-50, .bg-amber-50, .bg-orange-50) { background-color: rgba(251, 191, 36, .12) !important; }
html.dark :is(.text-green-600, .text-green-700, .text-emerald-600, .text-emerald-700) { color: #4ADE9B !important; }
html.dark :is(.text-red-600, .text-red-700) { color: #FF8A80 !important; }

/* Form controls, tables, dropdowns. */
html.dark :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="submit"], [type="button"]) {
  color-scheme: dark;
  background-color: var(--input-background);
  border-color: var(--input-border-color);
  color: var(--input-text-color);
}
html.dark .field-box { background: var(--input-background); border-color: var(--input-border-color); }
html.dark .field-box:hover { border-color: #34508A; background: #121E3A; }
html.dark table thead :is(th, tr) { background-color: #0F1930; color: #C9D3EA; }
html.dark table :is(td, th) { border-color: var(--skylink-border); }
html.dark .card, html.dark .hotel-card, html.dark .flight-card, html.dark .panel,
html.dark .modal-content, html.dark .dropdown-menu, html.dark .input-dropdown-content {
  background-color: var(--skylink-surface);
  border-color: var(--skylink-border);
}
html.dark :is(.card, .hotel-card, .flight-card, .sl-esim-card, .sl-esim-dest) { border-color: var(--skylink-border); }

/* Images and logos on white tiles (airline logos, payment logos) keep a light tile so
   they stay readable. */
html.dark img.bg-white, html.dark .bg-white > img:only-child { background-color: #FFFFFF !important; }

/* Orange buttons keep dark text in dark mode (the light-on-orange version fails contrast). */
html.dark .skylink-trip-bot__launcher,
html.dark .skylink-trip-bot__launcher-label,
html.dark .btn-accent { color: #12224A; }
html.dark { --skylink-card-border: #1C2742; }
html.dark .sl-fp__pill:not(.is-active) { color: #C9D3EA; }
html.dark .sl-fp__pill:not(.is-active) .sl-fp__count { background: #1A2747; color: #C9D3EA; }
html.dark .sl-ff__arrow { color: #EAF0FF; }

/* Secondary "light" buttons (e.g. Go Back on the 404 page). */
html.dark .btn.light { background: #111B33 !important; border-color: #22304F !important; color: #EAF0FF !important; }
html.dark .btn.light:hover { background: #15213D !important; }

/* Phones: the text sits over the whole photo, so the wash covers it evenly. */
@media (max-width: 767px) {
  .hero > .absolute.inset-0.z-\[2\] {
    background: linear-gradient(180deg, rgba(245, 248, 255, .94) 0%, rgba(245, 248, 255, .88) 60%, var(--skylink-bg) 100%) !important;
  }
  html.dark .hero > .absolute.inset-0.z-\[2\] {
    background: linear-gradient(180deg, rgba(6, 11, 24, .9) 0%, rgba(6, 11, 24, .84) 60%, var(--skylink-bg) 100%) !important;
  }
}

/* Service pages (Flights, Stays, Tours, Cars…): the cover photo gets a navy-to-blue
   gradient instead of a solid block of colour. */
.absolute.inset-0.bg-blue-700.bg-opacity-30 {
  background: linear-gradient(120deg, rgba(18, 34, 74, .82) 0%, rgba(20, 52, 140, .55) 55%, rgba(93, 187, 232, .25) 100%) !important;
}
html.dark .absolute.inset-0.bg-blue-700.bg-opacity-30 {
  background: linear-gradient(120deg, rgba(6, 11, 24, .9) 0%, rgba(14, 34, 90, .65) 55%, rgba(93, 187, 232, .18) 100%) !important;
}

/* Search fields on the service pages. */
html.dark .border-\[\#d8dce3\], html.dark .field-box { border-color: #22304F !important; }
html.dark .hover\:bg-\[\#f2f4f7\]:hover, html.dark .bg-\[\#f2f4f7\] { background-color: #121E3A !important; }
html.dark .hover\:border-\[\#98a2b3\]:hover { border-color: #34508A !important; }
html.dark .hover\:bg-\[\#e4e7ec\]:hover { background-color: #1A2747 !important; }
html.dark .text-\[\#101828\], html.dark .text-\[\#344054\] { color: #EAF0FF !important; }
html.dark .text-\[\#475467\], html.dark .text-\[\#667085\] { color: #A9B6D3 !important; }
html.dark .text-\[\#98a2b3\] { color: #7F8CAB !important; }

/* ---------- WhiteJet logo ----------
   Header: wide version (mark + wordmark). Footer: stacked version. */
header.skylink-header .skylink-brand-logo { width: 176px; max-height: 48px; }
@media (max-width: 1023px) { header.skylink-header .skylink-brand-logo { width: min(150px, 42vw); max-height: 42px; } }
footer .skylink-brand-logo { width: 150px; max-height: 146px; }

/* ---------- Light-mode text readability ---------- */
/* Search tabs: icons take the tab's text colour (the light blue was too faint on white). */
html body .hero .skylink-search-card [role="tab"] :is(.material-symbols-outlined, .hgi) { color: inherit !important; }
/* Grey hint text in search fields (placeholders, "Search By City"…). */
html:not(.dark) :is(.text-\[\#98a2b3\], .placeholder-gray-400::placeholder) { color: #6B7894 !important; }
html:not(.dark) .hero .skylink-search-card :is(.field-box, [id$="_trigger"]) :is(.material-symbols-outlined, svg):not(:first-child) { color: #6B7894 !important; }
html:not(.dark) .hero .skylink-search-card :is(.field-box, [id$="_trigger"]) :is(.truncate, .material-symbols-outlined:first-child) { color: inherit; }
/* Icons inside orange buttons follow the button text. */
:is(.bg-orange-500, .btn-accent, [class*="sl-esim"] a, .sl-ff__btn, [style*="--skylink-orange"]) .material-symbols-outlined { color: inherit !important; }
/* Small light-blue labels on white (eSIM 5G badge) use the darker brand blue. */
html:not(.dark) .sl-esim-signal { color: #2D4E9D; }
.sl-esim-cta .material-symbols-outlined { color: inherit !important; }
html:not(.dark) .text-\[\#98a2b3\] { color: #646F8B !important; }
html body .hero .skylink-search-card button[class*="-right-5"] .material-symbols-outlined { color: inherit !important; }
html:not(.dark) .hero .skylink-search-card .text-\[\#667085\].material-symbols-outlined { color: #646F8B !important; }

/* =====================================================================
   CARDS
   - Photo cards (hotels, tours, Umrah): the photo fills the card; name, place and
     price sit on a dark fade at the bottom, as in the mockup destination cards.
   - Info cards (flights, eSIM, cars): rounded, soft shadow, blue-to-orange accent
     line on top, lift on hover, gradient action button.
   ===================================================================== */
html body :is(.sl-fp__card, .sl-photo-card) {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 22px;
  background: #12224A !important;
  box-shadow: 0 14px 34px rgba(18, 34, 74, .16);
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
html body :is(.sl-fp__card, .sl-photo-card):hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(18, 34, 74, .26); }
html.dark body :is(.sl-fp__card, .sl-photo-card) { box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(120, 146, 200, .12); }
/* Photo fills the card. */
html body :is(.sl-fp__media, .sl-photo-card__media) {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  height: auto !important;
  border-radius: 0;
}
html body :is(.sl-fp__media, .sl-photo-card__media) img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
html body :is(.sl-fp__card, .sl-photo-card):hover :is(.sl-fp__media, .sl-photo-card__media) img { transform: scale(1.07); }
/* Dark fade so the text on the photo stays readable. */
html body .sl-fp__media::after,
html body .sl-photo-card__media > .bg-gradient-to-t {
  content: "";
  position: absolute;
  inset: 0 !important;
  z-index: 1;
  background: linear-gradient(0deg, rgba(6, 11, 24, .97) 0%, rgba(6, 11, 24, .82) 40%, rgba(6, 11, 24, .25) 68%, rgba(6, 11, 24, 0) 82%) !important;
  pointer-events: none;
}
/* Badges at the top. */
html body .sl-fp__off { top: 14px; inset-inline-start: 14px; padding: 5px 10px; border-radius: 999px; background: #2D4E9D; box-shadow: 0 4px 12px rgba(45, 78, 157, .35); }
html body .sl-fp__stars {
  top: 14px; bottom: auto; inset-inline-start: auto; inset-inline-end: 14px;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(6, 11, 24, .55); backdrop-filter: blur(6px);
}
html body .sl-photo-card__media .absolute.top-3 { top: 14px; left: 14px; }
html body .sl-photo-card__media .absolute.top-3 > span { border-radius: 999px; }
html body .sl-photo-card__media .bg-red-500 { background: #2D4E9D !important; }
/* Text over the photo. */
html body :is(.sl-fp__body, .sl-photo-card__body) {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  gap: 4px;
  padding: 18px 18px 18px;
  background: transparent !important;
  color: #FFFFFF;
}
html body .sl-photo-card__body { pointer-events: none; } /* the whole card is one link underneath */
html body .sl-fp__name,
html body .sl-photo-card__body h3 { margin-bottom: 4px !important; color: #FFFFFF !important; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
html body .sl-fp__addr,
html body .sl-photo-card__body :is(.text-gray-500, .text-gray-600, .text-gray-900):not(h3) { color: rgba(234, 240, 255, .82) !important; }
html body .sl-fp__addr .material-symbols-outlined,
html body .sl-photo-card__body .material-symbols-outlined { color: #85C4EA !important; }
html body .sl-photo-card__body .text-lg.font-bold,
html body .sl-fp__price :is(strong, b, .font-bold, [class*="font-"]) { color: #FFFFFF !important; }
html body .sl-fp__price,
html body .sl-fp__price * { color: #FFFFFF; }
html body .sl-fp__foot,
html body .sl-photo-card__body .border-t { border-top: 1px solid rgba(255, 255, 255, .16) !important; }
html body .sl-photo-card__body .bg-green-50 { background: rgba(255, 255, 255, .14) !important; color: #FFFFFF !important; }
html body .sl-photo-card__body .bg-black\/80 { background: rgba(255, 255, 255, .16) !important; }
/* Button on the photo: white pill, turns blue on hover. */
html body .sl-fp__btn { border-radius: 999px; background: #FFFFFF !important; color: #12224A !important; font-weight: 700; }
html body .sl-fp__btn * { color: inherit !important; }
html body .sl-fp__btn:hover { background: #2D4E9D !important; color: #FFFFFF !important; }

/* Info cards. */
html body :is(.sl-ff__card, .sl-esim-card, .sl-soft-card) {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--skylink-card-border) !important;
  border-radius: 20px;
  background: var(--skylink-surface) !important;
  box-shadow: 0 8px 24px rgba(18, 34, 74, .06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
html body :is(.sl-ff__card, .sl-esim-card, .sl-soft-card)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 25;
  height: 3px;
  background: linear-gradient(90deg, #2D4E9D, #3A67B8, #5DBBE8);
  opacity: 0;
  transition: opacity .3s ease;
}
html body :is(.sl-ff__card, .sl-esim-card, .sl-soft-card):hover {
  transform: translateY(-5px);
  border-color: rgba(45, 78, 157, .3) !important;
  box-shadow: 0 20px 40px rgba(45, 78, 157, .14);
}
html body :is(.sl-ff__card, .sl-esim-card, .sl-soft-card):hover::before { opacity: 1; }
html.dark body :is(.sl-ff__card, .sl-esim-card, .sl-soft-card) { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
html.dark body :is(.sl-ff__card, .sl-esim-card, .sl-soft-card):hover { box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(77, 116, 201, .35); }
/* Action buttons on info cards: blue-to-orange gradient pill. */
html body :is(.sl-ff__btn, .sl-esim-cta) {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #2D4E9D 0%, #3A64B5 40%, #3F7FB5 100%) !important;
  background-size: 160% 100% !important;
  background-position: 0 0 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 18px rgba(45, 78, 157, .22);
  transition: background-position .35s ease, box-shadow .2s ease !important;
}
html body :is(.sl-ff__btn, .sl-esim-cta) * { color: #FFFFFF !important; }
html body :is(.sl-ff__card, .sl-esim-card):hover :is(.sl-ff__btn, .sl-esim-cta) { background-position: 100% 0 !important; box-shadow: 0 10px 22px rgba(93, 187, 232, .28); }
/* Car cards: image area gets the page tint instead of a hard white box. */
html body .sl-soft-card > .relative.h-48 { margin: 8px 8px 0; border-radius: 14px; }
@media (max-width: 639px) {
  html body :is(.sl-fp__card, .sl-photo-card) { min-height: 320px; }
}
html body .sl-photo-card__body .mb-3:empty, html body .sl-photo-card__body .flex.mb-3:not(:has(span)) { display: none; }
/* Car cards: cut-out car photos on a soft tinted stage instead of a dark fade. */
/* Car photos come on white, so the photo area is white in both modes. */
html body .sl-soft-card > .relative.h-48 { background: #FFFFFF !important; }
html body .sl-soft-card > .relative.h-48 > .bg-gradient-to-t { display: none; }
html body .sl-soft-card > .relative.h-48 img { object-fit: contain !important; padding: 8px 14px 30px; }
html body .sl-soft-card > .relative.h-48 .bg-black\/40 { background: rgba(18, 34, 74, .72) !important; border-radius: 999px; }
/* Card action pill (cars "Book Now"). */
html body .sl-card-cta {
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #2D4E9D 0%, #3A64B5 40%, #3F7FB5 100%) !important;
  background-size: 160% 100% !important;
  color: #FFFFFF !important;
  font-size: 13px !important;
  box-shadow: 0 8px 18px rgba(45, 78, 157, .22);
  transition: background-position .35s ease;
}
html body .sl-card-cta, html.dark body .sl-card-cta, html body .sl-card-cta * { color: #FFFFFF !important; }
html body .sl-soft-card:hover .sl-card-cta { background-position: 100% 0 !important; }
html.dark body .sl-soft-card .border-t { border-color: #1C2742 !important; }

/* Social icons only show once a link is set in admin settings. */
a[data-social]:not([href]), a[data-social][href=""] { display: none !important; }
footer .flex.gap-2:has(a[data-social]):not(:has(a[data-social][href]:not([href=""]))) { display: none; }
footer .mt-4.pt-4.border-t:not(:has(a[data-social][href]:not([href=""]))):has(a[data-social]) { display: none; }
/* Contact buttons with no number or address set yet stay hidden. */
a[href="https://wa.me/"], a[href="mailto:"], a[href="tel:"] { display: none !important; }

/* Oria (AI trip planner) panel: the name is the headline, the role a small label above. */
.skylink-trip-bot__heading h2 { font-size: 20px !important; line-height: 1.15 !important; font-weight: 800 !important; letter-spacing: -.01em; }
.skylink-trip-bot__eyebrow { font-size: 10px !important; letter-spacing: .14em !important; opacity: .8; }
/* Oria panel in dark mode. */
html.dark .skylink-trip-bot__panel { background: #0C1426 !important; border-color: #1C2742 !important; color: #EAF0FF; }
html.dark .skylink-trip-bot__content { background: transparent !important; }
html.dark .skylink-trip-bot__welcome { background: #111B33 !important; border-color: #22304F !important; }
html.dark .skylink-trip-bot__welcome p, html.dark .skylink-trip-bot__prompt-label { color: #EAF0FF !important; }
html.dark .skylink-trip-bot__welcome-label { color: #85C4EA !important; }
html.dark .skylink-trip-bot__input { background: #0E1830 !important; border-color: #22304F !important; color: #EAF0FF !important; }
html.dark .skylink-trip-bot__input-meta, html.dark .skylink-trip-bot__footnote { color: #8B98B6 !important; }
html.dark .skylink-trip-bot__suggestion { background: #111B33 !important; border-color: #22304F !important; color: #EAF0FF !important; }
/* Orange button keeps navy text in both modes. */
.skylink-trip-bot__submit, .skylink-trip-bot__submit:hover, .skylink-trip-bot__submit * { color: #12224A !important; }

/* Oria mascot. */
.oria-face { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.skylink-trip-bot__launcher-mark { overflow: hidden; background: #FFFFFF !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.skylink-trip-bot__launcher[aria-expanded="true"] .skylink-trip-bot__launcher-mark { background: #12224A !important; color: #FFFFFF; }
.skylink-trip-bot__avatar { overflow: hidden; padding: 0 !important; border: 2px solid rgba(255, 255, 255, .25) !important; border-radius: 50% !important; background: #FFFFFF !important; }
.skylink-trip-bot__welcome { position: relative; padding-inline-end: 104px !important; min-height: 92px; }
.skylink-trip-bot__welcome .oria-mascot { position: absolute; inset-inline-end: 6px; bottom: 4px; width: 96px; height: auto; pointer-events: none; }
.oria-face--page { width: 36px; height: 36px; flex: 0 0 36px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--skylink-border); }
