/* ============================================
   Operator Listing Page Styles
   ============================================ */

.lfgc-operator-listing {
  width: 100%;
  background-color: var(--lfgc-op-bg);
  position: relative;
}

/* AJAX progress bar */
.lfgc-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--lfgc-op-magenta);
  width: 0%;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

/* Hero Section */
.lfgc-operator-hero {
  width: 100%;
  padding: 80px 20px 0;
  background-color: var(--lfgc-op-bg);
}

.lfgc-operator-hero__inner {
  max-width: 1552px;
  margin: 0 auto;
}

.lfgc-operator-hero__title {
  font-family: 'Area_Extended_Black';
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.26em;
  line-height: 1.17;
  color: var(--lfgc-op-charcoal);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

/* Listing Wrapper */
.lfgc-operator-listing__wrapper {
  width: 100%;
  background-color: var(--lfgc-op-bg);
  transition: opacity 0.2s ease;
}

.lfgc-operator-listing__wrapper--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Category Filters */
.lfgc-operator-filters {
  width: 100%;
  padding: 40px 20px;
  background-color: var(--lfgc-op-bg);
  overflow-x: auto;
}

.lfgc-operator-filters__inner {
  max-width: 1552px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.lfgc-operator-filter-tab {
  font-family: 'Area_Extended_Bold', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 0.887;
  color: var(--lfgc-op-dark);
  padding: 17px 0 21px 0;
  display: inline-block;
  border: none;
  border-bottom: 3px solid transparent;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.lfgc-operator-filter-tab:hover {
  color: var(--lfgc-op-magenta);
}

.lfgc-operator-filter-tab--active {
  border-bottom-color: var(--lfgc-op-magenta);
  color: var(--lfgc-op-dark);
}

/* Operator Grid */
.lfgc-operator-grid {
  width: 100%;
  padding: 40px 20px 80px;
  background-color: var(--lfgc-op-bg);
}

.lfgc-operator-grid__inner {
  max-width: 1552px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lfgc-operator-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: var(--lfgc-op-muted);
}

/* Operator Card */
.lfgc-operator-card {
  display: flex;
  flex-direction: column;
  gap: 19px;
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  margin-bottom: 50px;
}

.lfgc-operator-card__image {
  width: 100%;
  height: clamp(250px, 28vw, 407px);
  overflow: hidden;
  /* border-radius: 4px; */
  background-color: var(--lfgc-op-placeholder);
}

.lfgc-operator-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lfgc-operator-card:hover .lfgc-operator-card__image img {
  transform: scale(1.05);
}

.lfgc-operator-card__image-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--lfgc-op-placeholder);
}

/* Card Footer */
.lfgc-operator-card__footer {
  display: flex;
  gap: 19px;
  align-items: center;
}

.lfgc-operator-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.lfgc-operator-card__name {
  font-family: 'Area_Extended_Medium', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.07;
  color: var(--lfgc-op-dark);
  margin: 0;
  padding: 0;
}

.lfgc-operator-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lfgc-operator-card__category {
  font-family: 'Area_Extended_SemiBold', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.53;
  color: var(--lfgc-op-dark);
  padding: 7px 10px;
  border: 1px solid var(--lfgc-op-border);
  border-radius: 89px;
  background-color: transparent;
  white-space: nowrap;
}

.lfgc-operator-card__arrow {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.lfgc-operator-card:hover .lfgc-operator-card__arrow {
  color: var(--lfgc-color-magenta-dark);
  opacity: 1;
}

/* Logo Box — absolute overlay on top-left of hero image */
.lfgc-operator-card__logo {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 90px;
  height: 90px;
  background-color: var(--lfgc-op-white);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 8px; */
}

.lfgc-operator-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Pagination Navigation */
.lfgc-operator-pagination {
  width: 100%;
  padding: 50px 20px;
  background-color: var(--lfgc-op-bg);
}

.lfgc-operator-pagination ul {
  max-width: 1552px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lfgc-operator-pagination li {
  margin: 0;
}

.lfgc-operator-pagination a,
.lfgc-operator-pagination span {
  font-family:
    'Zalando Sans Expanded',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--lfgc-op-dark);
  padding: 7px 12px;
  display: inline-block;
  border: 1px solid var(--lfgc-op-border);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lfgc-operator-pagination a:hover {
  border-color: var(--lfgc-op-magenta);
  color: var(--lfgc-op-magenta);
}

.lfgc-operator-pagination .current {
  border-color: var(--lfgc-op-magenta);
  color: var(--lfgc-op-white);
  background-color: var(--lfgc-op-magenta);
}

/* Load More Button */
.lfgc-operator-load-more {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--lfgc-op-bg);
  display: flex;
  justify-content: center;
}

.lfgc-operator-load-more__button {
  font-family: 'Area_Extended_Bold', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--lfgc-op-charcoal);
  background-color: transparent;
  border: 1px solid var(--lfgc-op-charcoal);
  padding: 18px 18px 19px;
  min-width: 120px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4.64px;
  line-height: 1.1;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.lfgc-operator-load-more__button svg line {
  transition: stroke 0.3s ease;
}

.lfgc-operator-load-more__button:hover {
  background-color: var(--lfgc-op-charcoal);
  color: var(--lfgc-op-white);
}

.lfgc-operator-load-more__button:hover svg line {
  stroke: var(--lfgc-op-white);
}

/* Previous / Next Navigation */
.lfgc-operator-prev-next {
  width: 100%;
  padding: 50px 20px;
  background-color: var(--lfgc-op-bg);
}

.lfgc-operator-prev-next__inner {
  max-width: 1552px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.lfgc-operator-prev-next__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.lfgc-operator-prev-next__button:hover:not(.lfgc-operator-prev-next__button--disabled) {
  transform: scale(1.1);
}

.lfgc-operator-prev-next__button--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lfgc-operator-prev-next__arrow {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.lfgc-operator-prev-next__counter {
  font-family:
    'Zalando Sans Expanded',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--lfgc-op-dark);
  text-align: center;
  min-width: 60px;
}

/* Responsive — Large tablet */
@media (max-width: 1024px) {
  .lfgc-operator-grid__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive — Tablet */
@media (max-width: 768px) {
  .lfgc-operator-hero {
    padding: 40px 15px 0;
  }

  .lfgc-operator-hero__title {
    font-size: clamp(24px, 5vw, 32px);
    letter-spacing: 0.15em;
  }

  .lfgc-operator-filters {
    padding: 20px 15px;
  }

  .lfgc-operator-filters__inner {
    gap: 20px;
  }

  .lfgc-operator-grid {
    padding: 30px 15px 60px;
  }

  .lfgc-operator-grid__inner {
    grid-template-columns: 1fr;
  }

  .lfgc-operator-card__logo {
    width: 160px;
    height: 100px;
  }
}

/* Responsive — Mobile */
@media (max-width: 480px) {
  .lfgc-operator-hero {
    padding: 30px 12px 0;
  }

  .lfgc-operator-hero__title {
    font-size: clamp(22px, 4vw, 28px);
    letter-spacing: 0.12em;
  }

  .lfgc-operator-filters {
    padding: 15px 12px;
  }

  .lfgc-operator-grid {
    padding: 20px 12px 40px;
  }

  .lfgc-operator-grid__inner {
    grid-template-columns: 1fr;
  }

  .lfgc-operator-card__logo {
    width: 100%;
    height: 100px;
  }
}
