/* Laila LiveChat Widget — JmaxLink v1.2.0 */
:root {
  --llc-primary:      #1a3f73;
  --llc-primary2:     #1e4d8c;
  --llc-accent:       #3a7bd5;
  --llc-glow:         #6eb5ff;
  --llc-teal:         #00c9b0;
  --llc-white:        #ffffff;
  --llc-bg:           #f4f7fb;
  --llc-text:         #2d3748;
  --llc-muted:        #718096;
  --llc-bubble-ai:    #ffffff;
  --llc-bubble-user:  #1a3f73;
  --llc-panel-w:      395px;
  --llc-panel-h:      640px;
}

/* PHP injects #llc-root { --llc-primary: ...; } inline after this file to override colors */

#llc-root, #llc-root * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

/* ── Auto Popup Bubble ────────────────────────────────────────────────────── */
#llc-popup {
  position: fixed;
  bottom: 54px; right: 108px;
  z-index: 99997;
  background: var(--llc-white);
  color: var(--llc-text);
  font-size: 13px; line-height: 1.45; font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 215px;
  box-shadow: 0 4px 20px rgba(26,63,115,0.18);
  border: 1.5px solid #e8edf4;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
  user-select: none; white-space: normal; word-break: break-word;
}
#llc-popup::after {
  content: '';
  position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  border: 7px solid transparent;
  border-left: 8px solid var(--llc-white);
  border-right: none;
}
#llc-popup.llc-pos-left { right: auto; left: 108px; }
#llc-popup.llc-pos-left::after { right: auto; left: -14px; border-left: none; border-right: 8px solid var(--llc-white); }
#llc-popup.llc-popup-show { opacity: 1; pointer-events: all; transform: translateX(0); }

/* ── Floating Button ──────────────────────────────────────────────────────── */
#llc-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
#llc-trigger.llc-pos-left { right: auto; left: 24px; }

.llc-btn-wrap { position: relative; width: 72px; height: 72px; }
.llc-btn-wrap::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%; background: transparent;
  border: 2px solid var(--llc-glow);
  opacity: 0; animation: llc-pulse-ring 2.5s ease-out infinite;
}
.llc-btn-wrap::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%; background: transparent;
  border: 2px solid var(--llc-accent);
  opacity: 0; animation: llc-pulse-ring 2.5s ease-out infinite 0.8s;
}
@keyframes llc-pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.7; }
  60%  { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(1.25); opacity: 0; }
}

.llc-avatar-btn {
  width: 72px; height: 72px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--llc-glow);
  box-shadow: 0 0 0 0 rgba(110,181,255,0.5), 0 4px 20px rgba(26,63,115,0.35), 0 0 30px rgba(58,123,213,0.2);
  animation: llc-float 3s ease-in-out infinite, llc-glow-pulse 3s ease-in-out infinite;
  cursor: pointer; transition: transform 0.2s;
}
.llc-avatar-btn:hover { transform: scale(1.08); }
.llc-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes llc-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes llc-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110,181,255,0.4), 0 4px 20px rgba(26,63,115,0.35), 0 0 20px rgba(58,123,213,0.15); }
  50%       { box-shadow: 0 0 0 8px rgba(110,181,255,0), 0 4px 20px rgba(26,63,115,0.4), 0 0 40px rgba(58,123,213,0.35); }
}

.llc-btn-label {
  margin-top: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--llc-white);
  text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  background: var(--llc-primary); padding: 2px 8px; border-radius: 20px;
}

.llc-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; background: #e53e3e;
  border-radius: 50%; border: 2px solid #fff;
  font-size: 10px; font-weight: 700; color: #fff;
  display: none; align-items: center; justify-content: center;
  animation: llc-badge-bounce 1s ease infinite;
}
.llc-badge.llc-badge-visible { display: flex; }
@keyframes llc-badge-bounce {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

/* ── Chat Panel ───────────────────────────────────────────────────────────── */
#llc-panel {
  position: fixed;
  bottom: 20px; right: 24px;
  z-index: 99999;
  width: var(--llc-panel-w, 395px);
  height: var(--llc-panel-h, 640px);       /* fixed height — prevents auto-expand */
  max-height: calc(100vh - 30px);          /* viewport safety */
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26,63,115,0.18);
  display: flex; flex-direction: column;
  overflow: hidden;                          /* clips history/toast overlays */
  background: var(--llc-white);
  transform: scale(0.85) translateY(30px);
  transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
}
#llc-panel.llc-pos-left { right: auto; left: 24px; transform-origin: bottom left; }
#llc-panel.llc-open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.llc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--llc-primary) 0%, var(--llc-primary2, var(--llc-primary)) 60%, var(--llc-primary) 100%);
  position: relative; flex-shrink: 0;
}

