/* ========================================
   Izzy's Bizzy Goldens - Main Stylesheet
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #F5E6D3;
  --cream-light: #FDF6ED;
  --gold: #C9A86C;
  --gold-dark: #8B7355;
  --brown: #5C4033;
  --black: #1a1a1a;
  --white: #ffffff;
  --text: #333333;
  --bg: #E8D4B8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Pawprint background - stays behind all content */
#pawprint-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0 !important;
  overflow: hidden;
}

#pawprint-background .pawprint {
  z-index: 0 !important;
}

/* Ensure all content stays above pawprint background */
main, section, footer, .container, .hero, .two-column,
.puppies-section, .parents-section, .health-content, .contact-section,
.gallery, .puppy-gallery, .parents-gallery, .text-content, .image-content,
.hero-content, .hero-text, .footer-content, .footer-cta, .contact-intro,
.contact-form, .puppies-intro, .puppy-filters, .puppies-cta, .parents-intro {
  position: relative;
  /* z-index removed - was interfering with mobile nav */
}

/* Images must stay above pawprints */
.two-column .image-content img,
.gallery img,
.gallery-track img,
.puppy-card img,
.parent-card img,
main img {
  position: relative;
  /* z-index removed - was interfering with mobile nav */
}

/* Text elements need position relative for proper rendering */
h1, h2, h3, h4, p, .btn, a {
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Links in content areas - make them stand out */
.hero-text a,
.text-content a,
.health-content a,
#heroText a,
#aboutBodyText a,
#healthBodyText a {
  color: #8B6914;
  text-decoration: underline;
  text-decoration-color: rgba(139, 105, 20, 0.4);
  text-underline-offset: 2px;
}

.hero-text a:hover,
.text-content a:hover,
.health-content a:hover,
#heroText a:hover,
#aboutBodyText a:hover,
#healthBodyText a:hover {
  color: #6B4F0F;
  text-decoration-color: #6B4F0F;
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  /* Note: No z-index here - nav uses position:fixed and needs root-level z-index */
}

.logo img {
  height: 100px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.7;
}

nav a.btn-contact {
  border: 1.5px solid var(--black);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
}

nav a.btn-contact:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .logo img {
    height: 70px;
  }

  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 9999999 !important;
  }

  nav {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #F5E6D3 !important;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 2147483647 !important;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  }

  nav.active {
    right: 0;
  }

  /* Overlay div created by JavaScript */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 2147483646;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  nav a {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1;
    background: var(--cream);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ========================================
   Main Content Areas
   ======================================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  padding: 3rem 0;
}

/* Hero / Intro Section */
.hero {
  padding: 6rem 0 3rem;
}

.hero-content {
  padding-top: 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-text {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
}

/* Primary CTA Button */
.btn-puppies {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--black);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 30px;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(201, 168, 108, 0.3);
}

.btn-puppies:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 108, 0.4);
}

/* ========================================
   Photo Gallery
   ======================================== */
/* Static gallery (without carousel track) */
.gallery {
  display: flex;
  gap: 0.5rem;
  margin: 0 -2rem;
  padding: 0 2rem 1rem;
  flex-wrap: wrap;
}

/* Carousel gallery (with track for JS animation) */
.gallery:has(.gallery-track) {
  display: block;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.gallery img {
  width: 280px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 4px solid var(--gold);
}

/* Gallery dots for mobile carousel */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gold-dark);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-dot.active {
  opacity: 1;
  background: var(--gold);
}

@media (min-width: 1200px) {
  .gallery {
    overflow: visible;
  }

  .gallery-track {
    justify-content: center;
    flex-wrap: wrap;
  }

  .gallery img {
    width: calc(20% - 0.5rem);
    min-width: 200px;
  }

  .gallery-dots {
    display: none;
  }
}

/* ========================================
   About Section / Two Column Layout
   ======================================== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.two-column .text-content h2 {
  margin-bottom: 1.5rem;
}

.two-column .text-content p {
  margin-bottom: 1.25rem;
}

.two-column .image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 4px solid var(--gold);
}

@media (max-width: 800px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-column .image-content {
    order: -1;
  }
}

/* ========================================
   Health Page
   ======================================== */
.health-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.health-content h1 {
  margin-bottom: 1.5rem;
}

.health-content > p {
  margin-bottom: 2rem;
}

.health-list {
  text-align: left;
  margin: 2rem 0;
}

.health-list h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.health-list ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.health-list li {
  margin-bottom: 0.5rem;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
}

.contact-intro h1 {
  margin-bottom: 1.5rem;
}

