:root {
  --turquoise: #08a19e;
  --turquoise-dark: #087b79;
  --turquoise-pale: #e9f8f7;
  --orange: #f36b16;
  --orange-dark: #d95108;
  --orange-pale: #fff1e7;
  --ink: #172a33;
  --muted: #61727a;
  --line: #dbe7e8;
  --page: #ffffff;
  --surface: #f7fbfb;
  --shadow: 0 18px 50px rgba(19, 70, 73, .10);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.brand { display: block; flex: 0 1 300px; }
.brand img { display: block; width: min(100%, 290px); height: auto; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.location-button,
.clear-location,
.country-tab {
  border: 0;
  color: var(--turquoise-dark);
  background: transparent;
  cursor: pointer;
}

.location-button { padding: 10px 0; }
.login-link { text-decoration: none; font-weight: 700; }

.publish-button {
  background: var(--orange);
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(243, 107, 22, .22);
}

.publish-button:hover { background: var(--orange-dark); }

main { overflow: hidden; }

.hero {
  width: min(1040px, calc(100% - 40px));
  margin: 54px auto 50px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--turquoise-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.025em; }
.hero-copy { max-width: 650px; margin: 18px auto 28px; color: var(--muted); font-size: 1.08rem; }

.search-form {
  max-width: 860px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 7px;
  border: 2px solid var(--turquoise);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.search-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 15px;
  color: var(--ink);
  background: transparent;
  font-size: 1.08rem;
}

.search-form button {
  border: 0;
  border-radius: 9px;
  padding: 12px 27px;
  background: var(--turquoise);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.map-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 82px;
  padding: clamp(24px, 4vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
}

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

.section-heading a,
.clear-location { font-weight: 700; }

.clear-location {
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--orange);
  color: white;
  box-shadow: 0 7px 18px rgba(243, 107, 22, .2);
}

.clear-location:hover { background: var(--orange-dark); }

.country-switch {
  width: fit-content;
  display: flex;
  gap: 5px;
  padding: 5px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.country-tab {
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.country-tab.is-active { background: var(--turquoise); color: white; }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.map-stage { position: relative; min-width: 0; }
.country-map { display: block; width: 100%; max-height: 510px; overflow: visible; }

.map-region {
  fill: #d7f1ef;
  stroke: var(--turquoise-dark);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .16s ease, stroke .16s ease;
}

.map-region:hover,
.map-region:focus { fill: var(--orange-pale); stroke: var(--orange); outline: none; }
.map-region.is-selected { fill: var(--orange); stroke: var(--orange-dark); }

.map-tooltip {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  max-width: 220px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 22px rgba(23, 42, 51, .2);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, -115%);
  transition: opacity .12s ease;
}

.map-tooltip.is-visible { opacity: 1; }

.map-help {
  min-height: 24px;
  margin: 4px 0 8px;
  color: var(--turquoise-dark);
  font-weight: 700;
  text-align: center;
}

.map-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 4px;
  padding: 14px 17px;
  border-left: 4px solid var(--orange);
  background: white;
}
.map-selection span { color: var(--muted); }

.region-panel label { display: block; margin-bottom: 9px; font-weight: 700; }
.region-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  outline: 0;
  background: white;
}
.region-panel input:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(8, 161, 158, .14); }

.region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  max-height: 350px;
  overflow: auto;
  padding-right: 5px;
}

.region-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.region-option:hover { border-color: var(--turquoise); }
.region-option.is-selected { border-color: var(--orange); background: var(--orange-pale); color: var(--orange-dark); font-weight: 700; }