.llc-header-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(110,181,255,0.5);
  animation: llc-glow-pulse 3s ease-in-out infinite;
}
.llc-header-avatar img { width: 100%; height: 100%; object-fit: cover; }

.llc-header-info { flex: 1; min-width: 0; }
.llc-header-name {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.llc-header-status {
  font-size: 11px; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 4px;
}
.llc-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #48bb78;
  animation: llc-status-pulse 2s ease-in-out infinite;
}
@keyframes llc-status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(72,187,120,0.4); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(72,187,120,0); }
}

.llc-header-actions { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }

.llc-header-btn {
  width: 30px; height: 30px; border: none;
  background: rgba(255,255,255,0.12); color: #fff;
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0; padding: 0;
}
.llc-header-btn:hover { background: rgba(255,255,255,0.26); }

/* 3-dot icon */
.llc-dots-icon { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; }
.llc-dots-icon span { display: block; width: 3.5px; height: 3.5px; background: currentColor; border-radius: 50%; }

/* ── 3-dot Dropdown ───────────────────────────────────────────────────────── */
.llc-menu-wrap { position: relative; }

.llc-menu-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  min-width: 162px; z-index: 200; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: scale(0.94) translateY(-4px);
  transform-origin: top right;
  transition: opacity 0.13s, transform 0.13s;
}
.llc-menu-dropdown.llc-menu-open { opacity: 1; pointer-events: all; transform: scale(1) translateY(0); }

