:root {
  --ttlpb-red: #ff1f35;
  --ttlpb-red-off: rgba(255, 31, 53, .09);
  --ttlpb-label: rgba(255,255,255,.96);
  --ttlpb-separator: rgba(255,255,255,.34);
}

.ttlpb-auto-template { display: none !important; }

/* The archived home page uses this exact Gutenberg Cover class. Making it the
   positioning context keeps the server-rendered board on the hero in every
   desktop, mobile, cached and AMP render path. */
.turktravel-hero { position: relative !important; }

/* The board lives inside the inner container to preserve Gutenberg's layer
   order, but its coordinates must be relative to the full hero—not the
   vertically centred text container. */
.turktravel-hero > .wp-block-cover__inner-container { position: static !important; }
.turktravel-hero > .wp-block-cover__inner-container > :not(.ttlpb-auto-slot) {
  position: relative;
  z-index: 2;
}

/* Auto placement: the slot is appended inside the hero, never inside the menu. */
.ttlpb-auto-slot {
  position: absolute;
  left: clamp(18px, 3.2vw, 52px);
  top: clamp(18px, 3.5vw, 42px);
  z-index: 28;
  direction: ltr;
  pointer-events: auto;
  max-width: calc(100% - 36px);
}

.ttlpb-board {
  width: min(100%, 620px);
  direction: ltr;
  color: #fff;
  font-family: Tahoma, Arial, sans-serif;
}

/* The automatic hero variant deliberately has no panel/background. */
.ttlpb-board--overlay {
  width: 500px;
  max-width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  padding: 0;
}

.ttlpb-board__items {
  display: grid;
  grid-template-columns: repeat(var(--ttlpb-count), minmax(0, 1fr));
  align-items: stretch;
}

.ttlpb-board__item {
  min-width: 0;
  padding: 7px 16px 8px;
  text-align: center;
  position: relative;
}

.ttlpb-board__item + .ttlpb-board__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: var(--ttlpb-separator);
  box-shadow: 0 0 5px rgba(0,0,0,.22);
}

.ttlpb-board__label {
  color: var(--ttlpb-label);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 5px;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.92), 0 0 2px rgba(0,0,0,.75);
}

.ttlpb-board__value {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ttlpb-red);
  filter: drop-shadow(0 0 5px rgba(255,31,53,.50)) drop-shadow(0 1px 1px rgba(0,0,0,.75));
}

.ttlpb-board__suffix {
  font: 700 17px/1 Arial, sans-serif;
  color: var(--ttlpb-red);
  margin-left: 1px;
}

/* Full shortcode version keeps a subtle neutral panel; auto overlay does not. */
.ttlpb-board:not(.ttlpb-board--overlay) {
  background: linear-gradient(180deg, #222529, #151719);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}

.ttlpb-board__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 12px 7px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #aeb3ba;
  background: rgba(0,0,0,.13);
  font-size: 11px;
}
.ttlpb-board__warning { color: #ffc04d; font-weight: 700; }
.ttlpb-board--stale:not(.ttlpb-board--overlay) { border-color: rgba(255,192,77,.4); }

.ttlpb-board__seo-link {
  display: table;
  margin: 2px auto 0;
  color: rgba(255,255,255,.96) !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,31,53,.72);
  text-shadow: 0 1px 5px rgba(0,0,0,.95);
}
.ttlpb-board__seo-link:hover,
.ttlpb-board__seo-link:focus-visible { color: #fff !important; border-bottom-color: #fff; }

.ttlpb-board--compact { width: 414px; border-radius: 11px; }
.ttlpb-board--overlay.ttlpb-board--compact { width: 500px; }
.ttlpb-board--compact .ttlpb-board__item { padding: 7px 12px 8px; }
.ttlpb-board--compact .ttlpb-board__label { font-size: 10px; margin-bottom: 4px; }
.ttlpb-board--compact .ttlpb-board__value { height: 28px; }
.ttlpb-board--compact .ttlpb-seven { width: 16px; height: 28px; }
.ttlpb-board--compact .ttlpb-seven-number { gap: 2px; }
.ttlpb-board--compact .ttlpb-board__suffix { font-size: 15px; }

.ttlpb-seven-number {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  direction: ltr;
}
.ttlpb-seven {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 31px;
  flex: 0 0 auto;
}
.ttlpb-seg {
  position: absolute;
  display: block;
  background: var(--ttlpb-red-off);
  border-radius: 2px;
  transition: background .15s ease;
}
.ttlpb-seg.is-on {
  background: var(--ttlpb-red);
  box-shadow: 0 0 4px rgba(255,31,53,.78);
}
.ttlpb-seg--a, .ttlpb-seg--d, .ttlpb-seg--g {
  left: 3px;
  width: 12px;
  height: 3px;
  clip-path: polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%);
}
.ttlpb-seg--a { top: 0; }
.ttlpb-seg--g { top: 14px; }
.ttlpb-seg--d { bottom: 0; }
.ttlpb-seg--b, .ttlpb-seg--c, .ttlpb-seg--e, .ttlpb-seg--f {
  width: 3px;
  height: 12px;
  clip-path: polygon(50% 0,100% 12%,100% 88%,50% 100%,0 88%,0 12%);
}
.ttlpb-seg--b { right: 0; top: 2px; }
.ttlpb-seg--c { right: 0; bottom: 2px; }
.ttlpb-seg--e { left: 0; bottom: 2px; }
.ttlpb-seg--f { left: 0; top: 2px; }
.ttlpb-seven-decimal {
  width: 4px;
  height: 4px;
  margin: 0 0 1px -1px;
  border-radius: 50%;
  background: var(--ttlpb-red);
  box-shadow: 0 0 4px rgba(255,31,53,.78);
  flex: 0 0 auto;
}
.ttlpb-seven--dash { width: 20px; height: 31px; }
.ttlpb-seven--dash i {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--ttlpb-red);
}

