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

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

/* Layout & Typography */
.event_micropage {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f9fafb;
    /* bg-gray-50 */
    min-height: 800px;
}

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

/* Tabs */
.event_tab_wrap ul {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    /* border-gray-200 */
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.event_tab_wrap li {
    flex: 1;
    text-align: center;
}

.tab_link,
.tab_link_external {
    display: block;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #4b5563;
    /* text-gray-600 */
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab_link.active {
    color: #ea580c;
    /* text-orange-600 */
    border-bottom-color: #ea580c;
}

.tab_link:hover {
    color: #ea580c;
}

/* Map View container */
.map_view_container {
    display: flex;
    flex-direction: column;
    height: 600px;
    background-color: #ffffff;
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
    border: 1px solid #e5e7eb;
    /* border-gray-200 */
    overflow: hidden;
}

@media (min-width: 1024px) {
    .map_view_container {
        flex-direction: row;
    }
}

/* Map Area (70%) */
.map_area {
    width: 100%;
    height: 300px;
    position: relative;
}

@media (min-width: 1024px) {
    .map_area {
        width: 70%;
        height: 100%;
    }
}

/* List Area (30%) in Map View */
.map_event_sidebar {
    width: 100%;
    height: 300px;
    overflow-y: auto;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    padding: 16px;
}

@media (min-width: 1024px) {
    .map_event_sidebar {
        width: 30%;
        height: 100%;
        border-top: none;
        border-left: 1px solid #e5e7eb;
    }
}

.map_sidebar_title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 16px;
    padding: 0 8px;
}

.map_sidebar_title span {
    color: #2563eb;
    /* text-blue-600 */
}

/* Map Sidebar List Item */
.map_sidebar_item {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    /* border-gray-100 */
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

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

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

.msi_genre {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.msi_venue {
    font-size: 13px;
    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: 13px;
    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: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map_sidebar_date {
    font-size: 12px;
    color: #9ca3af;
    /* text-gray-400 */
    font-weight: 500;
}

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

.map_sidebar_item:hover .map_sidebar_item_title {
    color: #2563eb;
    /* group-hover:text-blue-600 */
}

.map_sidebar_location {
    font-size: 12px;
    color: #6b7280;
    /* text-gray-500 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

/* Map Marker Infowindow */
.custom_infowindow {
    background: #fff;
    padding: 6px 12px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    white-space: nowrap;
}

.custom_infowindow_title {
    font-size: 12px;
    font-weight: bold;
    color: #111827;
}


/* 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;
}

.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);
    }
}

/* 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;
}


/* Calendar View */
.cal_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;
}

.cal_view_title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.cal_view_title i {
    font-size: 24px;
    color: #f97316;
    /* text-orange-500 */
    margin-right: 8px;
}

.cal_date_group {
    position: relative;
    padding-left: 16px;
    border-left: 2px solid #fed7aa;
    /* border-orange-200 */
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .cal_date_group {
        padding-left: 32px;
    }
}

.cal_date_dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #f97316;
    /* bg-orange-500 */
    border-radius: 9999px;
    left: -9px;
    top: 4px;
    border: 4px solid #ffffff;
}

.cal_date_label {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 16px;
}

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

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

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

.cal_event_item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background-color: #f9fafb;
    /* bg-gray-50 */
    border-radius: 0.75rem;
    /* rounded-xl */
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.cal_event_item:hover {
    background-color: #fff7ed;
    /* hover:bg-orange-50 */
    border-color: #fed7aa;
    /* hover:border-orange-200 */
}

.cal_event_img {
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
}

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

.cal_event_genre {
    padding: 2px 8px;
    background-color: #ffffff;
    color: #ea580c;
    /* text-orange-600 */
    border: 1px solid #ffedd5;
    /* border-orange-100 */
    font-size: 10px;
    font-weight: bold;
    border-radius: 9999px;
    margin-right: 8px;
    display: inline-block;
    margin-bottom: 4px;
}

.cal_event_title {
    font-size: 14px;
    font-weight: bold;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.cal_event_item:hover .cal_event_title {
    color: #ea580c;
}

.cal_event_location {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.cal_event_location i {
    margin-right: 4px;
}

/* Benefit Section */
.upcoming_section_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    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: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

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

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

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

.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: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #f0ccd4;
    background: #ffffff;
    color: #ee3f60;
    font-size: 22px;
    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(7, minmax(0, 1fr));
    gap: 12px;
    flex: 1;
}

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

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

.benefit_date_chip_num {
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.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 10px 20px rgba(238, 63, 96, 0.24);
}

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

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

.benefit_event_card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #ee3f60;
    border-radius: 16px;
    padding: 22px 20px;
    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 {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit_card_venue {
    display: block;
    margin-bottom: 10px;
    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: 52px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    color: #111827;
}

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

.benefit_card_meta p {
    margin: 0;
    line-height: 1.5;
}

.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: flex-start;
        flex-direction: column;
    }

    .benefit_section_meta {
        width: 100%;
        justify-content: space-between;
    }

    .benefit_date_nav {
        gap: 10px;
    }

    .benefit_date_chips {
        gap: 8px;
        overflow-x: auto;
        display: flex;
        padding-bottom: 4px;
    }

    .benefit_date_chip {
        min-width: 68px;
        min-height: 68px;
    }

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

.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;
}

/* 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;
}

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

.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;
}

/* 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;
    }
}


.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%;
}

.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%;
    background: linear-gradient(135deg, #fff6f8 0%, #fff1f4 52%, #fde7ec 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px 52px;
    overflow-y: hidden;
}

.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 {
    display: flex;
    align-items: center;
    width: 100%;
    height: 58px;
    background: #ffffff;
    border-radius: 34px;
    padding: 0 8px 0 24px;
    border: 1px solid #f5c8d1;
    box-shadow: 0 12px 28px rgba(238, 63, 96, 0.12);
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hero_search_bar_wrap:hover {
    border-color: #ee3f60;
    box-shadow: 0 16px 34px rgba(238, 63, 96, 0.18);
}

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

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

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

.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: 40px 16px 36px;
    }

    .hero_search_title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .hero_search_bar_wrap {
        height: 52px;
    }

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

/* 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;
}

/* 문화가 있는 날 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_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

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

.org_item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #6b7280;
    transition: border-color 0.2s;
    cursor: pointer;
}

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

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

/* 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_genre {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

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

.popup_title {
    font-size: 24px;
    font-weight: 800;
    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_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 */
}

/* Calendar Image Thumbs */
.cal_thumb_img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 16px;
    background-color: #e2e8f0;
    flex-shrink: 0;
}

/* 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;
    border-bottom: 1px solid #e5e7eb;
}

.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;
    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: 800;
    color: #111827;
}

.search_layer_content {
    padding: 30px;
    overflow-y: auto;
    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 {
        max-height: 80vh;
    }

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

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

/* Radio Tab Style for View Mode */
.view_mode_tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.view_mode_tabs label {
    flex: 1;
}

.view_mode_tabs input[type="radio"] {
    display: none;
}

.view_mode_tabs span {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.view_mode_tabs input[type="radio"]:checked+span {
    background: #ffffff;
    color: #EE3F60;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 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;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    outline: none;
}

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

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

/* 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;
}

/* Event Main Slider */
.event_main_slider_container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f1f5f9;
    border-radius: 24px;
    overflow: hidden;
}

.slider_track_wrap {
    width: 100%;
    height: 100%;
}

.slider_track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide_item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    z-index: 1;
}

