/* builder.css -- the ONE trip builder (D-268 / D-269 screens 4-6 + revision 1), for every place. Every value comes from atlas-tokens.css.
   Origin: the builder rules of the approved Ireland v1 design (D-262), whose tokens ARE the Atlas tokens; nothing here is place-specific. */
html { -webkit-text-size-adjust: 100%; }
body.ie { margin: 0; background: var(--atlas-cream); color: var(--atlas-ink); font: 16px/1.5 var(--atlas-sans); }
.ie *, .ie *::before, .ie *::after { box-sizing: border-box; }
.ie a { color: var(--atlas-green); }
.ie a:hover { color: var(--atlas-green-dk); }
.ie-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ie h1, .ie h2, .ie h3 { font-family: var(--atlas-serif); font-weight: 500; color: var(--atlas-green); margin: 0; letter-spacing: -0.01em; }
.ie-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--atlas-gold-dk); }
.ie-muted { color: var(--atlas-ink2); }
.ie-head .ie-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ie-nav .ie-btn { color: #fff; }
.ie-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--atlas-green); color: #fff; font: 700 15px var(--atlas-sans); text-decoration: none; cursor: pointer; }
.ie a.ie-btn, .ie a.ie-btn:hover { color: #fff; }
.ie-btn--gold { background: var(--atlas-gold); color: var(--atlas-ink); }
.ie a.ie-btn--gold, .ie a.ie-btn--gold:hover { color: var(--atlas-ink); }
.ie-btn--ghost { background: transparent; border: 2px solid #fff; }
.ie-btn--line { background: #fff; color: var(--atlas-green); border: 1px solid var(--atlas-green); }
.ie a.ie-btn--line, .ie a.ie-btn--line:hover { color: var(--atlas-green); }
.ie-btn--red { background: var(--atlas-red); }
.ie-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ie-btn--block { display: flex; width: 100%; }
.ie-hero .ie-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ie-hero .ie-eyebrow { color: var(--atlas-gold-lt); }
.ie a.ie-chip { color: var(--atlas-ink); }
.ie a.ie-city--live { background: var(--atlas-green); color: #fff; }
.ie-foot .ie-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ie-bar .ie-wrap { display: flex; align-items: center; gap: 4px; min-height: 56px; }
.ie-note { margin: 0; font-size: 14px; color: var(--atlas-ink2); line-height: 1.5; background: var(--atlas-note); border-radius: 12px; padding: 12px 14px; }
.ie-b { max-width: 560px; margin: 0 auto; min-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.ie-b__bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 8px; background: #fff; border-bottom: 1px solid var(--atlas-line); }
.ie-b__bar button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ie-b__bar span { font-weight: 600; font-size: 15px; }
.ie-b__bar em { width: 44px; text-align: center; font-style: normal; font-size: 13px; color: var(--atlas-muted); }
.ie-b__prog { height: 4px; background: var(--atlas-line); }
.ie-b__prog i { display: block; height: 4px; background: var(--atlas-red); transition: width .2s; }
.ie-b__step { padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ie-b__step[hidden] { display: none; }
.ie-b__step h1 { font-size: 32px; line-height: 1.1; }
.ie-b__step label.ie-lab { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--atlas-muted); }
.ie-b__step input[type=search] { font: 500 16px var(--atlas-sans); padding: 14px 16px; border: 1px solid var(--atlas-line2); border-radius: 12px; background: #fff; width: 100%; }
.ie-opt { font: 600 16px var(--atlas-sans); text-align: left; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--atlas-line2); background: #fff; color: var(--atlas-ink); cursor: pointer; width: 100%; }
.ie-opt small { font-size: 13px; font-weight: 500; }
.ie-opt[aria-pressed="true"] { background: var(--atlas-green); color: #fff; border: 2px solid var(--atlas-green); }
.ie-opts2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ie-opts2 .ie-opt { justify-content: center; text-align: center; min-height: 60px; }
.ie-likes { display: flex; flex-wrap: wrap; gap: 8px; }
.ie-likes .ie-opt { width: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.ie-b__next { flex: none; padding: 12px 16px 24px; background: var(--atlas-cream); border-top: 1px solid var(--atlas-line); position: sticky; bottom: 0; z-index: 1200; }
.ie-b__map { position: relative; z-index: 0; height: 220px; border-radius: 14px; overflow: hidden; background: var(--atlas-map); }
/* RC1f (owner 20 Oct: "embedded map so compressed it is almost useless"): the step-3 map is LARGE -- phone >= 55 % of the screen and
   >= 360 px; desktop >= 520 px, side by side with the list where the window is wide enough */
#r-map.ie-b__map { height: 55vh; height: 55svh; min-height: 360px; max-height: 720px; }
@media (min-width: 1024px) {
  .ie-b:has(.ie-b__step[data-step="3"]:not([hidden])) { max-width: 1180px; }
  .ie-b__step[data-step="3"]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr); column-gap: 24px; row-gap: 12px; align-content: start; }
  .ie-b__step[data-step="3"] > * { grid-column: 2; }
  .ie-b__step[data-step="3"] > #r-map { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 76px; height: calc(100vh - 120px); min-height: 520px; max-height: none; }
  .ie-b__step[data-step="3"] .ie-rlist { max-height: 46vh; }
}
.ie-b__box { background: #fff; border: 1px solid var(--atlas-line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.ie-b__box strong { font-size: 15px; }
.ie-b__box span { font-size: 13px; color: var(--atlas-ink2); }
.ie-b__box em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--atlas-green); }
.ie-linkbtn { font: 600 14px var(--atlas-sans); background: none; border: 0; color: var(--atlas-green); text-decoration: underline; min-height: 44px; cursor: pointer; }
@media (max-width: 760px) {
  .ie-hero .ie-wrap { grid-template-columns: 1fr; gap: 0; }
  .ie-doors .ie-btn { justify-content: space-between; min-height: 56px; border-radius: 16px; font-size: 17px; padding: 0 18px; }
  .ie-doors .ie-btn--ghost { background: #fff; color: var(--atlas-green) !important; border: 0; }
  .ie-doors .ie-btn::after { content: "→"; }
}
.ie-pinnum { width: 24px; height: 24px; border-radius: 50%; background: var(--atlas-green); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); font: 800 11px/20px var(--atlas-sans); text-align: center; }
.ie-pinnum.tap { background: var(--atlas-gold-dk); }
.ie-rlist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--atlas-line); border-radius: 14px; max-height: 320px; overflow: auto; }
.ie-rlist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-top: 1px solid var(--atlas-line); }
.ie-rlist li:first-child { border-top: 0; }
.ie-rlist b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--atlas-green); color: #fff; font: 800 11px/24px var(--atlas-sans); text-align: center; }
.ie-rlist span { font-weight: 600; font-size: 14px; }
.ie-rlist small { display: block; font-weight: 500; font-size: 12px; color: var(--atlas-ink2); }
.ie-pk-map { position: relative; z-index: 0; height: min(52vh, 440px); min-height: 300px; border-radius: 14px; overflow: hidden; background: var(--atlas-map); }
.ie-pk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--atlas-line2); border-radius: 999px; overflow: hidden; background: #fff; }
.ie-pk-seg button { min-height: 48px; border: 0; background: #fff; font: 700 15px var(--atlas-sans); color: var(--atlas-ink); cursor: pointer; }
.ie-pk-seg button[aria-pressed="true"] { background: var(--atlas-green); color: #fff; }
.ie-pk-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ie-pk-tools button { min-height: 48px; border-radius: 12px; border: 1px solid var(--atlas-line2); background: #fff; font: 600 13px var(--atlas-sans); color: var(--atlas-ink); cursor: pointer; padding: 0 4px; }
.ie-pk-tools button:disabled { opacity: .45; cursor: default; }
.ie-pk-sum { margin: 0; display: grid; gap: 4px; background: #fff; border: 1px solid var(--atlas-line); border-radius: 12px; padding: 10px 12px; }
.ie-pk-sum div { display: flex; gap: 8px; font-size: 14px; }
.ie-pk-sum dt { flex: none; width: 52px; font-weight: 700; color: var(--atlas-muted); }
.ie-pk-sum dd { margin: 0; font-weight: 600; }
.ie-pk-prev { margin: 0; font-weight: 700; color: var(--atlas-green); min-height: 1.4em; }
#pk-modes .ie-opt { min-height: 48px; }
.ie-pk-searchrow { display: flex; gap: 8px; }
.ie-pk-searchrow input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--atlas-line2); border-radius: 12px; background: #fff; font: 500 16px var(--atlas-sans); }
.ie-pk-searchrow button { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--atlas-green); color: #fff; font: 700 15px var(--atlas-sans); cursor: pointer; }
.ie-pk-res { list-style: none; margin: -4px 0 0; padding: 0; background: #fff; border: 1px solid var(--atlas-line); border-radius: 12px; max-height: 300px; overflow: auto; }
.ie-pk-res[hidden] { display: none; }
.ie-pk-res li + li { border-top: 1px solid var(--atlas-line); }
.ie-pk-res button { display: block; width: 100%; min-height: 48px; padding: 8px 14px; border: 0; background: none; text-align: left; font: 600 15px var(--atlas-sans); color: var(--atlas-ink); cursor: pointer; }
.ie-pk-res button small { display: block; font-weight: 500; font-size: 12px; color: var(--atlas-ink2); }
.ie-pk-res .ie-pk-addr { color: var(--atlas-green); text-decoration: underline; }
.ie-pk-note { padding: 10px 14px; font-size: 12px; color: var(--atlas-ink2); }
.ie-pinnum.grp { border-radius: 999px; background: var(--atlas-ink); padding: 0 4px; white-space: nowrap; cursor: zoom-in; }

/* D-269 additions: the shared header (← Back · Create my own tour · 1 of 3), three-segment progress, interests, review list */
.ie-b__bar { gap: 10px; }
.ie-b__bar .atlas-backpill { display: inline-flex; align-items: center; min-height: var(--atlas-tap); padding: 0 14px 0 10px; border: 1.5px solid var(--atlas-line2); border-radius: var(--atlas-r-pill);
  background: var(--atlas-card); color: var(--atlas-green); font: 700 15px/1 var(--atlas-sans); text-decoration: none; white-space: nowrap; }
.ie-b__bar span { flex: 1; text-align: center; font-weight: 700; color: var(--atlas-green); }
.ie-b__segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 16px; margin: 6px auto 0; max-width: 720px; }
.ie-b__segs i { height: 5px; border-radius: 3px; background: var(--atlas-line); }
.ie-b__segs i.on { background: var(--atlas-green); }
.ab-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--atlas-gold-dk); margin: 0 0 4px; }
.ab-so-far { margin: 14px 0 0; padding: 12px 14px; background: var(--atlas-sand); border-radius: 12px; font-size: 14px; }
.ab-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 12px 0; background: var(--atlas-card); border: 1px solid var(--atlas-line); border-radius: var(--atlas-r-card); }
.ab-stats div { text-align: center; padding: 10px 4px; border-left: 1px solid var(--atlas-line); }
.ab-stats div:first-child { border-left: 0; }
.ab-stats b { display: block; font-family: var(--atlas-serif); font-weight: 600; font-size: 20px; color: var(--atlas-green); }
.ab-stats span { font-size: 12px; color: var(--atlas-ink2); }
.ab-rev-h { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; font-weight: 700; }
.ab-rev-h small { font-weight: 400; color: var(--atlas-ink2); font-size: 12.5px; }
.ie-rlist li .ab-x { flex: none; width: var(--atlas-tap); height: var(--atlas-tap); border-radius: 50%; border: 1.5px solid var(--atlas-line2); background: var(--atlas-card); color: var(--atlas-ink2); font: 700 16px/1 var(--atlas-sans); cursor: pointer; }
.ab-tools { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 0 14px; }
.ab-tools button { min-height: var(--atlas-tap); padding: 0; border: 0; background: none; color: var(--atlas-green); font: 700 15px var(--atlas-sans); text-decoration: underline; cursor: pointer; }
.ab-tools small { color: var(--atlas-ink2); font-size: 12.5px; }
.ab-add { margin: 0 0 12px; padding: 0; list-style: none; border: 1px solid var(--atlas-line); border-radius: 12px; background: var(--atlas-card); max-height: 320px; overflow: auto; }
.ab-add li button { display: block; width: 100%; min-height: var(--atlas-tap); padding: 8px 12px; border: 0; border-top: 1px solid var(--atlas-line); background: none; text-align: left; font: 600 15px var(--atlas-sans); color: var(--atlas-ink); cursor: pointer; }
.ab-add li:first-child button { border-top: 0; }
.ab-add li small { display: block; font-weight: 400; font-size: 12.5px; color: var(--atlas-ink2); }

