/* Scoped TripOutSide Offers UI. Inherits the child theme's CSS variables. */
.tos-offers, .tos-offers * { box-sizing: border-box; }
.tos-offers {
  --_primary: var(--tos-primary, #2563eb);
  --_border: var(--tos-border, #e3e8ef);
  --_text: var(--tos-text, #1f2937);
  --_muted: var(--tos-muted, #667085);
  --_surface: var(--tos-surface, #fff);
  width: 100%; clear: both; display: block;
  margin: 24px 0; padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--_border); border-radius: var(--tos-radius-md, 16px);
  background: var(--_surface); color: var(--_text);
  box-shadow: var(--tos-shadow-sm, 0 5px 18px rgba(15,23,42,.035));
  font-size: 15px; line-height: 1.5;
}
.tos-offers__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--_primary); }
.tos-offers .tos-offers__heading { font-size: clamp(18px,2vw,22px)!important; line-height: 1.25!important; font-weight: 750!important; margin: 6px 0!important; padding: 0!important; border: 0!important; color: var(--tos-text-strong, #111827)!important; }
.tos-offers__head p { margin: 0 0 16px!important; color: var(--_muted); font-size: 14px; }
.tos-offers__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tos-offers a.tos-offers__item, .tos-offers a.tos-offers__item:visited {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: 11px; align-items: stretch; min-width: 0;
  padding: 15px; border-radius: 12px; border: 1px solid var(--_border);
  color: var(--_text)!important; background: #fff; text-decoration: none!important;
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tos-offers a.tos-offers__item:hover, .tos-offers a.tos-offers__item:focus-visible {
  border-color: var(--_primary); box-shadow: 0 6px 20px rgba(15,23,42,.07); transform: translateY(-1px);
}
/* Service name and icon stay on the same left-aligned line. */
.tos-offers__title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; text-align: left; }
.tos-offers__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px; background: var(--tos-primary-soft, #eff6ff); color: var(--_primary); font-size: 20px; line-height: 1; }
.tos-offers__item-text { grid-column: 1; grid-row: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px; text-align: left; }
.tos-offers__item-text strong { color: var(--tos-text-strong,#111827)!important; font-size: 15px; line-height: 1.25; }
.tos-offers__item-text small { display: block; font-size: 12px; color: var(--_muted); line-height: 1.4; font-weight: 400; }
.tos-offers__cta {
  display: inline-flex; grid-column: 1; grid-row: 2;
  justify-self: stretch; align-self: end; justify-content: center; align-items: center;
  width: 100%; min-width: 0; min-height: 36px;
  gap: 5px; font-size: 13px; font-weight: 700; color: var(--_primary);
  text-align: center;
}
.tos-offers__note { padding-top: 12px; color: var(--_muted); font-size: 11px; line-height: 1.45; }
.tos-offers--compact .tos-offers__grid { grid-template-columns: minmax(0,1fr); }
.tos-offers--compact { max-width: 720px; }
@media (max-width: 640px) {
  .tos-offers { margin: 20px 0; padding: 16px; border-radius: 14px; }
  .tos-offers__grid { grid-template-columns: 1fr; gap: 9px; }
  .tos-offers a.tos-offers__item { padding: 12px; }
  .tos-offers__head p { margin-bottom: 12px!important; }
}
@media (prefers-reduced-motion: reduce) {
  .tos-offers a.tos-offers__item { transition: none; }
}

.tos-offers-preview-note { display:block; margin:15px 0 0; padding:10px 13px; background:#fff6df; border:1px solid #f0d389; border-radius:8px; color:#714600; font-size:13px; }

/* 0.1.4: server-rendered fallback container, moved near content when JS is available. */
.tos-offers-auto-fallback { display:block; width:100%; max-width:100%; clear:both; }
.tos-offers-auto-fallback > .tos-offers { width:100%; }

/* 0.1.5: a discrete advertising marker replaces the affiliate-reward footer. */
.tos-offers__adlabel { display:block; width:max-content; max-width:100%; margin-top:10px; font-size:10px; color:var(--_muted); line-height:1.35; opacity:.85; }

/* TripOutSide Offers 0.2.5 — lean universal widget. Scoped to avoid changing Tools elsewhere. */
.tos-trip-hub.tos-offers {
  --_primary: var(--tos-primary, #00866c);
  --_border: var(--tos-border, #dfe8e5);
  --_muted: var(--tos-muted, #637484);
  margin: 18px 0 26px;
  padding: clamp(15px, 2vw, 22px);
  width: 100%; max-width: 100%; min-width: 0;
  background: #fff;
  border: 1px solid var(--_border);
  border-radius: 17px;
  box-shadow: 0 4px 18px rgba(10,42,51,.035);
  container: tos-hub / inline-size;
}
.tos-trip-hub__header { margin: 0 0 15px; }
.tos-trip-hub__eyebrow { display: none; }
.tos-trip-hub.tos-offers .tos-trip-hub__heading {
  font-size: clamp(19px,2vw,24px)!important;
  line-height: 1.3!important;
  margin: 0!important; padding: 0!important;
  border: 0!important; font-weight: 750!important;
  color: var(--tos-text-strong,#122432)!important;
}
/* Commercial services: exactly 1, 2, 3 or 4 equal columns, depending on count. */
.tos-trip-hub__grid {
  display: grid; grid-template-columns: minmax(0,1fr);
  width: 100%; gap: 11px; align-items: stretch;
  min-width: 0;
}
.tos-trip-hub--count-2 .tos-trip-hub__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tos-trip-hub--count-3 .tos-trip-hub__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tos-trip-hub--count-4 .tos-trip-hub__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
/* One service spans the full width even on Atlas and pages without Live/Status. */
.tos-trip-hub--solo,
.tos-trip-hub--count-1.tos-trip-hub--solo { max-width: 100%; }
.tos-trip-hub.tos-offers a.tos-trip-hub__offer,
.tos-trip-hub.tos-offers a.tos-trip-hub__offer:visited {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: 10px; align-items: stretch;
  margin: 0; padding: 14px 15px;
  min-height: 0; height: auto; width: 100%; max-width: none; min-width: 0;
  border: 1px solid #a9d9bf; border-left: 3px solid #12966a;
  border-radius: 12px;
  background: #eef9f2;
  box-shadow: none; text-decoration: none!important;
  color: #17342b!important;
}
.tos-trip-hub--highlight.tos-offers a.tos-trip-hub__offer,
.tos-trip-hub--highlight.tos-offers a.tos-trip-hub__offer:visited {
  background: linear-gradient(125deg,#edf9f1 0%,#f6fcf8 100%);
}
.tos-trip-hub.tos-offers a.tos-trip-hub__offer:hover,
.tos-trip-hub.tos-offers a.tos-trip-hub__offer:focus-visible {
  transform: translateY(-2px);
  border-color: #08865b;
  box-shadow: 0 6px 17px rgba(6,104,74,.1);
}
.tos-trip-hub .tos-trip-hub__offer .tos-offers__icon {
  width: 27px; height: 27px; flex: 0 0 27px;
  font-size: 21px; background: transparent;
  border: none; border-radius: 0; color: #09774c;
}
.tos-trip-hub .tos-trip-hub__offer .tos-offers__item-text {
  min-width: 0; gap: 5px; align-items: stretch; text-align: left;
}
.tos-trip-hub .tos-trip-hub__offer .tos-offers__item-text strong {
  font-size: 15px!important; line-height: 1.3;
}
.tos-trip-hub .tos-trip-hub__offer .tos-offers__item-text small {
  font-size: 12px; line-height: 1.45; color: #4f7162;
}
.tos-trip-hub .tos-trip-hub__offer .tos-offers__cta {
  display: inline-flex; grid-column: 1; grid-row: 2;
  justify-self: stretch; align-self: end;
  align-items: center; justify-content: center;
  width: 100%; min-width: 0;
  min-height: 39px;
  background: #087f57; color: #fff;
  border-radius: 8px; margin: 0; padding: 9px 16px;
  font-size: 12px; line-height: 1.25; font-weight: 700;
}
/* The information row: Status and Live side by side, only one => full width. */
.tos-trip-hub__info {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: 100%; min-width: 0;
  gap: 11px; align-items: stretch;
}
.tos-trip-hub__info > .tos-trip-hub__tile:only-child { grid-column: 1 / -1; }
.tos-trip-hub__grid + .tos-trip-hub__info,
.tos-trip-hub__info + .tos-trip-hub__grid { margin-top: 12px; }
.tos-trip-hub__info > .tos-trip-hub__tile {
  width: 100%; min-width: 0; max-width: none; margin: 0;
  padding: 14px 15px 13px;
  border: 1px solid #dfe8e5;
  border-radius: 12px;
  background: #fbfcfc;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
}
.tos-trip-hub__info-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.tos-trip-hub.tos-offers .tos-trip-hub__info-heading {
  font-size: 17px!important; font-weight: 750!important;
  margin: 0!important; padding: 0!important;
  line-height: 1.25!important; color: #1b2932!important;
  border: 0!important;
}
/* Hide repeated headings only inside the combined widget. The complete
   original Tools markup and ARIA labels remain present. */
.tos-trip-hub .tos-status-board__head,
.tos-trip-hub .tripoutside-live__head { display: none!important; }
.tos-trip-hub .tos-status-board,
.tos-trip-hub .tripoutside-live {
  width: 100%; max-width: 100%; min-width: 0; height: 100%;
  padding: 0!important; margin: 0!important;
  border: 0!important; border-radius: 0!important;
  box-shadow: none!important; background: transparent!important;
}
/* Single-status kind is already written into its outer heading. */
.tos-trip-hub__tile--single-status .tos-status-card__kind { display: none; }
.tos-trip-hub .tos-status-board__list { display: grid; gap: 10px; }
.tos-trip-hub .tos-status-card {
  margin: 0;
  padding: 0 0 0 12px;
  border: none; border-left: 3px solid #11a374;
  border-radius: 0;
  box-shadow: none; background: transparent;
}
.tos-trip-hub .tos-status-card--restricted { border-left-color: #f59e0b; }
.tos-trip-hub .tos-status-card--closed { border-left-color: #ef4444; }
.tos-trip-hub .tos-status-card--warning { border-left-color: #f97316; }
.tos-trip-hub .tos-status-card--unknown { border-left-color: #9ca3af; }
.tos-trip-hub .tos-status-card__name { font-size: 15px!important; line-height: 1.4!important; }
.tos-trip-hub .tos-status-card__summary { font-size: 13px; line-height: 1.5; margin-top: 6px!important; }
.tos-trip-hub .tos-status-card__details { font-size: 12px; margin-top: 6px!important; }
.tos-trip-hub .tos-status-card__footer {
  margin-top: 9px; padding-top: 9px;
  font-size: 11px; gap: 6px 9px;
}
.tos-trip-hub .tripoutside-live__condition-icon {
  font-size: 25px; line-height: 1;
}
.tos-trip-hub .tripoutside-live__main {
  margin: 0 0 12px; gap: 12px;
}
.tos-trip-hub .tripoutside-live__temp { font-size: clamp(36px,4.5vw,50px); }
.tos-trip-hub .tripoutside-live__condition strong { font-size: 13px; }
.tos-trip-hub .tripoutside-live__condition span { font-size: 12px; }
/* Metrics become plain compact readings rather than five nested cards. */
.tos-trip-hub .tripoutside-live__grid {
  display: flex; flex-wrap: wrap; gap: 7px 14px;
}
.tos-trip-hub .tripoutside-live__item {
  display: inline-flex; flex-wrap: wrap;
  flex: 0 1 auto; align-items: baseline; gap: 5px;
  padding: 0!important; min-width: 0;
  background: none!important; border: 0; border-radius: 0;
  font-size: 12px;
}
.tos-trip-hub .tripoutside-live__item-label {
  display: inline; margin: 0; font-size: 11px; color: #657585;
}
.tos-trip-hub .tripoutside-live__item strong { font-size: 12px; }
.tos-trip-hub .tripoutside-live__source { margin-top: 12px; font-size: 10px; }
.tos-trip-hub .tripoutside-live__stale-note { margin-top: 10px; font-size: 11px; }
.tos-trip-hub .tos-offers__adlabel { font-size: 10px; margin-top: 10px; }
.tos-trip-hub__weather-notice {
  padding: 9px 11px; margin-top: 11px;
  border: 1px solid #edd2a4; border-radius: 9px;
  background: #fffaef; color: #76531a;
  font-size: 11px; line-height: 1.45;
}
/* Use the actual widget width, not the viewport, for narrow OceanWP columns. */
@container tos-hub (max-width: 860px) {
  .tos-trip-hub--count-4 .tos-trip-hub__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container tos-hub (max-width: 720px) {
  .tos-trip-hub--count-3 .tos-trip-hub__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container tos-hub (max-width: 700px) {
  .tos-trip-hub__info { grid-template-columns: minmax(0,1fr); }
  .tos-trip-hub__info > .tos-trip-hub__tile:only-child { grid-column: auto; }
}
@container tos-hub (max-width: 560px) {
  .tos-trip-hub__grid,
  .tos-trip-hub--count-2 .tos-trip-hub__grid,
  .tos-trip-hub--count-3 .tos-trip-hub__grid,
  .tos-trip-hub--count-4 .tos-trip-hub__grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 680px) {
  .tos-trip-hub.tos-offers { padding: 13px; margin: 14px 0 20px; }
  .tos-trip-hub__header { margin-bottom: 12px; }
  .tos-trip-hub__info > .tos-trip-hub__tile { padding: 12px; }
  .tos-trip-hub .tos-status-card__footer { flex-direction: column; align-items: flex-start; }
  .tos-trip-hub .tos-trip-hub__offer .tos-offers__cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tos-trip-hub.tos-offers a.tos-trip-hub__offer { transition: none; }
}

/* 0.2.7: Atlas offers span the same content width as the interactive map.
   The JS moves them outside the 920px introduction wrapper. */
.tos-atlas-single-panel > .tos-offers-auto-fallback,
.tos-atlas-single-panel > .tos-trip-hub.tos-offers {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.tos-atlas-single-panel > .tos-offers-auto-fallback > .tos-trip-hub.tos-offers {
  width: 100%;
  max-width: none;
}

/* 0.2.10 — left-aligned content, icon beside heading, full-width CTA.
   Applied consistently on camera pages, Atlas, articles and manual blocks. */
.tos-offers__title-row strong { margin: 0!important; }
.tos-trip-hub .tos-offers__title-row { gap: 7px; }
.tos-offers a.tos-offers__item .tos-offers__cta { text-align: center; }
@container tos-hub (max-width: 560px) {
  .tos-trip-hub.tos-offers a.tos-trip-hub__offer,
  .tos-trip-hub.tos-offers a.tos-trip-hub__offer:visited {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(0,1fr) auto;
    row-gap: 10px;
    padding: 13px 14px 14px;
  }
  .tos-trip-hub .tos-trip-hub__offer .tos-offers__item-text {
    grid-column: 1; grid-row: 1; width: 100%;
    align-items: stretch; text-align: left;
  }
  .tos-trip-hub .tos-trip-hub__offer .tos-offers__cta {
    grid-column: 1; grid-row: 2; justify-self: stretch;
    width: 100%; min-width: 0; margin: 0;
  }
}
