body {
  background-color: #000;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

input {
  -webkit-autocomplete: off;
  autocomplete: off;
}

.list-pc-none {
  display: none;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  background-color: white;
  min-height: 100vh;
}

.containerWrap {
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.headers {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 20px 0;
}

.headerIcon {
  display: none;
  width: 100%;
}

.headers .logo {
  width: 200px;
}

.headers .logo img {
  width: 100%;
  height: auto;
}

.Title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.Title p {
  margin-top: 4px;
}

.Title h3 {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
}

/* Title Description */
.titleDesc {
  width: fit-content;
  max-width: 70%;
  background-color: #000000;
  padding: 6px 18px;
  margin: 10px auto;
  border-radius: 50px;
}

.titleDesc p {
  font-size: 14px;
  color: white;
  text-align: center;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Search Section */
.searchContents {
  position: relative;
  margin-top: 30px;
}

.searchInput {
  width: 80%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.searchInput input {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  text-align: center;
  border-radius: 50px;
  border: 3px solid transparent;
  background-image: linear-gradient(white, white),
    linear-gradient(
      to right,
      #70f6ff 0%,
      #0f4ff4 40%,
      #4a7dff 80%,
      #03267f 100%
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  outline: none;
}

.searchInput input::placeholder {
  color: #9d9d9d;
  font-weight: 500;
  
}

/* Active state when search results are shown */
.searchInput input.active {
  border-radius: 20px 20px 0 0;
  background: #FFF;
  box-shadow: 0 0 2.7px 1px rgba(0, 0, 0, 0.25);
}

.searchContents .searchs {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
}

/* City List */
.city-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-top: none;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 2.6px 2.6px 1px rgba(0, 0, 0, 0.25);
  max-height: 450px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  cursor: pointer;
}

.post-preview-item {
  padding: 10px 15px;
  transition: background-color 0.2s;
}

/* City List Scrollbar */
.city-list::-webkit-scrollbar {
  width: 6px;
}

.city-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.city-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.city-list::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* City Buttons */
.CityButton {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.CityButton ul:nth-child(1),
.CityButton ul:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px 0;
}

.CityButton ul:nth-child(1) {
  width: 90%;
  margin: 0 auto;
}

.CityButton ul:nth-child(2) {
  width: 85%;
  margin: 0 auto;
}

.CityButton ul li {
  padding: 6px 18px;
  border-radius: 25px;
  border: 1px solid #0f4ff4;
  color: #0f4ff4;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.CityButton ul li:hover {
  background-color: #0f4ff4;
  color: white;
}

/* menuList */
.menuList {
  width: 100%;
  margin-top: 30px;
}

.menuList ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menuList ul li {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgb(249, 249, 249);
  padding: 2% 2.5%;
  gap: 7px;
  border-radius: 8px;
  border-width: 0.5px;
  border-style: solid;
  border-color: rgb(238, 238, 238);
  border-image: initial;
}

.menuList ul li p:nth-child(1) {
  color: rgb(63, 63, 63);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.menuList ul li p:nth-child(2) {
  color: rgb(63, 63, 63);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Popular Trip Section */
.popularTrip {
  width: 100%;
  margin-top: 50px;
}

.popularTrip .Title p {
  cursor: pointer;
}

.popularTripList {
  margin-top: 10px;
  width: 100%;
}

.popularTripList ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.popularTripList ul li {
  width: 100%;
  flex: 0 0 calc(25% - 12px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 22px;
  overflow: hidden;
  background-color: white;
}

.listContents {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.listContents > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.listContents:hover > img {
  transform: scale(1.05);
}

.listText {
  display: flex;
  width: 100%;
  padding: 8px 12px;
  align-items: start;
}

.nation {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 2px;
}

.listTextContents {
  display: flex;
  align-items: start;
  gap: 4px;
  width: 100%;
}
.listTextContents img {
  width: 14px;
  height: 16px;
  margin-top: 2px;
}
.locationName {
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.nation p:nth-child(1) {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.nation p:nth-child(2) {
  color: #6d6d6d;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.temperature {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-basis: 90%;
  gap: 4px;
  margin-top: 4px;
}

.temperature p {
  font-size: 10px;
  color: #000;
  font-weight: 500;
  letter-spacing: -1px;
}

/* 구분선 스타일 */
.search-separator {
  padding: 10px 0;
  margin: 5px 0;
}

.search-separator hr {
  border: none;
  margin: 0 0 8px 0;
}

.related-posts-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin: 0;
  padding-right: 15px;
  padding-left: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #666;
  cursor: auto;
}

/* 게시글 미리보기 아이템 */
.post-preview-item {
  padding: 10px 15px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.post-preview-item:last-of-type {
  border-bottom: none;
}

.post-preview-content {
  padding: 16px 21px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-preview-title {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-preview-excerpt {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 더보기 링크 */
.more-posts-preview {
  padding: 8px 15px;
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.more-posts-preview-link {
  display: block;
  font-size: 12px;
  color: #0f4ff4;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: color 0.2s ease;
}

.more-posts-preview-link:hover {
  color: #0d3fb3;
  text-decoration: none;
}

/* 기본 도시 리스트 (작은 패딩) */
.city-item-default {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 검색 시 도시 결과 (큰 패딩) */
.city-item {
  padding: 20px 36px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  border-top: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #000;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.view-all-posts-btn {
  color: #96989C;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  cursor: pointer;
  padding: 8px 12px;
  margin: 8px 0;
  text-align: center;
}


@media (max-width: 768px) {
  .containerWrap {
    padding: 0 3%;
  }

  .headers {
    padding: 15px 0;
    gap: 20px;
  }

  .searchInput {
    width: 100%;
  }

  .CityButton {
    padding-top: 20px;
  }

  .CityButton ul:nth-child(1),
  .CityButton ul:nth-child(2) {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 5px 0;
  }

  .CityButton ul li {
    padding: 6px 18px;
    font-size: 13px;
  }

  .sectionEventBanner {
    overflow: hidden;
    margin-top: 30px;
  }

  .sectionEventBannerWrap {
    gap: 2px;
    width: 100%;
    transition: transform 0.3s ease-out;
  }

  .BannerContents {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column-reverse;
    align-items: start;
    gap: 8px;
  }

  .popularTripList ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .popularTripList ul li {
    flex: none;
    width: 100%;
  }

  .sectionEventBanner h1 {
    font-size: 20px;
  }
  .post-preview-title {
    font-size: 12px;
  }

  .post-preview-excerpt {
    font-size: 12px;
  }

  .more-posts-preview-link {
    font-size: 11px;
  }

  .related-posts-title {
    font-size: 11px;
  }
}

@media (max-width: 500px) {
  .list-pc-none {
    display: block;
  }

  .containerWrap {
    padding: 0 3%;
  }

  .headers {
    align-items: end;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 20px;
    justify-content: space-between;
  }

  .headers .logo {
    width: 200px;
  }

  .titleDesc {
    max-width: 90%;
    padding: 5px 14px;
  }

  .titleDesc p {
    font-size: 11px;
  }

  .searchContents {
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .searchInput {
    margin: 0 auto;
    width: 100%;
  }

  .searchInput input {
    padding: 14px;
    font-size: 14px;
  }

  .searchContents .searchs {
    width: 20px;
    height: 20px;
  }

  .CityButton {
    padding-top: 0;
  }

  .CityButton ul:nth-child(2) {
    display: none;
  }

  .CityButton ul:nth-child(1) {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 4px 0;
  }

  .CityButton ul li {
    padding: 3px 12px;
    font-size: 11px;
  }

  .Title {
    margin-bottom: 16px;
    gap: 8px;
  }

  .Title h3 {
    font-size: 20px;
    letter-spacing: -1px;
  }

  .Title p {
    font-size: 14px;
  }

  .menuList {
    margin-top: 20px;
  }

  .menuList ul {
    gap: 4px;
  }

  .menuList ul li p:nth-child(1) {
    font-size: 14px;
  }

  .menuList ul li p:nth-child(2) {
    font-size: 12px;
  }

  .popularTrip {
    margin-top: 40px;
  }

  .popularTripList {
    margin-top: 14px;
    padding-bottom: 20px;
  }

  .popularTripList ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .popularTripList ul li {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  }

  .listContents > img {
    aspect-ratio: 3/2;
  }

  .listTextContents {
    gap: 4px;
  }

  .listTextContents img {
    width: 14px;
    height: 16px;
    margin-top: 0;
  }

  .nation p:nth-child(1) {
    font-size: 12px;
  }

  .nation p:nth-child(2) {
    font-size: 10px;
    color: #888;
  }

  .temperature {
    margin-top: 2px;
    gap: 2px;
    flex-basis: 100%;
  }

  .temperature p {
    font-size: 10px;
    letter-spacing: -0.5px;
  }
  .searchInput input::placeholder{
    font-size: 11px;
  }
}

@media (max-width: 375px) {
  .CityButton ul:nth-child(1) {
    width: 100%;
  }
}
