/* Light directory layout — readable listings on neutral canvas, red brand accents */

:root {
  --dir-red-600: #a32626;
  --dir-red-700: #8c1f1f;
  --dir-red-800: #6f1919;
  --dir-border: #eee8e8;
  --dir-border-light: #f6f2f2;
  --dir-text: #161616;
  --dir-text-muted: #6b6b6b;
  --dir-text-subtle: #a3a3a3;
  --dir-bg: #ffffff;
  --dir-radius: 16px;
  --dir-shadow-sm: 0 1px 2px rgba(22, 22, 22, 0.04);
  --dir-shadow: 0 10px 28px rgba(22, 22, 22, 0.06);
  --dir-max-width: 1080px;
}

.dir-shell {
  min-height: 100%;
  overflow-x: clip;
  background: var(--dir-bg);
  color: var(--dir-text);
}

.dir-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--dir-red-700);
  background: linear-gradient(135deg, var(--dir-red-700) 0%, var(--dir-red-800) 55%, #450a0a 100%);
  box-shadow: 0 4px 24px rgba(153, 27, 27, 0.25);
}

.dir-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: var(--dir-max-width);
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .dir-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.dir-hero {
  border-bottom: 1px solid var(--dir-border);
  background:
    linear-gradient(135deg, rgba(153, 27, 27, 0.96) 0%, rgba(69, 10, 10, 0.98) 100%);
  color: white;
}

.dir-breadcrumb-bar {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 1px solid var(--dir-border);
  background: #fff;
}

.dir-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  width: min(1080px, calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: 0.55rem 0;
  line-height: 1.25;
  font-size: 0.875rem;
  color: var(--dir-text-muted);
}

.dir-breadcrumb a {
  color: var(--dir-red-600);
  text-decoration: none;
}

.dir-breadcrumb a:hover {
  color: var(--dir-red-700);
  text-decoration: underline;
}

.dir-breadcrumb-sep {
  color: var(--dir-text-subtle);
}

.dir-page-header {
  border-bottom: 1px solid var(--dir-border);
  background: white;
}

.dir-card {
  border-radius: var(--dir-radius);
  border: 1px solid var(--dir-border);
  background: white;
  box-shadow: var(--dir-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dir-card:hover {
  border-color: #fecaca;
  box-shadow: var(--dir-shadow);
}

.dir-card-static {
  border-radius: var(--dir-radius);
  border: 1px solid var(--dir-border);
  background: white;
  box-shadow: var(--dir-shadow-sm);
}

.dir-listing {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: var(--dir-radius);
  border: 1px solid var(--dir-border);
  background: white;
  box-shadow: var(--dir-shadow-sm);
}

.dir-listing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--dir-border-light);
  padding: 1rem 1.25rem;
  transition: background 0.15s ease;
}

.dir-listing-row:last-child {
  border-bottom: none;
}

.dir-listing-row:hover {
  background: #fef2f2;
}

.dir-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dir-badge-red {
  background: #fee2e2;
  color: #991b1b;
}

.dir-badge-green {
  background: #dcfce7;
  color: #15803d;
}

.dir-badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}

.dir-badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.dir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dir-btn-primary {
  background: var(--dir-red-600);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.dir-btn-primary:hover {
  background: var(--dir-red-700);
  color: white;
}

.dir-btn-outline {
  border: 1px solid var(--dir-border);
  background: white;
  color: var(--dir-text);
}

.dir-btn-outline:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: var(--dir-red-700);
}

.dir-btn-ghost-white {
  color: rgba(255, 255, 255, 0.92);
}

.dir-btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.dir-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--dir-border);
  background: white;
  color: var(--dir-text);
  font-size: 1rem;
}

.dir-input:focus {
  outline: none;
  border-color: var(--dir-red-400);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.dir-input::placeholder {
  color: #9ca3af;
}

.dir-search-box {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 639px) {
  .dir-search-box {
    border-radius: 0.875rem;
    padding: 0.5rem;
  }
}

.dir-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--dir-border);
  background: white;
}

.dir-stat {
  padding: 1rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--dir-border-light);
}

.dir-stat:nth-child(odd) {
  border-right: 1px solid var(--dir-border-light);
}

.dir-stat:nth-last-child(-n + 2) {
  border-bottom: none;
}

.dir-stat + .dir-stat {
  border-left: none;
}

@media (min-width: 768px) {
  .dir-stats-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dir-stat {
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    border-right: none;
  }

  .dir-stat:nth-child(odd) {
    border-right: none;
  }

  .dir-stat + .dir-stat {
    border-left: 1px solid var(--dir-border-light);
  }
}

.dir-stat-value {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dir-red-700);
}

@media (min-width: 640px) {
  .dir-stat-value {
    font-size: 1.75rem;
  }
}

.dir-stat-label {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dir-text-muted);
}

@media (min-width: 640px) {
  .dir-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
}

.dir-section-title {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dir-text);
}

@media (min-width: 640px) {
  .dir-section-title {
    font-size: 1.5rem;
  }
}

.dir-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dir-red-600);
}

.dir-footer {
  margin-top: auto;
  border-top: 1px solid var(--dir-border);
  background: white;
}

.dir-table-head {
  display: none;
  border-bottom: 1px solid var(--dir-border);
  background: #fafafa;
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dir-text-muted);
}

@media (min-width: 768px) {
  .dir-table-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
  }
}

.dir-table-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--dir-border-light);
  padding: 1rem 1.25rem;
  transition: background 0.15s ease;
}

@media (min-width: 768px) {
  .dir-table-row {
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
  }
}

.dir-table-row:last-child {
  border-bottom: none;
}

.dir-table-row:hover {
  background: #fef2f2;
}

.dir-mobile-bar {
  border-top: 1px solid var(--dir-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.dir-operator-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dir-operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .dir-operator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dir-operator-card {
  border-radius: var(--dir-radius);
  border: 1px solid var(--dir-border);
  background: white;
  padding: 1.25rem;
  box-shadow: var(--dir-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dir-operator-card:hover {
  border-color: #fecaca;
  box-shadow: var(--dir-shadow);
}

.dir-operator-card-featured {
  border-color: #fca5a5;
  background:
    linear-gradient(180deg, rgba(254, 242, 242, 0.95) 0%, rgba(255, 255, 255, 1) 42%),
    white;
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.12);
}

.dir-operator-card-featured-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dir-operator-card-featured-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.dir-operator-card-main {
  min-width: 0;
  flex: 1;
}

.dir-operator-card-actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .dir-operator-card-actions {
    width: auto;
    min-width: 15rem;
  }
}

.dir-operator-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #52525b;
}

.op-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 1.05rem;
  border: 1px solid #eee8e8;
  border-radius: 16px;
  background: #fff;
}

.op-card:hover {
  border-color: #e7cfcf;
}

.op-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  color: transparent;
  font-size: 0;
}

.op-main {
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

.op-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #a32626;
  color: #fff;
  font-weight: 800;
}

.op-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.op-kicker span {
  border-radius: 999px;
  background: #faf7f7;
  color: #6b6b6b;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.op-card h3 {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.op-card h3 + p {
  margin: 0.2rem 0 0;
  color: #6b6b6b;
  font-size: 0.86rem;
}

.op-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.op-call,
.op-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.op-call {
  background: #a32626;
  color: #fff;
}

.op-call:hover { background: #8c1f1f; color: #fff; }

.op-wa {
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #161616;
}

.op-wa:hover { border-color: #d4d4d4; }

@media (min-width: 720px) {
  .op-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .op-actions { flex: 0 0 auto; }
}
