:root {
  --ink: #17202b;
  --muted: #65707e;
  --paper: #f5f0e7;
  --surface: #fffdf9;
  --surface-soft: #f9f5ee;
  --line: #ddd6c9;
  --navy: #152a45;
  --navy-soft: #213f63;
  --terracotta: #b85d43;
  --terracotta-dark: #873e2f;
  --gold: #c99a48;
  --green: #2d744b;
  --teal: #08766f;
  --blue: #2664a8;
  --purple: #68428e;
  --shadow: 0 20px 60px rgba(26, 36, 47, .12);
  --shadow-soft: 0 12px 34px rgba(26, 36, 47, .08);
  --radius: 24px;
  --shell: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #075d70;
  text-underline-offset: .18em;
}

a:hover {
  color: #064454;
}

button,
input,
select {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
dialog:focus-visible {
  outline: 3px solid #4ac5b8;
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: .72rem 1rem;
  border-radius: 10px;
  color: white;
  background: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
  color: #f8fbff;
  background:
    radial-gradient(circle at 12% 20%, rgba(191, 105, 76, .34), transparent 26rem),
    radial-gradient(circle at 90% 4%, rgba(80, 170, 160, .16), transparent 32rem),
    linear-gradient(140deg, #0f2036 0%, #183551 58%, #183f4b 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -230px;
  top: -220px;
  box-shadow: 0 0 0 72px rgba(255, 255, 255, .02), 0 0 0 144px rgba(255, 255, 255, .015);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: 30px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy {
  padding-bottom: 54px;
}

.eyebrow,
.section-kicker,
.card-kicker {
  margin: 0 0 .8rem;
  color: var(--terracotta-dark);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #bfd6e6;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  content: "";
  background: #75c8be;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .88;
}

.hero h1 span {
  color: #f1c078;
}

.hero-lead {
  max-width: 810px;
  margin: 1.7rem 0 0;
  color: #dce8f2;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.8rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.mini-button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.button-primary {
  color: var(--navy);
  background: #fffdf9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.button-ghost {
  border-color: rgba(255, 255, 255, .32);
  color: white;
  background: rgba(255, 255, 255, .07);
}

.button-dark {
  color: white;
  background: var(--navy);
}

.button-light {
  color: var(--navy);
  background: white;
}

.button-outline {
  border-color: var(--line);
  color: var(--navy);
  background: var(--surface);
}

.availability-card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .19);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(7, 20, 34, .42);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.availability-label {
  display: block;
  color: #bcd3e4;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.availability-card > strong {
  display: block;
  margin-top: .2rem;
  color: #fff5e5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 500;
}

.availability-rule {
  height: 1px;
  margin: 1.15rem 0;
  background: rgba(255, 255, 255, .17);
}

.availability-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin: 0;
}

.availability-card dl div {
  min-width: 0;
}

.availability-card dt {
  color: #aec1d3;
  font-size: .72rem;
  font-weight: 740;
  text-transform: uppercase;
}

.availability-card dd {
  margin: .1rem 0 0;
  font-size: 1.05rem;
  font-weight: 850;
}

.hero-takeover-notice {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 2px solid #f2c56e;
  border-left-width: 7px;
  border-radius: 14px;
  color: #17202b;
  background: #fff4d6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.hero-takeover-notice strong,
.hero-takeover-notice p,
.hero-takeover-notice a {
  display: block;
}

.hero-takeover-notice strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.hero-takeover-notice p {
  margin: .35rem 0 .55rem;
  color: #28313b;
  font-size: .86rem;
  line-height: 1.45;
}

.hero-takeover-notice a {
  width: fit-content;
  color: #064f5e;
  font-size: .84rem;
  font-weight: 850;
}

.location-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(6, 18, 32, .56);
  overflow: hidden;
}

.location-strip > div {
  min-width: 0;
  padding: 1rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.location-strip > div:last-child {
  border-right: 0;
}

.location-strip span,
.location-strip small {
  display: block;
}

.location-strip span {
  color: #adc2d4;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.location-strip strong {
  display: block;
  margin-top: .15rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.location-strip small {
  margin-top: .15rem;
  color: #aebed0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topnav {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(21, 42, 69, .14);
  background: rgba(255, 253, 249, .95);
  backdrop-filter: blur(14px);
}

.topnav-inner {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 60px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.topnav a {
  flex: 0 0 auto;
  padding: .55rem .78rem;
  border-radius: 999px;
  color: var(--navy);
  font-size: .86rem;
  font-weight: 820;
  text-decoration: none;
}

.topnav a:hover {
  background: #eee8de;
}

.section {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.section-tint {
  background:
    radial-gradient(circle at 90% 10%, rgba(184, 93, 67, .08), transparent 24rem),
    #ebe4d9;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 2.5rem;
}

.section-heading.compact {
  margin-bottom: 2rem;
}

.section-heading h2,
.takeover-copy h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}

.section-heading > p:last-child,
.takeover-copy > p,
.contact-section p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

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

.audience-card {
  position: relative;
  min-height: 300px;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.audience-card::after {
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  content: "";
  border-radius: 50%;
  background: var(--card-glow);
}

.audience-students { --card-glow: rgba(104, 66, 142, .1); }
.audience-couples { --card-glow: rgba(184, 93, 67, .11); }
.audience-location { --card-glow: rgba(45, 116, 75, .11); }

.audience-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  color: white;
  background: var(--navy);
  font-size: 1.4rem;
}

.audience-card h3,
.method-card h3,
.sources h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
}

.audience-card > p:last-child,
.method-card > p:last-child {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.fact-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem;
  border: 1px solid rgba(32, 48, 65, .12);
  border-radius: 20px;
  background: rgba(255, 253, 249, .72);
}

.fact-card span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  margin-top: .18rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.fact-card small {
  margin-top: .45rem;
  color: var(--muted);
}

.fact-emphasis,
.fact-total {
  color: white;
  background: var(--navy);
}

.fact-total {
  background: var(--terracotta-dark);
}

.fact-emphasis span,
.fact-emphasis small,
.fact-total span,
.fact-total small {
  color: rgba(255, 255, 255, .73);
}

.internet-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(8, 118, 111, .2);
  border-radius: 18px;
  background: rgba(230, 247, 244, .72);
}

.internet-symbol {
  flex: 0 0 auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 1.4rem;
}

.internet-note strong {
  display: block;
}

.internet-note p {
  margin: .15rem 0 0;
  color: var(--muted);
}

.takeover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.takeover-copy > p {
  max-width: 700px;
}

.price-badge {
  width: fit-content;
  min-width: 250px;
  margin: 1.6rem 0;
  padding: 1.15rem 1.35rem;
  border: 3px solid #f2c56e;
  border-left-width: 8px;
  border-radius: 0 16px 16px 0;
  color: white;
  background: #5d2118;
  box-shadow: 0 12px 28px rgba(93, 33, 24, .2);
}

.price-badge span,
.price-badge strong,
.price-badge small {
  display: block;
}

.price-badge span {
  color: #ffe6ad;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-badge strong {
  margin-top: .1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.price-badge small {
  margin-top: .55rem;
  color: white;
  font-weight: 800;
}

.takeover-secondary {
  max-width: 700px;
  padding: 1rem 1.15rem;
  border: 1px solid #8ab99b;
  border-left: 6px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: #eef8f1;
}

.takeover-secondary strong {
  display: block;
  color: #174b2d;
  font-size: 1.05rem;
}

.takeover-secondary p {
  margin: .35rem 0 0;
  color: #32463a;
}

.appliance-list {
  display: grid;
  gap: .75rem;
  padding: 1.2rem;
  border: 3px solid #7d2d1f;
  border-radius: 24px;
  background: #fff7ed;
  box-shadow: var(--shadow-soft);
}

.appliance-list-title {
  margin: 0 0 .2rem;
  color: #652319;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.appliance-list article {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.appliance-year {
  flex: 0 0 auto;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: var(--navy);
  font-weight: 900;
}

.appliance-list h3,
.appliance-list p {
  margin: 0;
}

.appliance-list h3 {
  font-size: 1.05rem;
}

.appliance-list p {
  color: var(--muted);
  font-size: .9rem;
}

.gallery-section {
  color: white;
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 93, 67, .2), transparent 28rem),
    #12253d;
}

.gallery-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  align-items: end;
  gap: 2rem;
}

