/* ==== Event Map Custom CSS (Ported from rdca-front Tailwind CSS) ==== */

/* Layout Overrides for Micropage */
.platform_wrap,
.header {
  display: none !important;
}

/* === 글로벌 CSS 영향 차단 (cultureday 마이크로페이지 한정) ===
 * base.css / main.css / contents.css 에서 태그 셀렉터로 박는 글로벌 룰을
 * .event_micropage 스코프에서만 무력화한다. 다른 페이지엔 영향 없음.
 * - main.css `section { padding: 80px 0 }` (1)
 * - base.css/main.min.css `section { padding: 5vw 3vw }` @media ≤400/768 (2)
 * 우리는 .home_section_wrap 같은 자체 클래스로 padding을 직접 관리한다.
 */
.event_micropage section {
  padding: 0;
}

/* Layout & Typography */
.event_micropage {
  background-color: #f9fafb;
  /* bg-gray-50 */
  min-height: 800px;
  padding-bottom: 20px;
}

.event_container {
  max-width: 1280px;
  /* max-w-7xl */
  margin: 0 auto;
  padding: 20px;
}

.msi_top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.msi_venue {
  font-size: 15px;
  color: #4b5563;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msi_title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
}

.msi_details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msi_details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msi_details i {
  color: #94a3b8;
  width: 14px;
  text-align: center;
}

.msi_benefit {
  color: #ee3f60 !important;
  font-weight: 600;
}

.msi_subinfo {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dotted #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.msi_subinfo span {
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* List View Header & Grid */
.list_view_container {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 20px;
}

#view_list {
  margin-bottom: 0;
  padding-bottom: 0;
}

.list_view_header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list_view_title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #111827;
}

.list_view_title span {
  color: #2563eb;
  font-size: 1.125rem;
  margin-left: 8px;
}

.event_card_grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .event_card_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .event_card_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .event_card_grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* List View Event Card */
.event_card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s;
}

.event_card:hover {
  border-color: #bfdbfe;
  /* hover:border-blue-200 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  /* hover:shadow-lg */
}

.event_card_img_wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background-color: #e5e7eb;
}

.event_card_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.event_card:hover .event_card_img_wrap img {
  transform: scale(1.05);
}

.event_card_badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.badge_genre {
  padding: 4px 10px;
  background-color: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 9999px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.badge_fee {
  padding: 4px 10px;
  background-color: rgba(17, 24, 39, 0.8);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 9999px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.event_card_body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event_card_title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.event_card:hover .event_card_title {
  color: #2563eb;
}

.event_card_info_wrap {
  margin-top: auto;
}

.event_card_info_line {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  /* text-gray-500 */
  margin-bottom: 8px;
}

.event_card_info_line:last-child {
  margin-bottom: 0;
}

.event_card_info_line i {
  color: #9ca3af;
  margin-right: 6px;
  font-size: 14px;
}

/* Benefit Section */
.upcoming_section_title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.benefit_section_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.benefit_section_title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  scroll-margin-top: 72px;
}

.benefit_section_meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit_month_label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.benefit_more_btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #f3b9c5;
  background: #fff8fa;
  color: #ee3f60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.benefit_more_btn i {
  font-size: 16px;
}

.benefit_more_btn:hover {
  background: #ee3f60;
  border-color: #ee3f60;
  color: #ffffff;
}

.benefit_date_nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.benefit_week_btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #f0ccd4;
  background: #ffffff;
  color: #ee3f60;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.benefit_week_btn:hover:not(:disabled) {
  background: #ee3f60;
  border-color: #ee3f60;
  color: #ffffff;
}

.benefit_week_btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.benefit_date_chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.benefit_date_chip {
  border: 1px solid #f5c8d1;
  background: #fff8fa;
  color: #c43b58;
  border-radius: 16px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.benefit_date_chip_day {
  font-size: 14px;
  font-weight: 700;
}

.benefit_date_chip_num {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.benefit_week_chip {
  padding: 10px 8px;
  text-align: center;
}

.benefit_date_chip.has-events {
  border-color: #ee3f60;
  color: #ee3f60;
  background: #fff1f4;
}

.benefit_date_chip.is-disabled {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #b8c0cc;
  cursor: default;
  box-shadow: none;
}

.benefit_date_chip.is-active {
  background: #ee3f60;
  border-color: #ee3f60;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(238, 63, 96, 0.18);
}

.benefit_date_chip:disabled {
  pointer-events: none;
}

.benefit_card_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit_more_wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.benefit_more_text_btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.benefit_more_text_btn:hover {
  border-color: #9ca3af;
  color: #111827;
}

.benefit_event_card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 18px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.benefit_event_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(238, 63, 96, 0.14);
  border-color: #f4c6d0;
}

.benefit_card_genre {
  margin-bottom: 10px;
}

.benefit_card_venue {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
}

.benefit_card_title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
}

