/* ===== LIKA Real Estate — Widget i chat-it ===== */
:root {
  --chat-ar: #AD8046;
  --chat-blu: #00314F;
  --chat-blu2: #0058A4;
}

.lika-chat-flluska {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: transform .18s ease;
}
.lika-chat-flluska:hover { transform: scale(1.07); }
/* maskota (GIF) mbush fllusken */
.lika-chat-flluska .hap-ikona { display: flex; width: 100%; height: 100%; }
.lika-chat-maskota { width: 100%; height: 100%; object-fit: contain; display: block; }
/* ikona e mbylljes (X) kur dritarja eshte hapur */
.lika-chat-flluska .mbyll-ikona {
  display: none;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--chat-blu);
  align-items: center; justify-content: center;
}
.lika-chat-flluska.hapur { width: 54px; height: 54px; }
.lika-chat-flluska.hapur .hap-ikona { display: none; }
.lika-chat-flluska.hapur .mbyll-ikona { display: flex; }

.lika-chat-dritare {
  position: fixed;
  right: 22px;
  bottom: 94px;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease;
}
.lika-chat-dritare.hapur { display: flex; opacity: 1; transform: translateY(0); }

/* koka */
.lika-chat-koka {
  background: var(--chat-blu);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.lika-chat-koka .avatari {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.lika-chat-koka .avatari .lika-chat-maskota { width: 100%; height: 100%; object-fit: cover; }
/* foto e operatores (sekretarja) */
.lika-chat-koka .lika-op-avatar { background: #e9eef3; }
.lika-op-foto { width: 100%; height: 100%; object-fit: cover; display: block; }
.lika-chat-koka .tit { font-weight: 700; font-size: 15px; line-height: 1.2; }
.lika-chat-koka .nen { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 5px; }
.lika-chat-koka .nen::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #35d07f; display: inline-block;
}
.lika-chat-koka .mbyll {
  margin-left: auto;
  background: transparent; border: none; color: #fff;
  font-size: 20px; cursor: pointer; opacity: .8; line-height: 1;
}
.lika-chat-koka .mbyll:hover { opacity: 1; }

/* trupi i mesazheve */
.lika-chat-trupi {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lika-chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.lika-chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: #1a2733;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.lika-chat-msg.perd {
  align-self: flex-end;
  background: var(--chat-blu2);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* kartat e pronave */
.lika-chat-prona {
  display: flex; flex-direction: column; gap: 8px;
  align-self: flex-start; width: 90%;
}
.lika-chat-karte {
  display: block;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 11px 13px;
  text-decoration: none;
  color: #1a2733;
  transition: border-color .15s ease, transform .15s ease;
}
.lika-chat-karte:hover { border-color: var(--chat-ar); transform: translateX(2px); color: #1a2733; }
.lika-chat-karte .k-tit { font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.lika-chat-karte .k-meta { font-size: 12px; color: #6a7683; display: flex; gap: 10px; align-items: center; }
.lika-chat-karte .k-cmim { color: var(--chat-ar); font-weight: 700; }
.lika-chat-karte .k-shiko { font-size: 12px; color: var(--chat-blu2); font-weight: 600; margin-top: 5px; }

/* sugjerimet (chips) */
.lika-chat-sugj { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; margin-top: 2px; }
.lika-chat-chip {
  background: #fff;
  border: 1px solid var(--chat-ar);
  color: var(--chat-ar);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .14s ease;
  font-family: inherit;
}
.lika-chat-chip:hover { background: var(--chat-ar); color: #fff; }

/* treguesi "po shkruan" */
.lika-chat-shkruan { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 14px; border-bottom-left-radius: 4px; }
.lika-chat-shkruan span { width: 7px; height: 7px; border-radius: 50%; background: #b7c0cb; animation: lika-pulso 1.2s infinite; }
.lika-chat-shkruan span:nth-child(2) { animation-delay: .2s; }
.lika-chat-shkruan span:nth-child(3) { animation-delay: .4s; }
@keyframes lika-pulso { 0%,60%,100%{opacity:.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }

/* forma e kontaktit */
.lika-chat-forme { align-self: stretch; background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.lika-chat-forme input, .lika-chat-forme textarea {
  border: 1px solid #d7dbe0; border-radius: 8px; padding: 9px 11px; font-size: 13.5px; font-family: inherit; width: 100%; box-sizing: border-box;
}
.lika-chat-forme input:focus, .lika-chat-forme textarea:focus { outline: none; border-color: var(--chat-ar); }
.lika-chat-forme textarea { resize: vertical; min-height: 54px; }
.lika-chat-forme .forme-btn {
  background: var(--chat-ar); color: #fff; border: none; border-radius: 8px; padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.lika-chat-forme .forme-btn:hover { background: #9a6f3b; }
.lika-chat-forme .forme-tit { font-size: 13px; font-weight: 600; color: var(--chat-blu); }

/* fundi: input */
.lika-chat-fund {
  display: flex; gap: 8px; padding: 11px 12px; background: #fff; border-top: 1px solid #ebedf0;
}
.lika-chat-fund input {
  flex: 1; border: 1px solid #d7dbe0; border-radius: 22px; padding: 10px 15px; font-size: 14px; font-family: inherit;
}
.lika-chat-fund input:focus { outline: none; border-color: var(--chat-ar); }
.lika-chat-fund button {
  width: 42px; height: 42px; border-radius: 50%; background: var(--chat-ar); color: #fff; border: none; cursor: pointer; font-size: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.lika-chat-fund button:hover { background: #9a6f3b; }
.lika-chat-fund button:disabled { opacity: .5; cursor: default; }

/* kredit i vogel */
.lika-chat-kredit { text-align: center; font-size: 10.5px; color: #9aa4af; padding: 5px 0 8px; background: #fff; border-top: 1px solid #f0f2f4; }
.lika-chat-kredit a { color: #AD8046; text-decoration: none; font-weight: 600; }
.lika-chat-kredit a:hover { text-decoration: underline; }

/* butoni i WhatsApp */
.lika-chat-wa-wrap { align-self: stretch; margin-top: 2px; }
.lika-chat-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #25D366; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.lika-chat-wa:hover { background: #1da851; color: #fff; transform: translateY(-1px); }
.lika-chat-wa svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .lika-chat-dritare {
    right: 10px; left: 10px; bottom: 84px;
    width: auto; max-width: none;
    height: calc(100vh - 104px);
  }
  .lika-chat-flluska { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 23px; }
}
