/* IslandTravelAtlas whole-trip comparison preview v1 */

.ita-compare-page {
  --ita-ink: #132f32;
  --ita-muted: #5e7072;
  --ita-line: #dbe5e2;
  --ita-soft: #f3f8f6;
  --ita-accent: #17695e;
  --ita-accent-dark: #0f4f47;
  --ita-sand: #f7f2e8;
  background: #fff;
  color: var(--ita-ink);
}

.ita-compare-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.ita-compare-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 88% 12%, rgba(40,145,125,.16), transparent 30%),
    linear-gradient(180deg, #f5faf8 0%, #fff 100%);
}

.ita-compare-eyebrow {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ita-accent);
}

.ita-compare-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.ita-compare-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ita-muted);
  font-size: clamp(1.04rem, 1.6vw, 1.23rem);
  line-height: 1.7;
}

.ita-compare-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.ita-compare-principles span {
  padding: 8px 12px;
  border: 1px solid var(--ita-line);
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  font-size: .86rem;
  font-weight: 700;
}

.ita-compare-builder {
  padding: 34px 0 56px;
}

.ita-planner-card {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--ita-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17,55,52,.08);
}

.ita-planner-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.ita-planner-head h2,
.ita-results-head h2,
.ita-provider-section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing: -.025em;
}

.ita-planner-head p,
.ita-results-head p {
  margin: 7px 0 0;
  color: var(--ita-muted);
}

.ita-prototype-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--ita-sand);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ita-planner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ita-field {
  display: grid;
  gap: 7px;
}

.ita-field label {
  font-size: .8rem;
  font-weight: 800;
}

.ita-field input,
.ita-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbd8d5;
  border-radius: 11px;
  background: #fff;
  color: var(--ita-ink);
  font: inherit;
}

.ita-preferences {
  margin-top: 22px;
}

.ita-preferences > p {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 800;
}

.ita-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ita-chip {
  position: relative;
}

.ita-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ita-chip span {
  display: block;
  padding: 9px 13px;
  border: 1px solid var(--ita-line);
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  font-size: .87rem;
  font-weight: 700;
  transition: .15s ease;
}

.ita-chip input:checked + span {
  border-color: var(--ita-accent);
  background: #eaf6f2;
  color: var(--ita-accent-dark);
}

