/* ===== Lang Directory — City Directory Page (/city/) =====
 * Requires ld-taxonomy.css (hero, chips, container).
 * ======================================================== */

/* ===== Page wrapper ===== */
.ldc-wrap {
  padding-bottom: var(--ld-space-8);
}

/* ===== Section titles ===== */
.ldc-section-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--ld-text);
  margin: 0 0 var(--ld-space-4);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ldc-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--ld-primary);
}

/* ===== Featured cities grid (top 12) ===== */
.ldc-featured-section {
  margin-bottom: var(--ld-space-6);
}

/* Grid: 2 cols mobile → 3 cols desktop (sidebar layout means less width, no 4-col) */
.ldc-cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 560px) {
  .ldc-cities-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Gradient placeholder for cities without a real photo */
.ldc-city-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0c326f 0%, #1d63cb 55%, #2f81db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease;
}

.ld-city-card:hover .ldc-city-card__placeholder {
  transform: scale(1.04);
}

.ldc-city-card__placeholder span {
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, .55);
  line-height: 1;
  user-select: none;
}

/* ===== All cities section ===== */
.ldc-all-section {
  background: linear-gradient(135deg, rgba(29,99,203,.05), rgba(47,129,219,.02));
  border: 1px solid rgba(29,99,203,.14);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-6);
}

.ldc-all-section .ldc-section-title {
  margin-bottom: var(--ld-space-5);
}

/* Chip grid (reuses .ld-tax-chip from ld-taxonomy.css) */
.ldc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Services directory (/uslugi/) — svc-item grid overrides ===== */
/* Force 3 columns inside the 2/3 main column */
.ldsd-svc-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (min-width: 860px) {
  .ldsd-svc-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Documents-link promo block */
.ldsd-docs-promo {
  background: linear-gradient(135deg, rgba(29,99,203,.06), rgba(47,129,219,.03));
  border: 1px solid rgba(29,99,203,.16);
  border-radius: var(--ld-radius-md);
  padding: var(--ld-space-4);
  margin-top: var(--ld-space-4);
}

.ldsd-docs-promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ld-space-4);
  flex-wrap: wrap;
}

.ldsd-docs-promo__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ld-text);
  margin: 0 0 4px;
}

.ldsd-docs-promo__text {
  font-size: 13px;
  color: var(--ld-muted);
  margin: 0;
  max-width: 420px;
  line-height: 1.5;
}

.ldsd-docs-promo__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===== Documents page (/dokumenty/) ===== */
.lddoc-section {
  margin-bottom: var(--ld-space-5);
}

.lddoc-section__head {
  margin-bottom: var(--ld-space-3);
}

.lddoc-section__svc {
  font-size: 13px;
  font-weight: 400;
  color: var(--ld-muted);
}

.lddoc-section__svc a {
  color: var(--ld-primary);
  text-decoration: none;
}

.lddoc-section__svc a:hover { text-decoration: underline; }

/* Doc grid: 2 col mobile, 3 col on main-column desktop */
.lddoc-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (min-width: 860px) {
  .lddoc-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
}

@media (min-width: 860px) {
  .ldsd-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
