/**
 * Single Business Profile Styles
 */
.aofbd-listing-hero {
  padding-block: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--aofbd-border);
  margin-bottom: 2rem;
}

.aofbd-listing-hero__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.aofbd-listing-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.aofbd-listing-hero__tagline {
  font-size: 1.0625rem;
  color: var(--aofbd-muted);
}

.aofbd-listing-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
  color: var(--aofbd-body);
}

.aofbd-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.aofbd-btn[aria-pressed="true"] {
  background: var(--aofbd-danger-bg);
  border-color: var(--aofbd-danger);
  color: var(--aofbd-danger);
}

.aofbd-listing-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .aofbd-listing-layout {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    align-items: start;
  }
}

.aofbd-panel {
  background: var(--aofbd-surface);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.aofbd-listing-cover img {
  width: 100%;
  border-radius: var(--aofbd-radius-sm);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.aofbd-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.aofbd-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--aofbd-radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.aofbd-gallery-thumb:hover {
  border-color: var(--aofbd-primary);
}

.aofbd-gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aofbd-lightbox {
  border: 0;
  padding: 1rem;
  border-radius: var(--aofbd-radius-lg);
  background: var(--aofbd-dark);
  color: #ffffff;
  max-width: min(92vw, 960px);
}

.aofbd-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.85);
}

.aofbd-lightbox__bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.aofbd-lightbox img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--aofbd-radius-sm);
}

.aofbd-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aofbd-feature-list li {
  padding: 0.375rem 0.75rem;
  background: var(--aofbd-surface-alt);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-pill);
  font-size: 0.875rem;
}

.aofbd-contact-list,
.aofbd-hours-list {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.aofbd-contact-list dt,
.aofbd-hours-list dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--aofbd-muted);
}

.aofbd-contact-list dd,
.aofbd-hours-list dd {
  margin: 0.125rem 0 0;
  word-break: break-word;
}

.aofbd-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.aofbd-map-frame {
  width: 100%;
  height: 240px;
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-sm);
  margin-bottom: 0.75rem;
}

/* ── Interactive Leaflet Map on Single Listing ── */
.aofbd-single-map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-sm);
  margin-bottom: 0.875rem;
  z-index: 1;
  background: var(--aofbd-surface-alt, #f8fafc);
}

.aofbd-btn--full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ── Custom Pin Marker on Single Map ── */
.aofbd-custom-pin {
  background: none;
  border: none;
}

.aofbd-pin-marker {
  width: 28px;
  height: 38px;
  background: #dc2626;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.aofbd-pin-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Rating Badges in Hero ── */
.aofbd-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: #d97706;
}

.aofbd-rating-badge--empty {
  color: var(--aofbd-muted);
  font-weight: 500;
}

/* ── Facilities & Features Grid ── */
.aofbd-feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-weight: 500;
}

.aofbd-feat-check {
  color: #16a34a;
  font-weight: 800;
}

/* ── Accessible FAQs Accordion ── */
.aofbd-accordion {
  display: grid;
  gap: 0.75rem;
}

.aofbd-accordion__item {
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-sm);
  background: var(--aofbd-surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.aofbd-accordion__item[open] {
  border-color: var(--aofbd-primary);
}

.aofbd-accordion__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  cursor: pointer;
  user-select: none;
  background: var(--aofbd-surface);
}

.aofbd-accordion__summary:hover {
  background: var(--aofbd-surface-alt);
}

.aofbd-accordion__icon {
  font-size: 1.125rem;
  transition: transform 0.2s ease;
  color: var(--aofbd-muted);
}

.aofbd-accordion__item[open] .aofbd-accordion__icon {
  transform: rotate(180deg);
  color: var(--aofbd-primary);
}

.aofbd-accordion__content {
  padding: 0 1.25rem 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--aofbd-body);
  border-top: 1px solid var(--aofbd-border);
}

.aofbd-accordion__content p:last-child {
  margin-bottom: 0;
}