.ita-planner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.ita-compare-submit {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: var(--ita-accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ita-planner-note {
  color: var(--ita-muted);
  font-size: .8rem;
}

.ita-results {
  padding: 12px 0 64px;
}

.ita-results-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.ita-score-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ita-score-legend span {
  padding: 7px 10px;
  background: var(--ita-soft);
  border-radius: 8px;
  font-size: .77rem;
  font-weight: 700;
}

.ita-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ita-trip-card {
  overflow: hidden;
  border: 1px solid var(--ita-line);
  border-radius: 20px;
  background: #fff;
}

.ita-trip-card:first-child {
  border-color: #8abbb0;
  box-shadow: 0 20px 50px rgba(22,105,94,.12);
}

.ita-trip-top {
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #f1f8f5, #fff);
}

.ita-rank {
  margin-bottom: 8px;
  color: var(--ita-accent);
  font-size: .73rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.ita-trip-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.ita-trip-meta {
  margin: 7px 0 0;
  color: var(--ita-muted);
  font-size: .9rem;
}

.ita-score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ita-line);
  border-bottom: 1px solid var(--ita-line);
}

.ita-score {
  padding: 14px 10px;
  text-align: center;
}

.ita-score + .ita-score {
  border-left: 1px solid var(--ita-line);
}

.ita-score strong {
  display: block;
  font-size: 1.28rem;
}

.ita-score span {
  color: var(--ita-muted);
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ita-cost {
  padding: 18px 22px;
}

.ita-cost-label {
  color: var(--ita-muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.ita-cost-value {
  margin-top: 2px;
  font-size: 1.65rem;
  font-weight: 900;
}

.ita-cost-note {
  margin-top: 4px;
  color: var(--ita-muted);
  font-size: .76rem;
}

.ita-component-list {
  margin: 0;
  padding: 0 22px 19px;
  list-style: none;
}

.ita-component-list li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 0;
  border-bottom: 1px dashed #e2e9e7;
  font-size: .84rem;
}

.ita-trip-why {
  padding: 17px 22px;
  background: var(--ita-soft);
}

.ita-trip-why strong {
  display: block;
  margin-bottom: 5px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ita-trip-why p {
  margin: 0;
  color: var(--ita-muted);
  font-size: .84rem;
  line-height: 1.55;
}

.ita-trip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 18px 22px 22px;
}

.ita-trip-actions a,
.ita-stay-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
}

.ita-trip-actions a {
  background: var(--ita-accent);
  color: #fff;
}

.ita-stay-slot {
  border: 1px dashed #9db5b0;
  color: var(--ita-muted);
  background: #fff;
}

.ita-provider-section {
  padding: 56px 0 76px;
  background: #f5f8f7;
}

.ita-provider-intro {
  max-width: 750px;
  color: var(--ita-muted);
  line-height: 1.7;
}

.ita-provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.ita-provider-card {
  padding: 20px;
  border: 1px solid var(--ita-line);
  border-radius: 15px;
  background: #fff;
}

.ita-provider-type {
  color: var(--ita-accent);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ita-provider-card h3 {
  margin: 7px 0;
  font-size: 1.08rem;
}

.ita-provider-card p {
  margin: 0;
  color: var(--ita-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.ita-method {
  padding: 60px 0;
}

.ita-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ita-method-card {
  padding: 24px;
  border: 1px solid var(--ita-line);
  border-radius: 17px;
}

.ita-method-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.1rem;
}

.ita-method-card p {
  margin: 0;
  color: var(--ita-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .ita-planner-grid,
  .ita-provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ita-result-grid,
  .ita-method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ita-compare-hero {
    padding-top: 48px;
  }

  .ita-planner-grid,
  .ita-provider-grid {
    grid-template-columns: 1fr;
  }

  .ita-planner-head,
  .ita-results-head {
    display: block;
  }

  .ita-prototype-badge,
  .ita-score-legend {
    margin-top: 14px;
  }

  .ita-planner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ita-compare-submit {
    width: 100%;
  }
}

/* ==========================================================
   IslandTravelAtlas whole-trip comparison preview v2
   ========================================================== */

.ita-trip-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.ita-trip-heading {
  min-width: 0;
}

.ita-overall-score {
  min-width: 76px;
  padding: 10px 9px;
  border: 1px solid #b8d6ce;
  border-radius: 13px;
  background: #fff;
  text-align: center;
}

.ita-overall-score strong {
  display: block;
  color: var(--ita-accent-dark);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.ita-overall-score span {
  display: block;
  margin-top: 5px;
  color: var(--ita-muted);
  font-size: .61rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.ita-trip-card:first-child .ita-overall-score {
  border-color: var(--ita-accent);
  background: #eaf6f2;
}

.ita-component-list li {
  align-items: center;
}

.ita-component-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ita-component-main em {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1f4f3;
  color: #6b7d7b;
  font-size: .55rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.ita-trip-actions {
  display: block;
  padding: 16px 22px 22px;
}

.ita-build-trip {
  width: 100%;
}

.ita-build-trip summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--ita-accent);
  color: #fff !important;
  cursor: pointer;
  list-style: none;
}

.ita-build-trip summary::-webkit-details-marker {
  display: none;
}

.ita-build-trip summary span {
  color: #fff !important;
  font-size: .87rem;
  font-weight: 900;
}

.ita-build-trip summary small {
  color: rgba(255,255,255,.78) !important;
  font-size: .67rem;
  font-weight: 600;
}

.ita-build-trip summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
}

.ita-build-trip[open] summary::after {
  content: "−";
}

.ita-build-steps {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.ita-build-step,
.ita-build-step:visited {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px !important;
  padding: 9px 10px !important;
  border: 1px solid var(--ita-line);
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ita-ink) !important;
  text-decoration: none !important;
}

a.ita-build-step:hover {
  border-color: #9fc9bf;
  background: #f5faf8 !important;
}

.ita-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f4f0;
  color: var(--ita-accent-dark) !important;
  font-size: .72rem;
  font-weight: 900;
}

.ita-step-copy {
  display: block;
  min-width: 0;
}

.ita-step-copy strong {
  display: block;
  color: var(--ita-ink) !important;
  font-size: .77rem;
  line-height: 1.25;
}

.ita-step-copy small {
  display: block;
  margin-top: 2px;
  color: var(--ita-muted) !important;
  font-size: .65rem;
  line-height: 1.35;
}

.ita-build-step-pending {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  border-style: dashed;
  background: #fafcfb !important;
}

.ita-coming-next {
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--ita-sand);
  color: #705d38;
  font-size: .53rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ita-trip-actions > a {
  color: #fff !important;
}

@media (max-width: 620px) {
  .ita-trip-top {
    grid-template-columns: 1fr;
  }

  .ita-overall-score {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
  }

  .ita-overall-score span {
    margin-top: 0;
  }

  .ita-build-trip summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ita-build-trip summary::after {
    position: absolute;
    right: 14px;
  }
}

/* ==========================================================
   Expedia Group stays integration
   ========================================================== */

.ita-expedia-section {
  padding: 66px 0;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f8f7 100%
    );
  scroll-margin-top: 90px;
}

.ita-expedia-layout {
  display: grid;
  grid-template-columns:
    minmax(0, .78fr)
    minmax(375px, 1.22fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.ita-expedia-copy h2 {
  max-width: 560px;
  margin: 0;
  color: var(--ita-ink);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ita-expedia-copy > p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--ita-muted);
  line-height: 1.7;
}

.ita-expedia-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  color: var(--ita-muted);
  font-size: .78rem;
}

.ita-expedia-status strong {
  color: var(--ita-ink);
}

.ita-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #198754;
  box-shadow: 0 0 0 4px rgba(25,135,84,.10);
}

.ita-expedia-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ita-expedia-points li {
  position: relative;
  padding-left: 17px;
  color: var(--ita-ink);
  font-size: .82rem;
  font-weight: 700;
}

.ita-expedia-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ita-accent);
  font-weight: 900;
}

