/* پروفایل عمومی اجاره‌دهنده — EquipmentProfile.module.css (پیشوند ep-) */

/* ==========================================================================
   Equipment owner profile
   --------------------------------------------------------------------------
   Same card mosaic as the creator profile, minus the cover band and avatar:
   what matters here is the gear and the rental terms, not the person's face.

   The accent is the site's own violet rather than a per-owner choice —
   an equipment listing is judged on condition, price and terms, and a
   personal colour would only add noise to that.
   ========================================================================== */

.ep-page {
  --bg: #0b0b0d;
  --tile: #141417;
  --tile-2: #1b1b1f;
  --line: rgba(255, 255, 255, .07);
  --fg: #f4f4f6;
  --fg-2: #a8a8b0;
  --fg-3: #6c6c76;
  --accent: #7c6bf5;
  --go: #8fd6b4;

  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  direction: rtl;
  padding-bottom: 60px;
}

.ep-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.ep-backLink {
  display: inline-block; font-size: 13px; color: var(--fg-3);
  text-decoration: none; padding: 20px 0 10px;
}
.ep-backLink:hover { color: var(--fg); }

.ep-header { margin-bottom: 24px; }
.ep-name { font-size: clamp(24px, 4vw, 34px); font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.ep-location { font-size: 13px; color: var(--fg-2); margin: 0 0 12px; }
.ep-badge {
  display: inline-block; font-size: 12px; padding: 5px 13px; border-radius: 12px;
  background: rgba(143, 214, 180, .14); color: var(--go);
}

/* ---------- mosaic ---------------------------------------------------- */

.ep-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

.ep-tile {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px;
  min-width: 0;
}
.ep-w2 { grid-column: span 2; }
.ep-w3 { grid-column: span 3; }
.ep-w4 { grid-column: span 4; }
.ep-w6 { grid-column: span 6; }

.ep-eyebrow {
  font-size: 11px; letter-spacing: .07em; color: var(--fg-3);
  margin: 0 0 10px; text-transform: uppercase;
}
.ep-tileTitle {
  font-size: 17px; font-weight: 700; margin: 0 0 14px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.ep-count { font-size: 12px; font-weight: 400; color: var(--fg-3); }
.ep-tileBody { font-size: 13.5px; line-height: 2; color: var(--fg-2); margin: 0; white-space: pre-wrap; }

.ep-specs { margin: 0; }
.ep-specRow {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.ep-specRow:last-child { border-bottom: none; padding-bottom: 0; }
.ep-specRow dt { color: var(--fg-3); }
.ep-specRow dd { margin: 0; text-align: end; color: var(--fg); }

.ep-statRow { display: flex; gap: 26px; flex-wrap: wrap; }
.ep-stat { min-width: 74px; }
.ep-statNum { font-size: 24px; font-weight: 700; line-height: 1.15; }
.ep-statLabel { font-size: 11px; color: var(--fg-3); margin-top: 5px; line-height: 1.6; }

/* ---------- contact --------------------------------------------------- */

.ep-contactOpen { border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.ep-contactLabel { display: block; font-size: 11px; letter-spacing: .07em; color: var(--fg-3); margin-bottom: 8px; }
.ep-phoneLink {
  display: block; font-size: 25px; font-weight: 700; color: var(--accent);
  text-decoration: none; direction: ltr; text-align: start;
}
.ep-addressBlock { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ep-addressText { font-size: 13.5px; line-height: 1.95; margin: 0; color: var(--fg-2); }
.ep-socialRow { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.ep-socialLink { font-size: 13px; color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.ep-socialLink:hover { color: var(--fg); }
.ep-lockTitle { font-size: 15px; font-weight: 700; display: block; margin-bottom: 8px; }
.ep-lockText { font-size: 13px; line-height: 1.95; color: var(--fg-2); margin: 0 0 16px; }
.ep-unlockBtn {
  display: inline-block; padding: 12px 22px; border-radius: 14px;
  background: var(--accent); color: #0b0b0d; border: none;
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
}

/* ---------- items ----------------------------------------------------- */

/* Items sit side by side in their own grid rather than stacking, so a large
   inventory reads as a catalogue instead of a long scroll. */
.ep-itemGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.ep-itemCard {
  background: var(--tile-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ep-itemPhoto { position: relative; aspect-ratio: 4/3; background: #0f0f12; }
.ep-itemImg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-itemPlaceholder {
  width: 100%; height: 100%;
  background: radial-gradient(120% 140% at 70% 10%, rgba(124,107,245,.18), transparent 70%), #0f0f12;
}
.ep-categoryTag {
  position: absolute; top: 9px; inset-inline-end: 9px;
  font-size: 10.5px; padding: 4px 10px; border-radius: 9px;
  background: rgba(0,0,0,.7); color: #fff; backdrop-filter: blur(4px);
}
.ep-photoDots {
  position: absolute; bottom: 9px; inset-inline: 0;
  display: flex; justify-content: center; gap: 5px;
}
.ep-dot, .ep-dotOn {
  width: 6px; height: 6px; border-radius: 50%; border: none;
  cursor: pointer; padding: 0; background: rgba(255,255,255,.38);
}
.ep-dotOn { background: #fff; }

.ep-itemBody { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ep-itemTitle { font-size: 14px; font-weight: 700; line-height: 1.5; }
.ep-itemDesc { font-size: 12.5px; line-height: 1.85; color: var(--fg-3); margin: 0; }
.ep-rateRow { display: flex; flex-wrap: wrap; gap: 5px; }
.ep-ratePill {
  font-size: 11.5px; padding: 5px 10px; border-radius: 9px;
  background: rgba(143,214,180,.12); color: var(--go);
}
.ep-toggleBtn {
  margin-top: auto; background: none;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 13px; color: var(--fg-2); font-size: 12px;
  font-family: inherit; cursor: pointer; width: 100%;
}
.ep-toggleBtn:hover { background: rgba(255,255,255,.04); color: var(--fg); }

.ep-itemDetails { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ep-amenityRow { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.ep-amenityPill {
  font-size: 11px; padding: 4px 9px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: var(--fg-2);
}
.ep-note { font-size: 11.5px; color: var(--fg-3); line-height: 1.8; margin: 12px 0 0; }
.ep-textBlock, .ep-rulesBlock { margin-top: 14px; }
.ep-textBlock h4, .ep-rulesBlock h4 { font-size: 12.5px; margin: 0 0 6px; color: var(--fg-2); }
.ep-textBlock p, .ep-rulesBlock p { font-size: 12.5px; line-height: 1.9; color: var(--fg-3); margin: 0; }
.ep-rulesBlock { background: rgba(224,177,96,.08); border-radius: 12px; padding: 12px 13px; }
.ep-rulesBlock h4 { color: #e0b160; }

.ep-empty { text-align: center; color: var(--fg-3); font-size: 13.5px; padding: 34px 20px; }

@media (max-width: 820px) {
  .ep-w2, .ep-w3, .ep-w4 { grid-column: span 3; }
}
@media (max-width: 520px) {
  .ep-mosaic { grid-template-columns: 1fr; }
  .ep-w2, .ep-w3, .ep-w4, .ep-w6 { grid-column: span 1; }
  .ep-tile { padding: 18px 20px; border-radius: 20px; }
}

/* درخواست کاربر (۲۰۲۶-۱۰-۰۲): وقتی جزئیات یک قلم باز می‌شد، بقیه‌ی کارت‌های همان ردیف هم بلند و کشیده
   می‌شدند (رفتار پیش‌فرض grid). حالا هر کارت فقط به اندازه‌ی محتوای خودش است. */
.ep-itemGrid { align-items: start; }
