/* tour-modal.css - self-contained styles for partials/tour-modal.php on pages
   that do NOT load mapset.css or dashboard.css (e.g. the building page). Rule
   blocks copied from those files so the shared Tour modal renders identically.
   Generated 2026-06-13 (Revisions 6-13, Item 6). */

/* The modal classes set display on the class (e.g. .dbz-auth-overlay{display:flex}),
   which outranks the UA [hidden]{display:none} — so without this the overlay can
   never be hidden and the modal shows on load. Mirror mapset.css's authoritative
   guard. (Scoped to this stylesheet; loaded only where the modal lives.) */
[hidden]{display:none!important}

:root{
  --gray-100:#F2F2F5;
  --gray-200:#E5E5EB;
  --gray-300:#C9C9D1;
  --gray-400:#9B9BA5;
  --gray-50:#F8F8FB;
  --gray-500:#6B6B75;
  --gray-600:#4B4B55;
  --gray-700:#2D2D35;
  --gray-800:#1A1A1F;
  --gray-900:#0F0F14;
  --purple-100:#E1D9FC;
  --purple-300:#A99BF1;
  --purple-50:#F2EEFE;
  --purple-500:#6B4FE6;
  --purple-600:#5B3FD6;
  --purple-700:#4B30C0;
  --teal-600:#0B8A8A;
}