.gallery-heading .section-kicker {
  color: #efb98a;
}

.gallery-heading p:last-child {
  margin: 0;
  color: #bbcada;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: .8rem;
}

.gallery-item,
.gallery-placeholder {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  background: #1e354f;
}

.gallery-item {
  padding: 0;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(transparent, rgba(6, 14, 25, .84));
  pointer-events: none;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
}

.gallery-item img {
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item > span {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: .9rem;
  color: white;
  font-size: .88rem;
  font-weight: 820;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #a9bbcf;
  border-style: dashed;
  text-align: center;
}

.gallery-placeholder > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: .7rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  font-size: 1.4rem;
}

.gallery-placeholder strong,
.gallery-placeholder small {
  display: block;
}

.gallery-placeholder strong {
  color: #dce7f2;
}

.gallery-placeholder small {
  margin-top: .12rem;
}

.gallery-dialog {
  width: min(94vw, 1000px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: white;
  background: #0c1726;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.gallery-dialog::backdrop {
  background: rgba(5, 10, 18, .84);
  backdrop-filter: blur(5px);
}

.gallery-dialog img {
  width: 100%;
  max-height: calc(94vh - 58px);
  object-fit: contain;
  background: #050b12;
}

.gallery-dialog p {
  margin: 0;
  padding: .8rem 1rem;
  color: #d5dfeb;
  text-align: center;
}

.dialog-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: white;
  background: rgba(8, 17, 29, .75);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.environment-section {
  width: min(calc(100% - 32px), var(--shell));
}

.environment-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  align-items: end;
  gap: 2rem;
}

