/* Location controls are shared by the feed and posting form, with native touch-friendly inputs. */
.tpn-location-control { width: 100%; min-width: 0; }
.tpn-location-label { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #17212b; }
.tpn-location-trigger {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px;
  padding: 12px 16px; border: 1px solid #dfe3e8; border-radius: 8px;
  background: #fff; color: #17212b; text-align: left; cursor: pointer;
  font: 700 16px/1.4 Arial, Helvetica, sans-serif;
}
.tpn-location-trigger span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tpn-location-trigger img, .tpn-location-dialog img { flex: 0 0 22px; }
.tpn-location-trigger:hover { border-color: #d60000; }

/* The native dialog's top layer avoids clipping inside the React Native Web scrolling feed. */
.tpn-location-dialog {
  width: min(460px, calc(100% - 32px)); max-width: 460px;
  max-height: calc(100dvh - 32px - env(safe-area-inset-bottom, 0px));
  margin: auto; padding: 0; overflow: auto; border: 1px solid #dfe3e8; border-radius: 8px;
  box-shadow: 0 16px 48px #17212b38; color: #17212b; background: #fff;
  font: 15px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0;
}
.tpn-location-dialog::backdrop { background: #10192380; }
.tpn-location-inner { padding: 12px 20px 4px; }
.tpn-location-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tpn-location-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.tpn-location-dialog button { font-family: inherit; cursor: pointer; }
.tpn-location-close { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 6px; background: transparent; }
.tpn-location-close:hover { background: #f1f3f5; }
.tpn-location-gps { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #eed0d4; border-radius: 6px; background: #fff6f7; color: #ad0016; font-size: 15px; font-weight: 700; }
.tpn-location-privacy { margin: 8px 0 18px; font-size: 12px; line-height: 1.5; color: #64707d; }
.tpn-location-privacy a { color: #9c0013; text-underline-offset: 2px; }
.tpn-location-divider { display: flex; align-items: center; gap: 12px; color: #687382; font-size: 12px; margin: 14px 0; }
.tpn-location-divider::before, .tpn-location-divider::after { content: ''; height: 1px; background: #e5e7eb; flex: 1; }
.tpn-location-dialog label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 700; }
.tpn-location-dialog select, .tpn-location-dialog input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #cfd5dc; border-radius: 6px; color: #17212b; background: #fff; font: 16px/1.4 Arial, Helvetica, sans-serif; }
.tpn-location-dialog input::placeholder { color: #77818d; }
.tpn-location-dialog select:disabled, .tpn-location-dialog input:disabled { color: #77818d; background: #f2f4f6; }
.tpn-location-dialog button:disabled { opacity: .6; cursor: wait; }
.tpn-location-error, .tpn-location-status { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.tpn-location-error { color: #b90016; }
.tpn-location-status { color: #456254; }
.tpn-location-apply, .tpn-location-all { display: block; width: 100%; min-height: 48px; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: 700; }
.tpn-location-apply { margin-top: 20px; border: 1px solid #d60000; background: #d60000; color: #fff; }
.tpn-location-apply:hover { background: #b90000; }
.tpn-location-all { margin-top: 10px; border: 1px solid #dfe3e8; background: #fff; color: #17212b; }
.tpn-location-later { display: block; width: 100%; min-height: 44px; padding: 10px; border: 0; background: transparent; color: #64707d; font-size: 14px; }
.tpn-location-trigger:focus-visible, .tpn-location-dialog :focus-visible { outline: 3px solid #1565c0; outline-offset: 2px; }
@media (max-width: 360px) { .tpn-location-inner { padding-inline: 14px; } .tpn-location-heading h2 { font-size: 20px; } }
