/*
 * An advert page (pet.php): header band, gallery and lightbox, details, pedigree card, breeder sidebar, contact dialog.
 * Linked from the <head> by the page ($boPageStylesheets).
 */
/* Global overflow control */
html, body {
  overflow-x: hidden;
}

.pet-hero,
.pet-main {
  overflow-x: hidden;
}

/* Constrained container for pet page */
.pet-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Preview Bar. Deep amber: white text on the old light amber was 2.0-3.2:1;
   #b45309 is 5.0:1 (and #92400e 7.1:1). */
.preview-bar {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: white;
  padding: 0.75rem 0;
  --focus-ring: #ffffff;
}

.preview-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.preview-inner > i { font-size: 1.25rem; }
.preview-tags { display: flex; gap: 0.5rem; flex: 1; }
.preview-tag {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
}

.preview-bar .btn {
  background: white;
  color: #b45309;
  font-weight: 600;
}

/* Hero */
.pet-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.pet-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  opacity: 0.8;
  flex-wrap: wrap;
  word-break: break-word;
}

.pet-breadcrumb a {
  color: white;
  text-decoration: none;
}

.pet-breadcrumb a:hover { text-decoration: underline; }
.pet-breadcrumb .sep {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

.pet-breadcrumb .current { opacity: 0.7; }

.pet-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
}

.pet-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

section.pet-hero h1,
.pet-hero h1,
.pet-hero-info h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  line-height: 1.2;
  color: #ffffff !important;
  display: block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.pet-hero-info {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.pet-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.9375rem;
  opacity: 0.85;
}

.pet-hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.pet-hero-price {
  text-align: right;
  flex-shrink: 0;
}

.pet-hero-price .price-label {
  display: block;
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.pet-hero-price .price-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

/* Main Content */
.pet-main {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: var(--bg-subtle);
}

.pet-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.pet-content,
.pet-sidebar {
  min-width: 0;
}

/* Gallery */
.gallery-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  width: 100%;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-subtle);
  max-width: 100%;
  overflow: hidden;
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  cursor: zoom-in;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  gap: 0.5rem;
}

.gallery-placeholder i { font-size: 3rem; opacity: 0.4; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
  z-index: 10;
}

.gallery-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow.prev { left: 1rem; }
.gallery-arrow.next { right: 1rem; }

.gallery-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.gallery-expand {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-main:hover .gallery-expand { opacity: 1; }
@media (hover: none) {
  .gallery-expand { opacity: 1; }
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.gallery-thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--bg-subtle);
  transition: all 0.2s;
}

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

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gallery-thumb.more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
}

/* The site's opaque focus ring (custom.css); white on the green dialog header
   and the dark lightbox. (This used --primary-rgb, which is never defined, so
   the outline computed to none and hid focus on every control here.) */
.gallery-arrow:focus-visible,
.gallery-expand:focus-visible,
.gallery-thumb:focus-visible,
.share-btn:focus-visible,
.modal-close-btn:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.mobile-contact-bar button:focus-visible,
.mobile-contact-bar a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.modal-header,
.lightbox {
  --focus-ring: #ffffff;
}

.gallery-main:focus-within .gallery-expand {
  opacity: 1;
}
/* Description */
.description-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.description-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--space-lg);
  color: var(--text-primary);
}

.description-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  overflow: hidden;
}

/* Details Card (Sidebar) */
.details-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.details-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

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

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-row .detail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.detail-row .detail-label i {
  font-size: 1rem;
  color: var(--primary);
}

.detail-row .detail-value {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* Contact Card */
.contact-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.breeder-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
}

.breeder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.breeder-info { flex: 1; min-width: 0; }

.breeder-name {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.breeder-name:hover { color: var(--primary); }

.breeder-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #059669;
  font-weight: 500;
}

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

/* Full-width buttons wrap their label (the theme's .btn doesn't), so a long
   one like "Reload the page and keep my message" fits a phone. */
.btn-block { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }

