/* Travel by Kate 1.9T — approved tour-offer layout correction.
   Scope: runtime-only tour-offer UI. Shared header/footer/backend/data are untouched. */

.tbk19t-source-hidden { display: none !important; }

/* The right tour summary must remain in normal document flow. */
.tbk19t-info-static {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  align-self: start !important;
  height: auto !important;
  max-height: none !important;
}

/* Description belongs directly below the gallery. */
.tbk19t-story-host {
  box-sizing: border-box;
  margin: 14px 4px 0;
  min-width: 0;
  color: #334d66;
}
.tbk19t-story-text {
  margin: 0;
  color: #334d66;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.tbk19t-story-host.is-expanded .tbk19t-story-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.tbk19t-toggle {
  appearance: none;
  border: 0;
  padding: 7px 9px 5px;
  margin: 2px 0 0 5px;
  background: transparent;
  color: #ad6d00;
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  overflow: visible;
  border-radius: 8px;
}

.tbk19t-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbk19t-toggle:focus-visible { outline: 2px solid rgba(209,145,26,.48); outline-offset: 4px; border-radius: 4px; }

/* The four meaning cards live ONLY inside the gallery/description column. */
.tbk19t-story-grid {
  box-sizing: border-box;
  width: calc(100% - 8px);
  min-width: 0;
  margin: 13px 4px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  animation: tbk19t-reveal .18s ease-out;
}
.tbk19t-story-grid[hidden] { display: none !important; }
.tbk19t-story-card {
  --tbk19t-accent: #c48a18;
  box-sizing: border-box;
  min-width: 0;
  padding: 14px 15px 15px;
  border: 1px solid rgba(190,156,92,.48);
  border-top: 3px solid var(--tbk19t-accent);
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(18,43,72,.045);
}
.tbk19t-story-card--included {
  --tbk19t-accent: #558663;
  border-color: rgba(85,134,99,.36);
  border-top-color: var(--tbk19t-accent);
  background: #f6fbf7;
}
.tbk19t-story-card--excluded {
  --tbk19t-accent: #a94d4d;
  border-color: rgba(169,77,77,.32);
  border-top-color: var(--tbk19t-accent);
  background: #fff8f7;
}
.tbk19t-story-card--important {
  --tbk19t-accent: #3f678b;
  border-color: rgba(63,103,139,.30);
  border-top-color: var(--tbk19t-accent);
  background: #f7faff;
}
.tbk19t-story-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
}
.tbk19t-story-card__icon {
  display: inline-flex;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--tbk19t-accent);
  background: rgba(224,171,64,.10);
}
.tbk19t-story-card--included .tbk19t-story-card__icon { background: rgba(85,134,99,.10); }
.tbk19t-story-card--excluded .tbk19t-story-card__icon { background: rgba(169,77,77,.09); }
.tbk19t-story-card--important .tbk19t-story-card__icon { background: rgba(63,103,139,.09); }
.tbk19t-story-card__icon svg { width: 18px; height: 18px; }
.tbk19t-story-card h3 {
  margin: 0;
  color: #0e3152;
  font-family: inherit;
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.22;
}
.tbk19t-story-card p,
.tbk19t-story-card ul {
  margin: 0;
  padding: 0;
  color: #203d58;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.52;
  overflow-wrap: anywhere;
}
.tbk19t-story-card ul { list-style: none; }
.tbk19t-story-card li { position: relative; margin-top: 5px; padding-left: 15px; }
.tbk19t-story-card li:first-child { margin-top: 0; }
.tbk19t-story-card li::before {
  content: '•'; position: absolute; left: 1px; color: var(--tbk19t-accent); font-weight: 900;
}
.tbk19t-story-card--excluded li::before { content: '–'; }

/* Existing right-side fact additions remain compact. */
.tbk19t-added-hero-fact { min-width: 0; }
.tbk19t-hero-facts-grid { align-items: stretch; }

@keyframes tbk19t-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .tbk19t-story-host { margin: 10px 2px 0; }
  .tbk19t-story-text { font-size: .89rem; -webkit-line-clamp: 4; }
  .tbk19t-story-grid { width: calc(100% - 4px); grid-template-columns: 1fr; gap: 9px; margin: 10px 2px 0; }
  .tbk19t-story-card { padding: 13px 14px 14px; border-radius: 13px; }
}


/* 1.9T: explicit mobile reading order and CTA placement. */
.tbk19t-hero,
.tbk19t-gallery,
.tbk19t-info { min-width: 0; }
.tbk19t-action-group { box-sizing: border-box; }

