/* PitchVaani state directory v107 — scoped to new directory and state pages. */
.pv-state-directory-page,
.pv-state-detail-page {
  background: #f7fafc;
  color: #0b1120;
}

.pv-state-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #071827;
}

.pv-state-hero-media,
.pv-state-hero-media::before,
.pv-state-hero-media::after {
  position: absolute;
  inset: 0;
}

.pv-state-hero-media {
  z-index: -2;
}

.pv-state-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-state-hero-media::before {
  content: "";
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 12, 22, 0.94) 0%, rgba(6, 27, 43, 0.82) 47%, rgba(6, 78, 59, 0.44) 100%);
}

.pv-state-hero-media::after {
  content: "";
  z-index: 2;
  background: linear-gradient(0deg, rgba(3, 12, 22, 0.82) 0%, transparent 58%);
}

.pv-state-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 64px;
}

.pv-state-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.pv-state-breadcrumb a {
  color: #6ee7b7;
  text-decoration: none;
}

.pv-state-breadcrumb a:hover,
.pv-state-breadcrumb a:focus-visible {
  color: #ffffff;
}

.pv-state-breadcrumb svg {
  width: 15px;
  height: 15px;
}

.pv-state-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(110, 231, 183, 0.32);
  border-radius: 999px;
  background: rgba(6, 95, 70, 0.34);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pv-state-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #ffffff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.pv-state-hero h1 span {
  color: #4ade80;
}

.pv-state-hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(241, 245, 249, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.pv-state-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pv-state-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.pv-state-summary svg {
  width: 17px;
  height: 17px;
  color: #4ade80;
}

.pv-directory-main,
.pv-state-detail-main {
  padding: 54px 0 82px;
}

.pv-filter-panel {
  position: relative;
  z-index: 3;
  margin-top: -82px;
  margin-bottom: 42px;
  padding: 22px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.15);
}

.pv-filter-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pv-filter-heading h2,
.pv-directory-heading h2,
.pv-state-section-heading h2 {
  margin: 0;
  color: #0b1120;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
}

.pv-filter-heading p,
.pv-directory-heading p,
.pv-state-section-heading p {
  margin: 7px 0 0;
  color: #526071;
  line-height: 1.65;
}

.pv-result-count {
  flex: 0 0 auto;
  color: #047857;
  font-size: 14px;
  font-weight: 800;
}

.pv-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
}

.pv-filter-field {
  display: grid;
  gap: 7px;
}

.pv-filter-field label {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-filter-field input,
.pv-filter-field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.pv-filter-field input:focus,
.pv-filter-field select:focus {
  border-color: #10b981;
  outline: 3px solid rgba(16, 185, 129, 0.2);
  outline-offset: 1px;
}

.pv-filter-reset {
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid #0f766e;
  border-radius: 10px;
  background: #ffffff;
  color: #065f46;
  font-weight: 800;
}

.pv-filter-reset:hover,
.pv-filter-reset:focus-visible {
  background: #ecfdf5;
}

.pv-directory-heading,
.pv-state-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pv-directory-heading-copy,
.pv-state-section-heading-copy {
  max-width: 720px;
}

.pv-directory-heading h2 span,
.pv-state-section-heading h2 span {
  color: #059669;
}

.pv-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pv-state-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: #071827;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.13);
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.pv-state-card:hover,
.pv-state-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.22);
}

.pv-state-card[hidden] {
  display: none;
}

.pv-state-card-image,
.pv-state-card-image::after,
.pv-state-card-image img {
  position: absolute;
  inset: 0;
}

.pv-state-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.pv-state-card:hover .pv-state-card-image img,
.pv-state-card:focus-within .pv-state-card-image img {
  transform: scale(1.035);
}

.pv-state-card-image::after {
  content: "";
  background: linear-gradient(180deg, rgba(3, 12, 22, 0.04) 20%, rgba(3, 12, 22, 0.94) 88%);
}

.pv-state-card-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  padding: 24px;
  color: #ffffff;
}

.pv-state-card-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-state-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.15;
}

.pv-state-card p {
  margin: 8px 0 17px;
  color: rgba(241, 245, 249, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.pv-state-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4ade80;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.pv-state-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.pv-state-card-link svg {
  width: 16px;
  height: 16px;
}

.pv-directory-empty {
  display: none;
  margin-top: 24px;
  padding: 30px;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: #ffffff;
  color: #475569;
  text-align: center;
}

.pv-directory-empty.is-visible {
  display: block;
}

.pv-state-detail-main {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 54%, #f7fafc 100%);
}

.pv-state-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}

.pv-state-overview-copy,
.pv-state-overview-note {
  padding: 28px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.pv-state-overview-copy h2,
.pv-state-overview-note h2 {
  margin: 0 0 12px;
  color: #0b1120;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
}

.pv-state-overview-copy p,
.pv-state-overview-note p {
  margin: 0;
  color: #526071;
  line-height: 1.75;
}

.pv-state-overview-note {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(145deg, #071827 0%, #064e3b 100%);
}

.pv-state-overview-note h2,
.pv-state-overview-note p {
  color: #ffffff;
}

.pv-state-overview-note p {
  color: rgba(241, 245, 249, 0.82);
}

.pv-ground-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pv-ground-card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 24px;
  border: 1px solid #dbe5ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.pv-ground-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pv-ground-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 900;
}

.pv-ground-type {
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-ground-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
}

.pv-ground-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 13px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.pv-ground-location svg {
  width: 15px;
  height: 15px;
  color: #10b981;
}

.pv-ground-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.pv-state-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: #047857;
  font-weight: 850;
  text-decoration: none;
}

.pv-state-back:hover,
.pv-state-back:focus-visible {
  color: #064e3b;
  text-decoration: underline;
}

.pv-photo-credit {
  margin-top: 15px;
  color: rgba(241, 245, 249, 0.72);
  font-size: 12px;
}

.pv-photo-credit a {
  color: #a7f3d0;
}

@media (max-width: 1050px) {
  .pv-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pv-ground-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pv-state-hero {
    min-height: 350px;
  }

  .pv-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pv-filter-field:first-child,
  .pv-filter-reset {
    grid-column: 1 / -1;
  }

  .pv-state-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .pv-state-hero .container {
    padding-top: 54px;
    padding-bottom: 82px;
  }

  .pv-state-hero h1 {
    font-size: 38px;
  }

  .pv-directory-main,
  .pv-state-detail-main {
    padding-bottom: 58px;
  }

  .pv-filter-panel {
    margin-top: -58px;
    padding: 18px;
  }

  .pv-filter-heading,
  .pv-directory-heading,
  .pv-state-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pv-filter-grid,
  .pv-state-grid,
  .pv-ground-grid {
    grid-template-columns: 1fr;
  }

  .pv-filter-field,
  .pv-filter-field:first-child,
  .pv-filter-reset {
    grid-column: auto;
  }

  .pv-state-card {
    min-height: 335px;
  }

  .pv-state-card-content,
  .pv-ground-card,
  .pv-state-overview-copy,
  .pv-state-overview-note {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-state-card,
  .pv-state-card-image img {
    transition: none;
  }
}
