/* ==========================================================================
   PlacesNamed.com - Modern Digital Atlas & Geographic Encyclopedia
   ========================================================================== */

:root {
  --pn-ink: #0d2b2e;
  --pn-ink-soft: #174449;
  --pn-teal: #14746f;
  --pn-teal-hover: #0e5a56;
  --pn-gold: #b88224;
  --pn-gold-soft: #fbf4e4;
  --pn-paper: #f6f5ef;
  --pn-surface: #ffffff;
  --pn-surface-alt: #faf9f5;
  --pn-border: #e2dfd5;
  --pn-border-strong: #cbc6b8;
  --pn-text: #162426;
  --pn-body: #394b4d;
  --pn-muted: #647678;
  --pn-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --pn-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pn-radius: 13px;
  --pn-radius-sm: 8px;
  --pn-shadow: 0 1px 3px rgba(13, 43, 46, 0.06), 0 8px 24px rgba(13, 43, 46, 0.05);
  --pn-shadow-lg: 0 14px 36px rgba(13, 43, 46, 0.14);
  --pn-max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--pn-paper);
  color: var(--pn-body);
  font-family: var(--pn-sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--pn-teal);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

a:hover {
  color: var(--pn-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pn-gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--pn-max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header & Live Search ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pn-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--pn-ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--pn-ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(13, 43, 46, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--pn-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--pn-ink);
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pn-gold);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.header-search input {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  padding: 9px 40px 9px 14px;
  border: 1px solid var(--pn-border-strong);
  border-radius: 999px;
  background: var(--pn-surface-alt);
  color: var(--pn-text);
}

.header-search input:focus {
  background: #ffffff;
  border-color: var(--pn-teal);
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--pn-teal);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search button:hover {
  background: var(--pn-ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--pn-body);
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--pn-ink);
  background: var(--pn-paper);
}

/* Autocomplete Dropdown */
.suggest-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--pn-border-strong);
  border-radius: 12px;
  box-shadow: var(--pn-shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 500;
  display: none;
  max-height: 360px;
  overflow-y: auto;
}

.suggest-list.is-open {
  display: block;
}

.suggest-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--pn-text);
  font-size: 14px;
}

.suggest-item a:hover,
.suggest-item.is-active a {
  background: #eef7f6;
  color: var(--pn-ink);
}

.suggest-meta {
  font-size: 12px;
  color: var(--pn-muted);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(45, 212, 191, 0.2), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(217, 160, 54, 0.18), transparent 45%),
    linear-gradient(135deg, #071e20 0%, #0e373b 52%, #145457 100%);
  color: #ffffff;
  padding: 64px 0 60px;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3d285;
  margin: 0 0 12px;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--pn-serif);
  font-size: clamp(32px, 4.8vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: #ffffff;
}

.hero-lead {
  margin: 0 auto 28px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

.hero-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto 22px;
  text-align: left;
}

.hero-search-row {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--pn-text);
  background: transparent;
  min-width: 0;
}

.hero-search input:focus {
  outline: none;
}

.hero-search button {
  background: var(--pn-teal);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search button:hover {
  background: var(--pn-ink);
}

.hero-examples {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

.hero-examples a {
  color: #f3d285;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-examples a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 14px;
}

.stat-val {
  font-family: var(--pn-serif);
  font-size: 26px;
  color: #ffffff;
  line-height: 1.15;
}

.stat-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
}

/* ---------- Sections & Cards ---------- */
.section {
  padding: 46px 0;
}

.section--white {
  background: var(--pn-surface);
  border-top: 1px solid var(--pn-border);
  border-bottom: 1px solid var(--pn-border);
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 6px;
  font-family: var(--pn-serif);
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 400;
  color: var(--pn-ink);
}

.section-sub {
  margin: 0;
  color: var(--pn-muted);
  font-size: 15px;
}

.card {
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius);
  padding: 24px;
  box-shadow: var(--pn-shadow);
}

/* ---------- A-Z Atlas Directory Grid ---------- */
.alpha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.alpha-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11px 6px;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: 10px;
  color: var(--pn-ink);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 1px 2px rgba(13, 43, 46, 0.04);
}

.alpha-tile:hover,
.alpha-tile.is-current {
  background: var(--pn-ink);
  border-color: var(--pn-ink);
  color: #ffffff;
  transform: translateY(-2px);
}

.alpha-tile span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pn-muted);
  margin-top: 2px;
}

.alpha-tile:hover span,
.alpha-tile.is-current span {
  color: #f3d285;
}

/* ---------- Featured & Directory Place Cards ---------- */
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.place-card {
  display: flex;
  flex-direction: column;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius-sm);
  padding: 18px 20px;
  box-shadow: var(--pn-shadow);
  color: inherit;
}

.place-card:hover {
  border-color: var(--pn-teal);
  transform: translateY(-2px);
  box-shadow: var(--pn-shadow-lg);
  color: inherit;
}

.place-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.place-card h3 {
  margin: 0;
  font-family: var(--pn-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--pn-ink);
}

.place-card-meta {
  font-size: 13.5px;
  color: var(--pn-muted);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #0e5a56;
  white-space: nowrap;
}

.badge--gold {
  background: var(--pn-gold-soft);
  color: #8c5f14;
}

.badge--slate {
  background: #eef2f5;
  color: #3f5159;
}