.benefit_card_meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}

.benefit_card_meta p {
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.benefit_card_meta i {
  margin-right: 6px;
  color: #ee3f60;
}

.benefit_empty_msg {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 24px;
  border-radius: 16px;
  background: #fff7f9;
  border: 1px solid #f7d1d9;
  color: #9a5563;
  text-align: center;
  font-size: 15px;
}

@media (max-width: 1024px) {
  .benefit_card_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .benefit_section_header {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .benefit_section_heading {
    flex: 0 1 auto;
    min-width: 0;
  }

  .benefit_section_title,
  .upcoming_section_title {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .benefit_section_meta {
    width: auto;
    flex: 0 0 auto;
    justify-content: space-between;
    gap: 8px;
  }

  .benefit_month_label {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .benefit_date_chip_day {
    font-size: 12px;
  }

  .benefit_date_nav {
    gap: 10px;
  }

  .benefit_date_chips {
    gap: 8px;
    overflow-x: auto;
    display: flex;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .benefit_date_chip {
    min-width: 72px;
    max-width: 72px;
    min-height: 68px;
    scroll-snap-align: start;
  }

  .benefit_date_chips::-webkit-scrollbar {
    display: none;
  }

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

  .benefit_event_card {
    min-height: 196px;
    padding: 15px;
  }

  .benefit_more_wrap {
    margin-top: 14px;
  }

  .benefit_more_text_btn {
    width: 100%;
    justify-content: center;
  }
}

.list_event_card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.list_event_card:hover {
  border-color: #ee3f60;
  box-shadow: 0 4px 12px rgba(238, 63, 96, 0.1);
  transform: translateY(-4px);
}

/* Genre Filters (for List View) */
.genre_filters {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn_custom_genre {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  background-color: #ffffff;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
}

.btn_custom_genre:hover {
  border-color: #bfdbfe;
  background-color: #eff6ff;
}

.btn_custom_genre.active {
  border-color: #3b82f6;
  /* border-blue-500 */
  background-color: #dbeafe;
  /* bg-blue-100 */
  color: #1d4ed8;
}

/* Pagination */
.pagination_wrap {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page_btn {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s;
  cursor: pointer;
}

.page_btn_nav {
  border: 1px solid #e5e7eb;
  color: #6b7280;
  background-color: transparent;
}

.page_btn_nav:hover {
  background-color: #f9fafb;
}

.page_btn_nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page_btn_num {
  background-color: #ffffff;
  color: #374151;
  /* text-gray-700 */
  border: 1px solid #e5e7eb;
}

.page_btn_num:hover {
  background-color: #f9fafb;
}

.page_btn_num.active {
  background-color: #2563eb;
  /* bg-blue-600 */
  color: #ffffff;
  border-color: #2563eb;
}

.page_ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

/* Header Area Cleanup (removing wireframe specific styles, integrating smooth search) */
.event_top_header {
  border-bottom: 2px solid #e5e7eb;
  padding: 16px 24px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Culture Day Specific Header Styles */
.event_header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.header_content_inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cultureday_logo img {
  height: 40px;
  width: auto;
}

@media (max-width: 768px) {
  .header_content_inner {
    padding: 10px 16px;
  }

  .cultureday_logo img {
    height: 32px;
  }

  .header_right_tools {
    gap: 12px;
  }

  .tool_icon_btn {
    font-size: 22px;
  }
}

.header_right_tools {
  display: flex;
  align-items: center;
  gap: 15px;
}

.share_menu_wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tool_icon_btn {
  background: none;
  border: none;
  color: #939597;
  font-size: 24px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.tool_icon_btn:hover {
  color: #6d6e70;
}

.tool_icon_btn.is-hidden {
  display: none !important;
}

.tool_icon_btn--search {
  background: #ee3f60;
  color: #ffffff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  justify-content: center;
  transition: background-color 0.2s;
}

.tool_icon_btn--search:hover {
  background: #d93454;
  color: #ffffff;
}

@media (max-width: 768px) {
  .tool_icon_btn--search {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

.share_menu_layer {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  z-index: 1002;
}

.share_menu_layer[hidden] {
  display: none;
}

.share_menu_item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  text-align: left;
}

.share_menu_item:hover {
  background: #f8fafc;
}

.share_menu_item i {
  width: 18px;
  font-size: 18px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 768px) {
  .share_menu_layer {
    right: -8px;
    min-width: 170px;
  }
}

/* Search Layer Popup - Responsive Refinement */
#detailSearchLayer {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: #fff;
  z-index: 10001;
  border-radius: 16px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  flex-direction: column;
}

@media (max-width: 768px) {
  #detailSearchLayer {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }
}

.search_layer_header {
  height: 64px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: #fff;
  flex-shrink: 0;
}

.search_layer_content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.search_layer_bottom {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 20px 24px;
  flex-shrink: 0;
}

.btn_layer_submit {
  width: 100%;
  height: 48px;
  background-color: #2563eb;
  color: #fff;
  border-radius: 0.75rem;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

/* New Bottom Navigation */
.mobile_bottom_nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #ffffff;
  border-top: 2px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  /* Default is hidden on Desktop, shown via media queries if needed, 
       but we will assume it is visible on mobile breakpoints */
}

@media (min-width: 1024px) {
  .mobile_bottom_nav {
    display: none;
  }
}

.floating_back_btn {
  position: sticky;
  bottom: 32px;
  float: right;
  margin-top: -52px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #ee3f60;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(238, 63, 96, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.floating_back_btn i {
  font-size: 22px;
}

.floating_back_btn:hover {
  background: #d82e50;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(238, 63, 96, 0.34);
}

@media (max-width: 1023px) {
  .floating_back_btn {
    bottom: 84px; /* 모바일 하단 nav 위 */
    margin-top: 16px;
  }
}

.nav_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  font-size: 11px;
  gap: 4px;
  width: 25%;
  height: 100%;
}

.event_micropage .nav_item:focus {
  outline: none;
}

.event_micropage .nav_item:focus-visible i {
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(238, 63, 96, 0.18);
}

.nav_item.active {
  color: #2563eb;
}

.nav_item i {
  font-size: 24px;
}

/* =====================================
   2.0 추가사항 (SPA, Hero, Home Sections) 
===================================== */

/* 컨테이너 토글 영역 */
#eventWebContainer {
  position: relative;
  width: 100%;
}

#homeViewArea {
  display: block;
}

#searchResultArea {
  display: none;
  /* JS로 제어 */
}

/* 1. Hero Search Banner */
.hero_search_wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 12px;
  /* 자동완성 드롭다운(.hero_suggest_list)이 검색바 아래로 절대배치되므로
     잘리지 않도록 visible 유지 (overflow-y:hidden 이면 드롭다운이 클리핑됨) */
  overflow: visible;
}

.hero_search_content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.hero_search_subtitle {
  font-size: 14px;
  color: #b45b6d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.hero_search_title {
  color: #2f2a2c;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 28px;
  text-shadow: none;
  letter-spacing: -0.01em;
}

.hero_search_bar_wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 58px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 34px;
  padding: 0 8px 0 24px;
  border: 1px solid #f5c8d1;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hero_search_bar_wrap:hover {
  border-color: #ee3f60;
}

.hero_search_icon {
  color: #939597;
  font-size: 22px;
  margin-right: 14px;
  flex-shrink: 0;
}

.hero_search_input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16px;
  color: #374151;
  background: transparent;
  cursor: pointer;
}

.hero_search_input::placeholder {
  color: #9d8790;
}

.hero_detail_search_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
  flex-shrink: 0;
  margin-right: 8px;
}

.hero_detail_search_btn:hover {
  color: #ee3f60;
  border-color: #ee3f60;
  background: #fff5f7;
}

.hero_detail_search_btn i {
  font-size: 15px;
}

.hero_search_btn {
  background: #ee3f60;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -4px;
}

.hero_search_btn:hover {
  background: #d93454;
}

@media (max-width: 768px) {
  .hero_search_wrap {
    padding: 20px 16px 8px;
    overflow-x: hidden;
  }

  .hero_search_bar_wrap {
    height: 52px;
  }

  .hero_detail_search_btn {
    padding: 6px 10px;
    font-size: 12px;
    margin-right: 6px;
  }

  .hero_detail_search_btn span {
    display: none;
  }

  .hero_search_btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
    margin-right: 0;
  }
}

