/* AstroCEO - AstroMap (src/astromap-view.js): the My Universe section and the free /astromap/ page. Loaded lazily.
   Logical properties for Arabic (right to left); the map canvas itself stays left to right. */
.am { display: grid; gap: 12px; min-width: 0 }
.am * { box-sizing: border-box }
.am h3 { font-size: 1rem; margin: 0 0 6px }
.am p { margin: 0 0 6px; line-height: 1.55; overflow-wrap: anywhere }
.am-note { font-size: .86rem; color: var(--faint, #8f94ad) }
.am-msg[data-am-notime] { border-radius: 18px; padding: 14px 16px; background: rgba(224, 177, 90, .1); border: 1px solid rgba(224, 177, 90, .35) }
.am-btn { display: inline-block; margin-top: 6px }
.am-acc { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .9rem }
.am-acc select { font: inherit; font-size: .9rem; color: var(--fg, #fff); background: rgba(8, 10, 28, .5); border: 1px solid var(--line, rgba(255, 255, 255, .18)); border-radius: 10px; padding: 7px 10px; max-width: 100%; color-scheme: dark }
.am-legend { display: flex; flex-wrap: wrap; gap: 6px }
.am-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .8rem; color: var(--fg, #fff); background: rgba(255, 255, 255, .07); border: 1px solid transparent; border-radius: 999px; padding: 5px 10px; cursor: pointer; min-height: 32px }
.am-chip i, .am-row i, .am-col li i { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block }
.am-chip[aria-pressed="false"] { opacity: .45; text-decoration: line-through }
.am-chip:focus-visible, .am-zoom button:focus-visible, .am-canvas:focus-visible { outline: 2px solid var(--mo-a, #E0B15A); outline-offset: 2px }
.am-mapbox { position: relative; border-radius: 18px; overflow: hidden; min-height: 280px; background: var(--am-sea); --am-sea: #0b1130; --am-land: #2a3263; --am-grid: rgba(255, 255, 255, .08); --am-ink: #ffffff; --am-halo: rgba(7, 10, 24, .88); border: 1px solid var(--line, rgba(255, 255, 255, .14)) }
html.day .am-mapbox { --am-sea: #eef2fa; --am-land: #c5cfe3; --am-grid: rgba(23, 27, 43, .1); --am-ink: #171B2B; --am-halo: rgba(255, 255, 255, .9) }
.am-canvas { display: block; width: 100%; height: 280px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none }
.am-canvas:active { cursor: grabbing }
.am-zoom { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; display: grid; gap: 6px; right: 8px }
.am-zoom button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 10, 28, .78); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer }
.am-wait { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; margin: 0; padding: 12px; color: #c9cde0 }
.am-key { display: flex; flex-wrap: wrap; gap: 4px 18px }
.am-key span::before { content: ""; display: inline-block; width: 26px; margin-inline-end: 7px; vertical-align: middle; border-top: 2px solid currentColor }
.am-key .am-dash::before { border-top-style: dashed }
.am-hint:empty { display: none }
.am-info:empty { display: none }
.am-info, .am-card, .am-cmp { border-radius: 18px; padding: 14px; background: rgba(8, 10, 28, .42); min-width: 0 }
html.day .am-info, html.day .am-card, html.day .am-cmp { background: rgba(23, 27, 43, .05) }
.am-cmp:empty { display: none }
.am-near { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px }
.am-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px }
.am-km { font-size: .82rem; color: var(--muted, #b9bdd3) }
.am-one, .am-full { font-size: .92rem }
.am-pro { font-size: .86rem; color: var(--muted, #b9bdd3) }
.am-disc { font-size: .78rem; color: var(--faint, #8f94ad); margin: 6px 0 0 }
.am-search { position: relative; display: grid; gap: 6px }
.am-search label { font-size: .86rem; font-weight: 600 }
.am-search input { width: 100%; font: inherit; font-size: 16px; color: var(--fg, #fff); background: rgba(8, 10, 28, .5); border: 1px solid var(--line, rgba(255, 255, 255, .18)); border-radius: 12px; padding: 11px 13px; color-scheme: dark }
html.day .am-search input, html.day .am-acc select { background: #fff; color-scheme: light }
.am-results { list-style: none; margin: 0; padding: 4px; border-radius: 12px; border: 1px solid var(--line, rgba(255, 255, 255, .18)); background: var(--surface, #141830); max-height: 280px; overflow: auto }
.am-results button { display: block; width: 100%; text-align: start; font: inherit; font-size: .92rem; color: var(--fg, #fff); background: none; border: 0; border-radius: 8px; padding: 10px; cursor: pointer }
.am-results button:hover, .am-results button:focus-visible { background: rgba(var(--mo-rgb, 224, 177, 90), .16) }
.am-picked { display: flex; flex-wrap: wrap; gap: 6px } .am-picked:empty { display: none }
.am-pick { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 4px 6px 4px 6px; background: rgba(255, 255, 255, .09); font-size: .86rem }
.am-pick b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-content: center; font-size: .72rem; background: var(--fg, #fff); color: var(--bg, #070A18) }
.am-pick button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: inherit; font-size: 1rem; line-height: 1; cursor: pointer }
.am-cities { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) } .am-cities:empty { display: none }
.am-cities > .am-note { grid-column: 1 / -1 }
.am-cols { display: grid; gap: 10px; grid-template-columns: repeat(var(--am-n, 2), minmax(0, 1fr)) }
.am-col { border-radius: 14px; padding: 10px; background: rgba(255, 255, 255, .05); min-width: 0 }
.am-col h4 { margin: 0 0 6px; font-size: .95rem; overflow-wrap: anywhere }
.am-col ul { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 5px; font-size: .84rem }
.am-col li { display: flex; gap: 6px; align-items: baseline; overflow-wrap: anywhere }
.am-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: 10px }
.am-table th, .am-table td { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .12)) }
.am-askbox:empty, .am-tail:empty { display: none }
@media (max-width: 599px) { .am-cols { grid-template-columns: 1fr } .am-table th, .am-table td { padding: 6px 4px } }
/* the free calculator page (/astromap/) */
.amp-form .tc-row { align-items: end }
/* the tick box itself is styled in tools.css (.tc-form input[type=checkbox]) */
.amp-out { margin-top: 18px } .amp-out[hidden] { display: none }
.amp-out .am-results { background: #121833 }
