/* VTF conversion fixes, 2026-12-03: price first on mobile tours, review scores, contact pill clear of forms. */

/* 1. Tour pages on phones and tablets: show the price card straight after the title, before the photo. */
@media (max-width: 1024px) {
  body.single-tour .ra-tour-hero .ra-tour-hero__grid {
    grid-template-areas: "intro" "price" "media" !important;
  }
}

/* 2. Review scores beside each platform name. */
.ra-lp-trust__score,
.vtf-review-score {
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #59677A;
  white-space: nowrap;
}
.ra-lp-trust__platform .ra-lp-trust__score { margin-left: 2px; }
@media (max-width: 760px) {
  .ra-tour-hero .vtf-review-score { font-size: .72rem; }
}

/* 3. Phones: the collapsed Contact pill steps aside while it would cover a form. */
.ra-contact-dock { transition: opacity .15s ease, visibility .15s; }
@media (max-width: 720px) {
  .ra-contact-dock.ra-contact-dock--over-form {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ra-contact-dock { transition: none; }
}

/* ---- Design pass, 2026-12-03 (Draft) ---- */

/* 4. Prices in brand navy instead of sale red. */
:root { --ra-price-accent: #102B55; }

/* 5. Photo captions: no "Tour photograph" pills on cards; tour hero keeps a quiet place name. */
.ra-tour-card .ra-tour-image-note,
.ra-idea-card .ra-tour-image-note,
.ra-lp-card__caption,
.ra-place-tour .ra-tour-image-note { display: none !important; }
.ra-tour-hero .ra-tour-image-note.vtf-photo-place {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  backdrop-filter: none !important;
}

/* 1. Tour hero on phones: photo first, then title with price and rating, then the quote card. */
.vtf-hero-quickline { display: none; }
@media (max-width: 1024px) {
  body.single-tour .ra-tour-hero .ra-tour-hero__grid {
    grid-template-areas: "media" "intro" "price" !important;
  }
}
@media (max-width: 760px) {
  body.single-tour .ra-tour-hero { padding-top: 12px !important; }
  body.single-tour .ra-tour-hero .ra-tour-hero__grid { row-gap: 12px !important; }
  body.single-tour .ra-tour-hero__media,
  body.single-tour .ra-tour-hero__media .ra-tour-gallery { height: 200px !important; min-height: 0 !important; }
  body.single-tour .ra-tour-hero__media img { width: 100%; height: 200px !important; object-fit: cover; aspect-ratio: auto !important; }
  body.single-tour .ra-tour-hero .ra-eyebrow { display: none; }
  body.single-tour .ra-tour-hero__intro--panel { padding: 18px 18px 16px !important; }
  body.single-tour .ra-tour-hero__intro-main > .vtf-hero-quickline { grid-row: 3; grid-column: 1 / -1; }
  body.single-tour .ra-tour-hero__intro-main > .ra-tour-style-links { grid-row: 4; }
  body.single-tour .ra-tour-hero__intro-main > .ra-tour-hero__details-grid { grid-row: 5; }
  .vtf-hero-quickline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 10px;
  }
  .vtf-hero-quickline .vtf-price-row,
  .vtf-hero-quickline .vtf-money,
  .vtf-hero-quickline .vtf-money__label { display: inline !important; }
  .vtf-hero-quickline .vtf-money__label,
  .vtf-hero-quickline small { font-size: .9rem; color: #59677A; }
  .vtf-hero-quickline strong[data-vtf-amount] { font-size: 1.45rem; font-weight: 800; color: var(--ra-price-accent); }
  .vtf-hero-quickline__rating {
    flex: none;
    font-size: .9rem;
    font-weight: 700;
    color: #102B55;
    text-decoration: none;
    white-space: nowrap;
  }
  .vtf-hero-quickline__rating span[aria-hidden] { color: #00B67A; }
  .vtf-hero-quickline__rating span:last-child { font-weight: 500; color: #59677A; }
}

/* 2. Home trust row: same scores as tour pages, one tidy row on every screen. */
.vtf-trustrow {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px 40px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.vtf-trustrow__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #102B55;
  text-decoration: none;
  line-height: 1.25;
}
.vtf-trustrow__item:hover .vtf-trustrow__meta,
.vtf-trustrow__item:focus-visible .vtf-trustrow__meta { text-decoration: underline; }
.vtf-trustrow__top { display: flex; align-items: center; gap: 6px; }
.vtf-trustrow__top strong { font-size: 1.05rem; font-weight: 800; }
.vtf-trustrow__stars { font-size: .85rem; letter-spacing: 1px; }
.vtf-trustrow__stars--tp { color: #00B67A; }
.vtf-trustrow__stars--ta { color: #E8B23A; }
.vtf-trustrow__stars--g { color: #FBBC04; }
.vtf-trustrow__meta { font-size: .8rem; color: #59677A; white-space: nowrap; }
@media (max-width: 560px) {
  .vtf-trustrow { gap: 4px; justify-content: space-between; padding-left: 12px; padding-right: 12px; }
  .vtf-trustrow__item { flex: 1 1 0; min-width: 0; }
  .vtf-trustrow__stars { font-size: .7rem; letter-spacing: 0; }
  .vtf-trustrow__meta { font-size: .7rem; white-space: normal; text-align: center; }
}

/* 3. Desktop: one collapsed "Contact" pill (same as phones) instead of four stacked circles. */
@media (min-width: 721px) {
  .ra-contact-dock .ra-contact-dock__toggle[aria-expanded="false"],
  body.single-tour .ra-contact-dock .ra-contact-dock__toggle[aria-expanded="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 124px;
    min-height: 48px;
    height: 48px;
    padding: 0 18px;
    border: 2px solid #102B55;
    border-radius: 999px;
    background: #fff;
    color: #102B55;
    box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(16, 43, 85, .22);
  }
  .ra-contact-dock__toggle[aria-expanded="false"] .ra-contact-dock__toggle-ring { display: none; }
  .ra-contact-dock .ra-contact-dock__toggle[aria-expanded="false"] .ra-contact-dock__launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  body.single-tour .ra-contact-dock__launcher > span { display: inline; }
  .ra-contact-dock__toggle[aria-expanded="false"] .ra-contact-dock__launcher svg { width: 20px; height: 20px; }
  .ra-contact-dock__toggle[aria-expanded="false"] .ra-contact-dock__label { display: none; }
}

/* 3b. Header WhatsApp number on wide screens. */
.vtf-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
  color: #102B55;
  text-decoration: none;
}
.vtf-nav-phone svg { color: #25A55F; }
@media (min-width: 1025px) and (max-width: 1279px) {
  .vtf-nav-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
