body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  height: 300vh;
  background: linear-gradient(to bottom, #002684 0vh, #002684 80vh, #0042b5 130vh, #0061ff 200vh);
}

.arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-section {
  margin-top: -120px;
  padding-top: 64px;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image {
  width: 98%;
  height: 98%;
  object-fit: contain;
  display: block;
}

.explore-button {
  position: absolute;
  bottom: 115px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #002684;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.explore-button:hover {
  background: #d8d8d8;
  transform: translateX(-50%) scale(1.1);
}

#next-section {
  padding: 35px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-section-header {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  color: white;
  margin: 40px 0 24px;
}

.map-section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.map-section-header p {
  font-size: 12px;
  opacity: 0.85;
  margin: 0;
}

.map-box {
  background: white;
  width: 88%;
  height: 70vh;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 10px;
  margin-top: 20px;
  box-sizing: border-box;
}

.map-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 80, 0.6);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.find-flats-btn {
  background: #0042b5;
  color: white;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.find-flats-btn:hover {
  background: #0061ff;
}

.map-dots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: red;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  animation: dotPulse 2s infinite ease-in-out;
  cursor: pointer;
  pointer-events: auto;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
  50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.9); }
  100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
}

@keyframes greenPulse {
  0% { box-shadow: 0 0 10px rgba(0, 204, 102, 0.6); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 153, 0.9); }
  100% { box-shadow: 0 0 10px rgba(0, 204, 102, 0.6); }
}

.dot[data-label]::before {
  content: attr(data-label);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: white;
  color: #002684;
  font-size: 12px;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.dot[data-label]:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.dot[data-label="Central City"] {
  background: #00cc66;
  box-shadow: 0 0 10px rgba(0, 204, 102, 0.6);
  animation: greenPulse 2s infinite ease-in-out;
}

.central-dot {
  top: 39%;
  left: 52%;
}

.listing-box {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  height: 95%;
  width: 90%;
  max-width: 1200px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.listing-box.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#areaTitle {
  font-size: 20px;
  color: #002684;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.listing-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #f9f9f9;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  box-sizing: border-box;
  overflow: hidden;
}

.listing-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.image-container {
  position: relative;
  cursor: pointer;
}

.image-cta {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.85rem;
  padding: 3px;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  text-align: center;
  margin-bottom: 10px;
}

.back-btn {
  background: none;
  border: none;
  color: #002684;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  display: inline-block;
  padding: 5px 10px;
}

.back-btn:hover {
  text-decoration: underline;
}

.listing-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #0042b5;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .map-box {
    height: auto;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
  }

  .listing-box {
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    margin-top: 20px;
    width: 95%;
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .navbar-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
  }

  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero-image-section {
    padding-top: 40px;
  }

  .explore-button {
    bottom: 40px;
    font-size: 10px;
    padding: 8px 16px;
  }

  .map-box {
    height: 50vh;
  }

  .listing-card {
    min-height: auto;
    padding: 16px;
  }

  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-btn,
  .navbar-links li:first-child {
    display: none;
  }

  .navbar-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    flex-wrap: nowrap;
  }

  .navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    flex: 0 0 auto;
  }

  .navbar-logo img {
    height: 38px;
    width: auto;
  }

  .navbar-links {
    flex-direction: row;
    gap: 18px;
    flex: 0 0 auto;
  }

  .navbar-links li,
  .navbar-links li a {
    white-space: nowrap;
  }

  .hero-image-section {
    height: 80vh;
  }

  .hero-image {
    height: auto;
  }

  .map-box {
    height: auto;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
    width: 95%;
  }

  .listing-box {
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 16px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tip-card {
    padding: 16px;
  }

  .site-footer {
    padding: 30px 12px;
  }
}
