/* Navira Surfaces — shared styles */
:root {
  --ink: #1c1c1c;
  --ink-soft: #55524c;
  --line: #e5e2dc;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --accent: #b3924f;
}

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

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}
.brand .brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
}
.brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-top: 5px;
  line-height: 1;
}
.tagline {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  font-size: 28px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 800px) {
  .tagline { position: static; transform: none; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Inventory grid ---------- */
.page-title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  text-align: center;
}
.page-title h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.page-title p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 15px;
}

.grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 1050px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  background: var(--bg);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}
.card .photo {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .photo img { transform: scale(1.04); }
.card .info { padding: 18px 18px 20px; }
.card .name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.card .meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- Detail page ---------- */
.detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 64px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: stretch; /* photo column matches the details column height */
}
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

.photo-col {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}
.detail .photo-wrap {
  cursor: zoom-in;
  flex: 1;
  min-height: 0;
  position: relative; /* image is anchored inside, so it can't stretch the row */
}
.detail .photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;   /* exactly as tall as the details column on the right */
  object-fit: cover; /* picture fills the box; edges trim if it doesn't fit */
  border: 1px solid var(--line);
}
.detail .photo-hint {
  position: absolute; /* sits below the aligned photo box */
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 900px) {
  .detail { align-items: start; }
  .detail .photo-wrap { flex: none; }
  .detail .photo-wrap img { height: auto; aspect-ratio: 15 / 8; }
  .detail .photo-hint { position: static; margin-top: 10px; }
}

.detail h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
}
.detail h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }
.spec-table td { padding: 13px 16px; }
.spec-table td:first-child { color: var(--ink-soft); width: 45%; }
.spec-table td:last-child { font-weight: 500; }

.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.back-link:hover { text-decoration: underline; }

/* ---------- Action buttons (lot photos / video) ---------- */
.action-btns {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 20px;
  background: #efedea;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.action-btn:hover { background: #e3e0da; }
.action-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Lot inventory page ---------- */
.lots-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.lots-head .kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.lots-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 600;
}
.lots-close {
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  padding: 4px 10px;
}
.lots-close:hover { color: var(--accent); }
.lots-count {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 0;
  font-family: Georgia, serif;
  font-size: 18px;
}
.lots-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
@media (max-width: 1050px) { .lots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .lots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .lots-grid { grid-template-columns: 1fr; } }
.lot-card { display: block; }
.lot-card .photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.lot-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lot-card:hover .photo { box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.lot-card .lot-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.lot-card .lot-id {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lot-card .lot-size {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-top: 3px;
}
.badge-available {
  background: #e2f0e2;
  color: #2e6b34;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---------- Video page ---------- */
.photo-page .stage video {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  background: #000;
}
.video-missing {
  color: #cfccc5;
  font-size: 15px;
  text-align: center;
  padding: 80px 24px;
  line-height: 1.8;
}

/* ---------- More materials strip ---------- */
.more {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.more h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 26px;
}

/* ---------- Full-size photo page ---------- */
body.photo-page {
  background: #141414;
  min-height: 100vh;
}
.photo-page .topbar {
  position: sticky;
  top: 0;
  padding: 14px 22px;
  background: rgba(20, 20, 20, 0.92);
  color: #e8e6e1;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.photo-page .topbar a { color: #d9b96a; }
.photo-page .topbar a:hover { text-decoration: underline; }
.photo-page .stage {
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
}
.photo-page .stage img {
  max-width: 100%;
  max-height: calc(100vh - 100px); /* fits the screen, keeps proportions */
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* ---------- Full-screen photo gallery (photo.html) ---------- */
.photo-page .stage { position: relative; }
.photo-page .photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #e8e6e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s ease;
}
.photo-page .photo-nav:hover { background: rgba(0, 0, 0, 0.75); }
.photo-page .photo-nav svg { width: 22px; height: 22px; }
.photo-page .photo-prev { left: 18px; }
.photo-page .photo-next { right: 18px; }
.photo-page .photo-nav[hidden] { display: none; }
.photo-page .photo-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #e8e6e1;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 3;
}
.photo-page .photo-count[hidden] { display: none; }
@media (max-width: 900px) {
  .photo-page .photo-nav { width: 40px; height: 40px; }
  .photo-page .photo-prev { left: 10px; }
  .photo-page .photo-next { right: 10px; }
}

/* ---------- Wishlist ---------- */
.wl-header-link {
  margin-left: auto;
  align-self: center;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
}
.wl-header-link:hover { color: var(--accent); }
.wl-header-link svg { width: 24px; height: 24px; }
.wl-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.wl-badge[hidden] { display: none; }

.detail .wl-heart {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}
.detail .wl-heart:hover { background: #fff; }
.detail .wl-heart svg { width: 22px; height: 22px; }
.detail .wl-heart.active svg {
  fill: #d64545;
  stroke: #d64545;
}
.detail .wl-heart .wl-tip {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.detail .wl-heart:hover .wl-tip { opacity: 1; }
.detail .wl-heart.active .wl-tip { display: none; }

.wl-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}
.wl-page h1 { font-size: 32px; font-weight: 700; }
.wl-sub { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.wl-page .photo { position: relative; }
.wl-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.wl-remove:hover { background: #fff; color: #d64545; }
.wl-actions { margin-top: 28px; }
.wl-empty { margin-top: 32px; color: var(--ink-soft); font-size: 16px; }
.wl-empty .back-link { margin-top: 14px; display: inline-block; }
