/* Axis theme: add-place page. Compact form card beside a live preview, Google-style stepper and type chips. Loaded after forms.css; tokens only. */
.ap-head{margin:8px 0 0}
.ap-head h1{margin:0;font-size:28px;font-weight:500;line-height:1.35;letter-spacing:0}
.ap-head p{margin:6px 0 0;max-width:62ch;color:var(--muted);font-size:15px;line-height:1.6}
.ap-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;margin-top:24px;align-items:start;max-width:1040px}
.ap-main{min-width:0}
@media (max-width:960px){.ap-grid{grid-template-columns:minmax(0,1fr);max-width:720px}}

/* stepper: three dots joined by a line, label beside each dot */
.ap-steps{position:relative;gap:0;margin:0 0 16px}
.ap-steps li{display:flex;align-items:center;flex:1 1 0}
.ap-steps li:not(:last-child)::after{content:"";flex:1;height:1px;margin:0 12px;background:var(--line)}
.ap-steps button{width:auto;flex:0 1 auto;padding:6px 4px;border:0;border-radius:999px;font-size:14px}
.ap-steps button[aria-current=step],.ap-steps button.done{border:0}
.ap-steps .n{flex:0 0 24px;width:24px;height:24px;font-size:12px}
.ap-steps button[aria-current=step] .t{font-weight:600}
@media (max-width:480px){.ap-steps li:not(:last-child)::after{margin:0 8px}}

/* the step card */
.ap-card{border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--bg);min-width:0}
.ap-card.fm-panel + .ap-card.fm-panel{margin-top:16px}
.fm-wz .ap-card.fm-panel + .ap-card.fm-panel{margin-top:0}
.ap-h{margin:0;font-size:20px;font-weight:500;line-height:1.4}
.ap-h:focus{outline:0}
.ap-d{margin:4px 0 20px;color:var(--muted);font-size:14px;line-height:1.6}
.ap-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.ap .fm-grid2{gap:20px 16px}
.ap .fm-input{min-height:48px;padding:11px 14px;font-size:15px}
.ap textarea.fm-input{min-height:112px}
.ap .fm-label{font-size:13px;font-weight:500;color:var(--muted);margin-bottom:6px}
.ap .fm-field.has-error > .fm-label{color:var(--red)}
@media (max-width:600px){.ap-card{padding:20px 16px;border-radius:14px}.ap-head h1{font-size:24px}}

/* actions: back on the start side, next/send on the end side */
.ap-actions{display:flex;align-items:center;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.ap-actions .btn{height:44px;padding:0 24px;border-radius:999px;font-size:15px}
.ap-actions .btn-fill{margin-inline-start:auto}
.ap-actions .btn-text{padding:0 16px}
@media (max-width:600px){.ap-actions .btn-fill{flex:1}}

/* map tools and map */
.ap-maptools{display:flex;flex-wrap:wrap;gap:8px}
.ap-maptools .btn{height:40px;padding:0 16px;border-radius:999px;font-size:14px;background:transparent;border:1px solid var(--line)}
.ap-maptools .btn:hover{background:var(--surface);box-shadow:none}
.ap-map{height:280px;border-radius:12px}

/* optional groups folded away */
.ap-more{border:1px solid var(--line);border-radius:12px;padding:0 14px}
.ap-more summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;font-size:14px;font-weight:500;color:var(--primary)}
.ap-more summary::-webkit-details-marker{display:none}
.ap-more summary svg{transition:transform .15s}
.ap-more[open] summary svg{transform:rotate(180deg)}
.ap-more[open]{padding-bottom:14px}
.ap-more summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:8px}

/* submitter (guests only) */
.ap-you{padding:16px;border-radius:12px;background:var(--surface)}
.ap-you-t{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-weight:500;font-size:14px}
.ap-you-t svg{color:var(--primary)}
.ap-you .fm-input{background:var(--bg)}

