:root {
  color-scheme: light;
  --ink: #171a16;
  --ink-soft: #28312b;
  --muted: #66716a;
  --line: #d6d9d1;
  --surface: #ffffff;
  --surface-soft: #f7f7f2;
  --page: #eff1ec;
  --green: #1e6946;
  --green-dark: #12472f;
  --yellow: #f0c84b;
  --blue: #2f6688;
  --rust: #a54e39;
  --red: #a43b36;
  --shadow: 0 16px 36px rgba(20, 29, 23, .13);
  --small-shadow: 0 7px 18px rgba(20, 29, 23, .1);
  --content-width: 1180px;
  --topbar-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  overflow-x: hidden;
}

body::selection {
  background: var(--yellow);
  color: var(--ink);
}

a {
  color: var(--green-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

main {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--topbar-height);
  background: #111713;
  border-bottom: 3px solid var(--yellow);
  color: #fff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  width: min(var(--content-width), calc(100% - 40px));
  min-height: calc(var(--topbar-height) - 3px);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  white-space: normal;
}

.brand > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand strong {
  color: var(--yellow);
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
}

.brand-mark span {
  background: #fff;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  background: var(--yellow);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.navlinks a,
.navlinks button {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  border: 0;
  border-radius: 3px;
  padding: 8px 12px;
  background: transparent;
  color: #e8ede9;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.navlinks a:hover,
.navlinks button:hover {
  background: #29332c;
  color: #fff;
}

.navlinks form {
  margin: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  min-height: 250px;
  padding: 46px 0 42px;
  border-bottom: 1px solid #c8cdc5;
}

.home-title {
  min-width: 0;
  max-width: 790px;
}

.eyebrow,
.place-type {
  display: none;
  margin: 0 0 8px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 16px;
  font-size: 4rem;
  font-weight: 800;
  line-height: .98;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.18;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.13rem;
  font-weight: 800;
  line-height: 1.28;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.world-count {
  margin: 0 0 4px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.world-count strong {
  display: block;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1;
}

.country-directory {
  padding: 42px 0 0;
}

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

.directory-heading h2,
.directory-heading p,
.section-heading h2 {
  margin-bottom: 0;
}

.directory-heading p {
  max-width: 420px;
  color: var(--muted);
  text-align: right;
}

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

.country-button {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #bdc3ba;
  border-radius: 4px;
  background: #dfe3dc;
  box-shadow: var(--small-shadow);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.country-button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 5px;
  background: var(--yellow);
}

.country-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.country-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}

.country-button:hover .country-image {
  transform: scale(1.035);
}

.country-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 14px 18px;
  background: rgba(17, 23, 19, .94);
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.country-label span {
  display: grid;
  gap: 1px;
}

.country-label strong {
  font-size: 1.32rem;
  line-height: 1.2;
}

.country-label small {
  color: #b9c3bc;
  font-size: .82rem;
}

.card-arrow {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.card-arrow::before,
.card-arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.card-arrow::before {
  top: 2px;
  right: 1px;
  width: 10px;
  height: 2px;
}

.card-arrow::after {
  top: 2px;
  right: 1px;
  width: 2px;
  height: 10px;
}

.card-arrow {
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.placeholder-1 {
  background: linear-gradient(145deg, #406b4e, #9bb57a 55%, #d4bf69);
}

.placeholder-2 {
  background: linear-gradient(145deg, #37647c, #6a9a86 55%, #b7c68a);
}

.placeholder-3 {
  background: linear-gradient(145deg, #8d4f3e, #c68762 55%, #dec37b);
}

.placeholder-4 {
  background: linear-gradient(145deg, #45545d, #668a9f 55%, #a3b6b6);
}

.page-backdrop {
  position: relative;
  min-height: calc(100vh - var(--topbar-height));
  margin: -32px calc(50% - 50vw) -72px;
  padding: 32px max(20px, calc((100vw - var(--content-width)) / 2)) 80px;
  isolation: isolate;
}

.page-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(239, 241, 236, .38), rgba(239, 241, 236, .68)),
    var(--page-bg, linear-gradient(var(--page), var(--page)));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.place-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 430px;
  overflow: hidden;
  border-radius: 4px;
  background-image:
    linear-gradient(180deg, rgba(10, 15, 12, .06) 20%, rgba(10, 15, 12, .88) 100%),
    var(--hero-image, linear-gradient(145deg, #355b45, #8da16f));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: #fff;
}

.place-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: var(--yellow);
}

.place-hero-content {
  position: relative;
  z-index: 1;
  width: min(810px, 100%);
  padding: 42px 48px;
}

.place-hero h1 {
  margin-bottom: 12px;
  font-size: 4.5rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .25);
}

.place-hero-content > p:last-of-type {
  max-width: 730px;
  margin-bottom: 22px;
  color: #edf1ee;
  font-size: 1.08rem;
}

.place-hero .place-type {
  color: var(--yellow);
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: #d4dcd6;
  font-size: .87rem;
  font-weight: 650;
}

.breadcrumb a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 4px;
}

.place-section {
  margin: 38px 0;
  padding: 30px 0 34px;
  border-top: 1px solid rgba(75, 86, 78, .25);
  border-bottom: 1px solid rgba(75, 86, 78, .25);
}

.section-count {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.city-card {
  display: grid;
  grid-template-rows: 178px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(91, 103, 94, .34);
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--small-shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.city-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.city-thumb {
  min-height: 178px;
  background-position: center;
  background-size: cover;
}

.city-card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px 18px 18px;
}

.city-card-copy p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.city-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--green-dark);
  font-size: .88rem;
  font-weight: 800;
}

.city-link .card-arrow {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.overview-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.overview-copy {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
}

.main-feed {
  min-width: 0;
  padding-top: 4px;
}

.feed-heading {
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--ink);
}

.feed-heading h2,
.feed-heading .eyebrow {
  margin-bottom: 0;
}

.feed-heading-spaced {
  margin-top: 38px;
}

.sidebar-stack,
.post-list,
.landmark-list {
  display: grid;
  gap: 14px;
}

.info-panel,
.post-card,
.landmark-card,
.login-panel,
.admin-page {
  border: 1px solid rgba(91, 103, 94, .32);
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--small-shadow);
}

.info-panel {
  padding: 21px;
}

.info-panel h2 {
  font-size: 1.28rem;
}

.info-panel > p:last-child {
  margin-bottom: 0;
}

.notice-panel {
  background: rgba(22, 29, 24, .96);
  color: #f6f7f3;
}

.notice-panel h2,
.notice-panel h3 {
  color: #fff;
}

.notice-panel .eyebrow {
  color: var(--yellow);
}

.notice-panel .empty,
.notice-panel .post-card p,
.notice-panel .post-meta time {
  color: #c3cdc6;
}

.notice-panel .post-card {
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.post-card {
  min-width: 0;
  padding: 19px 20px 18px;
  border-left: 4px solid var(--blue);
}

.post-card h3 {
  margin-top: 10px;
}

.post-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-meta time,
.post-scope {
  color: var(--muted);
  font-size: .83rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 3px;
  padding: 3px 7px;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-news {
  background: #e2edf4;
  color: var(--blue);
}

.badge-announcement {
  background: #f8edc4;
  color: #745d0f;
}

.badge-event {
  background: #deeee5;
  color: var(--green-dark);
}

.badge-pinned {
  background: #f3dfdb;
  color: var(--red);
}

.travel-details {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.travel-details div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.travel-details dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.travel-details dd {
  margin: 0;
}

.landmark-card {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 12px;
}

.landmark-image {
  min-height: 138px;
  border-radius: 2px;
  background-position: center;
  background-size: cover;
}

.landmark-card p:not(.eyebrow) {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  justify-content: center;
  border-top: 1px solid rgba(75, 86, 78, .3);
  padding: 14px 0 0;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.button,
.primary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: 3px;
  padding: 9px 15px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.primary:hover,
.text-link:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.button-light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.map-page {
  display: grid;
  gap: 18px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 18px 0 4px;
}

.map-header h1 {
  margin-bottom: 0;
  font-size: 3.3rem;
}

.map-frame {
  width: 100%;
  height: min(76vh, 820px);
  min-height: 520px;
  border: 5px solid var(--ink);
  border-radius: 3px;
  background: #101410;
  box-shadow: var(--shadow);
}

.index-hero {
  max-width: 820px;
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 34px;
}

.custom-page-directory {
  margin-top: 0;
}

.custom-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.custom-page-card {
  position: relative;
  display: flex;
  min-height: 220px;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(91, 103, 94, .34);
  border-top: 5px solid var(--page-accent, var(--green));
  border-radius: 4px;
  padding: 22px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--small-shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.custom-page-card:hover {
  transform: translateY(-3px);
  border-color: var(--page-accent, var(--green));
}

.custom-page-card p {
  color: var(--muted);
}

.custom-page-card .city-link {
  margin-top: auto;
}

.custom-page-template {
  margin-bottom: 12px;
  color: var(--page-accent, var(--green));
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.template-restrictions {
  --page-accent: var(--red);
}

.template-rules {
  --page-accent: #9a6a0d;
}

.template-visitor {
  --page-accent: var(--blue);
}

.template-services {
  --page-accent: #28785b;
}

.template-history {
  --page-accent: var(--rust);
}

.template-faq {
  --page-accent: #665a92;
}

.template-blank {
  --page-accent: #66716a;
}

.custom-page-hero {
  position: relative;
  display: flex;
  min-height: 360px;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 7px solid var(--page-accent, var(--green));
  border-radius: 4px;
  background-image:
    linear-gradient(180deg, rgba(10, 15, 12, .1) 15%, rgba(10, 15, 12, .9) 100%),
    var(--hero-image, linear-gradient(145deg, #355b45, #8da16f));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: #fff;
}

.custom-page-hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  padding: 42px 48px;
}

.custom-page-hero h1 {
  margin-bottom: 13px;
  font-size: 4rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .25);
}

.custom-page-hero-content > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: #edf1ee;
  font-size: 1.08rem;
}

.custom-page-hero .place-type {
  color: #fff;
}

.custom-page-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding-top: 34px;
}

.custom-page-main,
.custom-page-sidebar {
  display: grid;
  gap: 18px;
}

.custom-content-section {
  border-left: 5px solid var(--green);
  border-radius: 3px;
  padding: 27px 30px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--small-shadow);
}

.custom-content-section p,
.custom-page-sidebar p {
  margin-bottom: 0;
}

.template-restrictions + .custom-page-content .custom-content-section {
  border-left-color: var(--red);
}

.template-rules + .custom-page-content .custom-content-section {
  border-left-color: #9a6a0d;
}

.template-visitor + .custom-page-content .custom-content-section {
  border-left-color: var(--blue);
}

.template-services + .custom-page-content .custom-content-section {
  border-left-color: #28785b;
}

.template-history + .custom-page-content .custom-content-section {
  border-left-color: var(--rust);
}

.template-faq + .custom-page-content .custom-content-section {
  border-left-color: #665a92;
}

.template-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -6px;
}

.template-helper .field-note {
  margin: 0;
}

.secondary-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.page-section-editor {
  display: grid;
  gap: 13px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  background: var(--surface-soft);
}

.page-section-editor legend {
  padding: 0 7px;
  color: var(--ink);
  font-weight: 850;
}

.login-panel {
  position: relative;
  width: min(450px, 100%);
  margin: 70px auto;
  overflow: hidden;
  padding: 34px;
}

.login-panel::before,
.admin-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--yellow);
}

.login-panel h1 {
  font-size: 2.4rem;
}

.login-panel form,
.admin-form {
  display: grid;
  gap: 15px;
}

.admin-mode main {
  width: min(1240px, calc(100% - 40px));
}

.admin-page {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.admin-page h1 {
  font-size: 2.5rem;
}

.admin-form.compact {
  max-width: 540px;
}

label {
  display: grid;
  gap: 7px;
  color: #4f5d54;
  font-size: .92rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfc6bd;
  border-radius: 3px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(240, 200, 75, .42);
  border-color: var(--green);
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-subsection {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.button-row,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.button-row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.button-row a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.actions form {
  margin: 0;
}

table {
  width: 100%;
  margin-bottom: 22px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.danger,
.link-danger {
  border: 1px solid var(--red);
  border-radius: 3px;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
}

.danger {
  padding: 10px 12px;
}

.link-danger {
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.drop-zone {
  display: grid;
  min-height: 160px;
  place-content: center;
  border: 2px dashed #9fa99f;
  border-radius: 3px;
  background: var(--surface-soft);
  text-align: center;
  cursor: pointer;
}

.drop-zone strong {
  color: var(--ink);
}

.drop-zone small,
.drop-zone::after {
  color: var(--muted);
}

.drop-zone::after {
  content: attr(data-file);
  min-height: 1.2em;
  font-size: .86rem;
}

.drop-zone input[type="file"] {
  display: none;
}

.drop-zone.is-dragging {
  border-color: var(--green);
  background: #e8f1eb;
}

.upload-preview {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 2px;
}

.remove-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--red);
  font-size: .9rem;
}

.remove-image input {
  width: auto;
}

.muted,
.empty,
.field-note {
  color: var(--muted);
}

.empty {
  margin-bottom: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.field-note {
  margin: -4px 0 0;
  font-size: .9rem;
}

.error {
  color: var(--red);
  font-weight: 750;
}

@media (max-width: 940px) {
  h1 {
    font-size: 3.15rem;
  }

  .place-hero h1 {
    font-size: 3.7rem;
  }

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

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
  }

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

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

@media (max-width: 760px) {
  :root {
    --topbar-height: 112px;
  }

  main,
  .admin-mode main {
    width: min(100% - 28px, var(--content-width));
    padding-top: 22px;
  }

  .topbar {
    width: min(100% - 28px, var(--content-width));
    min-height: 109px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 12px 0;
  }

  .navlinks {
    width: 100%;
    gap: 4px;
  }

  .navlinks a,
  .navlinks button {
    min-height: 34px;
    padding: 6px 9px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 34px 0 32px;
  }

  .world-count {
    text-align: left;
  }

  .world-count strong {
    display: inline;
    margin-right: 4px;
    font-size: inherit;
  }

  .directory-heading,
  .section-heading,
  .map-header,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .directory-heading p {
    text-align: left;
  }

  .country-grid,
  .city-list,
  .content-grid,
  .post-grid,
  .post-grid.wide,
  .overview-section,
  .upload-grid,
  .custom-page-grid,
  .custom-page-content {
    grid-template-columns: 1fr;
  }

  .country-button {
    min-height: 270px;
  }

  .page-backdrop {
    margin-top: -22px;
    padding-top: 20px;
  }

  .place-hero {
    min-height: 390px;
  }

  .place-hero-content {
    padding: 30px 25px;
  }

  .place-hero h1 {
    font-size: 3rem;
  }

  .custom-page-hero {
    min-height: 330px;
  }

  .custom-page-hero-content {
    padding: 30px 25px;
  }

  .custom-page-hero h1 {
    font-size: 3rem;
  }

  .template-helper {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-section {
    gap: 6px;
  }

  .content-grid {
    gap: 34px;
  }

  .sidebar-stack {
    order: 2;
  }

  .map-header h1 {
    font-size: 2.7rem;
  }

  .map-frame {
    min-height: 480px;
  }

  .landmark-card {
    grid-template-columns: 1fr;
  }

  .landmark-image {
    min-height: 190px;
  }

  .admin-page {
    overflow-x: auto;
    padding: 22px 18px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.55rem;
  }

  .brand {
    font-size: 1rem;
  }

  .country-directory {
    padding-top: 32px;
  }

  .country-button {
    min-height: 240px;
  }

  .country-label {
    min-height: 68px;
  }

  .place-hero {
    min-height: 360px;
  }

  .place-hero h1 {
    font-size: 2.55rem;
  }

  .custom-page-hero h1 {
    font-size: 2.55rem;
  }

  .custom-page-hero-content {
    padding: 27px 20px;
  }

  .custom-content-section {
    padding: 22px 20px;
  }

  .place-hero-content {
    padding: 27px 20px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .city-card {
    grid-template-rows: 160px 1fr;
  }

  .city-thumb {
    min-height: 160px;
  }

  .travel-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .login-panel {
    margin: 38px auto;
    padding: 26px 20px;
  }

  .login-panel h1,
  .admin-page h1 {
    font-size: 2rem;
  }
}