/* 1.9T: legal consent panel inside the dynamically opened offer form. */
.tbk19t-form-legal .tbk19t-old-privacy-note { display: none !important; }
.tbk19t-legal-panel {
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 4px;
  padding: 12px 14px 11px;
  border: 1px solid rgba(200,156,74,.42);
  border-radius: 12px;
  background: #fffaf1;
}
.tbk19t-consent-row {
  display: grid !important;
  grid-template-columns: 19px minmax(0,1fr);
  align-items: start;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
  color: #173654 !important;
  font-size: .84rem !important;
  font-weight: 650 !important;
  line-height: 1.38 !important;
  cursor: pointer;
}
.tbk19t-consent-row input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin: 1px 0 0 !important;
  accent-color: #c98912;
  cursor: pointer;
}
.tbk19t-consent-copy { min-width: 0; }
.tbk19t-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 8px 0 0 28px;
  color: #8e6a28;
  font-size: .78rem;
  line-height: 1.35;
}
.tbk19t-legal-links a {
  color: #a66e06 !important;
  font-weight: 750 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}
.tbk19t-legal-links a:hover { color: #7f5100 !important; }
.tbk19t-legal-links a:focus-visible {
  outline: 2px solid rgba(201,137,18,.42);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 760px) {
  /* Information first, album second. Do not let desktop column order leak into mobile. */
  .tbk19t-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch !important;
  }
  .tbk19t-info {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    padding: 24px 18px !important;
  }
  .tbk19t-gallery {
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
  }
  .tbk19t-info h1 {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
    font-size: clamp(2.15rem, 10vw, 2.75rem) !important;
    line-height: 1.01 !important;
    overflow-wrap: anywhere;
  }
  .tbk19t-info-static { margin-bottom: 0 !important; }

  /* The CTA physically lives after the hidden/expanded story grid on mobile. */
  .tbk19t-action-group[data-tbk19t-mobile="1"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: calc(100% - 4px) !important;
    margin: 14px 2px 2px !important;
    padding: 0 !important;
  }
  .tbk19t-action-group[data-tbk19t-mobile="1"] > a,
  .tbk19t-action-group[data-tbk19t-mobile="1"] > button,
  .tbk19t-action-group[data-tbk19t-mobile="1"] [role="button"] {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    justify-content: center;
    text-align: center;
  }

  .tbk19t-story-host {
    margin: 10px 8px 0 !important;
    padding: 0 1px 0 0;
    overflow: visible !important;
  }
  .tbk19t-toggle {
    margin: 4px 0 0 4px !important;
    padding: 7px 10px 6px !important;
    font-size: .94rem !important;
    line-height: 1.2 !important;
    overflow: visible !important;
    transform: none !important;
  }
  .tbk19t-story-grid {
    width: calc(100% - 16px) !important;
    margin: 11px 8px 0 !important;
  }
  .tbk19t-story-card {
    padding: 14px 15px 15px !important;
    box-shadow: 0 8px 20px rgba(18,43,72,.06);
  }
  .tbk19t-story-card h3 { font-size: 1rem !important; }
  .tbk19t-story-card p,
  .tbk19t-story-card ul { font-size: .88rem !important; line-height: 1.5 !important; }

  .tbk19t-legal-panel { padding: 11px 12px 10px; }
  .tbk19t-legal-links { margin-left: 28px; gap: 4px 7px; }
}

/* TBK 1.9T.1: one consent component for BOTH inline and modal offer forms. */
.tbk19t1-form-legal .tbk19t1-old-privacy-note,
.tbk19t1-form-legal .tbk-privacy-note-19p,
.tbk19t1-form-legal [data-tbk-privacy-note] {
  display: none !important;
}
.tbk19t1-legal-panel {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0 6px;
  padding: 13px 14px 12px;
  border: 1px solid rgba(196,138,24,.36);
  border-left: 3px solid #c48a18;
  border-radius: 12px;
  background: #fffaf2;
  color: #183854;
}
.tbk19t1-consent-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0,1fr) !important;
  align-items: start !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #173654 !important;
  font-size: .84rem !important;
  font-weight: 650 !important;
  line-height: 1.42 !important;
  cursor: pointer !important;
}
.tbk19t1-consent-row input[type="checkbox"] {
  appearance: auto !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: #c98912;
  cursor: pointer;
}
.tbk19t1-consent-copy {
  min-width: 0;
  color: #173654;
  overflow-wrap: normal;
  word-break: normal;
}
.tbk19t1-legal-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 9px 0 0 27px;
  padding: 0;
}
.tbk19t1-legal-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: #9b6500 !important;
  font-size: .79rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  overflow-wrap: anywhere;
}
.tbk19t1-legal-links a:hover { color: #744900 !important; }
.tbk19t1-legal-links a:focus-visible {
  outline: 2px solid rgba(201,137,18,.42);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (max-width: 760px) {
  .tbk19t1-legal-panel { margin-top: 10px; padding: 12px 12px 11px; }
  .tbk19t1-consent-row { font-size: .82rem !important; }
  .tbk19t1-legal-links { margin-left: 27px; gap: 6px; }
  .tbk19t1-legal-links a { font-size: .78rem !important; }
}
