/* ====== Шрифты ====== */
@font-face {
  font-family: 'Suisse Intl';
  src: url('SuisseIntl-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('SuisseIntl-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('SuisseIntl-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ====== Глобальные стили для Flutter Web ====== */
html,
body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: none;
  height: 100vh !important;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

flutter-view {
  position: absolute !important;
  scroll-behavior: smooth;
  width: 100vw !important;
  height: 100vh !important;

  top: env(safe-area-inset-top);
  bottom: env(safe-area-inset-bottom);
  left: env(safe-area-inset-left);
  right: env(safe-area-inset-right);
}

iframe {
  position: absolute !important;
  will-change: transform;
  z-index: 999999;
}

/* Splash screen */
.splash_screen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  z-index: 9999999;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.splash_icon {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.splash_title {
  margin-top: 24px;
  font-family: 'Suisse Intl', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 29px;
  letter-spacing: 0px;
  color: #1D1D1E;
  text-align: center;
  flex-shrink: 0;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.splash_subtitle {
  margin-top: 8px;
  font-family: 'Suisse Intl', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #565658;
  text-align: center;
  flex-shrink: 0;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.splash_dots {
  display: inline-block;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  text-align: left;
}

.splash_screen.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

/* ====== Маркер с ценой ====== */
.price-marker {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  border: 1px solid #ccc;
}

/* ====== Кастомный кластер ====== */
.cluster-marker {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  border: 1px solid #ccc;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.direction-row {
  flex-direction: row;
}

.count-box {
  background: white; /* белый квадратик */
  border-radius: 6px;
  padding: 4px 6px;
  font-weight: bold;
  font-size: 12px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  flex: none;
}

.cluster-marker-price {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* ====== Новая версия кластера по макету ====== */
.cluster-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 3px 8px;
  background: #eff1f4; /* мягкий серый */
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  white-space: nowrap;
  box-sizing: border-box;
}

.cluster-pill .count-square {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #111111;
  line-height: 1;
  margin-right: 6px;
}

.cluster-pill .label {
  font-size: 12px;
  font-weight: 600;
  color: #111111;
  line-height: 1;
}
