/* ── Homepage state grid ─────────────────────────────────── */
.pp-states-grid {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.pp-states-grid__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
}

.pp-states-grid__item {
  margin: 0;
}

.pp-states-grid__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 18, 36, 0.35);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pp-states-grid__link:hover,
.pp-states-grid__link:focus-visible {
  border-color: #e91224;
  background: rgba(233, 18, 36, 0.12);
  color: #ffffff;
}

.pp-states-grid__name {
  font-family: Prata, Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
}

.pp-states-grid__count {
  font-family: Merriweather, Georgia, serif;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* ── State index page shell ──────────────────────────────── */
body.pp-state-index {
  background: #14181c;
}

body.pp-state-index #site-header,
body.pp-state-index header#masthead {
  display: none !important;
}

body.pp-state-index .pp-state-elementor-header .elementor-element-f3bfe6c {
  display: none !important;
}

body.pp-state-index .pp-state-elementor-header .elementor-element-fb4718d {
  min-height: 0 !important;
  background-image: none !important;
  background-color: #14181c !important;
  padding-bottom: 8px !important;
}

body.pp-state-index .pp-state-elementor-header .elementor-element-fb4718d::before,
body.pp-state-index .pp-state-elementor-header .elementor-element-fb4718d > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  display: none !important;
}

.pp-state-page {
  background: #14181c;
  color: #ffffff;
}

/* ── Hero ────────────────────────────────────────────────── */
.pp-state-hero {
  position: relative;
  background-color: #14181c;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.pp-state-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 1, 1, 0.72) 0%, rgba(20, 24, 28, 0.96) 100%);
}

.pp-state-hero__inner {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 42px;
}

.pp-state-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: Merriweather, Georgia, serif;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.pp-state-breadcrumbs a {
  color: #e91224;
  text-decoration: none;
}

.pp-state-breadcrumbs a:hover,
.pp-state-breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.pp-state-hero__eyebrow {
  margin: 0 0 10px;
  font-family: Merriweather, Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.pp-state-hero__title {
  margin: 0 0 14px;
  font-family: Prata, Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1px;
}

.pp-state-hero__lead {
  margin: 0;
  max-width: 720px;
  font-family: Merriweather, Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Search + city cards ─────────────────────────────────── */
.pp-state-content {
  padding: 0 0 72px;
}

.pp-state-content__inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.pp-state-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin: -28px auto 28px;
  padding: 20px 22px;
  border: 1px solid rgba(233, 18, 36, 0.35);
  border-radius: 12px;
  background: rgba(20, 24, 28, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.pp-state-search {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.pp-state-search__label {
  font-family: Prata, Georgia, serif;
  font-size: 18px;
  line-height: 1.2;
}

.pp-state-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pp-state-search__field:focus-within {
  border-color: #e91224;
  box-shadow: 0 0 0 1px rgba(233, 18, 36, 0.35);
}

.pp-state-search__icon {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
}

.pp-state-search__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-family: Merriweather, Georgia, serif;
  font-size: 16px;
}

.pp-state-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.pp-state-toolbar__count {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.pp-state-empty {
  padding: 28px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  text-align: center;
}

.pp-state-empty p {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.pp-state-cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pp-state-cities__item {
  margin: 0;
}

.pp-state-cities__item[hidden] {
  display: none;
}

.pp-state-city-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(233, 18, 36, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pp-state-city-card:hover,
.pp-state-city-card:focus-visible {
  border-color: #e91224;
  background: rgba(233, 18, 36, 0.1);
  transform: translateY(-1px);
  color: #ffffff;
}

.pp-state-city-card__name {
  font-family: Prata, Georgia, serif;
  font-size: 20px;
  line-height: 1.25;
}

.pp-state-city-card__meta {
  font-family: Merriweather, Georgia, serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.pp-state-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 8px;
}

.pp-state-pagination[hidden] {
  display: none;
}

.pp-state-pagination__btn {
  border: 1px solid rgba(233, 18, 36, 0.45);
  border-radius: 8px;
  background: rgba(233, 18, 36, 0.12);
  color: #ffffff;
  font-family: Merriweather, Georgia, serif;
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pp-state-pagination__btn:hover:not(:disabled),
.pp-state-pagination__btn:focus-visible:not(:disabled) {
  border-color: #e91224;
  background: rgba(233, 18, 36, 0.22);
}

.pp-state-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pp-state-pagination__status {
  font-family: Merriweather, Georgia, serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .pp-states-grid__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-state-cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pp-states-grid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-state-hero__inner,
  .pp-state-content__inner {
    width: min(980px, calc(100% - 32px));
  }

  .pp-state-toolbar {
    margin-top: -18px;
    padding: 16px;
  }

  .pp-state-cities {
    grid-template-columns: 1fr;
  }

  .pp-state-content {
    padding-bottom: 56px;
  }
}
