/* Base styles — mobile first */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f8f6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #1a4d8f; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  background: #1a1a1a;
  color: #fff;
}
.hero-image {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-content {
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(180deg, #1a4d8f 0%, #0e3361 100%);
}
.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffd84d;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.tagline {
  font-size: 1.05rem;
  color: #cfe0f5;
  margin-bottom: 6px;
}
.location {
  font-size: 0.95rem;
  color: #9ec2e9;
  font-style: italic;
}

/* Main content */
main { max-width: 800px; margin: 0 auto; padding: 0 20px; }

section {
  padding: 32px 0;
  border-bottom: 1px solid #e0ddd6;
}
section:last-child { border-bottom: none; }

h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: #1a4d8f;
  font-weight: 700;
}

p { margin-bottom: 14px; font-size: 1.02rem; }
p:last-child { margin-bottom: 0; }

ul {
  list-style: none;
  padding: 0;
}
ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 1rem;
}
ul li::before {
  content: "⚓";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  color: #1a4d8f;
}
.terms ul li::before { content: "•"; font-size: 1.2rem; }
.needs ul li::before { content: "🔧"; font-size: 0.85rem; }
.included ul li::before { content: "✓"; color: #2d7a2d; font-weight: bold; }

/* Gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.photo {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.photo:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Contact */
.contact-info {
  background: #fff;
  padding: 16px 20px;
  border-left: 4px solid #1a4d8f;
  font-size: 1.1rem;
  border-radius: 2px;
}

/* Footer */
footer {
  padding: 24px 20px;
  text-align: center;
  background: #1a1a1a;
  color: #999;
  font-size: 0.85rem;
  margin-top: 24px;
}
footer a { color: #ffd84d; }

/* Tablet+ */
@media (min-width: 640px) {
  .hero-content h1 { font-size: 2.6rem; }
  .price { font-size: 3rem; }
  .hero-content { padding: 32px 24px; }
  h2 { font-size: 1.75rem; }
  section { padding: 40px 0; }
}

/* Desktop */
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .hero-image { max-height: none; }
  .hero-image img { height: 100%; min-height: 480px; }
  .hero-content { display: flex; flex-direction: column; justify-content: center; text-align: left; }
  .hero-content h1 { font-size: 3rem; }
  .price { font-size: 3.4rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: #d6d1c8;
  font-size: 0.9rem;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lightbox button:hover,
.lightbox button:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  outline: none;
}
.lightbox-close { top: 16px; right: 16px; font-size: 1.8rem; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
@media (max-width: 640px) {
  .lightbox { padding: 20px 8px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox button { width: 44px; height: 44px; }
}

/* Print-friendly */
@media print {
  .hero { background: none; color: #000; }
  .hero-content { background: none; color: #000; }
  .price { color: #000; }
  section { page-break-inside: avoid; }
  .lightbox { display: none !important; }
}
