/* Aira Home — shared: directions bar (4 services) + chat widget.
   Used by /home, /airahome, /energia, /garden, /construction. */

/* ── DIRECTIONS BAR ── */
.ah-dirs{display:flex;align-items:center;gap:0.35rem;padding:0.45rem 1.75rem;background:#fff;border-bottom:1px solid rgba(34,38,31,0.10);overflow-x:auto;scrollbar-width:none;font-family:'Inter',sans-serif;}
.ah-dirs::-webkit-scrollbar{display:none;}
.ah-dirs-hub{font-family:'JetBrains Mono',monospace;font-size:0.66rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:#5b6156;text-decoration:none;margin-right:0.5rem;white-space:nowrap;}
.ah-dirs-hub:hover{color:#22261f;}
.ah-dir{display:inline-flex;align-items:center;gap:0.35rem;white-space:nowrap;text-decoration:none;color:#22261f;font-size:0.84rem;font-weight:600;padding:0.35rem 0.75rem;border-radius:999px;border:1px solid transparent;transition:background 0.2s,border-color 0.2s;}
.ah-dir:hover{background:rgba(34,38,31,0.06);}
.ah-dir[aria-current="page"]{border-color:rgba(34,38,31,0.25);background:rgba(34,38,31,0.05);}
.ah-dir-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
@media(max-width:640px){.ah-dirs{padding:0.4rem 1rem;}.ah-dir{font-size:0.8rem;padding:0.3rem 0.6rem;}}

/* ── CHAT WIDGET ── */
.ahw-btn{position:fixed;bottom:1.6rem;right:1.6rem;z-index:1000;width:58px;height:58px;border-radius:50%;background:#22261f;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 24px rgba(20,24,28,0.28);transition:transform 0.2s;}
.ahw-btn:hover{transform:scale(1.06);}
.ahw-btn svg{pointer-events:none;}
.ahw-panel{position:fixed;bottom:5.6rem;right:1.6rem;z-index:1000;width:360px;max-width:calc(100vw - 2rem);max-height:min(72vh,580px);background:#fff;color:#22261f;border:1px solid rgba(34,38,31,0.20);border-radius:12px;box-shadow:0 20px 60px rgba(20,24,28,0.2);display:flex;flex-direction:column;overflow:hidden;transform:translateY(16px) scale(0.98);opacity:0;pointer-events:none;visibility:hidden;transition:transform 0.25s ease,opacity 0.25s ease,visibility 0.25s;font-family:'Inter',sans-serif;}
.ahw-panel.open{transform:none;opacity:1;pointer-events:all;visibility:visible;}
.ahw-head{display:flex;align-items:center;gap:0.7rem;padding:0.9rem 1rem;border-bottom:1px solid rgba(34,38,31,0.10);background:#f6f5f1;}
.ahw-avatar{width:34px;height:34px;border-radius:50%;background:#4a5240;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:0.9rem;flex-shrink:0;}
.ahw-info{flex:1;min-width:0;}
.ahw-name{font-weight:600;font-size:0.9rem;}
.ahw-status{font-size:0.7rem;color:#8b9086;display:flex;align-items:center;gap:0.35rem;}
.ahw-dot{width:6px;height:6px;border-radius:50%;background:#2fa84f;}
.ahw-close{background:none;border:none;color:#5b6156;font-size:0.8rem;font-weight:600;cursor:pointer;padding:0.3rem 0.5rem;border-radius:6px;}
.ahw-close:hover{background:rgba(34,38,31,0.06);color:#22261f;}
.ahw-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:0.4rem;padding:0.7rem;border-bottom:1px solid rgba(34,38,31,0.10);}
.ahw-act{display:flex;align-items:center;justify-content:center;text-align:center;gap:0.3rem;padding:0.5rem 0.3rem;border-radius:8px;border:1px solid rgba(34,38,31,0.20);background:#fff;color:#22261f;text-decoration:none;font-size:0.75rem;font-weight:600;line-height:1.2;}
.ahw-act:hover{border-color:#22261f;}
.ahw-act.primary{background:#22261f;border-color:#22261f;color:#fff;}
.ahw-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:0.65rem;min-height:120px;}
.ahw-msg{max-width:85%;padding:0.6rem 0.85rem;border-radius:12px;font-size:0.85rem;line-height:1.5;white-space:pre-wrap;}
.ahw-msg.bot{background:#f6f5f1;border-bottom-left-radius:4px;align-self:flex-start;}
.ahw-msg.user{background:#22261f;color:#fff;border-bottom-right-radius:4px;align-self:flex-end;}
.ahw-typing{align-self:flex-start;background:#f6f5f1;border-radius:12px;padding:0.6rem 0.9rem;display:flex;gap:4px;}
.ahw-typing span{width:5px;height:5px;border-radius:50%;background:#8b9086;animation:ahwBounce 1.2s infinite;}
.ahw-typing span:nth-child(2){animation-delay:.2s}
.ahw-typing span:nth-child(3){animation-delay:.4s}
@keyframes ahwBounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}
.ahw-bar{padding:0.7rem;border-top:1px solid rgba(34,38,31,0.10);display:flex;gap:0.5rem;}
.ahw-input{flex:1;min-width:0;background:#f6f5f1;border:1px solid rgba(34,38,31,0.20);border-radius:999px;padding:0.55rem 0.9rem;font-family:inherit;font-size:0.85rem;outline:none;color:#22261f;}
.ahw-input:focus{border-color:#4a5240;}
.ahw-send{height:34px;padding:0 0.85rem;border-radius:999px;background:#4a5240;color:#fff;border:none;cursor:pointer;font-size:0.78rem;font-weight:600;flex-shrink:0;}
.ahw-send:disabled{opacity:0.5;cursor:default;}
@media(max-width:640px){.ahw-btn{bottom:1rem;right:1rem;}.ahw-panel{right:1rem;bottom:4.8rem;}}
@media(prefers-reduced-motion:reduce){.ahw-panel,.ahw-btn{transition:none!important;}.ahw-typing span{animation:none!important;}}
