/* custom.css */
a,a:link,a:visited{text-decoration:none}a:hover,a:focus-visible{text-decoration:none}
/* quick-nav anchor targets clear the sticky header */
h2[id^="qn-"]{scroll-margin-top:110px}
html{scroll-behavior:smooth}

/* Essential Guides: keep button label readable on hover */
.tu-guide-card-btn:hover,
.tu-guide-card-btn:focus,
.tu-guide-card-btn:hover *,
.tu-guide-card-btn:focus *{
  color:#fff !important;
  fill:#fff !important;
}

/* sticky header: body must not be a scroll container */
html{overflow-x:hidden}
body{overflow-x:visible !important;max-width:100% !important}
#tu-header,.tu-header,.elementor-element.tu-header{
  position:-webkit-sticky !important;
  position:sticky !important;
  top:0 !important;
  z-index:1000 !important;
  transform:none !important;
  -webkit-transform:none !important;
}

/* sticky header via fixed positioning (immune to ancestor overflow/transform) */
#tu-header,.tu-header,.elementor-element.tu-header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:9999 !important;
  transform:none !important;
  -webkit-transform:none !important;
}
.elementor-location-header{height:60px}

/* ===== HERO: centered startup-style layout ===== */
.tu-hero-full{
  background:linear-gradient(180deg,#f7fbff 0%,#ffffff 100%);
  padding:64px 20px 0;
}
.tu-hero-wrapper{
  display:block !important;
  max-width:1140px;
  margin:0 auto;
}
.tu-content-area{
  max-width:720px;
  margin:0 auto;
  text-align:center;
}
.tu-content-area .main-title{
  font-size:clamp(2.1rem,4.6vw,3.4rem);
  line-height:1.12;
  letter-spacing:-0.02em;
  margin:20px 0 18px;
}
.tu-content-area .main-title .accent-text{
  font-style:normal;
  font-weight:inherit;
}
.tu-content-area .main-description{
  font-size:1.08rem;
  line-height:1.6;
  max-width:600px;
  margin:0 auto 32px;
  color:#5a6b7d;
}
.tu-content-area .action-area{max-width:600px;margin:0 auto}
.tu-content-area .search-suggestions{justify-content:center}

/* image strip below the fold-line */
.tu-image-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  max-width:1140px;
  margin:56px auto 0;
}
.tu-image-grid .grid-box{margin:0;height:200px}
.tu-image-grid .grid-box img{
  width:100%;height:100%;
  object-fit:cover;
  border-radius:14px;
  display:block;
}
@media (max-width:900px){
  .tu-hero-full{padding-top:40px}
  .tu-image-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:36px}
  .tu-image-grid .grid-box{height:150px}
}

/* ===== HERO fixes: spacing, full-bleed bg, popular tags ===== */
/* 1+2. full-width background, clear the fixed header */
.tu-hero-full{
  width:100vw;
  margin-left:calc(50% - 50vw);
  padding:120px 20px 72px !important;
}

/* 3. kill leftover offsets from the old absolute grid */
.tu-image-grid .grid-box{
  position:static !important;
  top:auto !important;left:auto !important;
  right:auto !important;bottom:auto !important;
  transform:none !important;
  margin:0 !important;
  height:210px !important;
}
.tu-image-grid{margin-bottom:0 !important}
.tu-hero-full + *,
.elementor-element-9639b58{margin-top:0 !important}

/* 4. popular tags: lighter, modern, with hover lift */
.search-suggestions{
  display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:8px;margin-top:18px;
}
.suggestion-label{
  font-size:11px;font-weight:700;letter-spacing:1.4px;
  text-transform:uppercase;color:#9bb0c4;margin-right:2px;
}
.suggestion-tags{display:flex;flex-wrap:wrap;gap:8px}
.suggestion-tags a{
  display:inline-flex;align-items:center;
  padding:7px 15px;
  font-size:13.5px;font-weight:600;
  color:#2f4a63 !important;
  background:rgba(255,255,255,0.85);
  border:1px solid rgba(46,166,255,0.22);
  border-radius:999px;
  text-decoration:none !important;
  box-shadow:0 1px 3px rgba(20,60,100,0.05);
  transition:all .18s ease;
}
.suggestion-tags a:hover{
  color:#fff !important;
  background:#2ea6ff;
  border-color:#2ea6ff;
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(46,166,255,0.28);
}
@media (max-width:900px){
  .tu-hero-full{padding:96px 16px 48px !important}
  .tu-image-grid .grid-box{height:150px !important}
}

