/* ==========================================================================
   FIRM CARD (Single Detail Card) — v2 compact layout
   ========================================================================== */

.btjek-firm-card__card {
  margin: 0;
  background: var(--btjek-white);
  border-radius: var(--btjek-radius-md);
  border: 1px solid var(--btjek-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.btjek-firm-card__card:hover {
  box-shadow: var(--btjek-shadow-hover);
}

/* --- Logo area --- */
.btjek-firm-card__logo-area {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px 20px 16px;
  min-height: 100px;
  background: var(--btjek-white) !important;
  border-bottom: 1px solid var(--btjek-border);
}

.btjek-firm-card__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--btjek-radius);
  object-fit: contain;
  background: var(--btjek-white);
  box-shadow: var(--btjek-shadow);
}

.btjek-firm-card__logo--img {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 48px;
  border-radius: var(--btjek-radius);
  object-fit: contain;
  box-shadow: none;
  background: transparent;
}

.btjek-firm-card__logo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--btjek-radius);
  font-size: 22px;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
}

.btjek-firm-card__favicon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btjek-white);
  box-shadow: var(--btjek-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btjek-firm-card__favicon img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

/* --- Body --- */
.btjek-firm-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.btjek-firm-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--btjek-heading);
  margin: 0 0 6px;
  line-height: 1.3;
}

/* --- Rating --- */
.btjek-firm-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btjek-firm-card__star {
  width: 15px;
  height: 15px;
}

.btjek-firm-card__star--filled {
  color: var(--btjek-yellow);
}

.btjek-firm-card__star--half {
  color: var(--btjek-yellow);
}

.btjek-firm-card__star--empty {
  color: var(--btjek-border);
}

.btjek-firm-card__rating-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--btjek-heading);
  margin-left: 4px;
}

.btjek-firm-card__rating-meta {
  font-size: 12px;
  color: var(--btjek-muted);
  margin-left: 2px;
}

/* --- Details (address, CVR) --- */
.btjek-firm-card__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.btjek-firm-card__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--btjek-muted);
}

.btjek-firm-card__detail svg {
  flex-shrink: 0;
  color: var(--btjek-muted);
  opacity: 0.6;
}

.btjek-firm-card__detail span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Tags --- */
.btjek-firm-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.btjek-firm-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--btjek-lightgray);
  color: var(--btjek-muted);
}

.btjek-firm-card__tag svg {
  opacity: 0.5;
}

/* --- Footer --- */
.btjek-firm-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--btjek-border);
  text-align: right;
}

.btjek-firm-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--btjek-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.btjek-firm-card__link:hover {
  color: var(--btjek-primary-dark, var(--btjek-primary));
  text-decoration: underline;
}


