/* gaydar.css: the Gaydar map page. Dark map, glass controls, round member markers. */
:root { --gd-pink: #ff2d87; --gd-ink: #fff; --gd-glass: rgba(18, 18, 28, 0.72); --gd-line: rgba(255, 255, 255, 0.12); }
html, body.gd-body { height: 100%; }
body.gd-body { margin: 0; background: #080812; overflow: hidden; display: flex; flex-direction: column; }
.gd-top { position: relative; z-index: 5; flex: none; }
.gd-links { display: flex; align-items: center; gap: 18px; margin-left: 24px; margin-right: auto; }
.gd-links .nav-link.active { color: var(--gd-pink); }
@media (max-width: 720px) { .gd-links { display: none; } }

.gd-main { position: relative; flex: 1; min-height: 0; }
.gd-map { position: absolute; inset: 0; background: #080812; color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; justify-content: center; }
.maplibregl-ctrl-attrib { background: rgba(8, 8, 18, 0.7) !important; color: rgba(255, 255, 255, 0.6); }
.maplibregl-ctrl-attrib a { color: rgba(255, 255, 255, 0.75); }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

.gd-preview-tag { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 7px 14px; border-radius: 999px;
  background: var(--gd-glass); border: 1px solid var(--gd-line); color: rgba(255, 255, 255, 0.85); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.gd-tools { position: absolute; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.gd-tool { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gd-line); background: var(--gd-glass); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.gd-tool svg { width: 24px; height: 24px; }
.gd-tool:hover { background: rgba(40, 40, 60, 0.85); color: #fff; }

/* YOU */
.gd-you { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.gd-you-dot { position: relative; z-index: 1; padding: 5px 9px; border-radius: 999px; background: var(--gd-pink); color: #fff; font: 800 11px/1 "Outfit", sans-serif;
  letter-spacing: 0.8px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 22px rgba(255, 45, 135, 0.8); }
.gd-you-pulse { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 135, 0.45), rgba(255, 45, 135, 0) 70%);
  animation: gd-pulse 2.6s ease-out infinite; }
@keyframes gd-pulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

/* Member markers */
.gd-pin { position: relative; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); background: #1b1b28; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55); transition: transform 160ms ease, border-color 160ms ease; animation: gd-in 320ms ease-out both; }
.gd-pin:hover, .gd-pin.sel { transform: scale(1.12); border-color: var(--gd-pink); }
.gd-pin.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; border: 2px solid #080812; }
.gd-pin-av { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #2a2a3a center / cover no-repeat; color: #fff; font: 800 17px/1 "Outfit", sans-serif; }
.gd-cluster { width: var(--size, 44px); height: var(--size, 44px); border-radius: 50%; border: 1px solid rgba(255, 45, 135, 0.7); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 45, 135, 0.9), rgba(120, 20, 90, 0.92)); color: #fff; font: 800 15px/1 "Outfit", sans-serif;
  box-shadow: 0 0 0 6px rgba(255, 45, 135, 0.16), 0 8px 22px rgba(0, 0, 0, 0.5); animation: gd-in 320ms ease-out both; }
.gd-cluster:hover { box-shadow: 0 0 0 9px rgba(255, 45, 135, 0.22), 0 8px 22px rgba(0, 0, 0, 0.5); }
@keyframes gd-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }

/* Member preview: bottom sheet (phones), floating card (desktop) */
.gd-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 20px calc(86px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  background: rgba(16, 16, 26, 0.9); border: 1px solid var(--gd-line); border-bottom: none; color: #fff; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transform: translateY(100%); transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.gd-sheet.open { transform: none; }
.gd-sheet[hidden] { display: none; }
.gd-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); margin: 0 auto 12px; }

/* Bottom tabs on phones */
.gd-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 10, 16, 0.78); border-top: 1px solid var(--gd-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.gd-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px; font-weight: 700; text-decoration: none; }
.gd-tab span { font-size: 19px; line-height: 1; display: flex; filter: grayscale(1) brightness(1.4); }
.gd-tab.active { color: var(--gd-pink); }
.gd-tab.active span { filter: none; }
.gd-tab:hover { color: #fff; }

@media (min-width: 721px) {
  .gd-tabs { display: none; }
  .gd-tools { bottom: 28px; }
  .gd-sheet { left: auto; right: 20px; top: 20px; bottom: auto; width: 360px; padding: 18px 20px 20px; border-radius: 22px; border-bottom: 1px solid var(--gd-line);
    transform: translateX(16px); opacity: 0; transition: transform 200ms ease, opacity 200ms ease; }
  .gd-sheet.open { transform: none; opacity: 1; }
  .gd-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-you-pulse { animation: none; opacity: 0.5; }
  .gd-pin, .gd-cluster { animation: none; }
  .gd-sheet { transition: none; }
}
/* Marker wrapper: the map moves this; the visuals inside can scale and fade freely. */
.gd-mk { width: 0; height: 0; display: flex; align-items: center; justify-content: center; overflow: visible; }
.gd-mk > * { flex: none; }

/* ===== Revised preview: profile card -> chat, intro, visibility, filters ===== */
@media (max-width: 720px) {
  .gd-main { margin-bottom: calc(60px + env(safe-area-inset-bottom)); } /* map ends above the bottom tabs */
  .gd-tools { bottom: 16px; }
  .gd-sheet { padding: 0 0 env(safe-area-inset-bottom); max-height: 78%; display: flex; flex-direction: column; }
  .gd-sheet.chatting { height: 72%; }
}
.gd-sheet { overflow: hidden; }
.gd-grab { position: absolute; top: 8px; left: 50%; margin: 0 0 0 -20px; z-index: 2; background: rgba(255, 255, 255, 0.4); }
.gd-view { display: flex; flex-direction: column; min-height: 0; flex: 1; animation: gd-view-in 220ms ease-out; }
@keyframes gd-view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gd-view[hidden] { display: none; }
.gd-view-profile { overflow-y: auto; }

/* Big photo with the name over it */
.gd-photo { position: relative; flex: none; height: 230px; background: #22222c center 25% / cover no-repeat; display: flex; align-items: flex-end; }
.gd-photo::before { content: attr(data-initial); position: absolute; inset: 0 0 50px; display: flex; align-items: center; justify-content: center;
  font: 800 92px/1 "Outfit", sans-serif; color: rgba(255, 255, 255, 0.85); }
.gd-photo-over { position: relative; padding: 0 20px 12px; width: 100%; }
.gd-photo-over h2 { margin: 0 0 4px; font: 800 28px/1.1 "Outfit", sans-serif; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); overflow-wrap: anywhere; }
.gd-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }
.gd-status.on { color: #4ade80; font-weight: 600; }
.gd-dot-sep { opacity: 0.5; }
.gd-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.45); color: #fff;
  font-size: 17px; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gd-x:hover { background: rgba(0, 0, 0, 0.65); color: #fff; }
.gd-x.flat { position: static; background: transparent; }
.gd-x.flat:hover { background: rgba(255, 255, 255, 0.1); }
.gd-body { padding: 12px 20px 18px; }
.gd-city { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.gd-about { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gd-chip { padding: 6px 12px; border-radius: 999px; background: #24242e; border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; font-weight: 600; }
.gd-actions { display: flex; gap: 8px; }
.gd-actions .gd-btn { flex: 1; }
.gd-actions .gd-more { flex: none; width: 52px; padding: 0; letter-spacing: 1px; }
.gd-menu { margin-top: 8px; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: #1d1d27; border: 1px solid var(--gd-line); }
.gd-menu[hidden] { display: none; }
.gd-menu button { min-height: 44px; border: none; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-align: left; padding: 0 12px; cursor: pointer; }
.gd-menu button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gd-menu button.danger { color: #ff9db0; }

/* Buttons */
.gd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px; border: none; border-radius: 999px; background: var(--gd-pink);
  color: #fff; font: inherit; font-size: 15.5px; font-weight: 800; text-decoration: none; cursor: pointer; }
.gd-btn:hover { background: #ff479a; color: #fff; }
.gd-btn.ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22); }
.gd-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.gd-btn.big { width: 100%; min-height: 56px; font-size: 17px; }
.gd-btn:disabled { opacity: 0.7; cursor: default; }

/* Chat inside the card (reuses the Messages bubble styles) */
.gd-view-chat { min-height: 0; }
.gd-chat-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 14px 10px 10px; border-bottom: 1px solid var(--gd-line); }
.gd-back { flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gd-back:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.gd-chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.gd-chat-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-chat-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 14px/1 "Outfit", sans-serif; color: #fff; }
.gd-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gd-chat-body .dm-msgs { flex: 1; min-height: 120px; }

/* Visibility pill */
.gd-vis { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--gd-line); background: var(--gd-glass); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gd-vis i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
.gd-vis.off i { background: transparent; border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: none; width: 7px; height: 7px; }
.gd-preview-tag { top: 60px; }
@media (min-width: 721px) { .gd-preview-tag { top: 12px; } }

.gd-search-area { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 3; min-height: 40px; padding: 0 16px; border-radius: 999px; border: none;
  background: #fff; color: #111; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.gd-search-area[hidden] { display: none; }
@media (max-width: 720px) { .gd-search-area { top: 104px; } }

/* Empty state */
.gd-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: min(360px, calc(100% - 32px)); padding: 22px 20px; border-radius: 22px;
  background: rgba(16, 16, 26, 0.88); border: 1px solid var(--gd-line); text-align: center; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.gd-empty[hidden] { display: none; }
.gd-empty h2 { margin: 0 0 6px; font: 800 21px/1.2 "Outfit", sans-serif; }
.gd-empty p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; line-height: 1.45; }
.gd-empty-acts { display: flex; flex-direction: column; gap: 8px; }

/* Small glass pop-ups: visibility and filters */
.gd-pop { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 12px; padding: 20px; border-radius: 22px; background: rgba(16, 16, 26, 0.94); border: 1px solid var(--gd-line);
  color: #fff; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: gd-view-in 200ms ease-out; }
.gd-pop[hidden] { display: none; }
.gd-pop h2 { margin: 0 0 12px; font: 800 20px/1.2 "Outfit", sans-serif; }
@media (min-width: 721px) { .gd-pop { left: auto; right: 80px; bottom: 24px; width: 360px; } #gdVisPop { left: 12px; right: auto; top: 62px; bottom: auto; } }
.gd-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--gd-line); margin-bottom: 8px; cursor: pointer; }
.gd-radio input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--gd-pink); }
.gd-radio b { display: block; font-size: 15.5px; }
.gd-radio small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.65); font-size: 13px; line-height: 1.4; }
.gd-pop .gd-btn { width: 100%; margin-top: 8px; }
.gd-label { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.65); margin-bottom: 8px; }
.gd-seg { display: flex; gap: 6px; margin-bottom: 14px; }
.gd-seg button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--gd-line); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.gd-seg button[aria-pressed="true"] { background: var(--gd-pink); border-color: var(--gd-pink); }
.gd-switch { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gd-switch input { width: 22px; height: 22px; accent-color: var(--gd-pink); }

/* Fanned-out photos */
.gd-pin.spider { box-shadow: 0 0 0 3px rgba(255, 45, 135, 0.35), 0 6px 18px rgba(0, 0, 0, 0.55); }

/* First visit and location-off screens */
/* Starts below the site header (which sits on top) so a tall card is never cut off; the
   card's auto margins still centre it when there's room. */
.gd-intro { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-start; justify-content: center; padding: calc(88px + env(safe-area-inset-top, 0px)) 16px 24px; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 45, 135, 0.18), rgba(8, 8, 18, 0) 60%), rgba(8, 8, 18, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gd-intro[hidden] { display: none; }
.gd-intro-card { margin: auto 0; width: min(440px, 100%); padding: 28px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px; background: rgba(18, 18, 28, 0.86);
  border: 1px solid var(--gd-line); color: #fff; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.gd-intro-card h1 { margin: 6px 0 8px; font: 800 30px/1.1 "Outfit", sans-serif; letter-spacing: 0.3px; text-transform: uppercase; }
.gd-intro-lead { margin: 0 0 16px; color: rgba(255, 255, 255, 0.8); font-size: 16px; line-height: 1.5; }
.gd-intro-sub { margin: 0 0 8px; text-align: left; font-weight: 700; font-size: 14.5px; }
.gd-intro-list { margin: 0 0 20px; padding: 0; list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.gd-intro-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.88); }
.gd-intro-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 45, 135, 0.2); color: #ff7ab3;
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gd-intro-list.plain li::before { content: "›"; }
.gd-intro-later { display: block; margin: 10px auto 0; min-height: 44px; line-height: 44px; color: rgba(255, 255, 255, 0.8); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; }
.gd-intro-later:hover { color: #fff; text-decoration: underline; }
.gd-intro-later.as-btn { background: none; border: none; cursor: pointer; padding: 0; }
.gd-intro-fine { margin: 8px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 12.5px; line-height: 1.5; }
.gd-intro-fine a { color: #ff7ab3; }
.gd-intro-radar { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.gd-intro-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 45, 135, 0.5); animation: gd-pulse 2.8s ease-out infinite; }
.gd-intro-radar span + span { animation-delay: 1.4s; }
.gd-intro-radar i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--gd-pink); box-shadow: 0 0 20px rgba(255, 45, 135, 0.9); }

@media (min-width: 721px) {
  .gd-sheet { width: 380px; max-height: calc(100% - 40px); padding: 0; display: flex; flex-direction: column; }
  .gd-sheet.chatting { height: min(620px, calc(100% - 40px)); }
  .gd-photo { height: 260px; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .gd-view, .gd-pop { animation: none; } .gd-intro-radar span { animation: none; } }
/* The map runs edge to edge (the site's general page margins don't apply here). */
.gd-main { margin-left: 0; margin-right: 0; padding: 0; max-width: none; width: 100%; }
.gd-actions .gd-btn { white-space: nowrap; padding: 0 12px; font-size: 15px; }
body.gd-body { padding: 0; } /* the chat pages' body padding would frame the map */
/* You: blue "you are here" dot (replaces the YOU label). */
.gd-you { width: 64px; height: 64px; }
.gd-you-dot { width: 20px; height: 20px; padding: 0; border-radius: 50%; background: #0a84ff; font-size: 0; letter-spacing: 0;
  box-shadow: 0 0 0 4px #fff, 0 2px 10px rgba(0, 0, 0, 0.5); }
.gd-you-pulse { background: radial-gradient(circle, rgba(10, 132, 255, 0.45), rgba(10, 132, 255, 0) 70%); }