/* ===== HERO: kill full-viewport height and the negative pull ===== */
.tu-hero-full{
  min-height:0 !important;
  margin-top:0 !important;
  display:block !important;
  padding:110px 20px 40px !important;
}
.tu-hero-wrapper{padding:0 5% !important}
.badge-container{display:none !important}
.tu-content-area .main-title{margin-top:0 !important}
.elementor-element-23aafb6{--padding-top:0px;margin-top:0 !important}
@media (max-width:900px){
  .tu-hero-full{padding:90px 16px 32px !important}
}

/* ===== HERO image strip: force single row, kill legacy grid areas ===== */
.tu-image-grid{
  grid-template-areas:none !important;
  grid-template-columns:repeat(4,1fr) !important;
  grid-template-rows:auto !important;
  gap:14px !important;
  margin-top:40px !important;
}
.tu-image-grid .grid-box,
.tu-image-grid .grid-box.b-1,
.tu-image-grid .grid-box.b-2,
.tu-image-grid .grid-box.b-3,
.tu-image-grid .grid-box.b-4{
  grid-area:auto !important;
  grid-column:auto !important;
  grid-row:auto !important;
  height:210px !important;
  align-self:stretch !important;
}
@media (max-width:900px){
  .tu-image-grid{grid-template-columns:repeat(2,1fr) !important}
  .tu-image-grid .grid-box{height:150px !important}
}

/* hero strip: collapse the hard-coded 640px row */
.tu-image-grid{
  grid-template-rows:210px !important;
  grid-auto-rows:210px !important;
  height:auto !important;
  min-height:0 !important;
  align-content:start !important;
}
@media (max-width:900px){
  .tu-image-grid{grid-template-rows:150px !important;grid-auto-rows:150px !important}
}

