/* Item detail page — extends styles.css */

.item-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px) 100px;
}

.item-back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.item-back:hover { color: var(--ink); }

.item-404 { padding: 60px 0; }
.item-404 h1 { font-size: 1.8rem; margin-bottom: 12px; }
.item-404 p { color: var(--ink-soft); margin-bottom: 24px; }

.item-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.item-gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--panel);
}
.gallery-main svg { width: 30%; height: 30%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
}
.gallery-thumb svg { width: 44%; height: 44%; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--ink); }

/* Info */
.item-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.item-page-price { font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.item-page-deposit { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 20px; }
/* An item booked by paying its deposit here: the amount is what the main button charges. */
.item-page-deposit.strong { font-size: 1rem; color: var(--ink); font-weight: 600; }
.item-description { color: var(--ink-soft); font-size: 1rem; margin-bottom: 28px; max-width: 52ch; }
.item-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-dark { color: var(--ink); border-color: var(--line-strong); }
.btn-outline-dark:hover { background: var(--panel); }

/* Booking */
.item-booking {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.item-booking h2 { font-size: 1.4rem; margin-bottom: 18px; }
.steps { color: var(--ink-soft); max-width: 60ch; margin: 0 0 24px; padding-left: 1.3em; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps a { color: var(--ink); text-decoration: underline; }
.deposit-error { color: #b3261e; margin: 14px 0 0; max-width: 56ch; }
.item-info .review { margin-top: 28px; border-left: 2px solid var(--ink); padding-left: 18px; }
.item-actions button:disabled { opacity: 0.6; cursor: progress; }
.booking-embed {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Item FAQ */
.item-faq {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.item-faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.item-faq h2 { font-size: 1.4rem; }
.faq-toggle-all { display: flex; gap: 8px; }
.faq-toggle-all .btn { padding: 0 16px; font-size: 0.82rem; background: none; cursor: pointer; }
.faq-toggle-all .btn:hover { background: var(--panel); }
.item-faq-note { color: var(--ink-soft); font-size: 0.94rem; margin: -8px 0 20px; max-width: 60ch; }
.item-faq .faq-list { max-width: 100%; margin: 0; padding: 0; }
.item-no-faq { color: var(--ink-soft); }
.faq-group { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 32px 0 8px; }
.faq-group:first-child { margin-top: 0; }
.faq-photos { margin: 14px 0 4px; }
.faq-photos > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.faq-photos img { width: 100%; height: auto; border-radius: 12px; display: block; }
.faq-photos figcaption { color: var(--ink-soft); font-size: 0.85rem; margin-top: 8px; }
@media (max-width: 600px) { .faq-photos > div { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .item-page-grid { grid-template-columns: 1fr; }
}