/* Hero pattern decorations */
.hero_pattern_left,
.hero_pattern_right {
  position: absolute;
  width: 220px;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.hero_pattern_left {
  left: 0;
  top: 0;
  transform: rotate(180deg);
}

.hero_pattern_right {
  right: 0;
  bottom: 0;
}

@media (max-width: 768px) {
  .hero_pattern_left,
  .hero_pattern_right {
    width: 120px;
    opacity: 0.12;
  }
}

/* 2. 하단 추가 섹션 공통 마진 */
.home_section_wrap {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.event_footer {
  margin-top: 0;
  padding: 0 20px 108px;
  background: transparent;
  border-top: 1px solid #f3d9df;
}

.event_footer_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 0;
}

.event_footer_top,
.event_footer_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.event_footer_top {
  padding-bottom: 22px;
}

.event_footer_bottom {
  padding: 20px 0 0;
  border-top: 1px solid #f3d9df;
  align-items: flex-start;
}

.event_footer_brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.event_footer_links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.event_footer_links a {
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.event_footer_links a.is_point {
  color: #d12149;
  font-weight: 700;
}

.event_footer_tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.event_footer_sns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.event_footer_sns_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: opacity 0.2s ease;
}

.event_footer_sns_link:hover,
.event_footer_sns_link:focus {
  opacity: 0.6;
}

.event_footer_sns_link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.event_footer_wa {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f1d7dd;
}

.event_footer_wa img {
  height: 48px;
  width: auto;
  display: block;
}

.event_footer_info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.event_footer_meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.event_footer_info p,
.event_footer_copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: #6b7280;
}

