/* ==========================================================================
   Global Property Escape — Phase 4
   Shared styles for the estate-agent directory, destination guides,
   unified directory engine, typed favourites and enriched detail pages.
   ========================================================================== */

/* ==========================================================================
   1. Directory filter bars
   ========================================================================== */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.filter-search { grid-column: 1 / -1; }

.checkbox-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light);
}
.checkbox-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--text); cursor: pointer; user-select: none;
}
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ==========================================================================
   2. Results toolbar
   ========================================================================== */
.directory-toolbar--between {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.directory-toolbar--between .directory-count { margin: 0; }

/* ==========================================================================
   3. Pagination
   ========================================================================== */
.pagination-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 44px;
}
.pagination-bar .page-btn {
  min-width: 44px; height: 44px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--white);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
  color: var(--text); cursor: pointer; transition: all var(--transition-fast);
}
.pagination-bar .page-btn:hover:not(:disabled):not(.active) { border-color: var(--secondary); color: var(--secondary); }
.pagination-bar .page-btn.active { background: var(--gradient-accent); color: var(--white); border-color: transparent; }
.pagination-bar .page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pagination-bar .dots {
  min-width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; color: var(--text-dim);
}

/* ==========================================================================
   4. Card save buttons
   ========================================================================== */
.venue-card { position: relative; }
.save-btn--topleft { right: auto; left: 14px; }
.save-btn--inline { position: static; flex-shrink: 0; }
.agent-card-actions { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.agent-card-actions .btn-block { flex: 1; width: auto; margin: 0; }

.agent-verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--success);
  margin-top: 2px;
}
.agent-verified svg { width: 14px; height: 14px; }

/* ==========================================================================
   5. Ratings
   ========================================================================== */
.star-row { display: inline-flex; gap: 2px; color: var(--warning); vertical-align: middle; }
.star-row svg { width: 16px; height: 16px; }
.stars-sm svg { width: 13px; height: 13px; }

/* ==========================================================================
   6. Status tags
   ========================================================================== */
.tag--upcoming { background: var(--success); color: var(--white); }
.tag--cancelled { background: var(--error); color: var(--white); }
.tag--muted { background: var(--light-grey); color: var(--text-muted); }

/* ==========================================================================
   7. Destination card (wrapped image link)
   ========================================================================== */
.destination-card-img { display: block; height: 100%; position: relative; }
.destination-card:hover .destination-card-img img { transform: scale(1.07); }

/* ==========================================================================
   8. Favourites tabs
   ========================================================================== */
.fav-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
.fav-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-full);
  background: var(--white); font-family: var(--font-heading); font-size: 0.85rem;
  font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast);
}
.fav-tab:hover { border-color: var(--secondary); color: var(--secondary); }
.fav-tab.active { background: var(--gradient-accent); border-color: transparent; color: var(--white); }
.fav-tab .fav-tab-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-full);
  background: var(--light-grey); color: var(--text-muted); font-size: 0.74rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.fav-tab.active .fav-tab-count { background: rgba(255,255,255,0.22); color: var(--white); }

.fav-type-heading {
  display: flex; align-items: center; gap: 10px; margin: 8px 0 18px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  color: var(--text);
}
.fav-type-block + .fav-type-block { margin-top: 34px; }
.fav-type-heading::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}

/* ==========================================================================
   9. Detail page helpers (agents / destinations / venues)
   ========================================================================== */
.agent-profile-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.agent-profile-avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--white); box-shadow: var(--shadow-sm);
}
.agent-contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.agent-profile-head .choice-logo-img { height: 32px; max-width: 140px; margin-top: 6px; }

.dest-guide-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px;
}
.dest-guide-grid .guide-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-xs);
}
.dest-guide-grid .guide-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.dest-guide-grid .guide-card h3 svg { width: 18px; height: 18px; color: var(--secondary); }
.guide-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.guide-card ul li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; color: var(--text); }
.guide-card ul li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--success); margin-top: 2px; }

.coords-note { font-size: 0.8rem; color: var(--text-dim); }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .filter-grid { grid-template-columns: 1fr; }
  .agent-profile-head { flex-direction: column; align-items: center; text-align: center; }
}