/* ELI 19 Oct (P1-A): no trip = no empty map box */
.ie-b__map[hidden]{display:none!important}
#r-longer{margin-top:12px;min-height:44px}
/* ELI 19 Oct (P2): what the pins and the line on the trip map mean */
.ie-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--atlas-ink2); }
.ie-legend li { display: flex; align-items: center; gap: 6px; }
.ie-legend .ie-pinnum { position: static; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.ie-legend .ie-pinnum.grp { width: auto; min-width: 30px; }
.ie-legend__line { width: 22px; height: 0; border-top: 4px solid #B4532A; border-radius: 2px; }
#r-legend-line.dashed .ie-legend__line { border-top: 3px dashed #1F3B2D; }
.ie-b__map[hidden] + .ie-legend { display: none; }

/* OWNER PHONE TEST 19 Oct: Next on the map step looks off until a start is chosen (it still explains what to do when tapped) */
#b-next.is-off { opacity: .55; }

/* owner 20 Oct 18:05: the chosen start (and finish) as a chip above the search box, which is cleared for the next one */
.ie-pk-chip { display: inline-flex; align-self: flex-start; align-items: center; min-height: 32px; margin: 0 0 6px; padding: 4px 12px; border-radius: 999px; background: var(--atlas-green); color: #fff; font: 700 14px var(--atlas-sans); }
.ie-pk-chip[hidden] { display: none; }