/* ── Reviews & Ratings Section ── */
.aofbd-reviews-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--aofbd-border);
  margin-bottom: 1.5rem;
}

.aofbd-reviews-sub {
  margin: 0.25rem 0 0;
  color: var(--aofbd-muted);
  font-size: 0.875rem;
}

.aofbd-rating-summary-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-md);
  padding: 0.875rem 1.5rem;
  text-align: center;
}

.aofbd-rating-score {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--aofbd-text-main, #0f172a);
}

.aofbd-rating-stars {
  color: #f59e0b;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  margin: 0.25rem 0;
}

.aofbd-rating-count {
  font-size: 0.75rem;
  color: var(--aofbd-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.aofbd-reviews-list {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.aofbd-review-card {
  padding: 1.25rem;
  background: var(--aofbd-surface-alt, #f8fafc);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-sm);
}

.aofbd-review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.aofbd-review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aofbd-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--aofbd-border);
}

.aofbd-review-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  font-size: 1.25rem;
}

.aofbd-review-author-name {
  display: block;
  font-size: 0.9375rem;
  color: var(--aofbd-text-main, #0f172a);
}

.aofbd-review-date {
  font-size: 0.8125rem;
  color: var(--aofbd-muted);
}

.aofbd-review-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.aofbd-review-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--aofbd-text-main, #0f172a);
}

.aofbd-review-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--aofbd-body);
}

.aofbd-reviews-empty {
  padding: 1.5rem;
  background: var(--aofbd-surface-alt);
  border: 1px dashed var(--aofbd-border);
  border-radius: var(--aofbd-radius-sm);
  text-align: center;
  color: var(--aofbd-muted);
  margin-bottom: 2rem;
}

/* ── Write Review Form ── */
.aofbd-review-form-wrap {
  padding-top: 1.5rem;
  border-top: 1px solid var(--aofbd-border);
}

.aofbd-review-form-wrap h3 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.aofbd-form-group {
  margin-bottom: 1.25rem;
}

.aofbd-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--aofbd-text-main, #0f172a);
  margin-bottom: 0.375rem;
}

.aofbd-required {
  color: #dc2626;
}

.aofbd-form-group input[type="text"],
.aofbd-form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-sm);
  font-size: 0.9375rem;
  background: #ffffff;
  color: var(--aofbd-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aofbd-form-group input:focus,
.aofbd-form-group textarea:focus {
  border-color: var(--aofbd-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Interactive Star Rating Selector */
.aofbd-star-rating-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
}

.aofbd-star-rating-picker input {
  display: none;
}

.aofbd-star-rating-picker label {
  font-size: 1.75rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease;
}

.aofbd-star-rating-picker label:hover,
.aofbd-star-rating-picker label:hover ~ label,
.aofbd-star-rating-picker input:checked ~ label {
  color: #f59e0b;
}

.aofbd-star-rating-picker label:active {
  transform: scale(1.15);
}

.aofbd-review-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aofbd-form-feedback {
  font-size: 0.875rem;
  font-weight: 600;
}

.aofbd-form-feedback.is-success {
  color: #16a34a;
}

.aofbd-form-feedback.is-error {
  color: #dc2626;
}

/* ── Claim Listing Card ── */
.aofbd-panel--claim {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-color: #86efac;
}

.aofbd-claim-box {
  text-align: center;
}

.aofbd-claim-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.aofbd-claim-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: #0f172a;
}

.aofbd-claim-box p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* ── Opening Hours Today Highlight ── */
.aofbd-panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.aofbd-panel-header-row h2 {
  margin: 0;
}

.aofbd-hours-list div.is-today {
  background: #f0fdf4;
  padding: 0.375rem 0.625rem;
  border-radius: var(--aofbd-radius-sm);
  border-left: 3px solid #16a34a;
}

.aofbd-today-pill {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  margin-left: 0.375rem;
  text-transform: uppercase;
}