.contact-form {
  background: transparent;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group label span {
  font-weight: 400;
  color: #666;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--black);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream-light);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group small {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

button[type="submit"] {
  background: transparent;
  border: 1.5px solid var(--black);
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 800px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--black);
  color: var(--white);
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-cta p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-cta .btn {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}

.footer-cta .btn:hover {
  background: var(--gold);
  color: var(--black);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.admin-link {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.admin-link:hover {
  color: rgba(255,255,255,0.6);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

strong {
  font-weight: 600;
}

/* Page-specific backgrounds */
.page-about main,
.page-health main,
.page-contact main {
  min-height: calc(100vh - 400px);
}

/* ========================================
   Puppies Page - Gallery & Modal
   ======================================== */
.puppies-section {
  text-align: center;
  padding: 2rem 0;
}

.puppies-section h1 {
  margin-bottom: 0.5rem;
}

.puppies-intro {
  color: #666;
  margin-bottom: 2rem;
}

.puppy-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.puppy-card {
  background: var(--cream-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid var(--gold);
}

.puppy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.puppy-card.reserved {
  opacity: 0.8;
}

.puppy-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.puppy-image > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reserved-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #DAA520;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
}

.sold-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #DC143C;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
}

.available-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #228B22;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
}

.puppy-card.sold {
  opacity: 0.7;
}

.puppy-info {
  padding: 1rem;
}

.puppy-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.collar-color {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.puppies-cta {
  margin-top: 2rem;
}

.puppies-cta a {
  color: var(--gold-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* Puppy Modal */
.puppy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.puppy-modal.active {
  display: flex;
}

.modal-content {
  background: var(--cream-light);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--gold-dark);
}

.modal-gallery {
  padding: 1.5rem;
}

.modal-main-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-thumbnails .thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}

.modal-thumbnails .thumbnail:hover,
.modal-thumbnails .thumbnail.active {
  opacity: 1;
  border-color: var(--gold);
}

.modal-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h2 {
  margin-bottom: 1rem;
}

.modal-collar-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.status-available {
  color: #228B22;
  font-weight: 600;
}

.status-reserved {
  color: #DAA520;
  font-weight: 600;
}

.status-sold {
  color: #DC143C;
  font-weight: 600;
}

.modal-contact-btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
  transition: background 0.2s;
}

.modal-contact-btn:hover {
  background: var(--gold-dark);
}

@media (max-width: 700px) {
  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-main-image {
    height: 250px;
  }

  .puppy-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* Puppy Filters */
.puppy-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--cream-light);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--gold-dark);
}

/* Gender Badge */
.gender-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  z-index: 5;
}

.gender-male {
  background: #4A90D9;
  color: white;
}

.gender-female {
  background: #E91E8C;
  color: white;
}

.gender-badge img {
  max-width: 14px;
  max-height: 14px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-gender-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 2px;
}

/* No puppies message */
.no-puppies {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-style: italic;
}

/* Modal details */
#modalDetails {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.detail-item {
  font-size: 0.95rem;
}

.parent-link {
  color: var(--gold-dark);
  text-decoration: underline;
  transition: color 0.2s;
}

.parent-link:hover {
  color: var(--black);
}

@media (max-width: 600px) {
  .puppy-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    justify-content: space-between;
  }

  .filter-group select {
    flex: 1;
  }
}

/* ========================================
   Parent Dogs Gallery & Modal
   ======================================== */

.parents-section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.parents-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.parents-intro {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.parents-cta {
  margin-top: 2rem;
  color: #666;
}

.parents-cta a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.parent-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  justify-content: center;
}

.parent-card {
  background: var(--cream-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid var(--gold);
  width: 280px;
  flex-shrink: 0;
}

.parent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.parent-image {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 portrait aspect ratio (taller than puppies) */
  overflow: hidden;
}

.parent-image > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-info {
  padding: 1rem;
}

.parent-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

/* Parent Modal */
.parent-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.parent-modal.active {
  display: flex;
}

.parent-modal-content {
  max-width: 900px;
}

.parent-modal-main-image {
  height: 450px; /* Taller than puppy modal */
}

.parent-description {
  margin: 1rem 0;
  color: #444;
  line-height: 1.7;
}

.parent-description p {
  margin: 0;
}

.parent-documents {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(201, 168, 108, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.parent-documents h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--gold-dark);
}

.documents-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.documents-list li {
  margin-bottom: 0.5rem;
}

.documents-list li:last-child {
  margin-bottom: 0;
}

.documents-list a {
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.documents-list a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.documents-list a::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23C9A86C' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6zm-1 2l5 5h-5V4zM6 20V4h6v6h6v10H6z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.no-parents {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-style: italic;
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .parent-modal-content {
    grid-template-columns: 1fr;
  }

  .parent-modal-main-image {
    height: 300px;
  }

  .parent-gallery {
    gap: 1rem;
  }

  .parent-card {
    width: calc(50% - 0.5rem);
    min-width: 150px;
  }
}

/* ========================================
   Payment & Reservation System
   ======================================== */

/* Payment Notification Banner */
.payment-notification {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.payment-notification.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.payment-notification.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.payment-notification.info {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Reserve Button */
.modal-reserve-btn {
  display: inline-block;
  background: #228B22;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-reserve-btn:hover {
  background: #1e7b1e;
}

/* Reservation Form */
.reservation-form {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.reservation-form h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.reservation-form .form-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.reservation-form .form-group {
  margin-bottom: 1rem;
}

.reservation-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.reservation-form .form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  font-size: 0.95rem;
  background: white;
}

.reservation-form .form-group input:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.reservation-form .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.reservation-form .btn-pay {
  flex: 1;
  background: #228B22;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 30px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.reservation-form .btn-pay:hover:not(:disabled) {
  background: #1e7b1e;
}

.reservation-form .btn-pay:disabled {
  background: #888;
  cursor: not-allowed;
}

.reservation-form .btn-cancel {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  padding: 0.75rem 1rem;
  border-radius: 30px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.reservation-form .btn-cancel:hover {
  background: var(--text);
  color: white;
}

.reservation-form .form-note {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: center;
}

/* Modal adjustments for reservation form */
@media (max-width: 700px) {
  .reservation-form {
    padding: 1rem;
  }

  .reservation-form .form-actions {
    flex-direction: column;
  }

  .reservation-form .btn-pay,
  .reservation-form .btn-cancel {
    width: 100%;
  }
}