.event_footer_copy {
  margin-top: 6px;
}

#guide_area {
  margin: 40px auto 0px;
  padding-bottom: 40px;
}

/* 문화가 있는 날 100% 즐기는 법 (Guide) */
.guide_grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .guide_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide_card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}

.guide_card:hover {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Guide card icon brand colors */
.guide_icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffe4ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 32px;
  color: #ee3f60;
  flex-shrink: 0;
}

.guide_icon_1 {
  background: #ffe4ea;
  color: #ee3f60;
}

.guide_icon_2 {
  background: #fce8ed;
  color: #d12149;
}

.guide_icon_3 {
  background: #f5e0e5;
  color: #d12149;
}

.guide_text h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #111827;
}

.guide_text p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* 알림소식 리스트 (Notice Board) */
.notice_list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.notice_list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.notice_list li:last-child {
  border-bottom: none;
}

.notice_list li:hover {
  background: #f9fafb;
}

.notice_title {
  font-size: 15px;
  color: #374151;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 20px;
}

.notice_date {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
}

/* 더 궁금하다면 (More Info Banners) */
.more_info_flex {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.more_info_banner {
  flex: 1;
  min-width: 280px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  font-weight: bold;
  color: #4b5563;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.more_info_banner:hover {
  background: #e5e7eb;
}

/* 문화 나눔기관 (Organizations) */
.org_section_wrap {
  overflow: visible;
}

.org_section_header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.org_slider_controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.org_slider_btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.org_slider_btn:hover:not(:disabled) {
  border-color: #ee3f60;
  color: #ee3f60;
}

.org_slider_btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.org_slider_viewport {
  overflow: hidden;
  padding-top: 6px;
  margin-top: -6px;
  touch-action: pan-y;
}

.org_slider_track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.org_slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.org_item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
  padding: 8px 10px;
}

.org_item:hover {
  border-color: #ee3f60;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.org_item_placeholder {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  min-height: 88px;
  visibility: hidden;
  pointer-events: none;
}

.org_item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .org_slide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .org_item {
    min-height: 60px;
    height: 60px;
    max-height: 60px;
    border-radius: 10px;
    padding: 6px 8px;
  }

  .org_item_placeholder {
    min-height: 60px;
  }

  .org_item img {
    max-height: 48px;
  }
}

