/* 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;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
}

.ag-card-fav.ag-fav-active svg,
.ag-card-fav:hover svg {
  fill: #e53e3e;
  stroke: #e53e3e;
}

.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;
}

/* ── Browse by Industry ─────────────────────────────────────── */

.ag-industry-jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .ag-industry-jump-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .ag-industry-jump-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ag-industry-jump-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

a.ag-industry-jump-item {
  text-decoration: none!important;
}
.ag-industry-jump-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--primary_color, #6EC1E4);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ag-industry-jump-item:hover .ag-industry-jump-circle {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ag-industry-jump-name {
  margin: 0;
  color: #fff;
}

.ag-industry-group {
  margin-bottom: 2.5rem;
}

.ag-industry-group-title {
  margin-bottom: 1rem;
}

/* ── 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;
  margin-top: 1.5rem;
}

/* Meet the owner */
.ag-meet-owner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ag-meet-owner-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ag-meet-owner-text {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

/* 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-fav-action {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.ag-fav-action.ag-fav-active svg,
.ag-fav-action:hover svg {
  fill: #e53e3e;
  stroke: #e53e3e;
}

.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-wrap {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.ag-star-pick {
  cursor: pointer;
  line-height: 0;
  transition: transform 0.1s;
}

.ag-star-pick:hover {
  transform: scale(1.15);
}

.ag-star-pick.ag-star-hover svg,
.ag-star-pick.ag-star-selected svg {
  fill: #ffc400;
  stroke: #ffc400;
}

.ag-submit-review {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
}

.ag-submit-review:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Review form */
.ag-review-form {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
}

/* Form messages */
.ag-form-message {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.ag-form-message:empty {
  display: none;
}

.ag-form-message.ag-form-success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
}

.ag-form-message.ag-form-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.ag-required {
  color: #e53e3e;
}

/* Confirmed review notice */
.ag-confirmed-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 6px;
  color: #276749;
  font-weight: 500;
}

.ag-confirmed-notice p {
  margin: 0;
}

.ag-notice-dismiss {
  background: none;
  border: none;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 0;
  flex-shrink: 0;
}

/* Pending review notice */
.ag-review-pending {
  border-left: 3px solid #e53e3e;
}

.ag-pending-review-notice {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8em;
  font-weight: 700;
  color: #c53030;
  line-height: 1.4;
}

/* No reviews / no favourites messages */
.ag-no-reviews,
.ag-no-favourites {
  color: #888;
  font-style: italic;
  margin: 1rem 0;
}

/* Admin delete button on front-end reviews */
.ag-review-delete {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: none;
  border: 1px solid #e53e3e;
  border-radius: 3px;
  color: #e53e3e;
  font-size: 0.75em;
  cursor: pointer;
  line-height: 1.4;
}

.ag-review-delete:hover {
  background: #e53e3e;
  color: #fff;
}

.ag-review-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 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;
  }
}