/* side: live preview and what happens next */
.ap-side{display:grid;gap:16px;position:sticky;top:84px}
.ap-prev{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--bg)}
.ap-prev-top{height:96px;display:grid;place-items:center;background:var(--soft,var(--surface));transition:background-color .2s}
.ap-prev-ic{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--bg);color:var(--c,var(--primary));box-shadow:var(--shadow)}
.ap-prev-body{display:grid;gap:4px;padding:14px 16px 16px}
.ap-prev-lbl{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.ap-prev b{font-size:17px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.ap-prev b.is-empty{color:var(--muted);font-weight:400}
.ap-prev-type{font-size:14px;color:var(--c,var(--muted))}
.ap-prev-loc{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.ap-prev-type:empty,.ap-prev-loc:empty{display:none}
.ap-how{padding:16px;border-radius:16px;background:var(--surface)}
.ap-how h2{margin:0 0 10px;font-size:15px;font-weight:500}
.ap-how ol{margin:0;padding:0;list-style:none;counter-reset:ap;display:grid;gap:10px}
.ap-how li{counter-increment:ap;display:flex;gap:10px;font-size:14px;line-height:1.55;color:var(--muted)}
.ap-how li::before{content:counter(ap);flex:0 0 22px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--bg);color:var(--text);font:500 12px "Roboto",var(--font)}
@media (max-width:960px){.ap-side{position:static}.ap-prev{display:none}}

.ap-done-card{max-width:720px;margin-top:24px;border:1px solid var(--line);border-radius:16px}

/* ===== Compass: the form is a route. The three steps are stops down a line on the start side, the part already
   travelled is drawn in copper, and the place card waits at the end of the line as the destination. ===== */
.cr-eyebrow{margin:0 0 6px;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary)}
.ap .ap-head h1{font-family:Georgia,"Noto Sans Arabic",serif;font-weight:600;font-size:32px}
.ap .ap-grid{display:block;max-width:none}
.ap .fm-wz{display:grid;grid-template-columns:250px minmax(0,1fr);grid-template-rows:auto 1fr;gap:0 28px;align-items:start}
.ap .fm-wz>input[type=hidden]{display:none}
.ap .fm-wz .cr-route{grid-column:1;grid-row:1;position:sticky;top:84px;flex-direction:column;gap:0;margin:0;padding:0}
.ap .fm-wz .fm-panel{grid-column:2;grid-row:1/span 2}
.ap .fm-wz .cr-dest{grid-column:1;grid-row:2;position:static;margin-top:8px}
.cr-route li{position:relative;display:block;flex:none;padding-bottom:34px}
.cr-route li:not(:last-child)::after{content:"";position:absolute;inset-inline-start:15px;top:34px;bottom:2px;width:3px;height:auto;margin:0;background:repeating-linear-gradient(180deg,var(--line) 0 6px,transparent 6px 11px);flex:none}
.cr-route li:has(button.done)::after{background:var(--primary)}
.cr-route li:last-child{padding-bottom:0}
.cr-route button{display:flex;align-items:center;gap:12px;width:100%;padding:0;border:0;background:transparent;color:var(--muted);font:500 15px var(--font);text-align:start;cursor:pointer;border-radius:6px}
.cr-route .n{flex:0 0 33px;width:33px;height:33px;border-radius:50%;border:3px solid var(--line);background:var(--bg);color:var(--muted);font:700 14px/1 Georgia,"Noto Sans Arabic",serif;box-sizing:border-box}
.cr-route button[aria-current=step]{color:var(--text)}
.cr-route button[aria-current=step] .n{border-color:var(--primary);background:var(--primary);color:var(--on-primary)}
.cr-route button.done .n{border-color:var(--primary);background:var(--bg);color:var(--primary)}
.cr-route button.done .n svg{display:block}
.cr-route .t{white-space:normal}
.cr-route button:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.ap .ap-card{border-radius:6px}
.ap .ap-h{font-family:Georgia,"Noto Sans Arabic",serif;font-weight:600;font-size:22px}
.ap .ap-actions .btn,.ap .ap-maptools .btn,.ap .ap-more{border-radius:6px}
.ap .ap-map{border-radius:6px}
/* destination: the preview card hangs from the end of the route with a pin */
.cr-dest .ap-prev{position:relative;border-radius:6px;border-style:dashed}
.cr-dest .ap-prev-top{height:64px;background:var(--soft,var(--surface-2))}
.cr-dest .ap-prev-ic{border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:none;border:2px solid var(--c,var(--primary))}
.cr-dest .ap-prev-ic svg{transform:rotate(45deg)}
.cr-dest .ap-how{border-radius:6px;background:transparent;border:1px solid var(--line)}
.cr-dest .ap-how h2{font-family:Georgia,"Noto Sans Arabic",serif;font-weight:600}
.cr-dest .ap-how li::before{border-radius:4px;background:var(--surface-2)}
@media (max-width:860px){
  .ap .fm-wz{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .ap .fm-wz .cr-route{position:static;grid-row:auto;flex-direction:row;margin-bottom:18px}
  .ap .fm-wz .fm-panel{grid-column:1;grid-row:auto}
  .ap .fm-wz .cr-dest{grid-column:1;grid-row:auto;margin-top:16px}
  .cr-route li{flex:1 1 0;padding-bottom:0}
  .cr-route li:not(:last-child)::after{top:15px;bottom:auto;inset-inline-start:40px;inset-inline-end:6px;width:auto;height:3px;background:repeating-linear-gradient(90deg,var(--line) 0 6px,transparent 6px 11px)}
  .cr-route li:has(button.done)::after{background:var(--primary)}
  .cr-route button{flex-direction:column;align-items:flex-start;gap:6px;font-size:13px}
  .cr-dest .ap-prev{display:none}
}