.llc-menu-item {
  display: flex; align-items: center; justify-content: flex-start; gap: 9px;
  padding: 9px 13px; font-size: 13px; color: #2d3748;
  cursor: pointer; transition: background 0.1s;
  border: none; background: none; width: 100%;
  text-align: left; font-family: inherit; line-height: 1.3;
  white-space: nowrap;
}
.llc-menu-item:hover { background: #f7fafc; }
.llc-menu-item svg { opacity: 0.55; flex-shrink: 0; }
.llc-menu-sep { height: 1px; background: #edf2f7; margin: 2px 0; }

/* Close × */
.llc-close-btn-icon { font-size: 18px; line-height: 1; font-weight: 300; }

/* ── Toast Notification ───────────────────────────────────────────────────── */
.llc-toast {
  position: absolute; top: 56px; left: 10px; right: 10px;
  z-index: 300; padding: 8px 14px;
  background: rgba(30,30,30,0.88); color: #fff;
  font-size: 12.5px; font-weight: 500;
  border-radius: 8px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}
.llc-toast.llc-toast-show { opacity: 1; transform: translateY(0); }

/* ── Chat History Panel ───────────────────────────────────────────────────── */
.llc-hist {
  position: absolute; inset: 0;
  background: #fff; z-index: 150;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.llc-hist.llc-hist-open { transform: translateX(0); }

.llc-hist-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--llc-primary);
  border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.llc-hist-back {
  display: flex; align-items: center; gap: 5px;
  border: none; background: rgba(255,255,255,0.15);
  color: #fff; border-radius: 6px; padding: 5px 10px;
  font-size: 12.5px; cursor: pointer; transition: background 0.15s; font-family: inherit;
}
.llc-hist-back:hover { background: rgba(255,255,255,0.25); }
.llc-hist-title { font-size: 14px; font-weight: 700; color: #fff; }

.llc-hist-body { flex: 1; overflow-y: auto; background: #f4f7fb; }
.llc-hist-body::-webkit-scrollbar { width: 4px; }
.llc-hist-body::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

.llc-hist-empty { padding: 40px 20px; text-align: center; color: #718096; font-size: 13.5px; }
.llc-hist-empty-icon { font-size: 32px; margin-bottom: 10px; }

.llc-hist-item {
  padding: 13px 16px; border-bottom: 1px solid #edf2f7;
  cursor: pointer; transition: background 0.12s; background: #fff;
}
.llc-hist-item:hover { background: #f0f4f8; }
.llc-hist-item-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.llc-hist-item-date { font-size: 11px; color: #718096; }
.llc-hist-item-count { font-size: 11px; color: #a0aec0; }
.llc-hist-item-preview { font-size: 13px; color: #2d3748; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Session detail view */
.llc-hist-session-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--llc-primary);
  border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.llc-hist-session-date { font-size: 12px; color: rgba(255,255,255,0.8); }

.llc-hist-session-msgs {
  flex: 1; overflow-y: auto; padding: 12px 12px; background: #f4f7fb;
  display: flex; flex-direction: column; gap: 8px;
}
.llc-hist-session-msgs::-webkit-scrollbar { width: 4px; }
.llc-hist-session-msgs::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

/* ── Body ─────────────────────────────────────────────────────────────────── */
.llc-body {
  flex: 1; min-height: 0;          /* min-height:0 critical for flex overflow */
  overflow-y: auto;
  padding: 14px 13px;
  background: var(--llc-bg);
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.llc-body::-webkit-scrollbar { width: 4px; }
.llc-body::-webkit-scrollbar-track { background: transparent; }
.llc-body::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

/* ── Greeting (Genie-style) ───────────────────────────────────────────────── */
.llc-greeting { padding: 2px 0 4px; text-align: left; }

.llc-greeting-hi {
  font-size: 30px; font-weight: 800; color: var(--llc-teal);
  line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 2px;
}
.llc-greeting-sub {
  font-size: 16px; font-weight: 700; color: var(--llc-text); margin-bottom: 10px;
}

/* Welcome bubble */
.llc-welcome {
  background: var(--llc-white); border-radius: 12px 12px 12px 0;
  padding: 11px 13px; font-size: 13px; color: var(--llc-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 3px solid var(--llc-accent); max-width: 94%; line-height: 1.55;
}

/* ── 2×2 Suggestion Cards ─────────────────────────────────────────────────── */
.llc-sugg-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 7px; margin-top: 8px;
}

.llc-sugg-card {
  background: var(--llc-white); border: 1.5px solid #e8edf4;
  border-radius: 11px; padding: 9px 10px;
  cursor: pointer; text-align: left !important; font-family: inherit;
  display: block !important; align-items: unset !important; justify-content: unset !important;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.llc-sugg-card:hover {
  border-color: var(--llc-accent);
  box-shadow: 0 2px 8px rgba(58,123,213,0.12);
  transform: translateY(-1px);
}

.llc-sugg-cat {
  display: flex !important; align-items: center; justify-content: flex-start !important; gap: 4px;
  font-size: 10px; font-weight: 700; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.3px;
  text-align: left !important;
}
.llc-sugg-q { font-size: 12px; color: var(--llc-text); line-height: 1.38; font-weight: 500; text-align: left !important; text-transform: none !important; }

.llc-cat-0 { color: #e07c00; }
.llc-cat-1 { color: #1a6fd4; }
.llc-cat-2 { color: #0a8050; }
.llc-cat-3 { color: #7c3aed; }

/* ── Messages ─────────────────────────────────────────────────────────────── */
.llc-msg { display: flex; flex-direction: column; animation: llc-msg-in 0.2s ease; }
@keyframes llc-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.llc-msg.llc-user { align-items: flex-end; }
.llc-msg.llc-ai   { align-items: flex-start; }

.llc-bubble {
  max-width: 84%; padding: 10px 14px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.55; word-wrap: break-word;
}
.llc-msg.llc-user .llc-bubble {
  background: var(--llc-bubble-user);
  color: var(--llc-white); border-radius: 16px 16px 4px 16px;
}
.llc-msg.llc-ai .llc-bubble {
  background: var(--llc-bubble-ai); color: var(--llc-text);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.llc-bubble strong { font-weight: 600; }
.llc-bubble a { color: var(--llc-accent); text-decoration: underline; }

.llc-time { font-size: 10px; color: var(--llc-muted); margin-top: 3px; padding: 0 2px; }

/* Typing */
.llc-typing .llc-bubble { padding: 12px 16px; }
.llc-dots { display: flex; gap: 4px; align-items: center; height: 16px; }
.llc-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--llc-accent);
  animation: llc-dot-bounce 1.2s ease infinite;
}
.llc-dots span:nth-child(2) { animation-delay: 0.2s; }
.llc-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes llc-dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* Handoff notice */
.llc-handoff-notice {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #856404; text-align: center;
}

/* Divider */
.llc-divider { text-align: center; font-size: 11px; color: var(--llc-muted); position: relative; }
.llc-divider::before, .llc-divider::after {
  content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: #e2e8f0;
}
.llc-divider::before { left: 0; }
.llc-divider::after  { right: 0; }

/* ── Footer / Input ───────────────────────────────────────────────────────── */
.llc-footer {
  background: var(--llc-white); border-top: 1px solid #e8edf4; flex-shrink: 0;
}
.llc-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; }

.llc-input {
  flex: 1; resize: none; border: 1.5px solid #dce3ee; border-radius: 12px;
  padding: 9px 12px; font-size: 13.5px; color: var(--llc-text); background: #f8fafc;
  outline: none; min-height: 40px; max-height: 100px; line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit;
}
.llc-input:focus { border-color: var(--llc-accent); background: #fff; box-shadow: 0 0 0 3px rgba(58,123,213,0.1); }
.llc-input::placeholder { color: #a0aec0; }

/* Genie-style send button */
.llc-send-btn {
  width: 40px; height: 40px;
  background-color: var(--llc-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21l21-9L2 3v7l15 2-15 2v7z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 18px 18px;
  border: none; border-radius: 50%; cursor: pointer;
  flex-shrink: 0; transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(26,63,115,0.35);
}
.llc-send-btn:hover:not(:disabled) { background-color: var(--llc-accent); transform: scale(1.08); }
.llc-send-btn:disabled { background-color: #4a6fa5; box-shadow: none; cursor: not-allowed; }
.llc-send-btn svg { display: none !important; }

.llc-powered { text-align: center; padding: 4px 0 7px; font-size: 10px; color: var(--llc-muted); }

/* ── Image button ─────────────────────────────────────────────────────────── */
.llc-img-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  background: none; border: 1.5px solid #dce3ee; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--llc-muted); transition: border-color 0.15s, color 0.15s;
  padding: 0;
}
.llc-img-btn:hover { border-color: var(--llc-accent); color: var(--llc-accent); }

/* ── Image preview bubble (user side) ────────────────────────────────────── */
.llc-img-bubble { padding: 6px !important; background: var(--llc-bubble-user) !important; }
.llc-preview-img {
  max-width: 180px; max-height: 160px; border-radius: 8px;
  display: block; object-fit: cover;
}
.llc-img-name { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 4px; word-break: break-all; }
/* ── File upload message bubble (user side) ────────────────────────────── */
.llc-file-bubble { padding: 6px !important; background: var(--llc-bubble-user) !important; }
.llc-upload-preview {
  max-width: 180px; max-height: 160px; border-radius: 8px;
  display: block; object-fit: cover;
}
.llc-file-name { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 4px; word-break: break-all; }

.llc-powered a { color: var(--llc-accent); text-decoration: none; font-weight: 600; }
.llc-powered a:hover { text-decoration: underline; }

/* ── Map Card ─────────────────────────────────────────────────────────────── */
.llc-msg.llc-map-msg { align-items: stretch; }
.llc-msg.llc-map-msg .llc-bubble {
  max-width: 98%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

/* Header */
.llc-mc-header {
  padding: 9px 13px 7px;
  background: var(--llc-accent, #025032);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.llc-mc-header span { opacity: 0.85; font-weight: 400; font-size: 11px; }

/* Body: map left + list right */
.llc-mc-body {
  display: flex;
  height: 310px;
}

/* Map pane */
.llc-mc-map {
  flex: 0 0 56%;
  position: relative;
  background: #111318;  /* dark — visible before tiles load */
}
.llc-mc-map-el {
  width: 100%;
  height: 100%;
}
/* OSM tiles — no filter needed, colorful by default */

/* List pane */
.llc-mc-list {
  flex: 1;
  overflow-y: auto;
  border-left: 1px solid #e2e8f0;
  background: #fff;
  scroll-behavior: smooth;
}
.llc-mc-list::-webkit-scrollbar { width: 4px; }
.llc-mc-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

/* Place item — flex row with thumbnail */
.llc-mc-place {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f4f8;
  cursor: pointer;
  transition: background 0.15s;
}
.llc-mc-place:last-child { border-bottom: none; }
.llc-mc-place:hover,
.llc-mc-place.llc-mc-active { background: #f0faf5; }
.llc-mc-place-info { flex: 1; min-width: 0; }

/* Thumbnail */
.llc-mc-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.llc-mc-thumb-ph {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.llc-mc-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.llc-mc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  color: #718096;
}
.llc-mc-rating { color: #d69e2e; font-weight: 600; }
.llc-mc-dist   { color: #718096; }
.llc-mc-open   { color: #38a169; font-weight: 600; }
.llc-mc-closed { color: #e53e3e; font-weight: 600; }

/* ── Detail overlay (Claude-style, floats over map) ──────────────────────── */
.llc-mc-detail {
  display: none;
  position: absolute;
  top: 8px; right: 6px; left: 6px;
  max-height: calc(100% - 16px);
  background: #13151c;
  border: 1px solid #2a2d3a;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1000;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(0,0,0,0.75);
}
.llc-mc-detail.llc-mc-detail-visible { display: flex; }

/* Photo strip at top */
.llc-mc-d-photos {
  position: relative;
  height: 96px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4a5080 transparent;
  flex-shrink: 0;
  background: #0a0c14;
  gap: 2px;
  scroll-snap-type: x mandatory;
}
.llc-mc-d-photos::-webkit-scrollbar { height: 3px; }
.llc-mc-d-photos::-webkit-scrollbar-thumb { background: #4a5080; border-radius: 2px; }
.llc-mc-d-photo {
  height: 96px;
  min-width: 110px;
  max-width: 140px;
  object-fit: cover;
  cursor: zoom-in;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.llc-mc-d-nophoto {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: #1e2130;
}
/* Photo count badge */
.llc-mc-d-photo-count {
  position: absolute;
  bottom: 5px;
  left: 7px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 5;
}
.llc-mc-d-close {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}
.llc-mc-d-close:hover { background: rgba(0,0,0,0.9); }

/* Detail body */
.llc-mc-d-body {
  padding: 10px 12px 8px;
  flex: 1;
  overflow-y: auto;
}
.llc-mc-d-name {
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 3px;
  line-height: 1.3;
}
.llc-mc-d-meta {
  font-size: 11px;
  color: #9aa3b8;
  margin-bottom: 5px;
}
.llc-mc-d-addr {
  font-size: 10.5px;
  color: #6b7499;
  margin-bottom: 8px;
  line-height: 1.4;
}
.llc-mc-d-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.llc-mc-d-btn {
  font-size: 11px;
  padding: 5px 11px;
  background: #252839;
  color: #c0c8e0;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #363a52;
  white-space: nowrap;
}
.llc-mc-d-btn:hover { background: #363a52; color: #fff; }

/* Contact rows — phone + website */
.llc-mc-d-contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid #252839;
  padding-top: 7px;
}
.llc-mc-d-contact {
  font-size: 11px;
  color: #8ab4f8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.llc-mc-d-contact:hover { color: #b8d0ff; text-decoration: underline; }

/* Prev / Next nav */
.llc-mc-d-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-top: 1px solid #252839;
  flex-shrink: 0;
}
.llc-mc-d-nav span { font-size: 11px; color: #6b7499; }
.llc-mc-d-prev, .llc-mc-d-next {
  background: #252839;
  color: #c0c8e0;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.llc-mc-d-prev:hover, .llc-mc-d-next:hover { background: #363a52; }

/* Lightbox */
.llc-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.llc-lb-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}
.llc-lb-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.llc-lb-close {
  position: absolute;
  top: 16px; right: 20px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}
.llc-lb-nav {
  display: flex;
  gap: 16px;
}
.llc-lb-nav button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 18px;
}
.llc-lb-nav button:hover { background: rgba(255,255,255,0.3); }

/* Leaflet pin override — for OSM colorful map */
.llc-map-pin {
  background: #1a3f73;
  color: #fff;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
/* Selected pin → bright orange (stands out on OSM colorful) */
.llc-map-pin.llc-pin-active {
  background: #e65100;
  color: #fff;
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(230,81,0,0.35), 0 3px 10px rgba(0,0,0,0.5);
}
.llc-map-home {
  background: #fff;
  border: 3px solid #025032;
  border-radius: 50%;
  width: 14px !important;
  height: 14px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #llc-panel {
    /* Anchor to all 4 edges — fills visible viewport regardless of browser chrome */
    position: fixed !important;
    top: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    /* dvh = dynamic viewport height — excludes mobile browser chrome bar */
    max-height: calc(100dvh - 16px) !important;
    border-radius: 16px;
    transform-origin: bottom center;
  }
  #llc-panel.llc-pos-left { left: 8px !important; right: 8px !important; }
  #llc-trigger { right: 16px; bottom: 16px; }
  .llc-sugg-grid { grid-template-columns: 1fr; }
}
