/* The operators page (operators.tpl). Tokens from front.css.
   operators.css still styles a single operator's page and the country pages. */

body.page-operators {
  background: var(--soft);
}

/* TOP */
.ops-top {
  padding: 34px 0 6px;
}
.ops-top .eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink);
}
.ops-top h1 {
  margin: 0;
  font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}
.ops-top p {
  max-width: 640px;
  margin: 10px 0 0;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--muted);
}
.ops-search {
  position: relative;
  display: block;
  max-width: 520px;
  margin-top: 20px;
}
.ops-search i {
  position: absolute; left: 16px; top: 50%;
  margin-top: -8px;
  font-size: 15px; color: var(--brand-ink);
}
.ops-search input {
  display: block;
  width: 100%; height: 50px;
  padding: 0 16px 0 44px;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif; font-size: 16px; font-weight: 500; color: var(--ink);
  background: #FFF;
  border: 1px solid #D6DEDB;
  border-radius: 14px;
  -webkit-appearance: none; appearance: none;
}
.ops-search input:focus {
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 3px rgba(11, 127, 105, 0.15);
}

/* GRID */
.ops-wrap {
  display: flex; flex-direction: column; gap: 20px;
  padding: 22px 0 56px;
}
.ops-main {
  min-width: 0;
}
.ops-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.ops-card, .ops-card:hover {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 14px 18px;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif; text-align: center; color: var(--ink);
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ops-card:hover {
  border-color: #CFE3DD;
  box-shadow: 0 16px 34px -24px rgba(12, 30, 26, 0.45);
  transform: translateY(-2px);
}
.ops-card[hidden] {
  display: none;
}
.ops-card.is-featured {
  border-color: rgba(252, 194, 45, 0.7);
}
.ops-badge {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  background: var(--action);
  border-radius: 999px;
}
.ops-logo {
  display: flex; align-items: center; justify-content: center;
  width: 92px; height: 92px;
  margin-bottom: 6px; padding: 10px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.ops-logo img {
  display: block;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.ops-card strong {
  font-family: Raleway, sans-serif; font-size: 16px; font-weight: 800; line-height: 1.25;
}
.ops-city {
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.ops-city i {
  margin-right: 2px;
  color: var(--brand-ink);
}
.ops-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px; line-height: 1.5; color: #42504C;
}
.ops-more {
  margin-top: auto; padding-top: 8px;
  font-size: 13px; font-weight: 700; color: var(--brand-ink);
}
.ops-empty {
  padding: 24px;
  font-family: Figtree, sans-serif; text-align: center; color: var(--muted);
  background: #FFF;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

/* SPECIAL OPERATORS */
.ops-box {
  padding: 18px;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.ops-box h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px;
  font-family: Raleway, sans-serif; font-size: 17px; font-weight: 800; color: var(--ink);
}
.ops-box h2 i {
  color: #D64545;
}
.ops-special, .ops-special:hover {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  border: 0;
  border-radius: 12px;
}
.ops-special:hover {
  background: var(--soft);
}
.ops-special img {
  width: 44px; height: 44px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media screen and (min-width: 640px) {
  .ops-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media screen and (min-width: 768px) {
  .ops-top {
    padding-top: 48px;
  }
  .ops-top h1 {
    font-size: 40px;
  }
}
@media screen and (min-width: 1024px) {
  .ops-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  }
  .ops-wrap.has-side {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px;
  }
  .ops-wrap.has-side .ops-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ops-side {
    position: sticky; top: calc(var(--header-h) + 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ops-card {
    transition: none;
  }
}

/* the operators' logo strip under the page (more.tpl) would repeat the grid */
.page-operators .partneret {
  display: none;
}
