:root {
  --ptours-orange: #ff6200;
  --ptours-orange-dark: #ff4d00;
  --ptours-text: #172733;
  --ptours-muted: #6e7b85;
  --ptours-card: #ffffff;
  --ptours-shadow: 0 12px 32px rgba(25, 46, 61, 0.11);
}

html.ptours-story-open,
body.ptours-story-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#ptours-tv-stories,
#ptours-tv-stories *,
#ptours-story-viewer,
#ptours-story-viewer *,
#ptours-results-help-cta,
#ptours-results-help-cta * {
  box-sizing: border-box;
}

#ptours-tv-stories {
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  color: var(--ptours-text);
  font-family:
    Arial,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.ptours-tv-stories__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 0 2px;
}

.ptours-tv-stories__eyebrow {
  margin: 0 0 3px;
  color: var(--ptours-orange);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ptours-tv-stories__title {
  margin: 0;
  color: var(--ptours-text);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.1;
  font-weight: 800;
}

.ptours-tv-stories__swipe {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--ptours-muted);
  font-size: 11px;
}

.ptours-tv-stories__rail {
  display: flex;
  gap: 11px;
  width: 100%;
  max-width: 100%;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ptours-tv-stories__rail::-webkit-scrollbar {
  display: none;
}

.ptours-tv-story {
  flex: 0 0 84px;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ptours-text);
  text-align: center;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-appearance: none;
  appearance: none;
}

.ptours-tv-story__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 92px;
  margin: 0 auto 7px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: #f1f4f6;
  box-shadow:
    0 0 0 2px var(--ptours-orange),
    0 9px 22px rgba(25, 46, 61, 0.13);
  overflow: hidden;
}

.ptours-tv-story__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(255,255,255,.7),
      transparent 38%
    ),
    linear-gradient(
      160deg,
      rgba(255,255,255,.25),
      transparent 52%
    );
}

