:root {
  --bg: #f6f0e8;
  --bg-accent: #efe0cc;
  --surface: rgba(255, 251, 245, 0.72);
  --surface-strong: rgba(255, 250, 244, 0.9);
  --text: #1b1f1d;
  --muted: #5e635f;
  --line: rgba(27, 31, 29, 0.12);
  --grid-line: rgba(27, 31, 29, 0.14);
  --shadow: 0 24px 80px rgba(40, 28, 15, 0.14);
  --marker: #d95f39;
  --marker-deep: #7f2f1c;
  --heading-font: "EB Garamond", Georgia, serif;
  --body-font: "EB Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 36%),
    radial-gradient(circle at bottom right, rgba(217, 95, 57, 0.18), transparent 28%),
    linear-gradient(140deg, var(--bg), #f2ebe0 42%, var(--bg-accent));
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--body-font);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding-top: 10px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

main {
  min-height: 0;
  display: grid;
}

.social-link {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 8px);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(27, 31, 29, 0.86);
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  z-index: 20;
  transition:
    transform 140ms ease,
    color 140ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  color: rgba(27, 31, 29, 1);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.hero {
  display: grid;
  width: 100%;
  min-width: 0;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.hero-title,
.location-name {
  font-family: var(--heading-font);
  line-height: 0.95;
}

.hero-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  display: inline-block;
  isolation: isolate;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--muted);
  max-width: none;
  padding: 6px 22px;
}

.hero-title::before {
  content: "";
  position: absolute;
  inset: -10px -22px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(246, 240, 232, 0.96) 0%,
      rgba(246, 240, 232, 0.88) 42%,
      rgba(246, 240, 232, 0.54) 70%,
      rgba(246, 240, 232, 0) 100%
    );
  filter: blur(10px);
  pointer-events: none;
}

.location-card,
.map-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.location-card {
  border-radius: 30px;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  min-height: clamp(120px, 16vh, 180px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 0 clamp(18px, 2.2vw, 28px);
}

.location-name {
  margin: 0.08em 0;
  font-size: var(--location-name-size, clamp(2.35rem, 9.4vw, 5.8rem));
  width: 100%;
  min-width: 0;
  max-width: none;
  text-align: center;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow-wrap: normal;
}

.location-label {
  display: inline-block;
  max-width: 100%;
}

.map-panel {
  position: relative;
  border-radius: 32px;
  padding: clamp(12px, 1.8vw, 20px);
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.map-frame {
  position: relative;
  min-height: 0;
  height: 100%;
  touch-action: pan-y pinch-zoom;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(27, 31, 29, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    #ebe1d0;
}

.map-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

.static-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ebe1d0;
  isolation: isolate;
}

.map-surface {
  position: absolute;
  inset: 0;
  background-color: #ebe1d0;
  background-repeat: repeat-x;
  background-position: 0 0;
  opacity: 0;
  will-change: background-position;
}

.map-surface.is-ready {
  opacity: 1;
}

.map-surface--detail {
  z-index: 1;
}

.static-map.has-detail-surface .map-surface--preview {
  opacity: 0;
}

.map-attribution-control {
  margin: 0 10px 10px 0;
}

.map-attribution-static {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
}

.map-attribution-details {
  position: relative;
  min-width: 0;
}

.map-attribution-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 31, 29, 0.12);
  background: rgba(255, 251, 245, 0.92);
  color: var(--muted);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 12px 24px rgba(40, 28, 15, 0.12);
}

.map-attribution-summary::-webkit-details-marker {
  display: none;
}

.map-attribution-summary::after {
  content: "+";
  font-size: 0.8rem;
  line-height: 1;
}

.map-attribution-details[open] .map-attribution-summary::after {
  content: "-";
}

.map-attribution-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(300px, calc(100vw - 56px));
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(27, 31, 29, 0.12);
  background: rgba(255, 251, 245, 0.96);
  color: var(--muted);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
  box-shadow: 0 18px 34px rgba(40, 28, 15, 0.16);
  backdrop-filter: blur(16px);
}

.map-attribution-panel a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.map-attribution-panel p {
  margin: 6px 0 0;
}

.map-pin-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -88%);
  pointer-events: none;
}

.static-map.has-pin .map-pin-shell {
  opacity: 1;
}

.map-pin {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid #fffaf2;
  border-radius: 50% 50% 50% 0;
  background: var(--marker);
  box-shadow: 0 10px 22px rgba(127, 47, 28, 0.34);
  transform: rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.86);
}

.map-placeholder-card {
  width: min(460px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(27, 31, 29, 0.12);
  background: rgba(255, 251, 245, 0.9);
  padding: 18px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(40, 28, 15, 0.1);
}

.map-placeholder-card h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.map-placeholder-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    gap: 8px;
    padding-top: 8px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  }

  .social-link {
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    right: calc(env(safe-area-inset-right, 0px) + 6px);
    width: 24px;
    height: 24px;
  }

  .hero {
    gap: 10px;
  }

  .hero-title {
    max-width: none;
    padding: 5px 16px;
  }

  .location-name {
    max-width: none;
  }

  .map-panel {
    padding: 10px;
  }

  .map-frame {
    min-height: 0;
  }
}
