/* ==========================================================================
   MY AGENCY FINDS — DIRECTORY & GUIDE STYLES
   Used by: index.html (guide panel) + all generated landing pages
   Load AFTER style.css
   ========================================================================== */

/* ── HOMEPAGE GUIDE PANEL ─────────────────────────────────────────────── */
.directory-guide {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
  text-align: center;
}

.directory-guide-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-badge);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.directory-guide-icon svg {
  width: 30px;
  height: 30px;
}

.directory-guide h3 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.directory-guide p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

/* Steps row (no selection yet) */
.directory-guide-steps {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.directory-guide-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.directory-guide-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Selection summary chips */
.directory-guide-selection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.directory-guide-selection .sel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-badge);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--border-radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.directory-guide-selection .sel-chip.sel-chip-cat {
  background: var(--bg-badge-teal);
  color: var(--secondary);
  border-color: rgba(20, 184, 166, 0.2);
}

.directory-guide-selection .sel-plus {
  color: var(--text-muted);
  font-weight: 700;
}

.directory-guide-count {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.directory-guide-count strong {
  color: var(--primary);
  font-size: 1.15rem;
}

/* The big arrow / GO button */
.directory-go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.directory-go-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.directory-go-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.directory-go-btn .go-arrow {
  transition: transform var(--transition-fast);
}

.directory-go-btn:hover .go-arrow {
  transform: translateX(4px);
}

/* Hint state (sector picked but no city yet) */
.directory-guide-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-badge);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--border-radius-pill);
}

@media (max-width: 640px) {
  .directory-guide {
    padding: 32px 20px;
    border-radius: 18px;
  }

  .directory-guide-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .directory-go-btn {
    width: 100%;
  }
}

/* ── GENERATED LANDING PAGES ──────────────────────────────────────────── */
.directory-hero {
  padding-top: 130px;
  padding-bottom: 28px;
}

.directory-hero .hero-content h1 {
  margin-bottom: 12px;
}

.directory-hero .hero-subtitle {
  max-width: 720px;
}

.directory-breadcrumbs {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.directory-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.directory-breadcrumbs a:hover {
  color: var(--primary);
}

.directory-breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 600;
}

/* Sector chip rows (landing pages, related cities) */
.directory-chip-row {
  margin-top: 22px;
}

.directory-chip-label {
  display: block;
  margin-bottom: 10px;
}

.directory-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.directory-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-badge);
}

.directory-chip.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
}

/* Related cities block */
.directory-related {
  padding: 48px 0 64px;
}

.directory-related h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* Note chip shown when ?sector= or ?also= filters are applied client-side */
.directory-note-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-badge-teal);
  color: var(--secondary);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--border-radius-pill);
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .directory-hero {
    padding-top: 96px;
    padding-bottom: 20px;
  }

  .directory-related {
    padding: 36px 0 48px;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   REDESIGNED AGENCY CARD (v2 — professional layout)
   Structure: avatar + identity row → star row → description → divider
   → call button → 3 secondary actions. Class names btn-card-call /
   btn-card-sec / secondary-actions are kept so all existing mobile CSS
   (tap targets, iOS fixes) continues to apply.
   ══════════════════════════════════════════════════════════════════════ */

.agency-card {
  min-height: unset;
  cursor: default;
}

/* ── Identity row ── */
.ac-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ac-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-badge);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  user-select: none;
}

.agency-card.recommended .ac-avatar {
  background: var(--primary);
  color: #fff;
}

.ac-id {
  min-width: 0;
}

.ac-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ac-name a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.ac-name a:hover {
  color: var(--primary);
}

.ac-verified {
  width: 15px;
  height: 15px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.ac-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ac-meta-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.ac-meta-link:hover {
  color: var(--primary);
}

.ac-meta-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ac-dot {
  color: var(--border-color);
  font-weight: 700;
}

/* ── Star rating row (opens reviews modal) ── */
.ac-stars {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  width: fit-content;
}

.ac-star-icons {
  display: inline-flex;
  gap: 1px;
  color: #F59E0B;
}

.ac-star-icons svg {
  width: 13px;
  height: 13px;
}

.ac-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.ac-reviews {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.ac-stars:hover .ac-reviews {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Description ── */
.agency-card .card-desc {
  margin-bottom: 16px;
}

/* ── Actions: divider + flat professional buttons ── */
.agency-card .card-actions {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: auto;
}

.agency-card .btn-card-call {
  background: var(--primary);
  border-radius: 10px;
  box-shadow: none;
}

.agency-card .btn-card-call:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.agency-card .btn-card-sec {
  border: 1px solid var(--border-color);
  background: transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.agency-card .btn-card-sec:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-badge);
}

/* ── Recommended variant: blue outline + corner ribbon ── */
.agency-card.recommended {
  border: 2px solid var(--primary);
}

.ac-ribbon {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ac-ribbon svg {
  width: 10px;
  height: 10px;
}

/* Nearby tag sits above the identity row */
.agency-card .nearby-city-tag {
  margin-bottom: 10px;
}


/* ══════════════════════════════════════════════════════════════════════
   PREMIUM SLOT (Sample 5 — royal blue banner)
   Locked "coming soon" card shown FIRST on every landing page.
   When an agency pays, set "recommended": true in the data and the real
   banner card (below) replaces the lock automatically.
   ══════════════════════════════════════════════════════════════════════ */

.premium-slot {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.premium-banner {
  background: var(--primary);
  text-align: center;
  padding: 12px 14px 26px;
}

.premium-banner span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.88);
}

.premium-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px auto 12px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.premium-logo svg {
  width: 20px;
  height: 20px;
}

.premium-body {
  padding: 0 20px;
  flex: 1;
}

.premium-skel {
  background: var(--bg-badge);
  border-radius: 4px;
  height: 8px;
  margin: 0 auto 6px;
}

.premium-skel.t {
  height: 11px;
  background: rgba(37, 99, 235, 0.16);
}

.premium-foot {
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
  padding: 13px 16px 18px;
  text-align: center;
}

.premium-foot-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 3px;
}

.premium-foot-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Unlocked recommended card (same banner language) ── */
.agency-card.recommended {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.agency-card.recommended .rec-inner {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.agency-card.recommended .ac-avatar.rec-logo {
  width: 48px;
  height: 48px;
  margin: -24px auto 8px;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.agency-card.recommended .ac-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin-bottom: 8px;
}

.agency-card.recommended .ac-name,
.agency-card.recommended .ac-meta {
  justify-content: center;
}

.agency-card.recommended .ac-stars {
  margin-left: auto;
  margin-right: auto;
}

.agency-card.recommended .card-desc {
  text-align: center;
}

/* Google reviews link in the reviews modal */
.modal-google-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  margin-top: 2px;
}

.modal-google-link:hover {
  text-decoration: underline;
}

/* Premium slot is a link to the contact page — same look, gentle hover */
a.premium-slot {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

a.premium-slot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