.ita-expedia-disclosure {
  max-width: 550px !important;
  padding-top: 17px;
  border-top: 1px solid var(--ita-line);
  font-size: .72rem;
}

.ita-expedia-widget-card {
  padding: 18px;
  border: 1px solid var(--ita-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17,55,52,.08);
}

.ita-expedia-widget-label {
  margin-bottom: 11px;
  color: var(--ita-ink);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .075em;
}

.ita-expedia-widget-wrap {
  width: 100%;
  max-width: 575px;
  min-height: 170px;
  margin: 0 auto;
}

.ita-build-step-stays {
  grid-template-columns:
    28px minmax(0,1fr) auto !important;
}

.ita-live-partner {
  padding: 4px 6px;
  border-radius: 999px;
  background: #e7f5ee;
  color: #176243 !important;
  font-size: .53rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ita-stay-action,
.ita-stay-action:visited {
  background: #fff !important;
  border: 1px solid var(--ita-accent) !important;
  color: var(--ita-accent-dark) !important;
}

.ita-stay-action:hover {
  background: #edf7f4 !important;
}

@media (max-width: 900px) {
  .ita-expedia-layout {
    grid-template-columns: 1fr;
  }

  .ita-expedia-copy {
    max-width: 650px;
  }
}

@media (max-width: 620px) {
  .ita-expedia-section {
    padding: 48px 0;
  }

  .ita-expedia-points {
    grid-template-columns: 1fr;
  }

  .ita-expedia-widget-card {
    padding: 12px;
  }

  .ita-build-step-stays {
    grid-template-columns:
      28px minmax(0,1fr) !important;
  }

  .ita-live-partner {
    grid-column: 2;
    width: fit-content;
  }
}

/* ==========================================================
   Trip Intelligence Layer v1
   ========================================================== */

.ita-route-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ita-route-signals span {
  padding: 5px 7px;
  border: 1px solid #d5e2df;
  border-radius: 999px;
  background: #fff;
  color: #536765;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.2;
}

.ita-trip-why .ita-route-signals {
  margin-bottom: 1px;
}

/* ==========================================================
   Trip State + flight prefill v1
   ========================================================== */

.ita-component-route {
  display: block;
  margin-top: 2px;
  color: var(--ita-muted);
  font-size: .61rem;
  font-weight: 700;
}

.ita-build-step-flight {
  grid-template-columns:
    28px minmax(0, 1fr) auto !important;
}

.ita-build-step-flight .ita-step-copy small {
  max-width: 260px;
}

@media (max-width: 620px) {
  .ita-build-step-flight {
    grid-template-columns:
      28px minmax(0, 1fr) !important;
  }

  .ita-build-step-flight .ita-live-partner {
    grid-column: 2;
    width: fit-content;
  }
}

/* ==========================================================
   Expedia selected-trip context v1
   ========================================================== */

.ita-stay-context {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #cfe0dc;
  border-radius: 13px;
  background:
    linear-gradient(
      135deg,
      #f2f8f5 0%,
      #ffffff 100%
    );
}

.ita-stay-context[hidden] {
  display: none !important;
}

.ita-stay-context-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ita-stay-context-eyebrow {
  color: var(--ita-accent);
  font-size: .63rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.ita-stay-context-destination {
  display: block;
  color: var(--ita-ink);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.ita-stay-context-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  color: var(--ita-muted);
  font-size: .72rem;
}

.ita-stay-context-details strong {
  color: var(--ita-ink);
}

.ita-stay-context-route {
  width: fit-content;
  margin-top: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f4f0;
  color: var(--ita-accent-dark);
  font-size: .68rem;
  font-weight: 800;
}

.ita-stay-context p {
  margin: 11px 0 0;
  color: var(--ita-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.ita-build-step-stays:hover {
  border-color: #8fc3b6 !important;
}

@media (max-width: 620px) {
  .ita-stay-context-head {
    align-items: flex-start;
  }

  .ita-stay-context-details {
    display: grid;
    gap: 4px;
  }
}

/* ==========================================================
   True Trip Cost v2
   ========================================================== */

.ita-provenance {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: .53rem !important;
  font-style: normal;
  font-weight: 900 !important;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ita-provenance-live-search {
  border: 1px solid #acd4c2;
  background: #e7f5ee !important;
  color: #176243 !important;
}

.ita-provenance-estimate {
  border: 1px solid #dce4e2;
  background: #f3f5f4 !important;
  color: #677876 !important;
}

.ita-provenance-recent {
  border: 1px solid #cbd8ea;
  background: #edf3fa !important;
  color: #3e5f83 !important;
}

.ita-provenance-verified {
  border: 1px solid #b8d6ce;
  background: #e8f4f0 !important;
  color: #0f4f47 !important;
}

.ita-component-value {
  flex: 0 0 auto;
  text-align: right;
}

.ita-component-value small {
  display: block;
  margin-top: 2px;
  color: var(--ita-muted);
  font-size: .56rem;
  font-weight: 600;
  white-space: nowrap;
}

.ita-cost-evidence {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--ita-line);
}

.ita-cost-evidence > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ita-muted);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.ita-cost-evidence > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ita-cost-evidence span {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: .57rem;
  font-weight: 800;
}

.ita-evidence-live {
  background: #e7f5ee;
  color: #176243;
}

.ita-evidence-estimate {
  background: #f1f4f3;
  color: #647573;
}

.ita-evidence-recent {
  background: #edf3fa;
  color: #3e5f83;
}

.ita-evidence-verified {
  background: #e8f4f0;
  color: #0f4f47;
}

@media (max-width: 620px) {
  .ita-component-list li {
    align-items: flex-start;
  }

  .ita-component-value {
    min-width: 82px;
  }
}

/* ITA_COMPARISON_UX_V3_START */

/* ==========================================================
   IslandTravelAtlas Comparison UX v3
   Presentation hierarchy only
   ========================================================== */

/*
 * Fix the large blank-space problem created when
 * one card has Build This Trip expanded.
 */
.ita-ux-results-grid {
  align-items: start !important;
}

.ita-ux-result-card {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

/*
 * Winner hierarchy.
 */
.ita-ux-result-card {
  position: relative;
  transition:
    box-shadow .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.ita-ux-winner {
  border-color: #78bbaa !important;
  box-shadow:
    0 16px 38px
    rgba(17, 82, 72, .12) !important;
}

.ita-ux-winner::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: #137565;
}

/*
 * Overall Match becomes the strongest numerical
 * signal in the card.
 */
.ita-ux-overall-box {
  min-width: 62px !important;
  padding: 8px 9px !important;
  border: 1px solid #176f62 !important;
  border-radius: 10px !important;
  background: #137565 !important;
  color: #fff !important;
  box-shadow:
    0 6px 15px
    rgba(17, 91, 79, .12);
}

.ita-ux-overall-box,
.ita-ux-overall-box * {
  color: #fff !important;
}

.ita-ux-overall-box > :first-child {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.ita-ux-overall-box > :last-child {
  opacity: .86;
  font-size: .48rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/*
 * TripFit / RouteFit / CostFit become supporting
 * evidence rather than competing headline scores.
 */
.ita-ux-support-score {
  box-shadow: none !important;
}

.ita-ux-support-score > :first-child {
  font-size: .92rem !important;
}

.ita-ux-support-score > :last-child {
  font-size: .48rem !important;
  opacity: .72;
}

/*
 * True Trip Cost:
 * keep headline range + evidence visible,
 * collapse the detailed six-component table.
 */
.ita-cost-details {
  margin-top: 11px;
  border-top: 1px solid var(--ita-line);
  border-bottom: 1px solid var(--ita-line);
}

.ita-cost-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 1px;
  cursor: pointer;
  list-style: none;
  color: var(--ita-accent-dark);
  font-size: .68rem;
  font-weight: 900;
}

.ita-cost-details > summary::-webkit-details-marker {
  display: none;
}

.ita-cost-details > summary::after {
  content: "↓";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf6f3;
  color: var(--ita-accent-dark);
  font-size: .72rem;
  transition: transform .16s ease;
}

.ita-cost-details[open] > summary::after {
  transform: rotate(180deg);
}

.ita-cost-details-count {
  margin-left: auto;
  color: var(--ita-muted);
  font-size: .53rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ita-cost-details .ita-component-list {
  margin-top: 0 !important;
  padding-top: 4px;
  padding-bottom: 9px;
}

/*
 * Cost Evidence remains visible because it answers
 * the more important question: how trustworthy are
 * the current numbers?
 */
.ita-cost-evidence {
  margin-top: 10px !important;
}

/*
 * Why it ranks here:
 * retain editorial reasoning but prevent it from
 * taking over the comparison card.
 */
.ita-ux-trip-why {
  padding-top: 12px !important;
}

.ita-ux-trip-why > p {
  display: -webkit-box;
  margin-bottom: 8px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.48 !important;
}

.ita-ux-trip-why .ita-route-signals {
  gap: 5px !important;
  margin-top: 7px !important;
}

.ita-ux-trip-why .ita-route-signals span {
  padding: 4px 6px !important;
  font-size: .53rem !important;
}

/*
 * Build This Trip should scan like a checkout plan,
 * not another block of editorial copy.
 */
.ita-ux-build-trip {
  margin-top: 12px !important;
}

.ita-ux-build-trip > summary {
  min-height: 46px;
}

.ita-ux-build-trip .ita-build-step {
  min-height: 43px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.ita-ux-build-trip
.ita-build-step
.ita-step-copy
small {
  display: none !important;
}

.ita-ux-build-trip
.ita-build-step
.ita-step-copy
strong {
  font-size: .69rem !important;
  line-height: 1.25;
}

.ita-ux-build-trip
.ita-step-number {
  width: 24px !important;
  height: 24px !important;
  font-size: .61rem !important;
}

.ita-ux-build-trip
.ita-live-partner,
.ita-ux-build-trip
.ita-route-aware {
  white-space: nowrap;
}

/*
 * Alternatives do not need to visually compete
 * with the selected winner.
 */
.ita-ux-alternative {
  box-shadow:
    0 6px 18px
    rgba(27, 61, 57, .045) !important;
}

/*
 * Keep cards comfortably readable without allowing
 * secondary metadata to dominate.
 */
.ita-ux-result-card .ita-cost-note {
  line-height: 1.45 !important;
}

/*
 * Mobile: all hierarchy changes remain, but avoid
 * oversized badges and labels.
 */
@media (max-width: 760px) {
  .ita-ux-overall-box {
    min-width: 56px !important;
  }

  .ita-cost-details-count {
    display: none;
  }

  .ita-ux-build-trip
  .ita-live-partner,
  .ita-ux-build-trip
  .ita-route-aware {
    font-size: .49rem !important;
  }
}

/* ITA_COMPARISON_UX_V3_END */
