/* ============================================================
   oko-na-sztuke — Single object card shortcode styles
   Prefix: .oko-obj-
   ============================================================ */

.oko-obj-wrap {
  margin: 0 auto;
  padding: 24px 16px 56px;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.oko-obj-not-found {
  text-align: center;
  color: #717182;
  padding: 48px 24px;
  font-size: 15px;
}

/* ── Back link ───────────────────────────────────────────── */

.oko-obj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #717182;
  text-decoration: none !important;
  margin-bottom: 20px;
  transition: color 0.12s;
}

.oko-obj-back:hover { color: #030213; }

/* ── Two-column layout ───────────────────────────────────── */

.oko-obj-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}

/* ── Main image ──────────────────────────────────────────── */

.oko-obj-main-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
}

.oko-obj-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.oko-obj-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

/* ── Thumbnails ──────────────────────────────────────────── */

.oko-obj-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.oko-obj-thumb {
  width: 120px;
  height: 82px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #e5e7eb;
  flex-shrink: 0;
  transition: border-color 0.12s;
}

.oko-obj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oko-obj-thumb.is-active  { border-color: #9810fa; }
.oko-obj-thumb:hover      { border-color: rgba(139,0,255,0.4); }

/* ── Right column: stacked cards ────────────────────────── */

.oko-obj-col-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oko-obj-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 20px;
}

/* ── Technique badge ─────────────────────────────────────── */

.oko-obj-technique-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(139,0,255,0.08);
  color: #9810fa;
  white-space: nowrap;
}

/* ── Card top: badge + action icons ──────────────────────── */

.oko-obj-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.oko-obj-card-actions { display: flex; gap: 4px; }

.oko-obj-card-action-btn {
  width: 32px;
  height: 32px;
	background:    rgba(255,255,255,0.92);
	border:        1px solid rgba(0,0,0,0.1);
	cursor:        pointer;
	padding:       5px;
	display:       inline-flex;
	align-items:   center;
	justify-content: center;
	border-radius: 50%;
	color:         #717182;
	transition:    color 0.15s, transform 0.15s, background 0.15s;
	box-shadow:    0 1px 4px rgba(0,0,0,0.08);
}
.oko-obj-card-action-btn:hover { background: rgba(255,255,255,0.92); color: var(--up-purple); transform: scale(1.15); }

/* ── Object name ─────────────────────────────────────────── */

.oko-obj-name {
  font-size: 20px;
  font-weight: 600;
  color: #030213;
  margin: 0 0 16px;
  line-height: 1.3;
}

/* ── Meta rows ───────────────────────────────────────────── */

.oko-obj-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oko-obj-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oko-obj-meta-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(139,0,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9810fa;
}

.oko-obj-meta-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.oko-obj-meta-label {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.3;
}

.oko-obj-meta-value {
  font-size: 13.5px;
  color: #030213;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Section header (icon + title row) ───────────────────── */

.oko-obj-section-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.oko-obj-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #030213;
  margin: 0;
  line-height: 1.3;
}

.oko-obj-card-title--mb { margin-bottom: 12px; }

/* ── Descriptions ────────────────────────────────────────── */

.oko-obj-desc-short {
  font-size: 13.5px;
  color: #6B7280;
  line-height: 1.65;
  margin: 0;
}

.oko-obj-desc-full {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.7;
}

/* ── Map card ────────────────────────────────────────────── */

.oko-obj-map {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(139,0,255,0.06);
  margin: 0 0 10px;
  z-index: 0;
}

.oko-obj-address {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 12px;
  line-height: 1.4;
}

.oko-obj-address strong { color: #374151; font-weight: 600; }

.oko-obj-gmaps-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: #9810fa;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none !important;
  transition: background 0.12s;
  box-sizing: border-box;
}

.oko-obj-gmaps-btn:hover { background: #7200d0; color: #fff; }

/* ── Similar objects ─────────────────────────────────────── */

.oko-obj-similar-section { padding-top: 8px; }

.oko-obj-similar-title {
  font-size: 18px;
  font-weight: 600;
  color: #030213;
  margin: 0 0 16px;
}

.oko-obj-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.oko-obj-similar-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none !important;
}

.oko-obj-similar-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.oko-obj-similar-img-wrap {
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}

.oko-obj-similar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.oko-obj-similar-card:hover .oko-obj-similar-img-wrap img { transform: scale(1.03); }

.oko-obj-similar-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oko-obj-similar-body { padding: 14px 14px 16px; }

.oko-obj-similar-name {
  font-size: 15px;
  font-weight: 600;
  color: #030213;
  margin: 0 0 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oko-obj-similar-author {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oko-obj-similar-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9810fa;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 820px) {
  .oko-obj-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .oko-obj-similar-grid { grid-template-columns: 1fr; }
  .oko-obj-thumb { width: 90px; height: 62px; }
}