.environment-heading p:last-child {
  margin: 0;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.map-stats div {
  min-width: 0;
  padding: .95rem 1rem;
  border-right: 1px solid var(--line);
}

.map-stats div:last-child {
  border-right: 0;
}

.map-stats strong,
.map-stats span {
  display: block;
}

.map-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.map-stats span {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 740;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(270px, .34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.map-controls {
  max-height: 720px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-heading,
.map-toolbar,
.results-heading {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3,
.panel-heading p,
.results-heading h3,
.results-heading p {
  margin: 0;
}

.panel-heading h3,
.results-heading h3 {
  font-size: 1.05rem;
}

.panel-heading p,
.results-heading p,
.map-toolbar span {
  color: var(--muted);
  font-size: .83rem;
}

.control-body {
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
}

.field {
  display: grid;
  gap: .35rem;
  margin-bottom: .85rem;
}

.field > span {
  color: #344050;
  font-size: .77rem;
  font-weight: 820;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: .6rem .7rem;
  border: 1px solid #cfc8bc;
  border-radius: 11px;
  color: var(--ink);
  background: white;
}

.filter-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin: .8rem 0 1rem;
}

.mini-button {
  min-height: 36px;
  padding: .42rem .58rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 820;
}

.category-set {
  margin-top: 1rem;
}

.category-set h4 {
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.category-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .48rem .45rem;
  border-radius: 9px;
  cursor: pointer;
}

.category-option:hover {
  background: var(--surface-soft);
}

.category-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--teal);
}

.category-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--group-color, #657078);
}

.category-label {
  min-width: 0;
  flex: 1;
  font-size: .79rem;
}

.category-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: .1rem .34rem;
  border-radius: 999px;
  color: var(--muted);
  background: #eee9e0;
  font-size: .67rem;
  font-weight: 820;
  text-align: center;
}

