:root {
  --primary: #2f6fae;
  --green: #028e7b;
  --green-dark: #017766;
  --green-light: #17b39e;
  --teal: #028e7b;
  --text: #333;
  --muted: #777;
  --line: #ddd;
  --soft: #f5f5f5;
  --box: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #fff; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.topbar {
  height: 81px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc((100vw - 1116px) / 2);
  min-width: 0;
  background: #f8f9fa;
  border-bottom: 1px solid #d9d9d9;
}
.brand { display: flex; align-items: center; height: 80px; }
.brand img { width: 78px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; color: #222; }
.nav a { white-space: nowrap; }
.lang-switch {
  display: inline-flex;
  height: 30px;
  padding: 2px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
}
.lang-switch button {
  min-width: 34px;
  border: 0;
  border-radius: 3px;
  color: #555;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lang-switch button.active {
  color: #fff;
  background: var(--green);
}
.listing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(#18b9a4, #028e7b);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.hero {
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 16px 92px;
  color: white;
  background: #3f3f3f;
}
.hero-copy {
  width: min(930px, 100%);
  text-align: center;
}
.hero h1 {
  margin: 0 0 15px;
  color: white;
  font-size: 34px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}
.hero p {
  margin: 0 0 22px;
  color: white;
  font-size: 20px;
  letter-spacing: .5px;
}

.search-panel {
  width: min(925px, 100%);
  min-height: 56px;
  display: grid;
  grid-template-columns: 52px 1fr 52px 1fr 150px;
  align-items: center;
  margin: 0 auto;
  padding: 5px;
  border: 5px solid rgba(255,255,255,.35);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}
.search-icon {
  display: grid;
  place-items: center;
  height: 46px;
  color: #999;
  font-family: "Arial Unicode MS", Arial, sans-serif;
  font-size: 28px;
  background: #fff;
}
.search-icon.location { font-size: 27px; }
.search-panel input {
  height: 46px;
  min-width: 0;
  border: 0;
  border-right: 1px solid #eee;
  padding: 0 12px;
  color: #555;
  font-size: 16px;
  outline: 0;
}
.search-panel button {
  height: 46px;
  border: 0;
  border-radius: 0 22px 22px 0;
  color: #fff;
  background: var(--green);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.search-panel button::before { content: ""; }

.inner-box, .content-box, .page-title, .compose-layout, .admin-panel {
  width: min(1116px, calc(100% - 32px));
  margin: 24px auto 0;
}
.inner-box, .content-box, .compose-form, .checkout-box, .admin-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--box);
}

.location-box {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 20px;
}
.location-list h2 {
  margin: 0 0 16px;
  padding: 0;
  font-size: 20px;
  line-height: 1.3;
  color: #222;
  white-space: nowrap;
}
.city-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 18px;
}
.city-columns ul { list-style: none; margin: 0; padding: 0; }
.city-columns li { margin: 0 0 12px; }
.city-columns a { color: #444; }
.city-columns a:hover { color: var(--green); text-decoration: underline; }
.lower { min-height: 44px; padding: 0 28px; }
.uk-map {
  width: 300px;
  min-height: 330px;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  gap: 6px;
}
.original-map-shell {
  width: 285px;
  height: 315px;
  display: grid;
  place-items: center;
}
.county-map {
  width: 245px;
  height: 315px;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.08));
}
.county-zone {
  fill: #cde9e5;
  stroke: var(--green);
  stroke-width: 3;
  cursor: pointer;
  transition: fill .15s ease, transform .15s ease, opacity .15s ease;
  transform-origin: center;
}
.county-zone:hover,
.county-zone.active {
  fill: var(--green);
  opacity: .95;
}
.county-zone:focus {
  outline: none;
  fill: var(--green-light);
}
.map-label {
  min-height: 22px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.content-box {
  padding: 0 0 18px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #eee;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}
.section-head a, .section-head span[data-count] {
  color: #777;
  font-size: 13px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.category-card {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px 10px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: #333;
}
.category-card:nth-child(6n) { border-right: 0; }
.category-card:hover { background: #f9f9f9; color: var(--green); }
.category-icon {
  display: block;
  color: var(--green);
  font-family: "Arial Unicode MS", Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
}
.category-card h6 {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.listing-list {
  display: grid;
  gap: 0;
}
.listing-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.listing-card:last-child { border-bottom: 0; }
.listing-card img {
  width: 180px;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}
.listing-body { display: grid; gap: 8px; align-content: start; }
.listing-title { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.listing-title h3 { margin: 0; color: #222; font-size: 19px; line-height: 1.25; }
.price { color: var(--green); font-size: 18px; font-weight: 800; white-space: nowrap; }
.badge {
  width: max-content;
  padding: 3px 8px;
  border-radius: 3px;
  color: #8b6500;
  background: #fff2bf;
  font-size: 12px;
  font-weight: 700;
}
.desc { margin: 0; color: #555; line-height: 1.45; }
.meta { display: flex; justify-content: space-between; gap: 12px; color: #888; font-size: 13px; }

.eyebrow { margin: 0 0 8px; color: var(--teal); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.page-title { padding-top: 18px; }
.page-title h1 { margin: 0; font-size: 34px; color: #222; }
.compact h1 { font-size: 30px; }

.compose-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}
.compose-form, .checkout-box, .admin-panel {
  padding: 22px;
}
.compose-form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: #333; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 13px;
  color: #333;
  background: white;
}
textarea { resize: vertical; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 1px solid #ddd; border-radius: 4px; margin: 0; padding: 14px; }
legend { font-weight: 700; padding: 0 6px; }
.package-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.package-option { border: 1px solid #ddd; border-radius: 4px; padding: 14px; cursor: pointer; }
.package-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.package-option input { width: auto; margin-right: 8px; }
.package-option strong { display: block; margin-bottom: 4px; }
.package-option small { display: block; color: #777; line-height: 1.35; }
.submit-btn, .pay-actions button, .pin-form button, .notice button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
}
.form-note { min-height: 22px; margin: 0; color: #d94841; font-weight: 700; }
.checkout-box { position: sticky; top: 96px; display: grid; gap: 14px; }
.checkout-box h2 { margin: 0; font-size: 22px; }
.checkout-box p { color: #666; line-height: 1.55; margin: 0; }
.pay-actions { display: grid; gap: 10px; }
.pay-actions button:first-child { background: #028e7b; }

.pin-form { display: flex; gap: 10px; margin-bottom: 18px; }
.pin-form input { max-width: 220px; }
.pin-form button { padding: 0 18px; }
.admin-table { width: 100%; border-collapse: collapse; background: white; }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; text-align: left; padding: 12px; font-size: 14px; }
.admin-table th { color: #777; }
.notice {
  width: min(720px, calc(100% - 32px));
  margin: 46px auto;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

@media (max-width: 1148px) {
  .topbar { padding: 0 16px; }
}
@media (max-width: 920px) {
  .topbar { height: auto; min-height: 78px; align-items: center; gap: 12px; padding: 10px 16px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .hero { min-height: 430px; }
  .hero h1 { font-size: 28px; }
  .search-panel { grid-template-columns: 44px 1fr; border-radius: 12px; }
  .search-panel input { border-right: 0; border-bottom: 1px solid #eee; }
  .search-panel button { grid-column: 1 / -1; border-radius: 8px; }
  .location-box, .compose-layout { grid-template-columns: 1fr; }
  .uk-map { display: none; }
  .city-columns, .split, .package-list { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card:nth-child(6n) { border-right: 1px solid #eee; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-card img { width: 100%; height: 190px; }
}