.slide_item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide_bg_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s linear;
}

.slide_item.active .slide_bg_img {
    transform: scale(1.1);
}

.slide_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.slide_content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    color: #fff;
    max-width: 800px;
}

.slide_badge {
    display: inline-block;
    padding: 4px 12px;
    background: #EE3F60;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 20px;
    width: fit-content;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.3s;
}

.slide_title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    word-break: keep-all;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.4s;
}

.slide_desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    word-break: keep-all;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.5s;
}

.slide_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.6s;
}

.slide_item.active .slide_badge,
.slide_item.active .slide_title,
.slide_item.active .slide_desc,
.slide_item.active .slide_btn {
    transform: translateY(0);
    opacity: 1;
}

.slide_btn:hover {
    background: #EE3F60;
    color: #fff;
    padding-right: 35px;
}

.slider_nav_wrap {
    position: absolute;
    bottom: 40px;
    right: 80px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 30px;
}

.slider_dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: #fff;
}

.slider_arrows {
    display: flex;
    gap: 10px;
}

.arrow_btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    padding: 0;
}

.arrow_btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 1024px) {
    .event_main_slider_container {
        height: 500px;
        border-radius: 0;
    }

    .slide_content {
        padding: 0 40px;
    }

    .slider_nav_wrap {
        right: 40px;
    }

    .slide_title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .slide_content {
        padding: 0 20px;
    }

    .slider_nav_wrap {
        right: 20px;
        bottom: 20px;
    }

    .slide_title {
        font-size: 28px;
    }

    .slide_desc {
        font-size: 16px;
        margin-bottom: 20px;
    }
}
