#map {
  width: 100%;
  /* ºÎ¸ð ¿ä¼Ò ±âÁØÀ¸·Î ³Êºñ ¼³Á¤ */
  height: 400px;
  /* °íÁ¤ ³ôÀÌ ¼³Á¤ */
  min-height: 300px;
  /* ÃÖ¼Ò ³ôÀÌ ¼³Á¤ */
}

/* ¸ð´Þ ¹è°æ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;

}

/* ¸ð´Þ ³»¿ë */
.modal-content {
  position: relative;
  margin: 3% auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-height: 80vh; 
  overflow-y: auto;
  overflow-x: hidden; 
}

/* ´Ý±â ¹öÆ° */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ÆË¾÷ Á¦¸ñ */
.popup__title {
  margin-top: 5px;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ÆË¾÷ ÀÌ¹ÌÁö */
.popup__image {
  width: 100%;
  max-height: 286px;
  object-fit: cover;
  margin: 20px 0;
  border-radius: 8px;
}

/* ÆË¾÷ ³»¿ë ÄÁÅ×ÀÌ³Ê */
.popup__content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

/* °¢ ¼½¼Ç */
.popup__section {
  flex: 1;
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* ½ºÅ©·Ñ Ã³¸® */
  /* max-height: 200px; 
  overflow-y: auto;   */
}

/* ½ºÅ©·Ñ¹Ù ¿É¼Ç */
/* .popup__section::-webkit-scrollbar {
  width: 8px; 
}

.popup__section::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.popup__section::-webkit-scrollbar-track {
  background-color: #f9f9f9;
}  */

/* ¼½¼Ç Á¦¸ñ */
.popup__section__title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #444;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ¸®½ºÆ® */
.popup__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  font-family: 'Noto Sans KR', sans-serif;
}

.popup__list li {
  margin-bottom: 4px;
  /* ¸®½ºÆ® Ç×¸ñ °£°Ý Ãß°¡ */
}

/* Ãß°¡ Á¤º¸ ÅØ½ºÆ® */
.popup__info {
  margin: 20px 0;
  font-size: 14px;
  text-align: center;
  color: #777;
}

/* ¹öÆ° ½ºÅ¸ÀÏ */
.modal-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f5b042;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
}

.modal-footer {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

/* Áöµµ */
.popup__map__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  padding: 16px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px 0 rgba(94, 92, 154, 0.1);
}

.popup__map__section__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  color: #333;
}

.popup__map {
  margin-top: 16px;
  width: 100%;
  height: 300px;
  /* ÆË¾÷¿¡ ¸Â´Â Áöµµ Å©±â */
  border-radius: 10px;
  border: 1px solid #e5e5e5;
}

/* ÆË¾÷ ÀüÃ¼ ¹èÄ¡ */
.modal-content {
  max-width: 600px;
  padding: 24px;
}

.modal-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #f5b042;
  color: white;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
}

.hidden {
  display: none !important;
  visibility: hidden;
  z-index: -1;
}

.dropdown-initial {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.header-btn {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  background-color: white;
  width: 100%;
  margin-bottom: 28px;
}

.dropdown-btn {
  width: 80%;
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  background-color: white;

}

/* dropdown-btn */
/* °ü¾Ç±¸ ¹öÆ° ½ºÅ¸ÀÏ */
.dropdown-btn[data-target="gwanakDetails"] {
  border-color: #42a5f5; 
}

.dropdown-btn[data-target="gwanakDetails"]:hover {
  background-color: #42a5f5; 
  color: white; 
}

/* ¼ºµ¿±¸ ¹öÆ° ½ºÅ¸ÀÏ */
.dropdown-btn[data-target="seongdongDetails"] {
  border-color: #66bb6a; 
}

.dropdown-btn[data-target="seongdongDetails"]:hover {
  background-color: #66bb6a; 
  color: white; 
}

/* header-btn */
/* °ü¾Ç±¸ ¹öÆ° ½ºÅ¸ÀÏ */
.header-btn[data-target="modalInitialState"] {
  border-color: #f5b042;; 
}

.header-btn[data-target="modalInitialState"]:hover {
  background-color: #f5b042;; 
  color: white; 
}

.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
}

.card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 45%;
  max-width: 300px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #444;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.modal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .card {
    width: 90%;
    max-width: 100%;
  }

  .popup__title {
    font-size: 22px;
  }

  .header-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}


/* ¸ð¹ÙÀÏ */
@media (max-width: 768px) {

  .popup__map {
    height: 200px;
    /* ¸ð¹ÙÀÏ¿¡¼­ Áöµµ Å©±â Á¶Á¤ */
  }

  .popup__map__section__title {
    font-size: 20px;
    /* ¸ð¹ÙÀÏ¿¡ ¸Â°Ô ±ÛÀÚ Å©±â Á¶Á¤ */
  }

  .popup__image {
    max-height: 260px;
  }

  .popup__section {
    padding: 12px;
  }

  .popup__title {
    font-size: 24px;
    margin-top: 11px;
  }

  .popup__list {
    font-size: 14px;
  }

  .modal-content {

    width: 70%;
    padding: 15px;
    margin-top: 30px;
    margin-left: 45px;
    font-size: 88%;
    max-height: 85vh; /* ¸ð¹ÙÀÏ È­¸é ³ôÀÌ¿¡ ¸Â°Ô Á¶Á¤ */

  }

  .modal-btn {
    width: 90%;
    font-size: 16px;
    padding: 12px 15px;
  }

  .dropdown-btn{
    width: 70%;
    padding: 15px;
  }

  .dropdown-initial {
    gap: 10px;
  }

  .modal-footer {
    font-size: 12px;
  }

  .close-btn {
    top: 5px;
    right: 10px;
    font-size: 18px;
  }

  .card {
    width: 90%;
    padding: 15px;
  }
}