.group-bus { --group-color: #08766f; }
.group-tram { --group-color: #2664a8; }
.group-university { --group-color: #68428e; }
.group-faculty { --group-color: #8b4d7f; }
.group-shop_daily { --group-color: #3f7b42; }
.group-shop_health { --group-color: #b34d86; }
.group-shop_personal { --group-color: #9a5a74; }
.group-shop_fashion { --group-color: #bd6b28; }
.group-shop_home { --group-color: #8b6c32; }
.group-shop_tech { --group-color: #476a91; }
.group-shop_other { --group-color: #657078; }
.group-bar { --group-color: #a53e3b; }
.group-club { --group-color: #713d8f; }
.group-nightlife { --group-color: #955298; }
.group-park { --group-color: #2d744b; }
.group-garden { --group-color: #5c8b3d; }

.map-panel {
  min-width: 0;
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-toolbar strong,
.map-toolbar span {
  display: block;
}

#map,
.map-consent,
.map-fallback {
  min-height: 660px;
  background: #e9e5dc;
}

.map-consent {
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(rgba(245, 240, 231, .82), rgba(245, 240, 231, .9)),
    repeating-linear-gradient(45deg, #d5d0c5 0 1px, transparent 1px 18px);
}

.map-consent-card,
.map-fallback > div {
  max-width: 590px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, .96);
  box-shadow: var(--shadow);
  text-align: center;
}

.map-consent-card h3,
.map-consent-card p {
  margin: 0;
}

.map-consent-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.map-consent-card p {
  margin: .7rem 0 1rem;
  color: var(--muted);
}

.map-consent-card small {
  display: block;
  margin-top: .7rem;
  color: var(--muted);
}

.map-consent-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto .8rem;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 1.5rem;
}

.poi-marker {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50% 50% 50% 12%;
  color: white;
  background: var(--group-color, #657078);
  box-shadow: 0 4px 12px rgba(18, 30, 45, .28);
  font-size: .63rem;
  font-weight: 900;
  transform: rotate(-45deg);
}

.poi-marker span {
  transform: rotate(45deg);
}

.poi-marker.is-private {
  opacity: .56;
  filter: grayscale(.45);
}

.origin-marker {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  box-shadow: 0 5px 18px rgba(12, 27, 44, .35);
  font-size: .7rem;
  font-weight: 900;
}

.marker-cluster {
  color: white;
  background: rgba(21, 42, 69, .2);
}

.marker-cluster div {
  color: white;
  background: var(--navy);
  font-weight: 850;
}

.leaflet-popup-content-wrapper {
  border-radius: 15px;
}

.leaflet-popup-content {
  min-width: 230px;
  margin: 1rem;
  line-height: 1.45;
}

.popup-title {
  display: block;
  margin-bottom: .25rem;
  font-size: .98rem;
}

.popup-meta,
.popup-note {
  color: var(--muted);
  font-size: .78rem;
}

.popup-note {
  margin-top: .35rem;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  margin-top: .65rem;
  font-size: .78rem;
  font-weight: 800;
}

.map-legend {
  padding: .7rem .8rem;
  border: 1px solid rgba(21, 42, 69, .15);
  border-radius: 12px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 6px 20px rgba(20, 34, 48, .13);
  font-size: .72rem;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .28rem;
}

.legend-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--group-color, #657078);
}

.results-panel {
  margin-top: 1rem;
  overflow: hidden;
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.results-heading > strong {
  flex: 0 0 auto;
  padding: .38rem .7rem;
  border-radius: 999px;
  color: var(--navy);
  background: #e8eef5;
  font-size: .78rem;
}

#result-groups {
  padding: 1rem;
}

.result-section + .result-section {
  margin-top: 1.5rem;
}

.result-section > h4 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .7rem;
  color: var(--navy);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.result-section > h4::before {
  width: 20px;
  height: 2px;
  content: "";
  background: var(--terracotta);
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.poi-card {
  position: relative;
  min-width: 0;
  padding: .9rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--group-color, #657078);
  border-radius: 14px;
  background: var(--surface-soft);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.poi-card.is-active {
  border-color: var(--group-color, #657078);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(20, 34, 48, .12);
}

.poi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
}

.poi-title {
  min-width: 0;
  margin: 0;
  font-size: .98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.category-badge,
.status-badge,
.metric {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 820;
}

.category-badge {
  flex: 0 0 auto;
  max-width: 46%;
  padding: .24rem .45rem;
  color: white;
  background: var(--group-color, #657078);
  line-height: 1.25;
  text-align: center;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .45rem;
}

.status-badge {
  padding: .22rem .42rem;
  color: #80471b;
  background: #f8e8cf;
}

.status-private {
  color: #7a2930;
  background: #f5dfe1;
}

.poi-address,
.poi-note {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.poi-note {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .6rem;
}

.metric {
  padding: .24rem .42rem;
  color: #465362;
  background: #eae6de;
}

.metric-primary {
  color: #075f5a;
  background: #dff1ee;
}

.poi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  margin-top: .7rem;
  font-size: .75rem;
  font-weight: 800;
}

.text-button {
  padding: 0;
  border: 0;
  color: #075d70;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.empty-state {
  padding: 2.5rem 1rem;
  color: var(--muted);
  text-align: center;
}

.more-results {
  padding: 0 1rem 1rem;
  text-align: center;
}

.more-results p {
  margin: 0 0 .6rem;
  color: var(--muted);
  font-size: .82rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.method-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, .68);
}

.method-card h3 {
  font-size: 1.35rem;
}

.method-card p:last-child {
  margin-bottom: 0;
  font-size: .86rem;
}

.sources {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.25rem;
}

.sources p {
  color: var(--muted);
}

.source-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.source-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  background: var(--surface-soft);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-section {
  padding: clamp(64px, 8vw, 100px) 0;
  color: white;
  background:
    radial-gradient(circle at 12% 110%, rgba(201, 154, 72, .2), transparent 30rem),
    linear-gradient(135deg, #18324f, #10233a);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .7fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
}

.section-kicker.light {
  color: #efbd79;
}

.contact-section p {
  color: #c3d2df;
}

.contact-section small {
  color: #9fb2c3;
}

.contact-section .contact-requirement {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 2px solid #f2c56e;
  border-left-width: 7px;
  border-radius: 14px;
  color: #17202b;
  background: #fff4d6;
  font-size: 1rem;
}

.contact-requirement strong {
  color: #5d2118;
}

.contact-actions {
  display: grid;
  gap: .7rem;
}

.contact-mail {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  color: var(--navy);
  background: white;
  text-decoration: none;
}

.contact-mail:hover {
  color: var(--navy);
  transform: translateY(-1px);
}

.contact-mail span,
.contact-mail strong {
  display: block;
}

.contact-mail span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.contact-mail strong {
  margin-top: .12rem;
  font-size: 1.3rem;
}

.share-status {
  min-height: 1.5em;
  margin: 0;
  color: #d7e2ec !important;
  font-size: .82rem !important;
  text-align: center;
}

footer {
  padding: 1.4rem 0;
  color: #718091;
  background: #0b1726;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
  font-size: .77rem;
}

@media (max-width: 1080px) {
  .result-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-large {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .takeover-layout,
  .contact-layout,
  .gallery-heading,
  .environment-heading,
  .sources {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .availability-card {
    max-width: 520px;
  }

  .location-strip {
    grid-template-columns: 1fr 1fr;
  }

  .location-strip > div:nth-child(2) {
    border-right: 0;
  }

  .location-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .audience-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 0;
  }

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

  .gallery-heading {
    align-items: start;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    order: 1;
  }

  .map-controls {
    order: 2;
    max-height: none;
  }

  .control-body {
    overflow: visible;
  }

  .map-stats {
    grid-template-columns: 1fr 1fr;
  }

  .map-stats div:nth-child(2) {
    border-right: 0;
  }

  .map-stats div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .shell,
  .environment-section {
    width: min(calc(100% - 20px), var(--shell));
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .availability-card {
    padding: 1.2rem;
  }

  .location-strip {
    width: 100%;
    border-radius: 0;
  }

  .location-strip > div {
    padding: .8rem;
  }

  .location-strip strong {
    font-size: .95rem;
  }

  .location-strip small {
    font-size: .66rem;
  }

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

  .fact-card {
    min-height: 145px;
    padding: 1rem;
  }

  .internet-note {
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .map-stats strong {
    font-size: 1.45rem;
  }

  #map,
  .map-consent,
  .map-fallback {
    min-height: 500px;
  }

  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-actions {
    grid-template-columns: 1fr;
  }

  .result-cards {
    grid-template-columns: 1fr;
  }

  .poi-top {
    flex-direction: column;
  }

  .category-badge {
    max-width: none;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .facts-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid {
    grid-auto-rows: 360px;
  }

  .gallery-placeholder {
    min-height: 210px;
  }

  .map-stats {
    grid-template-columns: 1fr;
  }

  .map-stats div,
  .map-stats div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-stats div:last-child {
    border-bottom: 0;
  }
}

@media print {
  .topnav,
  .hero-actions,
  .map-controls,
  .map-toolbar .mini-button,
  .poi-actions,
  .contact-actions button,
  .gallery-placeholder,
  .dialog-close,
  .more-results {
    display: none !important;
  }

  body {
    color: black;
    background: white;
  }

  .hero,
  .gallery-section,
  .contact-section {
    color: black;
    background: white;
  }

  .hero h1 span,
  .hero-lead,
  .gallery-heading p:last-child,
  .contact-section p,
  .contact-section small {
    color: #444;
  }

  .panel,
  .audience-card,
  .fact-card,
  .appliance-list article {
    box-shadow: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-large {
    grid-column: auto;
    grid-row: auto;
  }

  .map-consent {
    min-height: 260px;
  }

  .contact-mail {
    border-color: #777;
  }
}
