* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9)), url('imgs/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Image hover effects */
img {
  transition: transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8962e;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Gold accent gradient */
.gold-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #f4ead1 100%);
}

/* Button hover effects */
button, a {
  transition: all 0.3s ease;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Lightbox gallery */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.gallery-overlay.hidden {
  display: none;
}

.gallery-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #f4ead1;
  border: 1px solid #d4af37;
  border-radius: 9999px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
  left: 24px;
}

.gallery-nav.next {
  right: 24px;
}

.gallery-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.6);
  color: #f4ead1;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #f4ead1;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Print styling to keep the PDF close to the desktop view */
@media print {
  :root {
    --page-max-width: 1200px;
  }

  @page {
    size: Letter;
    margin: 0.5in;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    margin: 0;
  }

  header,
  main {
    max-width: var(--page-max-width);
    margin: 0 auto;
  }

  header {
    padding: 24px 32px !important;
  }

  main {
    padding: 32px !important;
  }

  a {
    text-decoration: none !important;
  }

  a[href]::after {
    content: "";
  }

  .print-desktop-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    column-gap: 2rem !important;
    align-items: start;
  }

  .print-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .print-no-break {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .property-image {
    height: auto !important;
    max-height: none !important;
  }

  iframe {
    width: 100% !important;
    height: 350px !important;
  }
}
