.mk-market-home {
  --mk-orange: #f47a0a;
  --mk-orange-dark: #db6500;
  --mk-navy: #263b4f;
  --mk-navy-2: #31495f;
  --mk-text: #223247;
  --mk-muted: #6f7d8c;
  --mk-border: #e7ebf0;
  --mk-shadow: 0 14px 40px rgba(30, 49, 67, 0.1);
  --mk-radius: 18px;
}

.mk-market-home a {
  text-decoration: none;
}

/* Map section */
.mk-market-home .mk-map-section {
  background: linear-gradient(135deg, var(--mk-navy), var(--mk-navy-2));
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mk-market-home .mk-map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.08) 0 3px, transparent 4px),
    radial-gradient(circle at 65% 58%, rgba(255, 255, 255, 0.07) 0 3px, transparent 4px),
    linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.03) 40% 41%, transparent 41% 60%, rgba(255, 255, 255, 0.03) 60% 61%, transparent 61%);
  background-size: 140px 140px, 170px 170px, 100% 100%;
  pointer-events: none;
}

.mk-market-home .mk-map-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: center;
  padding: 54px 0;
}

.mk-market-home .mk-map-section__title {
  color: #fff;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.mk-market-home .mk-map-section__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 0 24px;
}

.mk-market-home .mk-map-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mk-market-home .mk-market-home__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.mk-market-home .mk-market-home__btn--primary {
  background: var(--mk-orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 122, 10, 0.24);
}

.mk-market-home .mk-market-home__btn--primary:hover {
  background: var(--mk-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.mk-market-home .mk-market-home__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.mk-market-home .mk-market-home__btn--secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.mk-market-home .mk-map-section__card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.mk-market-home .mk-map-section__preview {
  height: 220px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(25deg, transparent 0 44%, rgba(255, 255, 255, 0.1) 45% 47%, transparent 48% 100%),
    linear-gradient(-35deg, transparent 0 52%, rgba(255, 255, 255, 0.08) 53% 55%, transparent 56% 100%),
    #203448;
}

.mk-market-home .mk-map-section__marker {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--mk-orange);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.mk-market-home .mk-map-section__marker::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 12px;
  top: 12px;
}

.mk-market-home .mk-map-section__marker--1 { left: 20%; top: 26%; }
.mk-market-home .mk-map-section__marker--2 { left: 54%; top: 38%; }
.mk-market-home .mk-map-section__marker--3 { left: 74%; top: 18%; }
.mk-market-home .mk-map-section__marker--4 { left: 39%; top: 65%; }

.mk-market-home .mk-map-section__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  color: #fff;
  gap: 12px;
}

.mk-market-home .mk-map-section__meta strong {
  font-size: 18px;
}

.mk-market-home .mk-map-section__meta span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* Shared headings */
.mk-market-home .mk-market-home__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  color: var(--mk-orange);
  margin: 0 0 9px;
}

.mk-market-home .mk-map-section__copy .mk-market-home__kicker {
  color: #ffb36d;
}

.mk-market-home .mk-market-home__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  color: var(--mk-text);
}

.mk-market-home .mk-market-home__intro {
  margin: 8px 0 0;
  color: var(--mk-muted);
  line-height: 1.6;
  max-width: 700px;
}

.mk-market-home .mk-market-home__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

/* Statistics */
.mk-market-home .mk-market-stats {
  padding: 70px 0 44px;
}

.mk-market-home .mk-market-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mk-market-home .mk-market-stat-card {
  background: #fff;
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  padding: 24px;
  box-shadow: var(--mk-shadow);
  transition: 0.2s ease;
}

.mk-market-home .mk-market-stat-card:hover {
  transform: translateY(-3px);
}

.mk-market-home .mk-market-stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff3e8;
  color: var(--mk-orange);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 20px;
}

.mk-market-home .mk-market-stat-card__value {
  font-size: 32px;
  font-weight: 900;
  color: var(--mk-orange);
  margin-bottom: 8px;
  line-height: 1.1;
}

.mk-market-home .mk-market-stat-card__label {
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 7px;
  color: var(--mk-text);
}

.mk-market-home .mk-market-stat-card__note {
  color: var(--mk-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.mk-market-home .mk-market-stats__disclaimer {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff8f1;
  border: 1px solid #ffe0c2;
  color: #6b5948;
  font-size: 13px;
  line-height: 1.6;
}

/* Districts */
.mk-market-home .mk-popular-districts {
  padding: 44px 0 76px;
}

.mk-market-home .mk-popular-districts__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.mk-market-home .mk-district-card {
  min-height: 190px;
  border-radius: var(--mk-radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: var(--mk-shadow);
  transition: 0.25s ease;
  display: block;
  color: #fff;
}

.mk-market-home .mk-district-card:hover {
  transform: translateY(-4px);
  color: #fff;
}

.mk-market-home .mk-district-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.03) 28%, rgba(8, 18, 28, 0.82) 100%);
  z-index: 1;
}

.mk-market-home .mk-district-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.mk-market-home .mk-district-card__content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  z-index: 2;
}

.mk-market-home .mk-district-card__title {
  margin: 0 0 7px;
  font-size: 18px;
  color: #fff;
}

.mk-market-home .mk-district-card__count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.mk-market-home .mk-district-card--vake::after,
.mk-market-home .mk-district-card--saburtalo::after,
.mk-market-home .mk-district-card--mtatsminda::after,
.mk-market-home .mk-district-card--didi-digomi::after,
.mk-market-home .mk-district-card--digomi::after,
.mk-market-home .mk-district-card--old-tbilisi::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mk-market-home .mk-district-card--vake::after {
  background: linear-gradient(135deg, #61798b, #263b4f);
}

.mk-market-home .mk-district-card--saburtalo::after {
  background: linear-gradient(135deg, #9a7b58, #35485c);
}

.mk-market-home .mk-district-card--mtatsminda::after {
  background: linear-gradient(135deg, #8e7867, #4f6476);
}

.mk-market-home .mk-district-card--didi-digomi::after {
  background: linear-gradient(135deg, #667a5c, #283f35);
}

.mk-market-home .mk-district-card--digomi::after {
  background: linear-gradient(135deg, #6f5e78, #2d3e50);
}

.mk-market-home .mk-district-card--old-tbilisi::after {
  background: linear-gradient(135deg, #9b8771, #3a4650);
}

.mk-market-home .mk-district-card:has(.mk-district-card__image)::after {
  display: none;
}

@media (max-width: 1050px) {
  .mk-market-home .mk-market-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mk-market-home .mk-popular-districts__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mk-market-home .mk-map-section__inner {
    grid-template-columns: 1fr;
  }

  .mk-market-home .mk-map-section__card {
    max-width: 700px;
  }
}

@media (max-width: 700px) {
  .mk-market-home .mk-map-section {
    min-height: auto;
  }

  .mk-market-home .mk-map-section__inner {
    padding: 38px 0;
  }

  .mk-market-home .mk-map-section__title {
    font-size: 31px;
  }

  .mk-market-home .mk-map-section__desc {
    font-size: 15px;
  }

  .mk-market-home .mk-market-home__head {
    display: block;
  }

  .mk-market-home .mk-market-home__title {
    font-size: 28px;
  }

  .mk-market-home .mk-market-stats__grid {
    grid-template-columns: 1fr;
  }

  .mk-market-home .mk-popular-districts__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .mk-market-home .mk-district-card {
    min-width: 76%;
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  .mk-market-home .mk-market-home__btn {
    min-height: 44px;
  }
}
