/* ─── SEO Generated Pages Styles ─── */
/* Reuses CSS vars from styles.css */

/* ─── Layout ─── */

.seo-page {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 80vh;
}

.seo-page .container {
  max-width: 1200px;
}

/* ─── Breadcrumbs ─── */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--text-lighter);
}

/* ─── City Hero ─── */

.city-hero {
  padding: 2rem 0 1.5rem;
}

.city-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.city-count {
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 0;
}

/* ─── Business Card Grid ─── */

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.business-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--timing-normal) var(--easing-standard),
              transform var(--timing-normal) var(--easing-standard);
}

.business-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.card-address {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.card-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.btn-book-now {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.business-card:hover .btn-book-now {
  background: var(--primary-dark, #3ab8b0);
}

/* ─── Tags / Badges ─── */

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--text-body);
}

.tag.specialty {
  background: #e6fffa;
  color: #047857;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── Stars ─── */

.stars {
  display: inline-flex;
  gap: 1px;
  font-size: 1rem;
  line-height: 1;
}

.star.filled {
  color: #f59e0b;
}

.star.half {
  color: #f59e0b;
  opacity: 0.6;
}

.star.empty {
  color: #d1d5db;
}

/* ─── Price Level ─── */

.price-level {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
}

.review-count {
  font-size: 0.85rem;
  color: var(--text-light);
}

.external-ratings {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ─── Cross-links ─── */

.cross-links {
  margin: 2rem 0 3rem;
}

.cross-links h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cross-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.cross-link-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
}

.cross-link-list a:hover {
  text-decoration: underline;
}

/* ─── Related Articles ─── */

.related-articles {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.related-articles h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.related-articles-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.related-articles-list a:hover {
  text-decoration: underline;
}

/* ─── CTA Banner ─── */

.cta-banner {
  background: var(--gradient-calm);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.cta-banner .btn-primary-large {
  background: var(--white);
  color: var(--primary-color);
}

.cta-banner .btn-primary-large:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ─── City Index Grid ─── */

.city-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.city-link {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: box-shadow var(--timing-normal) var(--easing-standard),
              transform var(--timing-normal) var(--easing-standard);
}

.city-link:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--primary-color);
}

/* ─── City Intro ─── */

.city-intro {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 720px;
}

/* ═══════════════════════════════════════════ */
/* ─── Business Detail Page ─── */
/* ═══════════════════════════════════════════ */

/* ─── Claim Banner ─── */

.claim-banner {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.claim-banner-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.claim-banner-content p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.claim-btn {
  display: inline-block;
}

/* ─── Inline Claim Form ─── */

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #99f6e4;
}

.claim-form .form-row {
  display: flex;
  gap: 0.75rem;
}

.claim-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.15s;
}

.claim-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.claim-form .claim-submit {
  width: 100%;
  cursor: pointer;
  font-size: 1.05rem;
}

.claim-form .claim-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.claim-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0.5rem 0 0;
  text-align: center;
}

.claim-success {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.claim-success .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  background: #0d9488;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
}

.claim-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.claim-success p {
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.claim-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* ─── Photo Gallery ─── */

.photo-gallery {
  display: grid;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 400px;
}

.photo-gallery.photo-count-1 {
  grid-template-columns: 1fr;
}

.photo-gallery.photo-count-2 {
  grid-template-columns: 1fr 1fr;
}

.photo-gallery.photo-count-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.photo-gallery.photo-count-3 .gallery-img:first-child {
  grid-row: 1 / 3;
}

.photo-gallery.photo-count-4,
.photo-gallery.photo-count-5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.photo-gallery.photo-count-4 .gallery-img:first-child,
.photo-gallery.photo-count-5 .gallery-img:first-child {
  grid-row: 1 / 3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Detail Layout ─── */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

.detail-main h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.detail-description {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ─── Info Rows ─── */

.detail-info {
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 80px;
  font-size: 0.9rem;
}

.info-row a {
  color: var(--primary-color);
  text-decoration: none;
}

.info-row a:hover {
  text-decoration: underline;
}

/* ─── Detail Sections ─── */

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
}

/* ─── Hours Table ─── */

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-body);
  border-bottom: 1px solid #f1f5f9;
}

.hours-table tr.today td {
  font-weight: 600;
  color: var(--primary-color);
}

/* ─── Review Insights ─── */

.insights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-body);
}

.insight strong {
  color: var(--text-dark);
}

/* ─── Detail CTA / Booking Form ─── */

.detail-cta {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.detail-cta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1.25rem;
  text-align: center;
}

.detail-cta .btn-primary-large {
  margin-bottom: 0.75rem;
}

.cta-sub {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0.75rem 0 0;
  text-align: center;
}

/* ─── Booking Form ─── */

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-form .form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: -0.25rem;
}

.booking-form .form-row {
  display: flex;
  gap: 0.75rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.15s;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.booking-form textarea {
  resize: none;
}

.booking-form .add-note-toggle {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  text-decoration: underline;
}

.booking-form .booking-submit {
  width: 100%;
  cursor: pointer;
  font-size: 1.05rem;
}

.booking-form .booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Booking Success ─── */

.booking-success {
  text-align: center;
  padding: 2rem 1rem;
}

.booking-success .success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

.booking-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.booking-success p {
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

.app-store-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.app-store-cta p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.app-store-badge img {
  transition: opacity 0.2s ease;
}

.app-store-badge:hover img {
  opacity: 0.85;
}

/* ─── Booking Error ─── */

.booking-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ─── Sidebar ─── */

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.map-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  display: block;
}

.back-link {
  display: block;
  text-align: center;
  padding: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════ */
/* ─── Responsive ─── */
/* ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .city-hero h1 {
    font-size: 1.75rem;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    order: -1;
  }

  .photo-gallery {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    max-height: none;
  }

  .photo-gallery .gallery-img:first-child {
    grid-row: auto !important;
  }

  .photo-gallery .gallery-img:nth-child(n+3) {
    display: none;
  }

  .detail-main h1 {
    font-size: 1.5rem;
  }

  .cta-banner {
    padding: 2rem 1.25rem;
  }

  .city-index-grid {
    grid-template-columns: 1fr;
  }

  .info-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .booking-form .form-row {
    flex-direction: column;
  }

  .claim-form .form-row {
    flex-direction: column;
  }

  .claim-banner {
    padding: 1.25rem 1.25rem;
  }
}