@media (max-width: 1250px) {
  .ttlpb-auto-slot { transform: scale(.88); transform-origin: left top; }
}
@media (max-width: 980px) {
  .ttlpb-auto-slot { transform: scale(.74); transform-origin: left top; left: 12px; top: 14px; }
}
@media (max-width: 760px) {
  /* Pure-CSS fallback: visible even when deferred/minified JavaScript does not run. */
  .ttlpb-auto-template {
    display: block !important;
    position: absolute;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 72px);
    left: 6px;
    right: 6px;
    z-index: 999;
    width: auto;
    pointer-events: auto;
  }
  .ttlpb-auto-slot {
    display: block !important;
    left: 6px;
    right: 6px;
    top: 8px;
    width: auto;
    max-width: none;
    transform: none;
    overflow: hidden;
  }
  .ttlpb-auto-template > .ttlpb-board,
  .ttlpb-board--overlay.ttlpb-board--compact { width: 100%; }
  .ttlpb-auto-slot .ttlpb-board__items,
  .ttlpb-auto-template .ttlpb-board__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .ttlpb-board--overlay .ttlpb-board__item { min-width: 0; max-width: 100%; padding: 3px 2px 4px; overflow: hidden; }
  .ttlpb-board--overlay .ttlpb-board__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
  .ttlpb-board--overlay .ttlpb-board__item:nth-child(3)::before { display: none; }
  .ttlpb-board--overlay .ttlpb-board__label { font-size: 9px; margin-bottom: 3px; letter-spacing: -.1px; }
  .ttlpb-board--overlay .ttlpb-board__value { height: 22px; gap: 1px; }
  .ttlpb-board--overlay .ttlpb-seven { width: 12px; height: 22px; }
  .ttlpb-board--overlay .ttlpb-seven-number { gap: 1px; }
  .ttlpb-board--overlay .ttlpb-seven-number { max-width: 100%; flex-wrap: nowrap; }
  .ttlpb-board--overlay .ttlpb-seg--a,
  .ttlpb-board--overlay .ttlpb-seg--d,
  .ttlpb-board--overlay .ttlpb-seg--g { left: 2px; width: 8px; height: 2px; }
  .ttlpb-board--overlay .ttlpb-seg--a { top: 0; }
  .ttlpb-board--overlay .ttlpb-seg--g { top: 10px; }
  .ttlpb-board--overlay .ttlpb-seg--d { bottom: 0; }
  .ttlpb-board--overlay .ttlpb-seg--b,
  .ttlpb-board--overlay .ttlpb-seg--c,
  .ttlpb-board--overlay .ttlpb-seg--e,
  .ttlpb-board--overlay .ttlpb-seg--f { width: 2px; height: 8px; }
  .ttlpb-board--overlay .ttlpb-seg--b,
  .ttlpb-board--overlay .ttlpb-seg--f { top: 2px; }
  .ttlpb-board--overlay .ttlpb-seg--c,
  .ttlpb-board--overlay .ttlpb-seg--e { bottom: 2px; }
  .ttlpb-board--overlay .ttlpb-seven-decimal { width: 3px; height: 3px; margin-left: 0; }
  .ttlpb-board--overlay .ttlpb-board__item + .ttlpb-board__item::before { top: 3px; bottom: 3px; }
  .ttlpb-board--overlay .ttlpb-board__seo-link { margin-top: 2px; font-size: 9px; line-height: 1.45; }
}
@media (max-width: 380px) {
  .ttlpb-auto-template, .ttlpb-auto-slot { left: 4px; right: 4px; }
  .ttlpb-board--overlay .ttlpb-board__label { font-size: 8px; }
  .ttlpb-board--overlay .ttlpb-seven { width: 11px; height: 20px; }
  .ttlpb-board--overlay .ttlpb-board__value { height: 20px; }
  .ttlpb-board--overlay .ttlpb-seg--a,
  .ttlpb-board--overlay .ttlpb-seg--d,
  .ttlpb-board--overlay .ttlpb-seg--g { width: 7px; }
  .ttlpb-board--overlay .ttlpb-seg--g { top: 9px; }
  .ttlpb-board--overlay .ttlpb-seg--b,
  .ttlpb-board--overlay .ttlpb-seg--c,
  .ttlpb-board--overlay .ttlpb-seg--e,
  .ttlpb-board--overlay .ttlpb-seg--f { height: 7px; }
}
@media (max-width: 680px) {
  .ttlpb-board:not(.ttlpb-board--overlay) { width: 100%; border-radius: 10px; }
  .ttlpb-board:not(.ttlpb-board--overlay) .ttlpb-board__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ttlpb-board:not(.ttlpb-board--overlay) .ttlpb-board__item:nth-child(3)::before { display: none; }
  .ttlpb-board:not(.ttlpb-board--overlay) .ttlpb-board__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.10); }
  .ttlpb-board__meta { flex-wrap: wrap; }
}

