/* Zet Home – beszélő ingatlansegítő */
.property-assistant-launcher {
  position: fixed;
  z-index: 28;
  right: 24px;
  bottom: 88px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #0f4f52;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgb(14 54 51 / 20%);
  font: inherit;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.property-assistant-launcher:hover {
  transform: translateY(-2px);
  background: var(--navy-deep);
  box-shadow: 0 16px 34px rgb(14 54 51 / 26%);
}
.property-assistant-launcher[aria-expanded="true"] { background: var(--blue); }
.property-assistant-launcher-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy-deep);
  font-size: .875rem;
  line-height: 1;
}

.property-assistant-panel {
  position: fixed;
  z-index: 29;
  right: 24px;
  bottom: 146px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  width: min(400px, calc(100vw - 48px));
  max-height: min(650px, calc(100dvh - 174px));
  overflow: hidden;
  border: 1px solid #b8d0c2;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 62px rgb(14 54 51 / 24%);
}
.property-assistant-panel[hidden] { display: none; }
.property-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid #dce9df;
  background: linear-gradient(135deg, #f6faf6, #edf4ef);
}
.property-assistant-header > div { min-width: 0; }
.property-assistant-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .11em;
}
.property-assistant-title {
  margin: 0;
  color: var(--navy);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}
.property-assistant-header-actions { display: inline-flex; gap: 6px; }
.property-assistant-icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #bdd1c3;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
}
.property-assistant-icon-button:hover,
.property-assistant-icon-button[aria-pressed="true"] {
  border-color: #8daf76;
  background: #e5efd8;
}
.property-assistant-context {
  min-height: 40px;
  padding: 10px 16px;
  border-bottom: 1px solid #e0ebe4;
  background: #fff;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.45;
}
.property-assistant-messages {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #fbfdfc;
  scroll-behavior: smooth;
}
.property-assistant-message {
  width: fit-content;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .875rem;
  line-height: 1.5;
}
.property-assistant-message p { margin: 0; font-size: inherit; line-height: inherit; }
.property-assistant-message.assistant {
  align-self: flex-start;
  border: 1px solid #d7e6dc;
  border-bottom-left-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.property-assistant-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  background: var(--navy);
  color: #fff;
}
.property-assistant-results {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}
.property-assistant-results a,
.property-assistant-contact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #c7dccc;
  border-radius: 8px;
  background: #f7faf6;
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}
.property-assistant-results a:hover,
.property-assistant-contact a:hover { border-color: #95b279; background: #e8f1dc; }
.property-assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 16px 9px;
  border-top: 1px solid #e0ebe4;
  background: #fff;
}
.property-assistant-quick button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #c5d9cb;
  border-radius: 999px;
  background: #f8fbf8;
  color: var(--navy);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
}
.property-assistant-quick button:hover { border-color: #8daf76; background: #e8f1dc; }
.property-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 42px;
  gap: 7px;
  padding: 10px 12px 12px;
  border-top: 1px solid #e0ebe4;
  background: #fff;
}
.property-assistant-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #b9d0c0;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  line-height: 1.25;
}
.property-assistant-input:focus { outline: 3px solid rgb(44 130 160 / 15%); border-color: var(--blue); }
.property-assistant-mic,
.property-assistant-send {
  min-height: 42px;
  padding: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
}
.property-assistant-mic {
  border: 1px solid #b9d0c0;
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
}
.property-assistant-mic.is-listening { border-color: #b0635f; background: #fff0ed; color: #a34238; }
.property-assistant-send { border: 1px solid var(--navy); background: var(--navy); color: #fff; font-size: .75rem; }
.property-assistant-send:hover { border-color: var(--blue); background: var(--blue); }
.property-assistant-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 16px 14px;
  background: #fff;
}
.property-assistant-contact a { justify-content: center; font-size: .75rem; }

.property-assistant-inline {
  border: 1px solid #b9d0c0 !important;
  background: #f6fafb !important;
  color: var(--navy) !important;
  font: inherit;
  cursor: pointer;
}
.property-assistant-inline:hover { border-color: #8daf76 !important; background: #e8f1dc !important; }

@media (max-width: 720px) {
  .property-assistant-launcher { right: 14px; bottom: 79px; min-height: 46px; padding-inline: 13px; }
  .property-assistant-panel {
    right: 12px;
    bottom: 136px;
    width: calc(100vw - 24px);
    max-height: min(620px, calc(100dvh - 154px));
    border-radius: 16px;
  }
  .property-assistant-message { max-width: 95%; }
  .property-assistant-contact { grid-template-columns: 1fr; }
  .has-mobile-detail-contact .property-assistant-launcher { bottom: 96px; }
  .has-mobile-detail-contact .property-assistant-panel { bottom: 153px; }
}

@media (max-width: 390px) {
  .property-assistant-launcher-label { display: none; }
  .property-assistant-launcher { width: 48px; justify-content: center; padding: 0; }
}

@media print {
  .property-assistant-launcher,
  .property-assistant-panel,
  .property-assistant-inline { display: none !important; }
}
