/* FRIENDS' MAPS — shared community sections and the map editor. */
.map-community { padding: 4rem 0; }
.map-community h2 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
.map-community .eyebrow { color: var(--world-visited); }
.map-create-panel { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: end; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--world-border); border-radius: .75rem; background: var(--world-ocean); }
.map-create-panel p:last-child, .map-community-intro { max-width: 44rem; line-height: 1.65; }
.map-create-panel .button { justify-self: end; background: var(--world-visited); color: var(--world-ocean); text-align: center; }
.map-guarantee { max-width: 44rem; margin-top: 1.5rem; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--world-visited, var(--map-accent, #8df0c8)); }
.map-guarantee p { margin: 0; line-height: 1.65; }
.map-guarantee p + p { margin-top: .5rem; }
.friend-map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.friend-map-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid var(--world-border); border-radius: .5rem; background: var(--world-ocean); text-decoration: none; overflow-wrap: anywhere; }
.friend-map-card h3 { margin: 0; font-size: 1.5rem; }
.friend-map-card p { margin: 0; line-height: 1.6; }
.friend-map-card strong { color: var(--world-visited); }
.friend-map-card .friend-map-action { margin-top: auto; font-weight: 700; }
.friend-map-card:hover { border-color: var(--world-visited); }
.friend-empty { grid-column: 1 / -1; padding: 1.5rem; border: 1px dashed var(--world-border); border-radius: .5rem; line-height: 1.6; }
.map-directory-more { display: block; margin-top: 1.5rem; }
.maps-page { --map-accent: #8df0c8; --map-panel: #0b1827; --map-border: #344454; }
.map-page-intro { padding: 4rem 0 2rem; }
.map-page-intro .eyebrow { color: var(--map-accent); }
.map-page-intro h1 { max-width: 16ch; overflow-wrap: anywhere; font-size: clamp(2.7rem, 7.5vw, 6rem); line-height: 1; letter-spacing: -.055em; }
.map-page-intro .intro { max-width: 48rem; }
.map-owner-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0 1.5rem; }
.map-owner-tools ul { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding-left: 1.2rem; }
.map-owner-tools a { font-weight: 700; }
.map-editor { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--map-border); background: var(--map-panel); border-radius: .75rem; }
.map-profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.map-editor label:not(.map-choice), .map-link-row > label { display: block; font-weight: 700; margin-bottom: .5rem; }
.map-editor input:not([type="checkbox"]), .map-link-row input { width: 100%; min-height: 46px; border: 1px solid var(--map-border); border-radius: .3rem; padding: .7rem .85rem; font: inherit; color: #07111f; background: #f7f3e8; }
.map-listing-choice { display: flex !important; gap: .75rem; align-items: start; line-height: 1.6; }
.maps-page input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--map-accent); margin: .15rem 0 0; }
.map-help { font-size: .9rem; line-height: 1.65; max-width: 65rem; }
.map-selection-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; }
.map-selection { min-width: 0; border: 1px solid var(--map-border); border-radius: .4rem; }
.map-selection > summary { padding: 1rem; cursor: pointer; font-size: 1.05rem; font-weight: 700; }
.map-selection > summary span { display: block; margin: .4rem 0 0 1rem; color: var(--map-accent); font-size: .85rem; font-weight: 500; }
.map-selection-body { padding: 0 1rem 1rem; }
.map-selection-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.map-options { min-width: 0; padding: .25rem; margin: 0; border: 0; display: grid; grid-template-columns: 1fr; max-height: 22rem; overflow-y: auto; scrollbar-color: #8df0c8 #142538; }
.map-choice { display: flex; align-items: center; gap: .7rem; padding: .65rem .5rem; min-height: 44px; border-radius: .25rem; cursor: pointer; line-height: 1.4; }
.map-choice:hover, .map-choice:has(input:checked) { background: #8df0c812; }
.map-save-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--map-border); }
.map-save-bar p { flex: 1 1 20rem; margin: 0; line-height: 1.6; }
.maps-page button, .map-directory-more { min-height: 44px; border: 1px solid currentColor; padding: .65rem 1rem; border-radius: .25rem; font: inherit; font-weight: 700; cursor: pointer; background: transparent; color: inherit; }
.maps-page .map-button.primary { background: var(--map-accent); border-color: var(--map-accent); color: #07111f; }
.maps-page .map-button.danger { color: #ffb8b1; }
.maps-page button:disabled { opacity: .55; cursor: wait; }
.map-selection-actions button { min-height: 40px; font-size: .85rem; padding: .45rem .65rem; }
.map-notice { padding: 1rem; border: 1px solid #f2bf75; border-radius: .4rem; line-height: 1.6; }
.map-links-panel { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--map-border); border-radius: .5rem; }
.map-links-panel h2 { font-size: 1.7rem; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.map-link-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem; margin: 1.5rem 0; }
.map-link-row > label, .map-link-row > p { grid-column: 1 / -1; margin: 0; }
.map-link-row input { font-size: .9rem; }
.map-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .map-create-panel, .map-selection-panels, .map-profile-fields { grid-template-columns: 1fr; gap: 1.25rem; }
  .map-create-panel .button { justify-self: start; }
  .friend-map-grid { grid-template-columns: 1fr; }
  .map-community { padding: 2.5rem 0; }
  .map-page-intro { padding-top: 2rem; }
  .map-link-row { grid-template-columns: minmax(0,1fr); }
  .map-link-row button { justify-self: start; }
  .maps-page .world-section { padding-top: 3rem; }
}