/* Search-friendly price page. All important text and values are server-rendered. */
.ttlpb-seo { max-width: 920px; margin: 0 auto; color: #202631; line-height: 2; }
.ttlpb-seo__header { margin-bottom: 24px; }
.ttlpb-seo__eyebrow { color: #e3132c; font-weight: 800; margin: 0 0 4px; }
.ttlpb-seo__title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.35; margin: 0 0 12px; color: #152238; }
.ttlpb-seo h2 { font-size: clamp(21px, 2.6vw, 29px); line-height: 1.55; margin: 38px 0 12px; color: #152238; }
.ttlpb-seo__lead { font-size: 17px; margin: 0 0 8px; }
.ttlpb-seo__updated { color: #667085; font-size: 13px; margin: 0; }
.ttlpb-seo > .ttlpb-board { margin: 18px auto 28px; }
.ttlpb-seo__table-wrap { overflow-x: auto; border: 1px solid #e7e9ee; border-radius: 12px; margin: 14px 0; }
.ttlpb-seo__table { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
.ttlpb-seo__table caption { text-align: right; padding: 12px 16px; color: #475467; font-size: 13px; }
.ttlpb-seo__table th, .ttlpb-seo__table td { padding: 12px 16px; text-align: right; border-top: 1px solid #eceef2; }
.ttlpb-seo__table thead th { color: #fff; background: #152238; border-top: 0; }
.ttlpb-seo__table tbody th { color: #152238; font-weight: 800; }
.ttlpb-seo__table tbody tr:nth-child(even) { background: #f8f9fb; }
.ttlpb-seo__formula { padding: 14px 18px; border-right: 4px solid #e3132c; border-radius: 8px; background: #fff3f5; font-weight: 800; color: #152238; }
.ttlpb-seo__sources { font-size: 14px; color: #475467; }
.ttlpb-seo__faq details { margin: 10px 0; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; }
.ttlpb-seo__faq summary { cursor: pointer; padding: 13px 16px; font-weight: 800; color: #152238; }
.ttlpb-seo__faq details p { padding: 0 16px 14px; margin: 0; }
@media (max-width: 560px) {
  .ttlpb-seo { line-height: 1.9; }
  .ttlpb-seo__lead { font-size: 15px; }
  .ttlpb-seo__table th, .ttlpb-seo__table td { padding: 10px 12px; }
}

/* v2.3.4 — Desktop-only black-halo correction.
 * This is deliberately limited to the automatic homepage overlay above 760px.
 * Mobile layout, sizing and rendering are unchanged.
 */
@media (min-width: 761px) {
  .turktravel-hero .ttlpb-auto-slot,
  .turktravel-hero .ttlpb-board--overlay {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .turktravel-hero .ttlpb-board--overlay .ttlpb-board__label,
  .turktravel-hero .ttlpb-board--overlay .ttlpb-board__seo-link {
    text-shadow: none !important;
  }

  .turktravel-hero .ttlpb-board--overlay .ttlpb-board__value {
    /* Keep only the red LED glow; remove the black shadow below the digits. */
    filter: drop-shadow(0 0 5px rgba(255,31,53,.50)) !important;
  }

  .turktravel-hero .ttlpb-board--overlay .ttlpb-board__item + .ttlpb-board__item::before {
    box-shadow: none !important;
  }
}