.org_slider_dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.org_section_notice {
  margin-top: 28px;
  padding: 28px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.org_section_notice_title {
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  color: #111827;
}

.org_section_notice_text {
  font-size: 18px;
  line-height: 1.7;
  color: #4b5563;
}

.org_section_notice_contact {
  margin-top: 12px;
}

.org_section_notice_link {
  color: #4b5563;
  text-decoration: none;
}

.org_section_notice_link:hover {
  text-decoration: underline;
}

.org_section_notice_link strong {
  color: #111827;
}

.guide_sponsor_text {
  margin-top: 32px;
  text-align: center;
  font-size: 19px;
  line-height: 1.6;
  color: #4b5563;
}

.guide_sponsor_brand {
  color: #03c75a;
  font-weight: 700;
  letter-spacing: 0;
}

.org_dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.org_dot.active {
  width: 28px;
  background: #ee3f60;
}

@media (max-width: 640px) {
  .event_footer {
    margin-top: 0;
    padding: 0 16px 92px;
  }

  .event_footer_inner {
    padding-top: 28px;
  }

  .event_footer_top,
  .event_footer_bottom {
    gap: 16px;
  }

  .event_footer_top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
  }

  .event_footer_bottom {
    flex-direction: column;
    align-items: stretch;
    padding-top: 16px;
  }

  .event_footer_brand {
    align-items: center;
  }

  .event_footer_logo img {
    height: 24px;
  }

  .event_footer_links {
    gap: 8px 14px;
  }

  .event_footer_tools {
    justify-content: space-between;
    gap: 10px;
  }

  .event_footer_sns {
    gap: 10px;
  }

  .event_footer_sns_link {
    width: 24px;
    height: 24px;
  }

  .event_footer_wa {
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 12px;
  }

  .event_footer_wa img {
    height: 34px;
  }

  .event_footer_info {
    gap: 6px;
  }

  .event_footer_meta {
    align-items: flex-start;
    gap: 8px;
  }

  .event_footer_info p,
  .event_footer_copy {
    font-size: 13px;
    line-height: 1.2;
  }

  #guide_area {
    margin: 0px auto 0px;
    padding-bottom: 16px;
  }

  #guide_area .more_info_merged {
    padding: 32px 28px;
  }

  .org_section_notice {
    margin-top: 24px;
    padding: 24px 18px;
  }

  .org_section_notice_title {
    font-size: 20px;
  }

  .org_section_notice_text,
  .guide_sponsor_text {
    font-size: 16px;
  }

  .home_section_wrap {
    padding: 0 24px;
  }

  #event_slider_area {
    padding: 0 16px !important;
  }

  .floating_back_btn {
    width: 48px;
    height: 48px;
    margin-top: -48px;
  }

  .org_section_header {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .org_slider_btn {
    width: 34px;
    height: 34px;
  }
}

/* 3. Event Detail Layer Popup */
.event_detail_dim {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.event_detail_popup {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.event_detail_popup::-webkit-scrollbar {
  width: 6px;
}

.event_detail_popup::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

.popup_close_btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  z-index: 10;
  font-size: 20px;
  color: #333;
  transition: all 0.2s;
}

.popup_close_btn:hover {
  background: #f8fafc;
  transform: scale(1.1);
}

.popup_hero_img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #cbd5e1;
}

.popup_content {
  padding: 30px;
}

.popup_badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.popup_badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.popup_badge_fee {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.popup_title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 24px;
}

.popup_meta_list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.popup_meta_list li {
  display: flex;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.popup_meta_icon {
  width: 24px;
  color: #64748b;
  margin-right: 8px;
  font-size: 18px;
}

.popup_meta_text {
  color: #334155;
  flex: 1;
}

.popup_map_btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  background: #ee3f60;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color 0.2s;
}

.popup_map_btn:hover {
  background: #d93454;
  color: #ffffff;
  text-decoration: none;
}

.popup_map_btn i {
  font-size: 13px;
}

.popup_map_btn[hidden] {
  display: none;
}

.popup_btn_wrap {
  display: flex;
  gap: 12px;
}

.popup_btn {
  flex: 1;
  height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.popup_btn_outline {
  border: 1px solid #e2e8f0;
  color: #475569;
  background: white;
}

.popup_btn_outline:hover {
  background: #f8fafc;
}

.popup_btn_primary {
  border: none;
  background: #ff6b00;
  color: white;
}

.popup_btn_primary:hover {
  background: #e65c00;
}

/* 4. PC Filter Bar (Search Result) */
.pc_filter_bar {
  display: none;
  /* Mobile hidden by default */
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .pc_filter_bar {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

.filter_select {
  padding: 10px 36px 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background-color: #f9fafb;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
  min-width: 160px;
}

.filter_select:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #ffffff;
}

/* 5. 썸네일 & 이미지 Overlay 배지 업데이트 */
.list_card_img_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #f1f5f9;
}

.list_card_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.list_view_card:hover .list_card_img_wrap img {
  transform: scale(1.05);
}

.card_img_overlays {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.overlay_badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: bold;
  color: white;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.overlay_badge_genre {
  background-color: rgba(37, 99, 235, 0.9);
  /* Blue 600 */
}

.overlay_badge_fee {
  background-color: rgba(17, 24, 39, 0.8);
  /* Gray 900 */
}

/* Pagination UI */
.pagination_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.page_btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.page_btn:hover {
  background: #f9fafb;
}

.page_btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.page_btn i {
  font-size: 18px;
}

/* Sub-Header Search Bar Refinement */
.sub_header_search_wrap {
  background-color: #f9fafb;
  padding: 20px 0;
}

.sub_header_search_inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.sub_header_search_bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #939597;
  border-radius: 30px;
  height: 54px;
  padding: 0 20px;
  transition: border-color 0.2s;
}

.sub_header_search_bar:focus-within {
  border-color: #6d6e70;
}

.sub_header_search_bar i {
  color: #939597;
  font-size: 20px;
  margin-right: 12px;
}

.sub_header_search_bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #374151;
  background: transparent;
}