.dbz-auth-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: dbz-fade-in 0.15s ease;
}
.dbz-auth-modal{
  position: relative;
  width: 460px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 36px 36px 28px;
  box-shadow: 0 20px 80px rgba(15, 15, 20, 0.35);
  animation: dbz-auth-in 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes dbz-auth-in{
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dbz-auth-x{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.dbz-auth-x:hover{ background: var(--gray-200); color: var(--gray-900); }
.dbz-auth-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.dbz-auth-logo svg{ width: 36px; height: 36px; }
.dbz-auth-logo span{ font-size: 28px; }
.dbz-auth-context{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 12px;
  margin-bottom: 18px;
}
.dbz-auth-context-media{
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  flex-shrink: 0;
}
.dbz-auth-context-media svg{
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.dbz-auth-context-text{
  flex: 1;
  min-width: 0;
}
.dbz-auth-context-name{
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-auth-context-addr{
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-auth-benefits{
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dbz-auth-benefits li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.4;
}
.dbz-auth-benefits li svg{
  color: #047857;
  flex-shrink: 0;
}
.dbz-auth-benefits strong{ color: var(--gray-900); font-weight: 600; }
.dbz-auth-title{
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  text-align: center;
}
.dbz-auth-sub{
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}
.dbz-auth-field{
  display: block;
  margin-bottom: 14px;
}
.dbz-auth-label{
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.dbz-auth-phone{
  display: flex;
  align-items: center;
  height: 56px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.dbz-auth-phone:focus-within{
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.12);
}
.dbz-auth-country{
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--gray-100);
  background: transparent;
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}
.dbz-auth-country:hover{ background: var(--gray-50); }
.dbz-auth-flag{ width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08); flex-shrink: 0; }
.dbz-auth-phone input{
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  height: 100%;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.dbz-auth-phone input::placeholder{ color: var(--gray-400); }
.dbz-auth-input{
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dbz-auth-input:focus{
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.12);
}
.dbz-auth-input-code{ font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.dbz-auth-consent{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 24px;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.55;
  cursor: pointer;
}
.dbz-auth-check{ position: relative; flex-shrink: 0; padding-top: 1px; }
.dbz-auth-check input{ position: absolute; opacity: 0; pointer-events: none; }
.dbz-auth-check-box{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 5px;
  background: #fff;
  color: #fff;
  transition: background 0.12s, border-color 0.12s;
}
.dbz-auth-check-box.is-on{
  background: var(--purple-500);
  border-color: var(--purple-500);
}
.dbz-auth-consent-text{ flex: 1; min-width: 0; }
.dbz-auth-consent-text a{
  color: var(--gray-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dbz-auth-consent-text a:hover{ color: var(--purple-700); }
.dbz-auth-cta{
  display: block;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--purple-500);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
}
.dbz-auth-cta:hover{ background: var(--purple-600); }
.dbz-auth-cta:active{ transform: scale(0.99); }
.dbz-auth-cta.is-disabled{
  background: var(--purple-300);
  cursor: not-allowed;
}
.dbz-auth-cta.is-disabled:hover{ background: var(--purple-300); }
.dbz-auth-divider{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}
.dbz-auth-divider::before,
.dbz-auth-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}
.dbz-auth-divider span{ padding: 0 4px; }
.dbz-auth-alt{
  display: block;
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dbz-auth-alt:hover{
  border-color: var(--gray-400);
  background: var(--gray-50);
}
.dbz-auth-foot{
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.55;
}
.dbz-auth-foot a{
  color: var(--gray-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dbz-auth-foot a:hover{ color: var(--purple-700); }
.dbz-auth-codepara{
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  text-align: center;
}
.dbz-auth-codepara strong{ color: var(--gray-900); font-weight: 600; }
.dbz-auth-back{
  display: block;
  margin: 16px auto 0;
  background: transparent;
  border: 0;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}
.dbz-auth-back:hover{ color: var(--gray-900); background: var(--gray-50); }
.dbz-report-sent{
  text-align: center;
  padding: 24px 16px 12px;
}
.dbz-report-sent-icon{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.dbz-report-sent-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
.dbz-report-sent-sub{
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}
[data-device="mobile"] .dbz-auth-overlay,
[data-device="mobile"] .dbz-report-overlay{
  position: absolute;
  inset: 0;
  padding: 14px;
  border-radius: 38px;
}
[data-device="mobile"] .dbz-auth-modal,
[data-device="mobile"] .dbz-report-modal{
  padding: 24px 20px 18px;
  border-radius: 14px;
  max-height: calc(100% - 28px);
}
.dbz-expert-head{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dbz-expert-avatars{ display: inline-flex; }
.dbz-expert-avatars i{
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  margin-left: -8px;
}
.dbz-expert-avatars i:first-child{ margin-left: 0; }
.dbz-expert-eyebrow{
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #047857;
  background: rgba(16,185,129,0.1);
  padding: 5px 10px; border-radius: 999px;
}
.dbz-expert-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dbz-expert-select{
  width: 100%; height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--gray-900);
  background: #fff;
  cursor: pointer;
  outline: 0;
}
.dbz-expert-select:focus{ border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(107,79,230,0.12); }
@media (max-width: 767px){
  [data-device="mobile"] .dbz-auth-overlay,
  [data-device="mobile"] .dbz-report-overlay{
    position: fixed;
    border-radius: 0;
  }
}
.dash-tourm-head{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-right: 40px; }
.dash-tourm-modal .dash-tourm-head{ margin-bottom: 12px; }
.dash-tourm-modal .dbz-auth-title{ font-size: 24px; margin-bottom: 4px; }
.dash-tourm-modal .dbz-auth-sub{ font-size: 13.5px; line-height: 1.45; }
.dash-tourm-modal .dash-tourm-list{ margin: 12px 0 14px; max-height: 150px; }
.dash-tourm-modal .dbz-auth-field{ margin-top: 0; }
.dash-tourm-modal .dbz-expert-row{ margin-top: 10px; }
.dash-tourm-modal .dbz-auth-consent{ margin: 12px 0; }
.dash-tourm-modal .dbz-auth-cta{ margin-top: 4px; }
.dash-tourm-avatar{
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #6B4FE6, #4B30C0);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-tourm-list{
  display: flex; flex-direction: column; gap: 8px;
  margin: 16px 0 18px;
  max-height: 188px; overflow-y: auto;
}
.dash-tourm-item{
  display: flex; align-items: center; gap: 11px;
  padding: 8px; border: 1px solid var(--gray-100); border-radius: 10px;
}
.dash-tourm-thumb{
  width: 48px; height: 44px; border-radius: 7px;
  background-size: cover; background-position: center;
  background-color: var(--gray-100); flex-shrink: 0;
}
.dash-tourm-item-body{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dash-tourm-item-name{ font-size: 13.5px; font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tourm-item-sub{ font-size: 12px; color: var(--gray-500); }
.dash-tourm-tag{
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 3px 8px; border-radius: 999px;
}
.dash-tourm-tag.rent{ color: var(--purple-700); background: var(--purple-50); }
.dash-tourm-tag.sale{ color: var(--teal-600); background: rgba(14,165,165,0.1); }

@keyframes dbz-fade-in { from { opacity: 0; } to { opacity: 1; } }