.latest-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto 70px; }
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; transition: transform .16s ease, box-shadow .16s ease; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-image { aspect-ratio: 4 / 3; background-color: var(--turquoise-pale); background-position: center; background-size: cover; }
.image-car { background-image: linear-gradient(145deg, rgba(8,161,158,.18), rgba(255,255,255,.25)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M75 182l34-66h174l44 66' fill='none' stroke='%23087b79' stroke-width='20' stroke-linejoin='round'/%3E%3Cpath d='M55 178h290v58H55z' rx='20' fill='%2308a19e'/%3E%3Ccircle cx='112' cy='237' r='27' fill='%23172a33'/%3E%3Ccircle cx='292' cy='237' r='27' fill='%23172a33'/%3E%3C/svg%3E"); }
.image-plumber { background-image: linear-gradient(145deg, rgba(8,161,158,.08), rgba(255,255,255,.3)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M106 68l68 68-42 42-68-68zM226 123l105 105-43 43-105-105z' fill='%23f36b16'/%3E%3Ccircle cx='195' cy='145' r='42' fill='none' stroke='%2308a19e' stroke-width='18'/%3E%3C/svg%3E"); }
.image-tickets { background-image: linear-gradient(145deg, rgba(243,107,22,.1), rgba(255,255,255,.3)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M86 85h228v130H86z' fill='%23f36b16'/%3E%3Cpath d='M165 85v130M235 85v130' stroke='white' stroke-width='5' stroke-dasharray='12 9'/%3E%3Ccircle cx='200' cy='150' r='32' fill='%2308a19e'/%3E%3C/svg%3E"); }
.image-baby { background-image: linear-gradient(145deg, rgba(8,161,158,.08), rgba(255,255,255,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M95 73h175c0 83-39 122-122 122H95z' fill='%2308a19e'/%3E%3Cpath d='M270 73l46 113' stroke='%23f36b16' stroke-width='15'/%3E%3Ccircle cx='135' cy='220' r='24' fill='%23172a33'/%3E%3Ccircle cx='278' cy='220' r='24' fill='%23172a33'/%3E%3C/svg%3E"); }
.listing-body { padding: 15px; }
.listing-kind { color: var(--turquoise-dark); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.listing-card h3 { min-height: 48px; margin: 7px 0 12px; font-size: 1.03rem; line-height: 1.35; }
.listing-price { margin: 0 0 6px; color: var(--orange-dark); font-size: 1.07rem; font-weight: 700; }
.listing-place { margin: 0; color: var(--muted); font-size: .88rem; }

.trust-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 28px;
  border-radius: 18px;
  background: var(--turquoise-pale);
}
.trust-strip p { margin: 0; color: var(--muted); }
.trust-strip strong { display: block; margin-bottom: 4px; color: var(--ink); }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

.location-link { text-decoration: none; }

.location-hero {
  width: min(1040px, calc(100% - 40px));
  margin: 44px auto 58px;
  text-align: center;
}

.location-hero h1 { font-size: clamp(2rem, 4.3vw, 3.6rem); }

.category-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 72px;
}

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

.category-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-decoration: none;
  box-shadow: 0 9px 28px rgba(19, 70, 73, .06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--turquoise);
  box-shadow: var(--shadow);
  outline: none;
}

.category-card span {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange-dark);
  font-weight: 800;
}

.category-card strong { align-self: end; font-size: 1.04rem; }
.category-card small { align-self: start; margin-top: 4px; color: var(--muted); font-size: .88rem; }

.location-latest { margin-bottom: 82px; }

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

.location-listing-card .listing-image { aspect-ratio: 16 / 9; }
.location-listing-card h3 { min-height: 0; font-size: 1.18rem; }

.image-house { background-image: linear-gradient(145deg, rgba(8,161,158,.12), rgba(255,255,255,.3)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Cpath d='M70 110L200 35l130 75v92H70z' fill='%2308a19e'/%3E%3Cpath d='M165 202v-62h70v62' fill='%23fff'/%3E%3Cpath d='M54 116L200 27l146 89' fill='none' stroke='%23f36b16' stroke-width='18' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.image-laptop { background-image: linear-gradient(145deg, rgba(243,107,22,.08), rgba(255,255,255,.3)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Crect x='95' y='38' width='210' height='135' rx='10' fill='%23172a33'/%3E%3Crect x='110' y='53' width='180' height='105' fill='%2308a19e'/%3E%3Cpath d='M60 176h280l-24 22H84z' fill='%23f36b16'/%3E%3C/svg%3E"); }
.image-bike { background-image: linear-gradient(145deg, rgba(8,161,158,.1), rgba(255,255,255,.3)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Cg fill='none' stroke-width='12'%3E%3Ccircle cx='105' cy='160' r='48' stroke='%23172a33'/%3E%3Ccircle cx='300' cy='160' r='48' stroke='%23172a33'/%3E%3Cpath d='M105 160l65-88 44 88H105l55-64h92l48 64M152 72h48' stroke='%2308a19e' stroke-linejoin='round'/%3E%3Cpath d='M248 72h40' stroke='%23f36b16'/%3E%3C/g%3E%3C/svg%3E"); }
.image-job { background-image: linear-gradient(145deg, rgba(243,107,22,.08), rgba(255,255,255,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Crect x='72' y='72' width='256' height='125' rx='12' fill='%2308a19e'/%3E%3Cpath d='M155 72V45h90v27M72 120h256' fill='none' stroke='%23172a33' stroke-width='14'/%3E%3Crect x='177' y='108' width='46' height='27' rx='5' fill='%23f36b16'/%3E%3C/svg%3E"); }
.image-yoga { background-image: linear-gradient(145deg, rgba(8,161,158,.1), rgba(255,255,255,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Ccircle cx='200' cy='52' r='25' fill='%23f36b16'/%3E%3Cpath d='M200 80v60M200 96l-80 34M200 96l80 34M200 140l-72 48M200 140l72 48' fill='none' stroke='%2308a19e' stroke-width='20' stroke-linecap='round'/%3E%3Cpath d='M72 198h256' stroke='%23172a33' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.image-pet { background-image: linear-gradient(145deg, rgba(243,107,22,.08), rgba(255,255,255,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 225'%3E%3Cellipse cx='200' cy='152' rx='115' ry='52' fill='%2308a19e'/%3E%3Cellipse cx='200' cy='146' rx='82' ry='29' fill='%23e9f8f7'/%3E%3Ccircle cx='150' cy='62' r='24' fill='%23f36b16'/%3E%3Ccircle cx='250' cy='62' r='24' fill='%23f36b16'/%3E%3Ccircle cx='125' cy='100' r='19' fill='%23f36b16'/%3E%3Ccircle cx='275' cy='100' r='19' fill='%23f36b16'/%3E%3Cellipse cx='200' cy='104' rx='43' ry='34' fill='%23f36b16'/%3E%3C/svg%3E"); }

@media (max-width: 900px) {
  .site-header { min-height: 96px; }
  .brand { flex-basis: 220px; }
  .location-button { display: none; }
  .map-layout { grid-template-columns: 1fr; }
  .region-list { max-height: 220px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 28px, 1180px); align-items: center; min-height: 80px; }
  .brand { flex: 0 1 170px; }
  .brand img { width: 170px; }
  .header-actions { gap: 11px; }
  .login-link { display: none; }
  .publish-button { padding: 10px 13px; font-size: .88rem; }
  .hero { width: min(100% - 28px, 1040px); margin-top: 36px; }
  .search-form { grid-template-columns: 1fr; gap: 6px; }
  .search-form button { width: 100%; }
  .map-section, .latest-section, .trust-strip, .site-footer { width: min(100% - 28px, 1180px); }
  .map-section { padding: 22px 16px; border-radius: 18px; }
  .section-heading { align-items: start; }
  .clear-location { text-align: right; }
  .country-switch { width: 100%; }
  .country-tab { flex: 1; }
  .country-map { max-height: 380px; }
  .region-list { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .category-grid, .location-listing-grid { grid-template-columns: 1fr; }
  .listing-card { display: grid; grid-template-columns: 125px 1fr; }
  .listing-image { aspect-ratio: auto; min-height: 150px; }
  .listing-card h3 { min-height: 0; }
  .trust-strip { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
