/* VarnaLand contact map — consent-gated Google Maps embed. */
.cmap {
  overflow: hidden;
  padding-top: clamp(64px, calc(132 * var(--k)), 132px);
  padding-bottom: clamp(72px, calc(124 * var(--k)), 124px);
}

.cmap__inner {
  position: relative;
  z-index: 1;
}

.cmap__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, calc(620 * var(--k)));
  align-items: end;
  gap: clamp(20px, calc(56 * var(--k)), 56px);
  margin-bottom: clamp(24px, calc(42 * var(--k)), 42px);
}

.cmap__eyebrow {
  margin: 0 0 8px;
  font-size: clamp(14px, calc(18 * var(--k)), 18px);
  font-weight: 300;
  letter-spacing: .13em;
  text-transform: lowercase;
  color: var(--accent-teal);
}

.cmap__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, calc(48 * var(--k)), 48px);
  font-weight: 260;
  line-height: 1.04;
  color: var(--ink);
}

.cmap__meta {
  justify-self: end;
  margin: 0;
  font-size: clamp(15px, calc(20 * var(--k)), 20px);
  font-weight: 260;
  line-height: 1.45;
  text-align: right;
  color: var(--ink-soft);
}

.cmap__meta span {
  display: block;
  color: var(--accent);
}

.cmap__shell {
  position: relative;
  min-height: clamp(420px, calc(560 * var(--k)), 560px);
  overflow: hidden;
  border: 1px solid rgba(0, 191, 249, .42);
  border-radius: clamp(8px, calc(14 * var(--k)), 14px);
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 191, 249, .16), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(221, 0, 253, .14), transparent 38%),
    #050707;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52), 0 0 44px rgba(0, 191, 249, .08);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.cmap__shell::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(221, 0, 253, .14);
}

.cmap__frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  background: #0a0c0c;
  transition: opacity 320ms var(--ease-enter);
}

.cmap__placeholder {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: clamp(28px, calc(64 * var(--k)), 64px);
  text-align: center;
  transition: opacity 220ms var(--ease-standard), visibility 220ms var(--ease-standard);
}

.cmap__pin {
  position: relative;
  width: 54px;
  height: 54px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 32px rgba(0, 191, 249, .3);
}

.cmap__pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cmap__placeholder-title {
  margin: 4px 0 0;
  font-size: clamp(23px, calc(31 * var(--k)), 31px);
  font-weight: 280;
  color: var(--ink);
}

.cmap__placeholder-text {
  max-width: 660px;
  margin: 0;
  font-size: clamp(15px, calc(19 * var(--k)), 19px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.cmap__consent,
.cmap__route {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 4px;
  font: inherit;
  font-size: 17px;
  font-weight: 320;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.cmap__consent {
  border: 0;
  background: var(--gradient-accent);
  color: var(--bg);
}

.cmap__consent:hover,
.cmap__consent:focus-visible,
.cmap__route:hover,
.cmap__route:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 219, 222, .18);
}

.cmap__direct {
  color: var(--accent-teal);
  text-underline-offset: .24em;
}

.cmap__direct:hover,
.cmap__direct:focus-visible {
  color: var(--accent);
}

.cmap__shell.is-loaded {
  border-color: rgba(159, 255, 1, .5);
}

.cmap__shell.is-loaded .cmap__frame {
  opacity: 1;
}

.cmap__shell.is-loaded .cmap__placeholder {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.cmap__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.cmap__coordinates {
  margin: 0;
  font-size: 16px;
  color: var(--ink-muted);
}

.cmap__route {
  border: 1px solid rgba(37, 219, 222, .56);
  background: rgba(37, 219, 222, .08);
  color: var(--ink);
}

@media (max-width: 1024px) {
  .cmap {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .cmap__header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .cmap__meta {
    justify-self: start;
    text-align: left;
  }

  .cmap__shell {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .cmap__shell {
    min-height: 440px;
  }

  .cmap__placeholder {
    gap: 14px;
    padding: 24px 18px;
  }

  .cmap__consent,
  .cmap__route {
    width: 100%;
    min-height: 52px;
  }

  .cmap__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cmap__coordinates {
    order: 2;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmap__shell,
  .cmap__frame,
  .cmap__placeholder,
  .cmap__consent,
  .cmap__route {
    transition-duration: .01ms !important;
  }

  .cmap__consent:hover,
  .cmap__consent:focus-visible,
  .cmap__route:hover,
  .cmap__route:focus-visible {
    transform: none;
  }
}
