/* ==========================================================
   Equiply - Equipment Detail Styles
   Mobile-first, RTL default, logical properties.
   ZERO inline styles.
   ========================================================== */

/* ---------- 1. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb a {
  text-decoration: none;
  color: var(--steel);
  transition: color 0.15s;
}
.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--ink);
}
.breadcrumb-separator {
  color: var(--line);
  user-select: none;
}
.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 2. Main Layout ---------- */
.equipment-detail {
  padding-block-end: 48px;
}
.equipment-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 960px) {
  .equipment-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

/* ---------- 3. Gallery & Lightbox ---------- */
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-main {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-main:hover .gallery-main-img {
  transform: scale(1.02);
}
.gallery-zoom-badge {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  background: rgba(20, 33, 43, 0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.gallery-thumb-btn {
  flex: 0 0 76px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.gallery-thumb-btn:hover {
  border-color: var(--steel);
}
.gallery-thumb-btn.is-active {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 24, 0.92);
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  inset-block-start: -40px;
  inset-inline-end: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.lightbox-close:hover {
  color: var(--accent);
}

/* ---------- 4. Equipment Details & Sidebar ---------- */
.details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.equipment-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.equipment-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.equipment-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.equipment-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.equipment-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Pricing Card */
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(20, 33, 43, 0.04);
}
.pricing-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pricing-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.pricing-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-2);
}
.pricing-period {
  font-size: 0.95rem;
  color: var(--muted);
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-block: 12px;
  border-block: 1px solid var(--line);
}
.rate-item {
  display: flex;
  flex-direction: column;
}
.rate-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.rate-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-2);
}
.rental-terms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}
.rental-term-row {
  display: flex;
  justify-content: space-between;
}
.btn-cta {
  width: 100%;
  font-size: 1.05rem;
  min-height: 52px;
}

/* ---------- 5. Description & Content Tabs/Blocks ---------- */
.content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  margin-block-start: 24px;
}
.content-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-block-end: 16px;
  padding-block-end: 8px;
  border-block-end: 2px solid var(--bg);
  color: var(--ink);
}
.equipment-description {
  white-space: pre-line;
  line-height: 1.85;
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------- 6. Technical Specifications Tables ---------- */
.specs-table-wrapper {
  overflow-x: auto;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.95rem;
}
.specs-table tr {
  border-block-end: 1px solid var(--line);
}
.specs-table tr:last-child {
  border-block-end: none;
}
.specs-table tr:nth-child(even) {
  background: rgba(208, 222, 213, 0.3);
}
.specs-table th,
.specs-table td {
  padding: 12px 14px;
}
.specs-table th {
  font-weight: 600;
  color: var(--muted);
  width: 40%;
}
.specs-table td {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 7. Video Section ---------- */
.videos-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.video-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.video-frame-wrapper iframe,
.video-frame-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block-end: 4px;
}
.video-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.video-tab-btn:hover {
  background: var(--surface);
  border-color: var(--ink);
}
.video-tab-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- 8. Similar Equipment ---------- */
.similar-section {
  margin-block-start: 48px;
  padding-block-start: 32px;
  border-block-start: 1px solid var(--line);
}
.similar-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-block-end: 20px;
}