.sub_header_search_bar input::placeholder {
  color: #9ca3af;
}

.sub_header_search_btn {
  background: none;
  border: none;
  color: #6d6e70;
  font-size: 20px;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Detailed Search Modal Redesign --- */
#detailSearchLayer {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  height: min(90vh, 920px);
  max-height: min(90vh, 920px);
  background: #ffffff;
  z-index: 10001;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex-direction: column;
}

@media (max-width: 640px) {
  #detailSearchLayer {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

.search_layer_header {
  padding: 24px 30px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search_layer_header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.search_layer_content {
  padding: 30px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}

.filter_group {
  margin-bottom: 32px;
}

.filter_row {
  display: block;
}

.filter_label {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 14px;
}

.filter_label i {
  margin-right: 8px;
  font-size: 18px;
  color: #ee3f60;
}

@media (min-width: 1024px) {
  #detailSearchLayer {
    height: 80vh;
    max-height: 80vh;
  }

  .filter_row {
    display: flex;
    gap: 16px;
  }

  .filter_group.filter_half {
    flex: 1;
    min-width: 0;
  }
}

/* Tag/Badge Selection */
.filter_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag_item input[type='checkbox'],
.tag_item input[type='radio'] {
  display: none;
}

.tag_item span {
  display: inline-block;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
}

.tag_item input:checked + span {
  background: #ffe4ea;
  border-color: #ee3f60;
  color: #ee3f60;
  font-weight: 600;
}

/* Date Range Inputs */
.date_range_wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date_input {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
  outline: none;
}

select.date_input {
  min-height: 50px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.4;
}

.date_input:focus {
  border-color: #ee3f60;
}

@media (max-width: 640px) {
  .date_range_wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }

  #layerSearchStartDate,
  #layerSearchEndDate {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
  }

  #layerEventTime2 {
    min-height: 46px;
    padding: 0 40px 0 12px;
    font-size: 13px;
  }
}

.ui-datepicker {
  z-index: 10002 !important;
}

#ui-datepicker-div {
  display: none;
}

@media (max-width: 489px) {
  #ui-datepicker-div {
    width: calc(100vw - 24px) !important;
    max-width: 320px;
    padding: 10px;
    box-sizing: border-box;
  }

  #ui-datepicker-div .ui-datepicker-header {
    padding: 8px 28px;
  }

  #ui-datepicker-div .ui-datepicker-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: normal;
  }

  #ui-datepicker-div .ui-datepicker-title .ui-datepicker-year,
  #ui-datepicker-div .ui-datepicker-title .ui-datepicker-month {
    float: none;
    width: calc(50% - 3px);
    min-width: 0;
  }

  #ui-datepicker-div .ui-datepicker-title select {
    width: 100%;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 28px 0 10px;
    font-size: 14px;
    box-sizing: border-box;
  }

  #ui-datepicker-div .ui-datepicker-prev,
  #ui-datepicker-div .ui-datepicker-next {
    top: 26px;
    transform: translateY(-50%);
  }

  #ui-datepicker-div .ui-datepicker-calendar th {
    padding: 6px 0;
    font-size: 13px;
  }

  #ui-datepicker-div .ui-datepicker-calendar td {
    padding: 0;
  }

  #ui-datepicker-div .ui-datepicker-calendar td a,
  #ui-datepicker-div .ui-datepicker-calendar td span {
    padding: 9px 0;
    font-size: 14px;
    text-align: center;
  }

  #ui-datepicker-div .ui-datepicker-buttonpane {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  #ui-datepicker-div .ui-datepicker-buttonpane button {
    margin: 0;
    white-space: nowrap;
  }
}

/* Modal Bottom Buttons */
.search_layer_bottom {
  padding: 20px 30px;
  background: #f8fafc;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.btn_reset {
  flex: 1;
  height: 54px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn_submit_filter {
  flex: 2;
  height: 54px;
  background: #ee3f60;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn_submit_filter:hover {
  background: #d12149;
}

/* =========================================================
 * Cultureday Slick 슬라이더 (#event_slider_area, #latest_news_area)
 * main.jsp story_video_area 와 동일한 컨트롤 구조 + cultureday 톤
 * ========================================================= */

#event_slider_area .top_title_area,
#latest_news_area .top_title_area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

#event_slider_area .top_title_area .upcoming_section_title,
#latest_news_area .top_title_area .upcoming_section_title {
  margin: 0;
}

#event_slider_area .control_area,
#latest_news_area .control_area {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#event_slider_area .control_area .dots,
#latest_news_area .control_area .dots {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