.ptours-tv-story__cover--hot {
  background: linear-gradient(145deg, #ff9f1a, #ff4f00);
}

.ptours-tv-story__cover--turkey {
  background: linear-gradient(145deg, #48b9d5, #1379a2);
}

.ptours-tv-story__cover--egypt {
  background: linear-gradient(145deg, #f2c776, #c97824);
}

.ptours-tv-story__cover--family {
  background: linear-gradient(145deg, #7ed4c0, #2b9b82);
}

.ptours-tv-story__cover--budget {
  background: linear-gradient(145deg, #c8b5ff, #7652c7);
}

.ptours-tv-story__cover--five {
  background: linear-gradient(145deg, #253c58, #111c2c);
}

.ptours-tv-story__emoji {
  position: relative;
  z-index: 1;
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
}

.ptours-tv-story__label {
  display: block;
  width: 100%;
  color: var(--ptours-text);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

/* STORY VIEWER */

#ptours-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .2s ease,
    visibility .2s ease;
  font-family:
    Arial,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

#ptours-story-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ptours-story-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 21, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ptours-story-viewer__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  height: min(82vh, 720px);
  min-height: 560px;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #182634;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
  transform: translateY(20px) scale(.98);
  transition: transform .24s ease;
}

#ptours-story-viewer.is-open
.ptours-story-viewer__card {
  transform: translateY(0) scale(1);
}

.ptours-story-viewer__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 75% 17%,
      rgba(255,255,255,.28),
      transparent 25%
    ),
    linear-gradient(
      160deg,
      rgba(255,255,255,.16),
      transparent 55%
    );
  pointer-events: none;
}

#ptours-story-viewer[data-theme="hot"]
.ptours-story-viewer__card {
  background: linear-gradient(145deg, #ff9f1a, #ff4f00 72%);
}

#ptours-story-viewer[data-theme="turkey"]
.ptours-story-viewer__card {
  background: linear-gradient(145deg, #43bdd9, #0f6f99 72%);
}

#ptours-story-viewer[data-theme="egypt"]
.ptours-story-viewer__card {
  background: linear-gradient(145deg, #eebf69, #a95c1b 72%);
}

#ptours-story-viewer[data-theme="family"]
.ptours-story-viewer__card {
  background: linear-gradient(145deg, #6dd3ba, #267d6e 72%);
}

#ptours-story-viewer[data-theme="budget"]
.ptours-story-viewer__card {
  background: linear-gradient(145deg, #b99fff, #6042a5 72%);
}

#ptours-story-viewer[data-theme="five"]
.ptours-story-viewer__card {
  background: linear-gradient(145deg, #314a68, #101a29 72%);
}

.ptours-story-viewer__progress {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.ptours-story-viewer__progress span {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.35);
}

.ptours-story-viewer__progress span.is-active {
  background: #fff;
}

.ptours-story-viewer__close {
  position: absolute;
  top: 28px;
  right: 14px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ptours-story-viewer__tap {
  position: absolute;
  top: 70px;
  bottom: 0;
  z-index: 5;
  width: 28%;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.ptours-story-viewer__tap--prev {
  left: 0;
}

.ptours-story-viewer__tap--next {
  right: 0;
}

.ptours-story-viewer__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 58px 30px 20px;
}

.ptours-story-viewer__emoji {
  font-size: clamp(68px, 17vw, 112px);
  line-height: 1;
  font-weight: 900;
  filter: drop-shadow(0 16px 25px rgba(0,0,0,.2));
}

.ptours-story-viewer__content {
  position: relative;
  z-index: 6;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 28px 28px;
}

.ptours-story-viewer__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ptours-story-viewer__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.ptours-story-viewer__text {
  margin: 0 0 15px;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.45;
}

.ptours-story-viewer__bullets {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.ptours-story-viewer__bullets li {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  line-height: 1.35;
}

.ptours-story-viewer__bullets li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 900;
}

.ptours-story-viewer__cta {
  position: relative;
  z-index: 8;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 13px 17px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  color: #172733;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ptours-tv-root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

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

.ptours-tv-root .ptours-tv-search-button {
  border: 0 !important;
  border-radius: 13px !important;
  background:
    linear-gradient(
      135deg,
      var(--ptours-orange) 0%,
      var(--ptours-orange-dark) 100%
    ) !important;
  color: #fff !important;
  box-shadow:
    0 8px 18px rgba(255, 86, 0, 0.24)
    !important;
  font-weight: 800 !important;
}

.ptours-tv-root .ptours-tv-search-button * {
  color: #fff !important;
  fill: #fff !important;
}

#ptours-results-help-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(255, 98, 0, 0.18);
  border-radius: 17px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 131, 40, .13),
      transparent 35%
    ),
    linear-gradient(135deg, #fff8f2 0%, #fff 100%);
  box-shadow: var(--ptours-shadow);
  color: var(--ptours-text);
  font-family:
    Arial,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.ptours-results-help__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff7a00, #ff4d00);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.ptours-results-help__content {
  min-width: 0;
}

.ptours-results-help__title {
  display: block;
  margin: 0 0 4px;
  color: var(--ptours-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.ptours-results-help__text {
  display: block;
  color: var(--ptours-muted);
  font-size: 12px;
  line-height: 1.4;
}

.ptours-results-help__button {
  min-height: 44px;
  padding: 11px 15px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7200, #ff5100);
  color: #fff;
  box-shadow: 0 7px 17px rgba(255, 86, 0, 0.2);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 640px) {
  #ptours-tv-stories {
    margin-bottom: 14px;
  }

  .ptours-tv-stories__head {
    padding-inline: 14px;
  }

  .ptours-tv-stories__rail {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ptours-tv-story {
    flex-basis: 78px;
  }

  .ptours-tv-story__cover {
    width: 70px;
    height: 86px;
    border-radius: 20px;
  }

  #ptours-story-viewer {
    align-items: stretch;
    padding: 0;
  }

  .ptours-story-viewer__card {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
  }

  .ptours-story-viewer__visual {
    min-height: 33dvh;
    padding-top: 72px;
  }

  .ptours-story-viewer__content {
    padding:
      8px
      22px
      max(24px, env(safe-area-inset-bottom));
  }

  #ptours-results-help-cta {
    grid-template-columns: auto minmax(0, 1fr);
    margin: 14px 0;
    padding: 14px;
  }

  .ptours-results-help__button {
    grid-column: 1 / -1;
    width: 100%;
  }
}