/* =========================================================
   Nishop Booking — live directory styles
   ========================================================= */

.dir-hero {
  position: relative;
  background: #0b1220;
  color: #c9d4e8;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dir-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.dir-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: dir-drift 18s ease-in-out infinite alternate; }
.do-1 { width: 42vmax; height: 42vmax; left: -12vmax; top: -16vmax; background: radial-gradient(circle, rgba(59,110,246,.5), transparent 65%); }
.do-2 { width: 34vmax; height: 34vmax; right: -8vmax; bottom: -14vmax; background: radial-gradient(circle, rgba(18,163,123,.42), transparent 65%); animation-delay: -6s; }
@keyframes dir-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4%,6%,0) scale(1.12); } }
.dir-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
}
.dir-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
  padding-block: clamp(2.6rem, 2rem + 3vw, 4.2rem);
}
.dir-hero h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); max-width: 16ch; }
.dir-hero .eyebrow { color: #86a6ff; }
.dir-hero .live-dot { color: #7be0bc; }
.dir-hero .live-dot::before { background: #12a37b; }
.dir-lede { max-width: 56ch; }
.dir-lede code { font-family: var(--font-mono); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 0 0.4em; font-size: 0.9em; color: #fff; }

.dir-search {
  display: flex; gap: 0.5rem; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 0.5rem; margin-top: 1.4rem; max-width: 620px;
  backdrop-filter: blur(8px);
}
.dir-search:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(59,110,246,.25); }
.dir-search-ico { display: grid; place-items: center; padding-left: 0.6rem; color: #8492ac; }
.dir-search-ico svg { width: 18px; height: 18px; }
.dir-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: #fff;
  font: inherit; font-size: 0.95rem; padding: 0.7rem 0.4rem;
}
.dir-search input::placeholder { color: #8492ac; }
.dir-search input:focus { outline: none; }
.dir-stats { margin-top: 0.8rem; font-size: 0.82rem; color: #8492ac; }

.dir-hero-side { display: grid; gap: 0.8rem; align-content: center; }
.dir-float-card {
  display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 0.8rem; align-items: center;
  background: rgba(255,255,255,.92); border-radius: 16px; padding: 0.8rem 0.9rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  animation: dir-float 7s ease-in-out infinite;
  color: var(--text-body);
}
.dfc-2 { animation-delay: -2.4s; margin-left: 1.6rem; }
.dfc-3 { animation-delay: -4.8s; grid-template-columns: auto minmax(0,1fr); }
@keyframes dir-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.dfc-ava {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #2a5ae0, #6d3be0);
}
.dir-float-card strong { display: block; color: var(--text); font-size: 0.9rem; }
.dir-float-card em { display: block; font-style: normal; font-size: 0.75rem; color: var(--text-muted); }
.dir-float-card code { font-family: var(--font-mono); font-size: 0.75rem; }
.dfc-cta {
  font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--brand-600);
  border-radius: 9px; padding: 0.45em 0.8em;
}
.dfc-cta.is-green { background: #0b7c63; }
.dir-live-badge { display: grid; place-items: center; background: var(--ink-900); color: #7be0bc; border-radius: 12px; padding: 0.7rem; font-size: 0.72rem; }

.dir-steps { padding-left: 1.2em; display: grid; gap: 0.6rem; }
.dir-steps li { font-size: 0.95rem; }
.dir-how .provider-card { text-align: left; }

.dir-cta { margin-top: 2rem; }
.dir-cta-card {
  display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between;
  background: linear-gradient(115deg, #1f45b8, #4b3bd6 45%, #0e7c64);
  border-radius: 20px; padding: clamp(1.5rem, 1.2rem + 2vw, 2.4rem); color: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.dir-cta-card::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -100px; top: -150px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 65%);
}
.dir-cta-card h2 { color: #fff; margin-bottom: 0.4rem; }
.dir-cta-card p { margin: 0; max-width: 52ch; }
.dir-cta-card code { font-family: var(--font-mono); background: rgba(255,255,255,.14); border-radius: 6px; padding: 0 0.4em; }
.dir-cta-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; position: relative; z-index: 1; }

@media (max-width: 940px) {
  .dir-hero-inner { grid-template-columns: 1fr; }
  .dir-hero-side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dir-orb, .dir-float-card { animation: none !important; }
}

/* ---------- AI ask + location ---------- */
.dir-loc-row { display: flex; gap: 0.5rem; margin-top: 0.6rem; max-width: 620px; flex-wrap: wrap; }
.dir-loc-field {
  flex: 1 1 200px; display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 0.45rem 0.75rem;
}
.dir-loc-field svg { width: 16px; height: 16px; color: #8492ac; flex: none; }
.dir-loc-field input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: #fff;
  font: inherit; font-size: 0.86rem; padding: 0.3rem 0;
}
.dir-loc-field input::placeholder { color: #8492ac; }
.dir-loc-field input:focus { outline: none; }
.dir-geo {
  --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-border: rgba(255,255,255,.2);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.dir-geo svg { width: 15px; height: 15px; }
.dir-geo:disabled { opacity: 0.6; cursor: wait; }
.dir-geo-status { margin: 0.5rem 0 0; font-size: 0.78rem; color: #7be0bc; min-height: 1.2em; }
.dir-examples { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-top: 0.7rem; font-size: 0.78rem; color: #8492ac; }
.dir-examples button {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #e8eefb;
  font: inherit; font-size: 0.76rem; font-weight: 600; border-radius: 999px; padding: 0.4em 0.9em; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dir-examples button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.dir-ai-hint { margin: 0.7rem 0 0; font-size: 0.82rem; color: #9bb8ff; }
.dir-ai-hint:empty { display: none; }
.dir-ai-hint b { color: #fff; }

/* near pill in filter bar */
.filter-near { margin-top: 0.6rem; }
.near-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #e7f8f0; border: 1px solid #bfe9d8; color: #0b7d51;
  font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 0.35em 0.5em 0.35em 0.8em;
}
.near-pill svg { width: 14px; height: 14px; }
.near-pill button {
  border: 0; background: rgba(11,125,81,.12); color: #0b7d51; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%; font-size: 0.7rem; line-height: 1;
}
.near-pill button:hover { background: rgba(11,125,81,.22); }

/* ---------- smart match cards ---------- */
.match-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: linear-gradient(135deg, #2a5ae0, #6d3be0); color: #fff;
  border-radius: 999px; padding: 0.35em 0.8em; box-shadow: 0 8px 18px rgba(42,90,224,.4);
}
.match-line {
  display: flex; gap: 0.4rem; align-items: flex-start;
  font-size: 0.76rem; color: #0b7d51; background: #eefaf4;
  border: 1px solid #c9ecdc; border-radius: 10px; padding: 0.5em 0.7em; line-height: 1.45;
}
.match-line svg { width: 14px; height: 14px; flex: none; margin-top: 0.15em; }
.svc-lines { display: grid; gap: 0.35rem; }
.svc-line {
  font-size: 0.78rem; color: var(--text-body);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 0.4em 0.65em;
}
.svc-line strong { color: var(--text); }
.svc-line small { color: var(--text-muted); }