#event_slider_area .control_area .dots ul,
#latest_news_area .control_area .dots ul {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* dots 자체 점은 숨기고 활성 슬라이드의 "현재/전체" 텍스트만 노출 */
#event_slider_area .control_area .dots ul li,
#latest_news_area .control_area .dots ul li {
  display: none;
}

#event_slider_area .control_area .dots ul li.slick-active,
#latest_news_area .control_area .dots ul li.slick-active {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

#event_slider_area .control_area .dots .point,
#latest_news_area .control_area .dots .point {
  color: #ee3f60;
  font-weight: 700;
}

#event_slider_area .control_area .dots .total,
#latest_news_area .control_area .dots .total {
  color: #9ca3af;
}

#event_slider_area .control_area .play_area,
#latest_news_area .control_area .play_area {
  display: inline-flex;
  align-items: center;
}

#event_slider_area .control_area .play_area button,
#latest_news_area .control_area .play_area button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
}

#event_slider_area .control_area .play_area button:hover,
#latest_news_area .control_area .play_area button:hover {
  color: #ee3f60;
}

#event_slider_area .control_area .play_area button i,
#latest_news_area .control_area .play_area button i {
  font-size: 18px;
  line-height: 1;
}

/* 슬라이더 본체 wrapper - 화살표 위치 기준 */
.event_main_slider,
.latest_news_slider {
  position: relative;
}

.event_main_slider ul,
.latest_news_slider ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#event_slider_area .control_arrow,
#latest_news_area .control_arrow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

#event_slider_area .control_arrow button,
#latest_news_area .control_arrow button {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  color: #4b5563;
}

#event_slider_area .control_arrow button:hover,
#latest_news_area .control_arrow button:hover {
  background: #ee3f60;
  color: #fff;
}

#event_slider_area .control_arrow button i,
#latest_news_area .control_arrow button i {
  font-size: 22px;
  line-height: 1;
}

/* 768px 이하: 화살표 숨김 (main.jsp story_video_area 정책과 동일) */
@media (max-width: 768px) {
  #event_slider_area .control_arrow,
  #latest_news_area .control_arrow {
    display: none;
  }
}

/* --- 이벤트 배너 본체 --- */

.event_main_slider {
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
}

.event_main_slider .slide_item {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}

.event_main_slider .slide_item > a {
  display: block;
  width: 100%;
  height: 100%;
}

.event_main_slider .slide_bg_img.responsive_slide_bg {
  width: 100%;
  height: 100%;
  background-image: var(--slide-bg-pc);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .event_main_slider .slide_item {
    aspect-ratio: 4 / 3;
  }
  .event_main_slider .slide_bg_img.responsive_slide_bg {
    background-image: var(--slide-bg-mo, var(--slide-bg-pc));
  }
}

/* --- 최신소식 카드 (3-up 그리드 슬라이더) --- */

.latest_news_slider {
  background: transparent;
}

.latest_news_slider .slick-list {
  margin: 0 -10px;
  padding: 4px 0;
}

.latest_news_slider .slick-track {
  display: flex;
  align-items: stretch;
}

.latest_news_slider .slick-slide {
  height: auto;
  padding: 0 10px;
}

.latest_news_slider .slick-slide > * {
  height: 100%;
}

.latest_news_slider .slide_item {
  height: 100%;
}

.latest_news_slider .news_link {
  position: relative;
  display: block;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 150ms ease,
    transform 150ms ease;
}

.latest_news_slider .news_link:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.latest_news_slider .news_link:focus-visible {
  outline: 2px solid #ee3f60;
  outline-offset: 2px;
}

.latest_news_slider .img_area {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  overflow: hidden;
}

.latest_news_slider .thumb_bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.latest_news_slider .thumb_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest_news_slider .thumb_bg--placeholder {
  background-color: #f3f4f6;
}

