/* ===== Lang Directory — Bureau (Company) Card =====
 * Requires ld-primitives.css (loaded as a dependency by LD_Assets).
 * =================================================== */

/* ===== Page wrapper ===== */
.ld-bureau {
  padding: var(--ld-space-4) 0 var(--ld-space-6);
}

/* ===== Head / hero ===== */
.ld-bureau__head {
  margin-bottom: var(--ld-space-4);
  padding: var(--ld-space-4);
  background: linear-gradient(135deg, #0c326f 0%, #1d63cb 60%, #2f81db 100%);
  border-radius: var(--ld-radius-md);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ld-space-3);
}

@media (min-width: 640px) {
  .ld-bureau {
    padding: var(--ld-space-6) 0 var(--ld-space-8);
  }
  .ld-bureau__head {
    margin-bottom: var(--ld-space-6);
    padding: var(--ld-space-6);
    border-radius: var(--ld-radius-lg);
    gap: var(--ld-space-4);
  }
}

.ld-bureau__head-main {
  flex: 1 1 240px;
}

.ld-bureau__title {
  margin: var(--ld-space-2) 0 var(--ld-space-2);
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.ld-bureau__city {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin: 0;
}

/* ===== Aggregate score in hero ===== */
.ld-bureau__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.12);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-2) var(--ld-space-3);
  backdrop-filter: blur(4px);
  min-width: 100px;
  text-align: center;
}

@media (min-width: 640px) {
  .ld-bureau__score {
    padding: var(--ld-space-3) var(--ld-space-4);
    min-width: 120px;
  }
}

.ld-bureau__avg-num {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

@media (min-width: 640px) {
  .ld-bureau__avg-num { font-size: 40px; }
}

.ld-bureau__stars {
  font-size: 18px;
  color: #fbbf24;
  letter-spacing: -.05em;
  line-height: 1;
}

.ld-bureau__review-count {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

/* ===== Reviews summary: 3 sources ===== */
/* Mobile: single column stacked rows */
.ld-bureau__reviews-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ld-space-2);
  margin-bottom: var(--ld-space-4);
}

/* On mobile: horizontal card layout */
.ld-bureau__src-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--ld-space-2);
  padding: var(--ld-space-2) var(--ld-space-3);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-sm);
  background: var(--ld-surface);
}

/* Tablet+: three columns, vertical layout */
@media (min-width: 480px) {
  .ld-bureau__reviews-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ld-space-3);
    margin-bottom: var(--ld-space-6);
  }
  .ld-bureau__src-card {
    flex-direction: column;
    align-items: center;
    padding: var(--ld-space-3) var(--ld-space-2);
    border-radius: var(--ld-radius-md);
    text-align: center;
  }
}

.ld-bureau__src-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ld-muted);
}

.ld-bureau__src-rating {
  font-size: 20px;
  font-weight: 700;
  color: var(--ld-text);
  line-height: 1;
}

@media (min-width: 480px) {
  .ld-bureau__src-rating { font-size: 22px; }
}

.ld-bureau__src-count {
  font-size: 12px;
  color: var(--ld-muted);
}

.ld-bureau__src-empty {
  font-size: 13px;
  color: var(--ld-border);
}

/* Coloured top/left border per source */
.ld-bureau__src-card--google { border-left: 3px solid #4285f4; }
.ld-bureau__src-card--yandex { border-left: 3px solid #fc3f1d; }
.ld-bureau__src-card--2gis   { border-left: 3px solid #1ba04a; }

@media (min-width: 480px) {
  .ld-bureau__src-card--google { border-left: 1px solid var(--ld-border); border-top: 3px solid #4285f4; }
  .ld-bureau__src-card--yandex { border-left: 1px solid var(--ld-border); border-top: 3px solid #fc3f1d; }
  .ld-bureau__src-card--2gis   { border-left: 1px solid var(--ld-border); border-top: 3px solid #1ba04a; }
}

/* ===== Stars with percentage fill ===== */
.ld-bureau__star-bar {
  position: relative;
  display: inline-block;
  font-size: 16px;
  color: var(--ld-star-empty);
  line-height: 1;
  letter-spacing: -.05em;
}
.ld-bureau__star-bar::before { content: "★★★★★"; }
.ld-bureau__star-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: var(--ld-rating-pct, 0%);
  white-space: nowrap;
  color: var(--ld-star);
}
.ld-bureau__star-fill::before { content: "★★★★★"; }

@media (min-width: 480px) {
  .ld-bureau__star-bar { font-size: 18px; }
}

/* ===== Body: 2-column grid ===== */
/* Mobile: single column */
.ld-bureau__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ld-space-4);
  margin-bottom: var(--ld-space-4);
}

@media (min-width: 560px) {
  .ld-bureau__body {
    grid-template-columns: 2fr 1fr;
    gap: var(--ld-space-6);
    margin-bottom: var(--ld-space-6);
  }
}

/* ===== Main column ===== */
.ld-bureau__short-desc {
  font-size: 15px;
  color: var(--ld-muted);
  line-height: 1.6;
  margin: 0 0 var(--ld-space-4);
}

.ld-bureau__full-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ld-text);
  margin-bottom: var(--ld-space-4);
}
.ld-bureau__full-desc p:first-child { margin-top: 0; }
.ld-bureau__full-desc p:last-child  { margin-bottom: 0; }

/* ===== Chip lists (services, languages) ===== */
.ld-bureau__chips-section {
  margin-bottom: var(--ld-space-4);
}

.ld-bureau__chips-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ld-muted);
  margin: 0 0 var(--ld-space-2);
}