.btn-subtle {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-subtle:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

/* The pale tint: --primary-light is a mid green (the number was 2.0:1). */
.phone-display {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.phone-display.show { display: flex; }
.phone-display:hover { color: var(--primary); }

.view-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9375rem;
}

.view-profile-link:hover { color: var(--primary-dark); }

/* Share Card */
.share-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.share-title {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all 0.2s;
  color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: var(--text-secondary); }

.share-btn:hover { transform: scale(1.1); }

.mobile-contact-bar {
  display: none;
}

.mobile-contact-bar button,
.mobile-contact-bar a {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-contact-primary {
  background: var(--primary);
  color: white;
}

.mobile-contact-secondary,
.mobile-phone-link {
  background: white;
  color: var(--primary-dark);
  border: 1px solid var(--border-color) !important;
}

.mobile-phone-link {
  display: none;
}

.mobile-phone-link.show {
  display: inline-flex;
}

@media (max-width: 768px) {
  /* Room for the fixed bar below everything, so it never covers the end of
     the page (the footer's bottom row): the bar's 48px buttons, 0.75rem
     padding top and bottom, its border and the phone's home-indicator
     inset. */
  body {
    padding-bottom: calc(48px + 1.5rem + 1px + env(safe-area-inset-bottom));
  }

  .mobile-contact-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0.5rem;
    padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    z-index: 950;
  }

  .gallery-expand {
    opacity: 1;
  }
}

/* Stats Card */
.stats-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Modal with Backdrop Blur */
#contactModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: none;
  overflow-y: auto;
  outline: 0;
}

/* Top-aligned, with auto margins on the dialog: centred whenever it fits,
   and on short screens (small phones, landscape, keyboard open) it starts at
   the top and scrolls, instead of being centred with its title and close
   button pushed above the screen where they can't be reached. */
#contactModal.show {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: auto;
  pointer-events: none;
}

#contactModal.show .modal-dialog {
  pointer-events: auto;
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal.fade .modal-dialog {
  transform: scale(0.9) translateY(-30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.6) !important;
}

body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background: #ffffff;
}

.modal-header {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-bottom: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close-btn {
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.375rem 0 0;
}

.modal-body {
  padding: var(--space-xl);
  background: #ffffff;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--bg-subtle);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(26, 95, 74, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Modal Submit Button */
.modal-body .btn-primary {
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(26, 95, 74, 0.4);
  transition: all 0.2s ease;
}

.modal-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 74, 0.5);
}

.modal-body .btn-primary:active {
  transform: translateY(0);
}

.modal-body .btn-primary:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

/* Contact form: inline problem / saved-draft notice (BJ13) */
.contact-draft-notice {
  background: #fff7e6;
  border: 1px solid #f6c453;
  color: #7c2d12;
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.contact-draft-notice p {
  margin: 0;
}

.contact-draft-notice .btn {
  margin-top: 0.75rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox > img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .pet-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: static;
  }

  .pet-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .pet-hero-price {
    text-align: left;
    margin-top: var(--space-md);
  }
}

@media (max-width: 768px) {
  .pet-page-container {
    padding: 0 var(--space-md);
  }

  .pet-hero {
    padding: var(--space-lg) 0;
  }

  .pet-main {
    padding: var(--space-lg) 0 var(--space-3xl);
    background: var(--bg-body);
  }

  .gallery-card,
  .description-card,
  .contact-card,
  .details-card,
  .share-card,
  .stats-card,
  .pedigree-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-thumbs {
    padding: 0.75rem;
    gap: 0.375rem;
  }

  .gallery-thumb {
    flex: 0 0 60px;
    height: 60px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 576px) {
  .pet-page-container {
    padding: 0 var(--space-sm);
  }

  .pet-hero {
    padding: var(--space-md) 0;
  }

  .pet-main {
    padding: var(--space-md) 0 var(--space-3xl);
  }

  /* App-like edge-to-edge cards on mobile */
  .gallery-card {
    border-radius: var(--radius-md);
    margin: 0 calc(-1 * var(--space-sm));
    width: calc(100% + var(--space-sm) * 2);
  }

  .description-card,
  .contact-card,
  .details-card,
  .pedigree-card {
    border-radius: var(--radius-md);
    padding: var(--space-lg);
  }

  .description-card h2,
  .pedigree-card h2 {
    font-size: 1.125rem;
  }

  .contact-card {
    padding: var(--space-lg);
  }

  .share-card,
  .stats-card {
    border-radius: var(--radius-md);
    padding: var(--space-md);
  }

  .pet-hero-meta {
    flex-direction: column;
    gap: 0.375rem;
  }

  .pet-type-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .breeder-profile {
    flex-direction: column;
    text-align: center;
  }

  .breeder-location {
    justify-content: center;
  }

  .gallery-thumb {
    flex: 0 0 52px;
    height: 52px;
  }

  .modal-dialog {
    margin: auto 0.5rem;
    max-width: calc(100vw - 1rem);
  }
}
