/* --------------------------------------------------------------
   Brand archive – base layout
-------------------------------------------------------------- */

.jl-brand-archive {
  padding: 60px 0 80px;
}

.jl-brand-section {
  margin-bottom: 30px;
}

/* --------------------------------------------------------------
   HERO – heading + intro + count + brand image (right)
-------------------------------------------------------------- */

.jl-brand-hero {
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 24px;
}

.jl-brand-hero__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.jl-brand-hero__text {
  flex: 1 1 320px;
}

.jl-brand-hero__breadcrumbs {
  margin-bottom: 18px;
}

.jl-brand-hero__text h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.jl-brand-hero__intro {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.7;
}

.jl-brand-hero__count {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.jl-brand-hero__image {
  flex: 0 0 420px;
  max-width: 480px;
}

.jl-brand-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

/* --------------------------------------------------------------
   ABOUT BRAND – separate section, 2-column text
-------------------------------------------------------------- */

.jl-brand-about h2 {
  font-size: 28px;
  margin: 0 0 12px;
}

.jl-brand-about__text {
  font-size: 15px;
  line-height: 1.8;
  column-count: 2;
  column-gap: 40px;
}

/* Prevent weird breaks on very short viewports */
.jl-brand-about__text p {
  break-inside: avoid-column;
  margin: 0 0 10px;
}

/* --------------------------------------------------------------
   FILTER
-------------------------------------------------------------- */

.jl-brand-listings {
  margin-top: 10px;
}

.jl-brand-filter-wrap {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.jl-brand-filter__form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.jl-brand-filter__form label {
  font-weight: 500;
}

.jl-brand-filter__form select {
  min-width: 130px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background-color: #ffffff;
}

.jl-brand-filter__clear {
  color: #2b7a78;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.jl-brand-filter__clear:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------
   DISCOVERY BLOCKS
-------------------------------------------------------------- */

.jl-brand-block {
  padding: 28px 30px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(185, 133, 77, 0.1), transparent 24%),
    linear-gradient(180deg, #fbfcfd 0%, #f5f8f8 100%);
}

.jl-brand-block__head {
  margin-bottom: 18px;
}

.jl-brand-nearby__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 18px;
  align-items: flex-start;
}

.jl-brand-block__head h2 {
  font-size: 24px;
  margin: 0 0 6px;
}

.jl-brand-block__head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.jl-brand-block__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 260px));
  gap: 16px;
  justify-content: flex-start;
}

.jl-brand-nearby__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.jl-brand-nearby__action:hover,
.jl-brand-nearby__action:focus {
  border-color: #2b7a78;
  color: #2b7a78;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.jl-brand-nearby__status {
  margin: -6px 0 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.jl-brand-nearby__empty {
  grid-column: 1 / -1;
  padding: 22px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.jl-brand-block__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(185, 133, 77, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 252, 0.96) 100%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  text-decoration: none;
  color: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jl-brand-block__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.1);
  border-color: #2b7a78;
}

.jl-brand-block__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 33, 50, 0.08);
  color: #2b7a78;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jl-brand-block__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
}

.jl-brand-block__card strong {
  flex: 1 1 100%;
  font-size: 22px;
  line-height: 1.15;
}

.jl-brand-block__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(43, 122, 120, 0.12);
  color: #2b7a78;
  font-size: 12px;
  font-weight: 700;
}

.jl-brand-block__card small {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.jl-brand-block__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.jl-brand-block__cta::after {
  content: "→";
  color: #2b7a78;
}

/* --------------------------------------------------------------
   LOCATIONS GRID – cards
-------------------------------------------------------------- */

.jl-brand-archive__locations {
  width: 100%;
}

.jl-brand-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.jl-brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(211, 222, 232, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jl-brand-card:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 122, 120, 0.42);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.09);
}

.jl-brand-card--featured {
  border-color: rgba(185, 133, 77, 0.42);
  background:
    radial-gradient(circle at top right, rgba(185, 133, 77, 0.08), transparent 24%),
    linear-gradient(180deg, #fffdfa 0%, #fbfcfd 100%);
}

.jl-brand-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.jl-brand-card__logo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(185, 133, 77, 0.12) 0%, rgba(43, 122, 120, 0.12) 100%),
    linear-gradient(180deg, #ffffff 0%, #eef5f4 100%);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.75);
  text-decoration: none;
}

.jl-brand-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.jl-brand-card__logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b9854d 0%, #2b7a78 100%);
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
}

.jl-brand-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  padding-top: 2px;
}

.jl-brand-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jl-brand-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(43, 122, 120, 0.1);
  color: #2b7a78;
  font-size: 11px;
  font-weight: 700;
}

.jl-brand-card__pill--muted {
  background: rgba(20, 33, 50, 0.06);
  color: #475569;
}

.jl-brand-card__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.jl-brand-card__title a {
  color: inherit;
  text-decoration: none;
}

.jl-brand-card__title a:hover {
  color: #2b7a78;
}

.jl-brand-card__addr {
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jl-brand-card__footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.jl-brand-card__meta {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.jl-brand-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(43, 122, 120, 0.1);
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.jl-brand-card__cta::after {
  content: "→";
  color: #2b7a78;
}

.jl-brand-card__cta:hover {
  color: #2b7a78;
  background: rgba(43, 122, 120, 0.16);
}

.jl-brand-listings__head {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------
   BOTTOM CTA – pill banner, like About Us
-------------------------------------------------------------- */

.jl-brand-bottom-cta {
  margin-top: 40px;
}

.jl-brand-bottom-cta__inner {
  border-radius: 999px;
  background-color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.jl-brand-bottom-cta__text h2 {
  font-size: 20px;
  margin: 0 0 4px;
}

.jl-brand-bottom-cta__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.jl-brand-bottom-cta__action {
  flex: 0 0 auto;
}

.jl-brand-bottom-cta__btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background-color: #2b7a78; /* Jewellink teal-ish */
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.jl-brand-bottom-cta__btn:hover {
  background-color: #246a68;
  color: #ffffff;
}

/* --------------------------------------------------------------
   RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 1024px) {
  .jl-brand-hero__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .jl-brand-hero__image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .jl-brand-about__text {
    column-count: 1;
  }

  .jl-brand-archive__grid {
    grid-template-columns: 1fr;
  }

  .jl-brand-block {
    padding: 24px 20px;
  }

  .jl-brand-nearby__action {
    width: 100%;
  }

  .jl-brand-bottom-cta__inner {
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .jl-brand-bottom-cta__action {
    width: 100%;
  }

  .jl-brand-bottom-cta__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .jl-brand-archive {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .jl-brand-hero__breadcrumbs {
    margin-bottom: 16px;
  }

  .jl-brand-section {
    margin-bottom: 24px;
  }

  .jl-brand-block__card {
    min-height: 0;
    padding: 18px;
  }

  .jl-brand-block__card strong {
    font-size: 20px;
  }

  .jl-brand-card {
    padding: 16px;
    border-radius: 22px;
  }

  .jl-brand-card__header {
    align-items: flex-start;
  }

  .jl-brand-card__logo {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .jl-brand-card__title {
    font-size: 20px;
  }

  .jl-brand-card__addr {
    font-size: 14px;
  }
}
