:root {
  --navy: #0e2439;
  --navy-deep: #081726;
  --sail-white: #faf7f0;
  --teak: #a9754f;
  --teak-dark: #7c5335;
  --brass: #c19a4b;
  --text: #1c2b38;
  --muted: #5b6b78;
  --border: #dcd6c9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", serif;
  background: var(--sail-white);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  margin: 0;
}

h2 {
  font-size: 1.6rem;
  color: var(--navy);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.05rem;
  color: var(--teak-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--sail-white);
  padding: 28px 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.boat-name .eyebrow {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.boat-name h1 {
  font-size: 2.4rem;
  margin: 2px 0;
}

.price-tag {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.price-tag .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--brass);
}

.price-tag .location {
  font-size: 0.95rem;
  color: #cfd9e3;
}

/* Hero / gallery */
.hero {
  background: var(--sail-white);
  padding: 24px 0 8px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}

.photo-tile {
  grid-column: span 1;
  grid-row: span 1;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  position: relative;
  display: block;
}

.photo-tile--main {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

.photo-tile:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

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

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: var(--sail-white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

.lightbox-close:hover {
  color: var(--brass);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 247, 240, 0.12);
  border: none;
  color: var(--sail-white);
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(193, 154, 75, 0.85);
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfd9e3;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* Main content sections */
main {
  padding: 20px 0 40px;
}

section {
  margin-bottom: 44px;
}

.note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 20px;
}

.placeholder-text {
  color: var(--muted);
  background: #f2eee2;
  border-left: 3px solid var(--brass);
  padding: 12px 16px;
  border-radius: 4px;
}

.pull-quote {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brass);
  background: #f2eee2;
  font-style: italic;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
}

.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.systems-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlights-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 28px;
}

.highlights-grid li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
}

.highlights-grid li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brass);
  font-weight: bold;
}

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

table th, table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

table th {
  color: var(--navy);
  font-weight: 600;
  width: 45%;
}

.detail-table {
  max-width: 480px;
}

.refit-list {
  margin-top: 16px;
  padding-left: 20px;
}

.refit-list li {
  margin-bottom: 6px;
  color: var(--text);
}

.resource-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 28px;
}

.resource-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.resource-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--brass);
}

.resource-list a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.resource-list a:hover {
  color: var(--teak-dark);
  border-bottom-color: var(--teak);
}

/* Contact */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--navy);
  color: var(--sail-white);
  padding: 20px 24px;
  border-radius: 8px;
  max-width: 420px;
  margin-top: 12px;
}

.contact-email {
  color: var(--brass);
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-phone, .contact-location {
  color: #cfd9e3;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #9fb0bd;
  padding: 18px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .price-tag { text-align: left; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; }
  .photo-tile--main { grid-column: span 2; grid-row: span 2; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