/* ---------- Place Detail Page ---------- */
.place-hero {
  background: linear-gradient(135deg, #0b2629 0%, #14494d 100%);
  color: #ffffff;
  padding: 32px 0 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #f3d285;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.place-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.place-hero h1 {
  margin: 0 0 8px;
  font-family: var(--pn-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
}

.place-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: start;
}

.fact-list {
  display: grid;
  gap: 14px;
}

.fact-card {
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-left: 4px solid var(--pn-teal);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--pn-shadow);
}

.fact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fact-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pn-text);
  overflow-wrap: anywhere;
}

.fact-body a {
  color: var(--pn-teal);
  font-weight: 600;
  border-bottom: 1px dotted rgba(20, 116, 111, 0.4);
}

.fact-body a:hover {
  color: var(--pn-ink);
  border-bottom-color: var(--pn-ink);
}

.fact-body.is-clamped {
  max-height: 175px;
  overflow: hidden;
  position: relative;
}

.fact-body.is-clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 95%);
}

.fact-expand-btn {
  margin-top: 10px;
  background: #edf6f5;
  color: var(--pn-ink);
  border: 1px solid #c5e2de;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fact-expand-btn:hover {
  background: var(--pn-teal);
  color: #ffffff;
  border-color: var(--pn-teal);
}

/* Sidebar Map & Nearby */
.sidebar-stack {
  display: grid;
  gap: 20px;
}

.map-box {
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pn-border);
  background: #e9f1f0;
  margin-bottom: 12px;
}

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nearby-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--pn-surface-alt);
  border: 1px solid var(--pn-border);
  color: var(--pn-text);
  font-size: 14px;
}

.nearby-list a:hover {
  border-color: var(--pn-teal);
  background: #eef7f6;
}

.nearby-dist {
  font-size: 12px;
  font-weight: 700;
  color: var(--pn-teal);
  white-space: nowrap;
}

/* Prev / Next Navigation */
.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.prev-next a {
  display: block;
  padding: 14px 18px;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: 10px;
  color: var(--pn-ink);
}

.prev-next a:hover {
  border-color: var(--pn-teal);
  background: #f2faf9;
}

.prev-next small {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pn-muted);
}

.prev-next strong {
  font-size: 15.5px;
}

/* Search & Browse List + Pagination */
.result-list {
  display: grid;
  gap: 10px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: 10px;
  color: inherit;
}

.result-row:hover {
  border-color: var(--pn-teal);
  background: #f5fbfa;
  color: inherit;
}

.result-title {
  font-family: var(--pn-serif);
  font-size: 18px;
  color: var(--pn-ink);
  font-weight: 400;
}

.result-sub {
  font-size: 13px;
  color: var(--pn-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--pn-body);
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--pn-ink);
  border-color: var(--pn-ink);
  color: #ffffff;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.pager a {
  background: var(--pn-surface);
  border: 1px solid var(--pn-border-strong);
  color: var(--pn-ink);
}

.pager a:hover {
  background: var(--pn-teal);
  border-color: var(--pn-teal);
  color: #ffffff;
}

/* ---------- Category Explorer & Name Rankings ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: 12px;
  box-shadow: var(--pn-shadow);
  color: inherit;
}

.cat-card:hover {
  border-color: var(--pn-teal);
  transform: translateY(-2px);
  box-shadow: var(--pn-shadow-lg);
  color: inherit;
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cat-card h3 {
  margin: 0;
  font-family: var(--pn-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--pn-ink);
}

.cat-card p {
  margin: 0;
  font-size: 13px;
  color: var(--pn-muted);
}

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

.rank-card {
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius);
  padding: 20px 22px;
  box-shadow: var(--pn-shadow);
  display: flex;
  flex-direction: column;
}

.rank-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--pn-border);
}

.rank-card-head h3 {
  margin: 0;
  font-family: var(--pn-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--pn-ink);
}

.rank-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.rank-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--pn-text);
  font-size: 14.5px;
}

.rank-list a:hover {
  background: #edf7f5;
  color: var(--pn-ink);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pn-teal);
  background: #e6f4f1;
  border-radius: 999px;
  padding: 2px 7px;
  margin-right: 8px;
}

.rank-pct {
  font-size: 12.5px;
  color: var(--pn-muted);
  font-variant-numeric: tabular-nums;
}

.rank-more {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--pn-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pn-teal);
}

.rank-table-wrap {
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius);
  box-shadow: var(--pn-shadow);
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.rank-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--pn-ink);
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rank-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--pn-border);
  color: var(--pn-text);
}

.rank-table tr:hover td {
  background: #f4faf9;
}

.rank-bar-track {
  width: 120px;
  height: 7px;
  border-radius: 999px;
  background: #e7eeed;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.rank-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pn-teal), #2da89d);
  border-radius: 999px;
}

.inline-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 420px;
}

.inline-filter input {
  flex: 1;
  font-family: inherit;
  font-size: 14.5px;
  padding: 9px 14px;
  border: 1px solid var(--pn-border-strong);
  border-radius: 8px;
  background: #ffffff;
}

.inline-filter button {
  background: var(--pn-teal);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.inline-filter button:hover {
  background: var(--pn-ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pn-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 0 26px;
  margin-top: auto;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-family: var(--pn-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3d285;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: #f3d285;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
  .detail-layout,
  .place-grid,
  .names-trio {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }

  .prev-next,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