/* 제목/날짜는 기본 숨김, 마우스 오버 시 이미지 위로 노출 (메인 '함께 만드는 문화 소식'과 동일) */
.latest_news_slider .subject {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px 22px;
  min-width: 0;
  color: #fff;
  background-color: #ee3f60;
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.latest_news_slider .news_link:hover .subject,
.latest_news_slider .news_link:focus-visible .subject {
  opacity: 1;
}

.latest_news_slider .news_title {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.latest_news_slider .news_date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .latest_news_slider .slick-list {
    margin: 0 -6px;
  }
  .latest_news_slider .slick-slide {
    padding: 0 6px;
  }
  /* 터치 기기는 hover가 없으므로 제목을 항상 노출 */
  .latest_news_slider .subject {
    opacity: 1;
    padding: 16px 16px 18px;
    background-color: rgba(238, 63, 96, 0.92);
  }
  .latest_news_slider .news_title {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .latest_news_slider .news_date {
    font-size: 12px;
  }
}

/* Search Result Header (검색 결과 상단 컨텍스트) */
.search_result_header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 24px 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.search_result_header_inner {
  min-width: 0;
  flex: 1;
}

.search_result_title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  word-break: keep-all;
  line-height: 1.3;
}

.search_result_meta {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.search_result_meta span {
  font-weight: 700;
  color: #ee3f60;
}

.search_result_detail_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
  flex-shrink: 0;
}

.search_result_detail_btn:hover {
  color: #ee3f60;
  border-color: #ee3f60;
  background: #fff5f7;
}

.search_result_detail_btn i {
  font-size: 15px;
}

/* 결과 내 검색 (인라인 필터 바) */
.result_inline_filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.result_inline_filter_group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.result_inline_filter_label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.result_inline_filter_select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.result_inline_filter_select:focus {
  outline: none;
  border-color: #ee3f60;
  box-shadow: 0 0 0 3px rgba(238, 63, 96, 0.12);
}

.result_inline_filter_apply {
  height: 38px;
  padding: 0 20px;
  background: #ee3f60;
  color: #fff;
  border: 1px solid #ee3f60;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}

.result_inline_filter_apply:hover {
  background: #d93454;
  border-color: #d93454;
}

@media (max-width: 768px) {
  .search_result_header {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 16px 16px;
    margin-bottom: 16px;
  }

  .search_result_title {
    font-size: 20px;
  }

  .search_result_detail_btn {
    align-self: flex-start;
    padding: 8px 14px;
    font-size: 13px;
  }

  .result_inline_filter {
    width: 100%;
  }

  .result_inline_filter_group {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }

  .result_inline_filter_apply {
    flex: 1 1 100%;
  }
}

/* === 문화요일 검색결과 필터바 (cd_filter_*) ===
 * search.jsp 에서 사용. 장르 / 시도 / 시군구 select 3개 + 적용 버튼.
 */
.cd_filter_bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cd_filter_field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
}

.cd_filter_field_label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}

.cd_filter_select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  min-width: 90px;
  padding: 0 24px 0 4px;
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
}

.cd_filter_select:focus {
  outline: none;
}

.cd_filter_select:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.cd_filter_field:focus-within {
  border-color: #ee3f60;
  box-shadow: 0 0 0 3px rgba(238, 63, 96, 0.12);
}

.cd_filter_apply {
  height: 38px;
  padding: 0 20px;
  background: #ee3f60;
  color: #fff;
  border: 1px solid #ee3f60;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.cd_filter_apply:hover {
  background: #d93454;
  border-color: #d93454;
}

@media (max-width: 768px) {
  .cd_filter_bar {
    width: 100%;
    gap: 6px;
  }
  .cd_filter_field {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 0;
    padding: 0 4px 0 10px;
  }
  .cd_filter_field_label {
    font-size: 11px;
  }
  .cd_filter_select {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 20px 0 2px;
  }
  .cd_filter_apply {
    flex: 1 1 100%;
    padding: 0 14px;
  }
}

/* 검색어 자동완성 드롭다운 */
.hero_suggest_list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-height: 360px;
  overflow-y: auto;
}

.hero_suggest_list[hidden] {
  display: none;
}

/* 인플로우 변형(상세검색 모달용): 절대배치 대신 흐름 안에서 아래 필터를 밀어냄.
   모달의 overflow:hidden / overflow-y:auto 에 의한 클리핑을 원천 회피. */
.hero_suggest_list--inline {
  position: static;
  margin-top: 6px;
  box-shadow: none;
  max-height: 240px;
}

.hero_suggest_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
}

.hero_suggest_item:hover {
  background: #f3f4f6;
}

.hero_suggest_type {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent; /* 아웃라인 배지(장소)와 크기 정렬 */
  color: #ffffff;
}

.hero_suggest_type--event {
  /* 브랜드 핑크 채움 — 활성 날짜칩(.benefit_date_chip.is-active)과 동일 패턴 */
  background: #ee3f60;
  border-color: #ee3f60;
}

.hero_suggest_type--venue {
  /* 브랜드 핑크 아웃라인 — has-events 칩과 동일 패턴, 행사(채움)와 시각 구분 */
  background: #ffffff;
  border-color: #ee3f60;
  color: #ee3f60;
}

.hero_suggest_text {
  flex: 1 1 auto;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero_suggest_match {
  background: transparent;
  color: #ee3f60; /* 브랜드 핑크 (사이트 전반 액센트와 통일) */
  font-weight: 700;
}
