/* AG Business Index — structural layout only, no visual theming */

/* ── Archive / taxonomy teaser ──────────────────────────────── */

.ag-business-teaser {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.ag-teaser-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.ag-teaser-title {
  margin: 0 0 0.25rem;
}

.ag-teaser-meta {
  margin: 0 0 0.5rem;
  font-size: 0.9em;
}

.ag-teaser-excerpt {
  margin-bottom: 0.5rem;
}

/* ── Listings grid shortcode ────────────────────────────────── */

.ag-business-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ag-business-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.ag-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
}

.ag-card-title-wrap {
  flex: 1;
}

.ag-card-title {
  margin: 0;
  font-size: 1rem;
}

.ag-card-title a {
  text-decoration: none;
}

.ag-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8em;
}

.ag-card-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.85em;
  white-space: nowrap;
}

.ag-card-fav {
  cursor: pointer;
  flex-shrink: 0;
}

.ag-card-logo {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.ag-card-logo img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.ag-card-logo-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  font-size: 0.85em;
  color: #999;
}

.ag-card-excerpt {
  padding: 0.75rem;
  flex: 1;
}

.ag-card-excerpt p {
  margin: 0;
  font-size: 0.9em;
}

.ag-card-services {
  list-style: disc;
  margin: 0;
  padding: 0 0.75rem 0.75rem 1.75rem;
  font-size: 0.85em;
}

.ag-services-more a {
  text-decoration: none;
}

.ag-card-cta {
  /* display: block;
  text-align: center;
  padding: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #eee;
  margin-top: auto; */
}

/* ── Map ────────────────────────────────────────────────────── */

.ag-business-map-wrap {
  border-radius: 6px;
  overflow: hidden;
}

.ag-map-popup {
  min-width: 160px;
  font-size: 0.85rem;
}

.ag-popup-logo {
  max-width: 80px;
  max-height: 50px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.4rem;
}

.ag-popup-name {
  display: block;
  margin-bottom: 0.2rem;
}

.ag-popup-name a {
  text-decoration: none;
}

.ag-popup-industry {
  display: block;
  font-size: 0.8em;
  margin-bottom: 0.3rem;
}

.ag-popup-phone {
  margin: 0 0 0.4rem;
}

.ag-popup-btn {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  text-decoration: none;
  font-size: 0.8em;
  border: 1px solid currentColor;
  border-radius: 4px;
}

/* ── Single listing ─────────────────────────────────────────── */

.ag-business-single {
  width: 100%;
}

.ag-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ag-col {
  box-sizing: border-box;
}

.ag-col-50 {
  flex: 0 0 calc(50% - 0.75rem);
  min-width: 260px;
}

.ag-col-70 {
  flex: 0 0 calc(70% - 0.75rem);
  min-width: 260px;
}

.ag-col-30 {
  flex: 0 0 calc(30% - 0.75rem);
  min-width: 220px;
}

.ag-single-map {
  width: 100%;
  height: 280px;
  border-radius: 6px;
  overflow: hidden;
}

/* Gallery */
.ag-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ag-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Services */
.ag-services-list {
  padding-left: 1.5rem;
}

/* Action icons */
.ag-action-icons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
}

.ag-action-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-size: 0.8em;
  text-align: center;
  cursor: pointer;
}

.ag-icon-label {
  font-size: 0.75em;
}

/* Sidebar info */
.business-sidebar-info {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
}

.ag-sidebar-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
}

.ag-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ag-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9em;
}

.ag-contact-list a {
  word-break: break-all;
}

.ag-hours-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9em;
}

.ag-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.ag-hours-day {
  font-weight: 500;
  min-width: 90px;
}

.ag-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ag-social-icon {
  display: inline-flex;
  text-decoration: none;
}

.ag-contact-now-btn {
  display: block;
  text-align: center;
  padding: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid currentColor;
  border-radius: 4px;
}

/* Reviews */
.ag-reviews-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.ag-review {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.ag-review-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.ag-star-filled svg {
  fill: #f5a623;
  stroke: #f5a623;
}

.ag-star-empty svg {
  fill: #ddd;
  stroke: #ddd;
}

/* Review form placeholder */
.ag-review-form-placeholder {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
}

.ag-form-field {
  margin-bottom: 1rem;
}

.ag-form-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.9em;
}

.ag-form-field input,
.ag-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
}

.ag-form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.ag-star-select {
  display: flex;
  gap: 0.3rem;
}

.ag-star-pick {
  cursor: not-allowed;
  opacity: 0.5;
}

.ag-captcha-box {
  padding: 1rem;
  border: 1px dashed #ccc;
  border-radius: 4px;
  text-align: center;
  color: #999;
  font-size: 0.85em;
}

.ag-submit-review {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
  .ag-col-50,
  .ag-col-70,
  .ag-col-30 {
    flex: 0 0 100%;
    min-width: 0;
  }

  .ag-business-listings-grid {
    grid-template-columns: 1fr;
  }
}
