/* LandAI CSS owner: Account popover, account destructive actions, search mode control, and parcel search controls. */
.account-popover {
  position: fixed;
  top: calc(var(--premium-banner-offset) + 70px);
  left: calc(var(--left-rail-width) + 12px);
  z-index: 6;
  width: 375px;
  max-width: calc(100vw - var(--left-rail-width) - 24px);
  padding: 22px 20px 24px;
  max-height: calc(100vh - var(--premium-banner-offset) - 92px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
  color: #2f3437;
}

.account-popover[hidden] {
  display: none;
}

.account-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 10px;
}

.account-popover-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #1f2933;
}

.account-popover-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.account-popover-close:hover,
.account-popover-close:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.account-avatar {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  margin: 8px auto 14px;
}

.account-avatar svg {
  display: block;
  width: 116px;
  height: 116px;
}

.account-popover-status,
.account-popover-email {
  margin: 0;
  text-align: center;
  color: #64748b;
}

.account-popover-status {
  font-size: 1.2rem;
  font-weight: 700;
}

.account-popover-email {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-primary-btn,
.account-secondary-btn,
.account-logout-btn,
.account-delete-submit,
.account-delete-cancel {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.account-primary-btn,
.account-logout-btn {
  background: var(--accent);
  color: #fff;
}

.account-primary-btn {
  width: auto;
  min-width: 190px;
  display: block;
  margin: 22px auto 28px;
  padding: 0 24px;
}

.account-primary-btn:hover,
.account-logout-btn:hover {
  background: #15803d;
}

.account-primary-btn:active,
.account-secondary-btn:active,
.account-logout-btn:active,
.account-delete-submit:active,
.account-delete-cancel:active {
  transform: scale(0.98);
}

.account-membership {
  margin: 0 0 26px;
}

.account-section-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #dbe2ea;
  color: #64748b;
  font-size: 0.98rem;
  font-weight: 800;
}

.account-membership-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.account-membership-actions {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.account-membership-name,
.account-membership-expiry {
  margin: 0;
  color: #2f3437;
}

.account-membership-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.account-membership-expiry {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.account-link-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 0;
}

.account-link-btn:hover,
.account-link-btn:focus-visible {
  color: #15803d;
  text-decoration: underline;
  outline: none;
}

.account-security-actions {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.user-usage-section {
  display: grid;
  gap: 0.8rem;
}

.user-usage-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.user-usage-heading-row h3 {
  margin-bottom: 0.2rem;
}

.user-usage-refresh-btn {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  padding: 0 0.78rem;
  border-radius: 9px;
  font-size: 0.82rem;
}

.user-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.user-usage-metric {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.user-usage-number {
  font-size: 1.18rem;
  line-height: 1.05;
  font-weight: 900;
  color: #0f172a;
}

.user-usage-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
}

.user-usage-quota {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.72rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.user-usage-quota > div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.user-usage-quota-label {
  font-size: 0.72rem;
  font-weight: 900;
  color: #2563eb;
  text-transform: uppercase;
}

.user-usage-quota strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.25;
  color: #0f172a;
}

.user-usage-sync-state {
  margin: -0.2rem 0 0;
  font-size: 0.76rem;
}

.user-usage-timeline {
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.15rem;
}

.user-usage-timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.56rem 0.64rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.user-usage-timeline-row strong,
.user-usage-timeline-row span {
  display: block;
  min-width: 0;
}

.user-usage-timeline-row strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-timeline-row span {
  color: #64748b;
  font-size: 0.72rem;
}

.user-usage-timeline-counts {
  display: grid;
  gap: 0.14rem;
  min-width: 92px;
  text-align: right;
}

.user-usage-empty {
  margin: 0;
  padding: 0.7rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.82rem;
}

.account-secondary-btn {
  background: #eef7f0;
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.24);
}

.account-secondary-btn:hover,
.account-secondary-btn:focus-visible {
  background: #dcfce7;
  outline: none;
}

.account-danger-link-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 12px;
  background: #fff7f7;
  color: #b91c1c;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}

.account-danger-link-btn:hover,
.account-danger-link-btn:focus-visible {
  background: #fee2e2;
  outline: none;
}

.account-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  align-items: start;
  justify-items: start;
  padding: 72px 16px 16px calc(var(--left-rail-width) + 12px);
  background: rgba(15, 23, 42, 0.28);
}

.account-delete-modal[hidden] {
  display: none;
}

.account-delete-panel {
  width: 375px;
  max-width: calc(100vw - var(--left-rail-width) - 28px);
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: #fff;
  color: #1f2933;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.24);
}

.account-delete-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.account-delete-header h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.05;
}

.account-delete-lead,
.account-delete-email,
.account-delete-copy,
.account-delete-error {
  margin: 0;
}

.account-delete-lead {
  color: #1f2933;
  font-size: 1rem;
  font-weight: 800;
}

.account-delete-email {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-delete-copy {
  margin-top: 14px;
  color: #64748b;
  font-size: 0.96rem;
  font-weight: 700;
}

.account-delete-input {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #1f2933;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-delete-input:focus {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
  outline: none;
}

.account-delete-error {
  min-height: 20px;
  margin-top: 10px;
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-delete-submit {
  margin-top: 8px;
  background: #dc2626;
  color: #fff;
}

.account-delete-submit:hover:not(:disabled),
.account-delete-submit:focus-visible:not(:disabled) {
  background: #b91c1c;
  outline: none;
}

.account-delete-submit:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.account-delete-cancel {
  margin-top: 10px;
  background: #f1f5f9;
  color: #1f2933;
}

.account-delete-cancel:hover,
.account-delete-cancel:focus-visible {
  background: #e2e8f0;
  outline: none;
}

.map-left-search .search-mode-control {
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  background: #f1f1f1;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.search-mode-control {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.2rem;
  padding: 0.2rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.search-mode-option {
  position: relative;
  min-width: 0;
}

.search-mode-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.search-mode-option span {
  display: block;
  min-width: 0;
  padding: 0.72rem 0.35rem;
  border-radius: 12px;
  color: #4c4f54;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.search-mode-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.search-mode-option input:checked + span,
.search-mode-option.is-active span {
  background: #fff;
  color: #2f3437;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.address-suggestions {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding-right: 2px;
}

.address-suggestions[hidden] {
  display: none;
}

.recent-search-heading {
  padding: 0.2rem 0.55rem 0.45rem;
  color: #7b8086;
  font-size: 0.86rem;
  font-weight: 800;
}

.address-suggestion-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.55rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #2f3437;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.recent-search-btn .address-suggestion-pin {
  color: #6b7280;
}

.address-suggestion-btn:hover,
.address-suggestion-btn:focus-visible {
  background: #f5f7f8;
  outline: none;
}

.address-suggestion-pin,
.address-suggestion-chevron {
  color: #aeb4ba;
  display: grid;
  place-items: center;
}

.address-suggestion-copy {
  min-width: 0;
}

.address-suggestion-main {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-suggestion-secondary {
  display: block;
  margin-top: 0.18rem;
  color: #73777c;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-suggestion-date {
  display: block;
  margin-top: 0.14rem;
  color: #9ca3af;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-suggestion-chevron {
  font-size: 1.35rem;
  font-weight: 700;
}

#parcel-id-search {
  grid-template-columns: 0.45fr 1fr auto;
}

.parcel-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}

.parcel-btn:hover {
  background: rgba(22, 163, 74, 0.2);
}

.parcel-btn.active {
  background: var(--accent);
  color: white;
}
