.ad-placement {
  background: #f2f7f3;
}

.ad-placement h2 { text-transform: none; }
.ad-plan-form {
  border: 1px solid #c5d9cc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px #16372412;
}

.ad-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
}
.ad-plan-grid:has(.ad-plan-map[hidden]) { grid-template-columns: minmax(0, 1fr); }

.ad-plan-map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(12px, 2.2vw, 24px);
  border-radius: 17px 0 0;
  background: #0a1912;
  color: #fff;
}

.ad-plan-map-bar,
.ad-plan-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.ad-plan-map-bar {
  margin-bottom: 12px;
}

.ad-plan-map-bar strong { font-size: clamp(1rem, 2vw, 1.3rem); }
.ad-plan-market-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #446b57;
  border-radius: 999px;
  background: #10271b;
}

.ad-plan-market-switch button {
  min-width: 40px;
  min-height: 38px;
  padding: 4px 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #e2f2e9;
  font: inherit;
  font-size: .9rem;
  font-weight: 720;
  cursor: pointer;
}

.ad-plan-market-switch button[aria-pressed="true"] {
  background: #aef5c8;
  color: #10251a;
}

.ad-plan-atlas {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  min-width: 0;
  border: 1px solid #3c6b55;
  border-radius: 12px;
  background: #0b2017;
}

.ad-plan-atlas img, .ad-plan-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ad-plan-atlas img { border-radius: inherit; }
.ad-plan-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  display: grid;
  width: clamp(24px, 3vw, 38px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d9f6e5;
  font: inherit;
  cursor: pointer;
}

.ad-plan-pin::before {
  width: 12px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #0b2017;
  box-shadow: 0 0 0 3px #b5facc37;
  content: "";
}

.ad-plan-pin[aria-pressed="true"] { color: var(--ad-green); }
.ad-plan-pin[aria-pressed="true"]::before {
  background: currentColor;
  box-shadow: 0 0 0 4px #00e67655, 0 0 17px #00e676;
}

.ad-plan-pin-extra { width: 24px; }
.ad-plan-pin-extra::before { width: 8px; }
.ad-plan-pin:is(:hover, :focus-visible) { z-index: 1; }
.ad-plan-pin span {
  position: absolute;
  bottom: calc(100% + 3px);
  display: none;
  padding: 3px 7px;
  border: 1px solid #558a6b;
  border-radius: 5px;
  background: #07160e;
  color: #fff;
  font-size: .84rem;
  white-space: nowrap;
  pointer-events: none;
}

.ad-plan-pin:is(:hover, :focus-visible) span { display: block; }
.ad-plan-map .ad-plan-map-caption {
  margin-top: 10px;
  color: #c5e4d1;
  font-size: .88rem;
}

.ad-plan-controls {
  min-width: 0;
  padding: clamp(15px, 2.6vw, 30px);
}

.ad-plan-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ad-plan-controls legend, .ad-plan-other > span {
  margin-bottom: 8px;
  padding: 0;
  color: #14261c;
  font-size: 1.05rem;
  font-weight: 750;
}

.ad-plan-city-group + .ad-plan-city-group:not([hidden]) { margin-top: 16px; }
.ad-plan-controls legend small {
  margin-left: 6px;
  color: #506b5c;
  font-size: .82rem;
  font-weight: 450;
}

.ad-plan-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ad-plan-cities label, .ad-plan-type-grid label { cursor: pointer; }
.ad-plan-cities input, .ad-plan-type-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ad-plan-cities span, .ad-plan-type-grid label > span {
  display: flex;
  min-width: 0;
  border: 1px solid #bfd2c5;
  background: #f5f9f6;
  color: #14261c;
}

.ad-plan-cities span {
  min-height: 38px;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 675;
}

.ad-plan-more { margin-top: 8px; }
.ad-plan-more summary {
  width: fit-content;
  padding: 8px 0;
  color: #13643c;
  font-size: .94rem;
  font-weight: 720;
  cursor: pointer;
}
.ad-plan-more[open] .ad-plan-cities { padding-bottom: 4px; }

.ad-plan-controls label:hover input + span { border-color: #2a875a; }
.ad-plan-controls input:checked + span {
  border-color: #26794d;
  background: #d7f7e2;
  color: #123d26;
  box-shadow: inset 0 0 0 1px #26794d;
}

.ad-plan-controls input:focus-visible + span,
.ad-plan-other textarea:focus-visible {
  outline: 2px solid #237349;
  outline-offset: 3px;
}

.ad-plan-other {
  display: grid;
  margin: 17px 0;
}

.ad-plan-other textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #bfd2c5;
  border-radius: 8px;
  background: #fff;
  color: #14261c;
  font: inherit;
  resize: vertical;
}

.ad-plan-other textarea::placeholder { color: #53675b; }
.ad-plan-other small { margin-top: 5px; color: #506b5c; font-size: .86rem; }
.ad-plan-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ad-plan-type-grid label > span {
  min-height: 63px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
}

.ad-plan-type-grid strong { font-size: .93rem; line-height: 1.2; }
.ad-plan-type-grid small { margin-top: 3px; color: #3d6050; font-size: .82rem; }

.ad-plan-next {
  padding: clamp(14px, 2.2vw, 24px);
  border-top: 1px solid #c5d9cc;
  border-radius: 0 0 17px 17px;
  background: #e5f4ea;
}

.ad-plan-shortlist {
  flex: 1 1 260px;
  min-width: 0;
  color: #183e2b;
}

.ad-plan-shortlist p {
  margin-top: 3px;
  color: #365c48;
  font-size: .91rem;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .ad-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .ad-plan-map { border-radius: 17px 17px 0 0; }
  .ad-plan-pin { width: clamp(24px, 6vw, 34px); }
}

@media (max-width: 500px) {
  .ad-plan-next .ad-button { width: 100%; }
  .ad-plan-map-bar strong { font-size: .96rem; }
  .ad-plan-market-switch button { min-height: 34px; min-width: 32px; padding-inline: 8px; }
  .ad-plan-pin::before { width: 9px; }
}
