/* =========================
   RESET + BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0c1020;
  font-family: Arial, sans-serif;
  color: #e6e6e6;
}

/* =========================
   HEADER
========================= */
header {
  text-align: center;
  padding: 22px 10px;
  background: #0a0e1a;
  border-bottom: 1px solid rgba(80,120,255,0.2);
}

header h1 {
  margin: 0;
  font-size: 24px;
  color: #dce6ff;
}

/* =========================
   FILTER
========================= */
.filter-container {
  padding: 12px;
  background: #0a0e1a;
  display: flex;
  justify-content: center;
}

select {
  padding: 10px 16px;
  background: #1a2440;
  color: #dce6ff;
  border: 1px solid #3b4f8f;
  border-radius: 8px;
  font-size: 15px;
}

/* =========================
   MAP
========================= */
#map {
  height: 420px;
  width: 100%;
}

/* =========================
   LIST TITLE
========================= */
.list-title {
  text-align: center;
  margin: 20px 0 10px;
  font-size: 20px;
  color: #c8d4ff;
}

/* =========================
   LIST — MOBILE FIRST
========================= */
#list {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr; /* 📱 ЗАВЖДИ 1 НА МОБІЛЦІ */
  gap: 14px;
}

/* =========================
   CARD
========================= */
.item {
  background: #121a33;
  border: 1px solid rgba(80,120,255,0.25);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  cursor: pointer;
}

.item b {
  color: #7ab0ff;
  font-size: 16px;
}

/* =========================
   ICON
========================= */
.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1e2a4d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* =========================
   CONTENT
========================= */
.item-content {
  flex: 1;
}

.address {
  font-size: 14px;
  opacity: 0.85;
  margin: 4px 0;
}

.cat {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

/* =========================
   BUTTONS
========================= */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e2a44;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #8cbcff;
  text-decoration: none;
}

/* =========================
   TELEGRAM BUTTON — MOBILE
========================= */
.tg-circle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 28px;
}

.tg-circle img {
  width: 22px;
  height: 22px;
  padding: 3px;
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
  #list {
    grid-template-columns: repeat(2, 1fr);
  }

  #map {
    height: 460px;
  }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1200px) {
  #list {
    grid-template-columns: repeat(3, 1fr);
  }

  #map {
    height: 520px;
  }
}

/* =========================
   LEAFLET POPUP
========================= */
.leaflet-popup-content-wrapper {
  background: #0e1b34 !important;
  border-radius: 12px;
  border: 1px solid #1f3b70;
}

/* =========================
   TELEGRAM CTA BUTTON
========================= */
.tg-circle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow:
    0 6px 18px rgba(42, 171, 238, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.15);
  text-decoration: none;
  transition: all 0.25s ease;
}

.tg-circle img {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  padding: 4px;
}

.tg-circle:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px rgba(42, 171, 238, 0.55);
}

/* =========================
   LEAFLET POPUP TEXT
========================= */
.leaflet-popup-content {
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.45;
}

.leaflet-popup-content b {
  color: #9fc4ff;
  font-size: 15px;
}

.leaflet-popup-content a {
  color: #4da3ff;
  text-decoration: none;
  font-weight: 500;
}

.leaflet-popup-content a:hover {
  text-decoration: underline;
}



.leaflet-popup-content i {
  color: #4da3ff;
  margin-right: 6px;
}






/* ICON HOVER ANIMATION */
.item-icon {
  transition: 
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.item:hover .item-icon {
  transform: scale(1.12) rotate(-3deg);
  background: linear-gradient(135deg, #2aabee, #3b6cff);
  box-shadow: 0 6px 18px rgba(58, 124, 255, 0.45);
}

/* CARD HOVER EFFECT */
.item {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.item:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 140, 255, 0.6);
  box-shadow:
    0 10px 30px rgba(30, 60, 140, 0.45);
}

/* BUTTON HOVER */
.btn-link {
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-link:hover {
  transform: translateY(-1px);
  background: #2a3b6b;
  box-shadow: 0 4px 14px rgba(60,120,255,0.35);
}
