/* Crypto ATM Map — editorial layout matching event calendar / prices v2 */

:root {
  --ci-atm-red: #8b1538;
  --ci-atm-red-dark: #6f112d;
  --ci-atm-bg: #ffffff;
  --ci-atm-text: #111111;
  --ci-atm-muted: #555555;
  --ci-atm-meta: #777777;
  --ci-atm-border: #e5e5e5;
  --ci-atm-font-text: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.ci-atm-map-page .page-heading.secondary-background,
body.ci-atm-map-page .coin-news-section {
  display: none !important;
}

body.ci-atm-map-page,
body.ci-atm-map-page .main-wrapper,
body.ci-atm-map-page #main {
  background: #ffffff;
}

.ci-atm {
  font-family: var(--ci-atm-font-text);
  color: var(--ci-atm-text);
  background: var(--ci-atm-bg);
}

.ci-atm .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ci-atm__container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.ci-atm__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ci-atm-red);
}

.ci-atm__title {
  margin: 0 0 14px;
  font-family: "Playfair Display", "Times New Roman", Times, serif !important;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800 !important;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #000000 !important;
}

.ci-atm__desc {
  margin: 0;
  max-width: 820px;
  font-size: clamp(0.9375rem, 1vw, 1rem);
  line-height: 1.6;
  color: var(--ci-atm-muted);
}

.ci-atm__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0 10px;
}

.ci-atm__search {
  display: flex;
  flex: 1 1 320px;
  min-width: 0;
  border: 1px solid var(--ci-atm-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.ci-atm__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.ci-atm__search-btn,
.ci-atm__near {
  appearance: none;
  border: 0;
  background: var(--ci-atm-red);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 11px 18px;
}

.ci-atm__search-btn:hover,
.ci-atm__near:hover {
  background: var(--ci-atm-red-dark);
}

.ci-atm__near {
  border-radius: 999px;
  border: 1px solid var(--ci-atm-red);
}

.ci-atm__count {
  margin: 0;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ci-atm-meta);
}

.ci-atm__suggest {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--ci-atm-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 14px;
  background: #fff;
}

.ci-atm__suggest-item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ci-atm-border);
  background: #fff;
  text-align: left;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ci-atm__suggest-item:last-child {
  border-bottom: 0;
}

.ci-atm__suggest-item:hover {
  background: #faf6f7;
}

.ci-atm__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.ci-atm__filter {
  appearance: none;
  border: 1px solid var(--ci-atm-border);
  background: #fff;
  color: var(--ci-atm-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ci-atm__filter:hover {
  border-color: var(--ci-atm-red);
  color: var(--ci-atm-red);
}

.ci-atm__filter.is-active {
  background: var(--ci-atm-red);
  border-color: var(--ci-atm-red);
  color: #fff;
}

.ci-atm__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.ci-atm__map-wrap,
.ci-atm__side {
  border: 1px solid var(--ci-atm-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.ci-atm__map-wrap {
  position: relative;
}

.ci-atm__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  color: var(--ci-atm-muted);
  z-index: 500;
}

.ci-atm__loading.is-hidden {
  display: none;
}

.ci-atm__map {
  height: 620px;
  width: 100%;
  background: #eef1f4;
}

.ci-atm__side {
  display: flex;
  flex-direction: column;
  max-height: 620px;
}

.ci-atm__side-head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--ci-atm-border);
}

.ci-atm__side-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ci-atm-red);
}

.ci-atm__side-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ci-atm-meta);
}

.ci-atm__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
}

.ci-atm__item {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ci-atm-border);
  background: transparent;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
}

.ci-atm__item:hover,
.ci-atm__item.is-active {
  background: #faf6f7;
}

.ci-atm__item-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ci-atm-text);
}

.ci-atm__item-addr {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ci-atm-muted);
}

.ci-atm__item-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.ci-atm__chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f3e6ea;
  color: var(--ci-atm-red);
}

.ci-atm__empty {
  padding: 24px 16px;
  font-size: 14px;
  color: var(--ci-atm-meta);
}

.ci-atm__note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ci-atm-meta);
}

.ci-atm-pin {
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -22px;
  border-radius: 50% 50% 50% 0;
  background: var(--ci-atm-red);
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.ci-atm-cluster {
  background: var(--ci-atm-red);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(139, 21, 56, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.ci-atm-popup {
  font-family: var(--ci-atm-font-text);
  min-width: 180px;
}

.ci-atm-popup strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.ci-atm-popup p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #444;
}

.ci-atm-popup a {
  color: var(--ci-atm-red);
  font-weight: 600;
  font-size: 13px;
}

.leaflet-container {
  font-family: var(--ci-atm-font-text);
}

@media screen and (max-width: 900px) {
  .ci-atm__layout {
    grid-template-columns: 1fr;
  }

  .ci-atm__map,
  .ci-atm__side {
    height: auto;
    max-height: none;
  }

  .ci-atm__map {
    height: 420px;
  }

  .ci-atm__side {
    max-height: 380px;
  }

  .ci-atm__count {
    margin-left: 0;
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .ci-atm__container {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  .ci-atm__search-btn {
    padding-left: 14px;
    padding-right: 14px;
  }
}