/* contextual link from attraction pages back to the destination guide */
.tu-dest-backlink{
  max-width:860px;margin:18px auto 0;padding:14px 20px;
  background:#f2f9ff;border-left:3px solid #2ea6ff;border-radius:10px;
}
.tu-dest-backlink p{margin:0;font-size:15px;color:#33506b;line-height:1.55}
.tu-dest-backlink a{color:#0d7fd4;text-decoration:none}
.tu-dest-backlink a:hover{text-decoration:underline}

/* ===== accessibility: contrast + touch targets ===== */
/* #5f7a94 = 4.29:1 on white (fails). #54708c = 4.94:1 (passes AA) */
.tu-main-subtitle,.tu-transport-desc,.tu-copy,.nav-title-sub,
.tu-guide-card-text,.tu-section-sub,.nav-title-pre,.main-description,
.tu-inner-subtitle,.tu-scroll-text{color:#54708c !important}

/* slider dots: keep the 10px visual, expand the tap area to 24px */
.tu-thailand-slider-dot{
  position:relative;
  width:10px;height:10px;
}
.tu-thailand-slider-dot::after{
  content:"";position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:24px;height:24px;
}
.tu-thailand-slider-dots{gap:14px !important}

/* ===== contrast AA: darken brand blue for SMALL TEXT only ===== */
/* #36A7FF on white = 2.58:1 (fails). #0d7fd4 = 4.54:1 (passes) */
.tu-guide-tag,.tu-guide-card-btn,.premium-tag,.tu-weather-status,
.tu-thailand-swipe-note,.tu-thailand-featured-category,
.tu-thailand-featured-link,.elementor-item.elementor-item-active,
.accent-text{color:#0d7fd4 !important}

/* label greys */
.suggestion-label{color:#6b8299 !important}
.tu-copy{color:#e8eef4 !important}
.card-item span,.tu-weather-rain{color:#54708c !important}

/* cookie bar solid button: darker blue behind white text */
.ccbar-btn.ccbar-btn--solid{background:#1668a8 !important;color:#fff !important}

/* leftover Complianz labels */
.cmplz-always-active,.screen-reader-text{color:#046604 !important}

/* contrast pass 2: tinted backgrounds need a darker blue than plain white does */
.tu-thailand-featured-category,.tu-thailand-featured-link,
.tu-thailand-swipe-note,.tu-guides .tu-guide-tag,.tu-guide-tag,
.tu-guide-card-btn{color:#0b6ab5 !important}

/* footer links sit on a dark panel — they need light text, not grey */
.tu-footer-bottom a,.tu-legal-links a{color:#cfe0ee !important}
.tu-footer-bottom a:hover,.tu-legal-links a:hover{color:#ffffff !important}

/* nav: active item is 12px, needs the darker blue to clear 4.5:1 */
.elementor-item.elementor-item-active,
a.elementor-item-active,
.tu-header .elementor-item-active{color:#0b6ab5 !important}

/* mobile-menu.css */
/* ==================================================================
   Mobile navigation panel - full redesign
   Full-width sheet, no internal scrolling, integrated close button.
   ================================================================== */

:root {
  --mnav-accent: #29a2e0;
  --mnav-accent-dark: #1d7fb0;
  --mnav-text: #14213d;
  --mnav-muted: #6b7488;
  --mnav-rule: rgba(20, 33, 61, .08);
}

/* ---------- backdrop ---------- */

.mnav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 34, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 99998;
}

.mnav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- panel: full width, full height, no scroll ---------- */

.mnav-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  background: linear-gradient(170deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: none;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.32, .72, 0, 1);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
}

.mnav-panel.is-open {
  transform: translateX(0);
}

/* ---------- header row inside the panel ---------- */

.mnav-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--mnav-rule);
}

.mnav-brand {
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mnav-text);
  text-decoration: none;
}

.mnav-brand span {
  color: var(--mnav-accent);
}

.mnav-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

/* close button now lives in the panel header */
.mnav-close {
  position: static;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(41, 162, 224, .1);
  color: var(--mnav-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease .08s, visibility .2s ease .08s, background .15s ease;
  padding: 0;
  flex: 0 0 auto;
}

.mnav-close.is-open {
  opacity: 1;
  visibility: visible;
}

.mnav-close:hover,
.mnav-close:focus-visible {
  background: var(--mnav-accent);
  color: #fff;
}

.mnav-close svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* ---------- list: fills remaining height, never scrolls ---------- */

.mnav-list {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 6px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 0;
  overflow: hidden;
}

.mnav-list > li {
  margin: 0;
  border-bottom: 1px solid var(--mnav-rule);
  flex: 0 1 auto;
}

.mnav-list > li:last-child {
  border-bottom: 0;
}

.mnav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mnav-list a {
  flex: 1;
  display: block;
  padding: clamp(10px, 1.9vh, 18px) 0;
  font-size: clamp(16px, 2.2vh, 19px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--mnav-text);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.mnav-list a:hover,
.mnav-list a:focus-visible {
  color: var(--mnav-accent);
}

.mnav-list li.is-current > .mnav-row > a {
  color: var(--mnav-accent);
}

/* chevron */
.mnav-chev {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20, 33, 61, .35);
  transition: transform .22s ease, color .15s ease;
}

.mnav-list li.is-current .mnav-chev {
  color: var(--mnav-accent);
}

.mnav-chev svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mnav-chev[aria-expanded="true"] {
  transform: rotate(90deg);
  color: var(--mnav-accent);
}

/* ---------- submenu ---------- */

.mnav-sub {
  list-style: none;
  margin: 0 0 10px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid rgba(41, 162, 224, .25);
  display: none;
}

.mnav-sub.is-open {
  display: block;
}

.mnav-sub li {
  border-bottom: 0;
}

.mnav-sub a {
  padding: 9px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mnav-muted);
}

/* ---------- footer strip ---------- */

.mnav-foot {
  flex: 0 0 auto;
  padding: 16px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--mnav-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mnav-social {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s ease;
}

.mnav-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  display: block;
}

.mnav-social--facebook {
  background: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, .32);
}

.mnav-social--instagram {
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
  box-shadow: 0 4px 12px rgba(238, 42, 123, .32);
}

.mnav-social--tiktok {
  background: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  position: relative;
}

.mnav-social--tiktok::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(37, 244, 238, .55), transparent 45%,
              rgba(254, 44, 85, .55));
  mix-blend-mode: screen;
  pointer-events: none;
}

.mnav-social:hover,
.mnav-social:focus-visible {
  transform: translateY(-3px) scale(1.06);
}

.mnav-social--facebook:hover { box-shadow: 0 8px 20px rgba(24, 119, 242, .45); }
.mnav-social--instagram:hover { box-shadow: 0 8px 20px rgba(238, 42, 123, .45); }
.mnav-social--tiktok:hover { box-shadow: 0 8px 20px rgba(254, 44, 85, .4); }

/* ---------- page lock ---------- */

body.mnav-locked {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  touch-action: none;
}

/* ---------- desktop ---------- */

@media (min-width: 1025px) {
  .mnav-backdrop,
  .mnav-panel,
  .mnav-close {
    display: none !important;
  }
}

/* ==================================================================
   Hero spacing on small screens
   ================================================================== */

@media (max-width: 768px) {
  .tu-hero-full {
    padding-top: 12px !important;
  }

  .tu-hero-wrapper {
    padding-top: 0 !important;
    gap: 26px !important;
  }

  .tu-content-area {
    padding-top: 0 !important;
  }

  .badge-container {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
  }

  .main-title {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
  }

  .main-description {
    margin-bottom: 18px !important;
  }
}

/* site-search.css */
/* ------------------------------------------------------------------
   Search results dropdown - grouped by section
   ------------------------------------------------------------------ */

.ssearch-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 52px rgba(12, 22, 40, .18), 0 2px 6px rgba(12, 22, 40, .06);
  overflow: hidden;
  display: none;
  z-index: 99999;
  max-height: min(66vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  padding: 0;
}

.ssearch-results.is-open {
  display: block;
}

/* ---------- tab strip ---------- */

.ssearch-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f4;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}

.ssearch-tabs::-webkit-scrollbar {
  display: none;
}

.ssearch-tab,
.ssearch-tab:link,
.ssearch-tab:visited {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #e3e7ee;
  background: #fff;
  background-image: none;
  color: #46506a;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

.ssearch-tab em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: #6b7488;
  transition: background-color .14s ease, color .14s ease;
}

/* beat the theme's global button styles */
.ssearch-results .ssearch-tab:hover,
.ssearch-results .ssearch-tab:focus,
.ssearch-results .ssearch-tab:focus-visible,
.ssearch-results .ssearch-tab:active {
  background-color: #eaf4fb;
  background-image: none;
  border-color: #9ed0ee;
  color: #14213d;
  box-shadow: none;
  outline: none;
}

.ssearch-results .ssearch-tab:hover em {
  background-color: #d5eaf8;
  color: #1d7fb0;
}

.ssearch-results .ssearch-tab.is-active,
.ssearch-results .ssearch-tab.is-active:hover,
.ssearch-results .ssearch-tab.is-active:focus,
.ssearch-results .ssearch-tab.is-active:active {
  background-color: #1d7fb0;
  background-image: none;
  border-color: #1d7fb0;
  color: #fff;
  box-shadow: none;
}

.ssearch-results .ssearch-tab.is-active em,
.ssearch-results .ssearch-tab.is-active:hover em {
  background-color: rgba(255, 255, 255, .24);
  color: #fff;
}

/* ---------- scrolling list ---------- */

.ssearch-list {
  padding: 6px 0;
}

/* ---------- group ---------- */

.ssearch-group + .ssearch-group {
  border-top: 1px solid #eef0f4;
  margin-top: 4px;
  padding-top: 4px;
}

.ssearch-head {
  padding: 9px 18px 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #29a2e0;
  background: #fff;
}

/* ---------- item ---------- */

.ssearch-item {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .12s ease, border-color .12s ease;
}

.ssearch-item:hover,
.ssearch-item.is-active {
  background: #f4f9fd;
  border-left-color: #29a2e0;
}

.ssearch-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #14213d;
  line-height: 1.4;
}

.ssearch-empty {
  padding: 20px 18px;
  font-size: 14px;
  color: #6b7488;
  text-align: center;
}

/* ---------- scrollbar ---------- */

.ssearch-results::-webkit-scrollbar {
  width: 8px;
}

.ssearch-results::-webkit-scrollbar-thumb {
  background: #d3dae4;
  border-radius: 6px;
  border: 2px solid #fff;
}

.ssearch-results::-webkit-scrollbar-thumb:hover {
  background: #b7c1cf;
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  .ssearch-results {
    max-height: 60vh;
    border-radius: 12px;
  }

  .ssearch-title {
    font-size: 14px;
  }

  .ssearch-head {
    padding: 8px 15px 5px;
    font-size: 10px;
  }

  .ssearch-item {
    padding: 9px 15px;
  }

  .ssearch-tabs {
    padding: 9px 10px;
    gap: 5px;
  }

  .ssearch-tab {
    font-size: 12px;
    padding: 6px 10px;
  }

  .ssearch-tab em {
    font-size: 10.5px;
  }
}

/* ---------- mobile: close the gap under the input ---------- */
@media (max-width: 768px) {
  /* the "popular" row sits between the field and the results,
     so hide it while a search is in progress */
  .hero-search-form:focus-within .search-suggestions {
    display: none;
  }

  .search-input-wrapper {
    margin-bottom: 0 !important;
  }

  .ssearch-results {
    top: calc(100% + 6px);
  }

  .hero-search-form .search-suggestions {
    margin-top: 10px !important;
  }
}

/* cookie-notice.css */
/* ------------------------------------------------------------------
   Cookie notice bar
   ------------------------------------------------------------------ */

.ccbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  width: calc(100% - 36px);
  max-width: 660px;
  transform: translate(-50%, 140%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(12, 22, 40, .22), 0 2px 8px rgba(12, 22, 40, .08);
  padding: 20px 22px;
  z-index: 99990;
  opacity: 0;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .28s ease;
}

.ccbar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.ccbar-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ccbar-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #14213d;
  margin-bottom: 5px;
  line-height: 1.3;
}

.ccbar-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6478;
}

.ccbar-text a {
  color: #29a2e0;
  text-decoration: underline;
}

.ccbar-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

.ccbar-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ccbar-btn--ghost {
  background: #fff;
  border: 1.5px solid #d7dce5;
  color: #46506a;
}

.ccbar-btn--ghost:hover {
  border-color: #b3bcc9;
  color: #14213d;
}

.ccbar-btn--solid {
  background: #29a2e0;
  border: 1.5px solid #29a2e0;
  color: #fff;
}

.ccbar-btn--solid:hover {
  background: #1d8cc4;
  border-color: #1d8cc4;
}

@media (max-width: 640px) {
  .ccbar {
    bottom: 14px;
    width: calc(100% - 24px);
    padding: 18px;
  }

  .ccbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .ccbar-actions {
    flex-direction: row;
  }

  .ccbar-btn {
    flex: 1;
    text-align: center;
  }
}

/* ------------------------------------------------------------------
   Search dropdown must not be clipped by the hero containers
   ------------------------------------------------------------------ */

.tu-hero-wrapper,
.tu-content-area,
.action-area,
.search-input-wrapper {
  overflow: visible !important;
}

.action-area {
  position: relative;
  z-index: 50;
}

.hero-search-form {
  position: relative;
  z-index: 60;
}

.ssearch-results {
  z-index: 9999;
}

/* Override the theme's global button styles */
.ccbar .ccbar-btn,
.ccbar .ccbar-btn:hover,
.ccbar .ccbar-btn:focus,
.ccbar .ccbar-btn:active {
  background-image: none;
  box-shadow: none;
  text-decoration: none;
  outline: none;
}

.ccbar .ccbar-btn--ghost {
  background-color: #fff;
  border: 1.5px solid #d7dce5;
  color: #46506a;
}

.ccbar .ccbar-btn--ghost:hover,
.ccbar .ccbar-btn--ghost:focus {
  background-color: #14213d;
  border-color: #14213d;
  color: #fff;
}

.ccbar .ccbar-btn--solid {
  background-color: #29a2e0;
  border: 1.5px solid #29a2e0;
  color: #fff;
}

.ccbar .ccbar-btn--solid:hover,
.ccbar .ccbar-btn--solid:focus {
  background-color: #1d7fb0;
  border-color: #1d7fb0;
  color: #fff;
}

/* The hero input lifts itself on focus, and that transform traps the
   results list inside a new stacking context. Drop the lift while
   searching so the dropdown can escape. */
.search-input-wrapper:focus-within {
  transform: none !important;
}

.hero-search-form {
  position: relative;
  z-index: 200;
}

.tu-hero-wrapper,
.tu-content-area,
.action-area {
  overflow: visible !important;
}

.ssearch-results {
  z-index: 99980;
}

/* dropdown hangs off the input shell */
.search-input-wrapper { position: relative; z-index: 300; }

.ssearch-results {
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 99980;
}

.hero-search-form,
.action-area,
.tu-content-area,
.tu-hero-wrapper { overflow: visible !important; }

/* keep the popular row from floating above the list */
.hero-search-form .popular-row,
.hero-search-form .popular-tags,
.action-area > *:not(.hero-search-form) { position: relative; z-index: 1; }

/* Lift the whole hero above the sections that follow it, otherwise the
   next section paints over the search results. */
.tu-hero-section,
.tu-hero,
section:has(.hero-search-form),
div:has(> .tu-hero-wrapper) {
  position: relative;
  z-index: 500;
}

.tu-hero-wrapper { z-index: 501; }
.tu-content-area { position: relative; z-index: 502; }
.action-area     { position: relative; z-index: 503; }
.hero-search-form { position: relative; z-index: 504; }
.search-input-wrapper { position: relative; z-index: 505; }
.ssearch-results { z-index: 99999; }

/* the popular tags must sit under the dropdown */
.search-suggestions { position: relative; z-index: 1; }

/* --- exact stacking fix for the homepage hero ---------------------
   The floating cards block is positioned to overlap the hero, so it
   paints over the search results. Give the hero container a higher
   stacking order than the block that follows it. */

.elementor-element-9639b58 {
  position: relative;
  z-index: 800;
}

.tu-hero-full {
  position: relative;
  z-index: 801;
  overflow: visible !important;
}

.elementor-element-23aafb6,
.tu-floating-cards {
  position: relative;
  z-index: 1;
}

.tu-hero-wrapper,
.tu-content-area,
.action-area,
.hero-search-form {
  overflow: visible !important;
  position: relative;
}

.tu-hero-wrapper  { z-index: 802; }
.tu-content-area  { z-index: 803; }
.action-area      { z-index: 804; }
.hero-search-form { z-index: 805; }
.search-input-wrapper { position: relative; z-index: 806; }
.search-suggestions   { position: relative; z-index: 1; }
.ssearch-results      { z-index: 99999; }

/* contrast AA: privacy link on the white cookie bar */
.ccbar a,.ccbar-text a{color:#0b6ab5 !important;text-decoration:underline}
.ccbar a:hover,.ccbar-text a:hover{color:#08507f !important}