.ld-bureau__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-bureau__chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 2em;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.ld-bureau__chip--service {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.ld-bureau__chip--service:hover { background: #dbeafe; color: #1e40af; }

.ld-bureau__chip--language {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.ld-bureau__chip--language:hover { background: #dcfce7; color: #166534; }

/* ===== Aside: contacts card ===== */
.ld-bureau__contacts {
  padding: var(--ld-space-3);
}

@media (min-width: 640px) {
  .ld-bureau__contacts { padding: var(--ld-space-4); }
}

.ld-bureau__contacts-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--ld-space-3);
  color: var(--ld-text);
}

.ld-bureau__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ld-border);
  font-size: 14px;
  color: var(--ld-text);
}
.ld-bureau__contact-row:last-child { border-bottom: 0; }

.ld-bureau__contact-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: var(--ld-muted);
  font-style: normal;
}

.ld-bureau__contact-value {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.ld-bureau__contact-value a {
  color: var(--ld-primary);
  text-decoration: none;
  font-weight: 500;
}
.ld-bureau__contact-value a:hover { text-decoration: underline; }

/* ===== Price badge ===== */
.ld-bureau__price-row {
  margin-top: var(--ld-space-3);
  padding: var(--ld-space-2) var(--ld-space-3);
  background: #f7faff;
  border-radius: var(--ld-radius-sm);
  font-size: 14px;
  color: var(--ld-muted);
}
.ld-bureau__price-row strong {
  color: var(--ld-text);
  font-weight: 700;
  font-size: 15px;
}

/* ===== CTA button ===== */
.ld-bureau__cta {
  margin-top: var(--ld-space-3);
  width: 100%;
  justify-content: center;
}

/* ===== Hours (collapsible) ===== */
.ld-bureau__hours {
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-sm);
  overflow: hidden;
  margin-top: var(--ld-space-3);
}

.ld-bureau__hours-toggle {
  padding: 10px var(--ld-space-3);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ld-text);
  user-select: none;
  min-height: 44px; /* touch target */
}
.ld-bureau__hours-toggle::-webkit-details-marker { display: none; }
.ld-bureau__hours-toggle::after { content: "▾"; color: var(--ld-muted); font-size: 12px; }
.ld-bureau__hours[open] .ld-bureau__hours-toggle::after { content: "▴"; }

.ld-bureau__hours-body {
  padding: 0 var(--ld-space-3) var(--ld-space-2);
}

.ld-bureau__hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.ld-bureau__hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--ld-border);
  color: var(--ld-muted);
}
.ld-bureau__hours-list li:last-child { border-bottom: 0; }
.ld-bureau__hours-list li span:first-child { font-weight: 500; color: var(--ld-text); }

/* ===== Map ===== */
.ld-bureau__map {
  margin-bottom: var(--ld-space-4);
  border-radius: var(--ld-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ld-border);
  line-height: 0;
}

.ld-bureau__map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

@media (min-width: 640px) {
  .ld-bureau__map {
    margin-bottom: var(--ld-space-6);
    border-radius: var(--ld-radius-md);
  }
  .ld-bureau__map iframe { height: 360px; }
}

.ld-bureau__map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  background: var(--ld-border);
  color: var(--ld-muted);
  font-size: 14px;
  margin: 0;
}

/* ===== Rating widget placement ===== */
.ld-bureau__rating-widget {
  margin-bottom: var(--ld-space-4);
}

@media (min-width: 640px) {
  .ld-bureau__rating-widget { margin-bottom: var(--ld-space-6); }
}
