/*
 * 마맵 메인 리뉴얼 v2 전용 CSS
 * 기존 CSS 수정 금지 - 이 파일에서만 작업
 */

/* ===== Section Layout ===== */
.v2-section {
    padding: 24px 15px;
    background: #f9f9f9;
}

/* ===== Header background ===== */
.header_v1 {
    background: #f9f9f9;
}

.header_v1 .Nheader_top {
    background: #f9f9f9;
}

.header_v1 .Nheader_middle {
    background: #f9f9f9;
}

.header_v1 .header_bottom_korea {
    background: #f9f9f9;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 24px;
}

.v2-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding: 0;
    line-height: 1.4;
    text-align: left;
}

.v2-section-title em {
    font-style: normal;
    color: #116ee3;
}

/* ===== Horizontal Scroll List ===== */
.v2-scroll-list {
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    padding: 0;
    margin: 0;
}

.v2-scroll-list::-webkit-scrollbar {
    display: none;
}

.v2-scroll-list {
    -ms-overflow-style: none;
}

.v2-scroll-list > li {
    display: inline-block !important;
    vertical-align: top;
}

/* ===== Override base CSS heights within v2 sections ===== */
.v2-section .v1_m_reserve {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
}

.v2-section .v1_m_comment {
    width: 100%;
    height: auto !important;
    overflow: visible;
}

.v2-section .m_v2_near_area {
    width: 100%;
}

/* ===== Card base (moved from inline style) ===== */
.v2-section .v1_reserve_img {
    float: left;
    margin: 0 10px 0 0;
    width: 230px;
    background: none;
    border-radius: 8px;
}

.v2-section .v1_reserve_img .v2-thumb-td {
    position: relative;
}

.v2-section .v1_reserve_img .v2-thumb-td > img {
    background-position: center;
    border-radius: 8px 8px 0 0;
    max-width: 100%;
    width: 230px;
    height: 150px;
    overflow: hidden;
    object-fit: cover;
}

.v2-section .v1_reserve_img table .shop_buy {
    font-size: 0.9375rem;
    padding: 8px 14px 14px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
}

.v1_reserve_img table .shop_buy em.v2-discount-rate {
    color: #ff6a3d;
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 2px;
}

.v2-section .v1_reserve_img table .shop_title {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 14px 4px;
    color: #111;
}

.v2-section .v1_reserve_img table .shop_adress {
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 0 14px;
    color: #6b7280;
}

.v2-section .v1_reserve_img table .shop_adress .v2-grade {
    color: #000;
    font-weight: 600;
}

/* ===== Review card ===== */
.v2-section-review .v1_m_comment {
    padding-bottom: 10px;
}

.v2-section .v1_comment_img {
    margin: 0 10px 10px 0;
    width: 200px;
}

.v2-section .v1_comment_img table {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    background: #fff;
}

.v2-section .v1_comment_img div.nicname {
    padding: 6px 10px;
    line-height: 24px;
    font-size: 0.8rem;
}

.v2-section .v1_comment_img div.nicname .profile-pic {
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.v2-section .v1_comment_img div.date {
    padding: 6px 10px;
    line-height: 24px;
    height: auto;
}

.v2-section .v1_m_comment_tb_img > img {
    width: 200px !important;
    height: 160px !important;
}

.v2-section .v1_comment_img .Sstar {
    height: 16px !important;
    width: 16px !important;
}

.v2-section .v1_m_comment_tb_img div.v1_m_comment_black_bg {
    width: 200px !important;
    height: 160px !important;
}

.v2-section .v1_comment_img table .shop_title {
    font-size: 0.85rem;
    padding: 8px 10px 3px;
}

.v2-section .v1_comment_img table .shop_adress {
    font-size: 0.75rem;
    padding: 0 10px;
}

.v2-section .v1_comment_img table .shop_adress .v2-grade {
    color: #000;
    font-weight: 600;
}

.v2-section .v1_comment_img table .shop_buy {
    font-size: 0.75rem;
    padding: 3px 10px 10px;
}

.v2-section .v1_m_comment_tb_img .title_1 {
    top: 28px;
    left: 10px;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-image: url('https://img.mamap.co.kr/images/ico/m_contents_icon.png');
}

.v2-section .v1_m_comment_tb_img .title_2 {
    top: 65px;
    left: 10px;
    width: 170px;
    font-size: 0.9rem;
    font-weight: 600;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.v2-section .v1_m_comment_tb_img .contents {
    top: 90px;
    left: 10px;
    width: 170px;
    font-size: 0.8rem;
    height: 55px;
    overflow: hidden;
    line-height: 1.5;
}

/* ===== Near card spacing ===== */
.v2-section .m_v2_near li {
    margin-right: 10px;
}

/* ===== Subway POI Badge ===== */
.v2-subway-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid rgba(37,99,235,.15);
    border-radius: 4px;
    padding: 1px 5px;
    vertical-align: middle;
}

.v2-distance-text {
    color: #000;
    font-weight: 600;
}

.v2-section .m_v2_near_item div.near_con {
    display: flex;
    flex-direction: column;
}

.v2-section .m_v2_near_item div.near_con p.v1_space {
    text-align: right;
    margin-top: auto;
    color: #999;
}

/* ===== Container background ===== */
#container {
    background: #f9f9f9;
}

/* ===== Area Menu (moved from inline style) ===== */
.v2-section-area .global_menu_item em {
    position: absolute;
    margin-top: 22px;
    text-align: center;
    width: 100%;
    z-index: 1;
    font-weight: bold;
    color: #fff;
    font-style: normal;
}

.v2-section-area .global_menu_item img {
    filter: brightness(70%);
}

.v2-section-area .global_menu_item.on img.on {
    border: 2px solid #fff;
    border-radius: 50%;
}

.v2-section-area .global_menu p {
    margin-top: 10px;
    font-weight: 600;
    color: #343434;
}

.v2-section-area .global_menu p.on {
    margin-top: 9px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-position: under;
}

.v2-section-area {
    background: #f1f1f1;
}

.v2-section-area #main_menu_v2 li {
    cursor: pointer;
    margin-top: 5px;
}

.v2-section-area .global_menu {
    height: 66px;
}

.v2-section-area .global_menu p {
    margin-top: 6px;
}

/* ===== Premium(추천샵) Section ===== */
.v2-section-premium {
    background: #f1f1f1;
}

.v2-section-premium .v2-section-title .v2-recommend-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 4px;
    font-size: 0.58rem;
    font-weight: 600;
    font-style: italic;
    color: #b85a4d;
    background: #fff0ee;
    border: 1px solid rgba(255,80,56,.15);
    border-radius: 3px;
    vertical-align: middle;
}

.v2-section-premium .v1_reserve_img {
    background: #fff !important;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none !important;
    height: 275px;
}

.v2-section-premium .v1_reserve_img .v2-thumb-td > img {
    border-radius: 0;
}

.v2-section-premium .v1_reserve_img table .shop_buy {
    min-height: 60px;
}


/* ===== HOT / Pay 카드 (작은 사이즈) ===== */
.v2-section-hot .v1_reserve_img,
.v2-section-pay .v1_reserve_img {
    width: 200px;
}

.v2-section-hot .v1_reserve_img .v2-thumb-td > img,
.v2-section-pay .v1_reserve_img .v2-thumb-td > img {
    width: 200px;
    height: 117px;
    border-radius: 8px;
}

.v2-section-hot .v1_reserve_img table .shop_title,
.v2-section-pay .v1_reserve_img table .shop_title {
    padding: 12px 0 4px;
}

.v2-section-hot .v1_reserve_img table .shop_adress,
.v2-section-pay .v1_reserve_img table .shop_adress {
    padding: 0 0;
}

.v2-section-hot .v1_reserve_img table .shop_buy,
.v2-section-pay .v1_reserve_img table .shop_buy {
    padding: 8px 0 14px;
}

/* ===== Zero-margin Price ===== */
.v2-zero-price {
    margin-top: 2px;
}

.v2-zero-price-amount {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #c41e3a;
}

.ct-price-zeromargin-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.70rem;
    font-weight: 700;
    color: #c41e3a;
    background: linear-gradient(135deg, #fdf2f4 0%, #fbe3e7 100%);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(196, 30, 58, 0.25);
    margin-right: 2px;
}

/* ===== Event Section ===== */
.v2-section-event {
    padding: 15px 15px 24px;
}

.v2-section-event .main_event {
    height: auto;
    max-height: none;
    overflow: hidden;
}

.v2-section-event .main_event img {
    width: 100%;
    height: auto;
    max-height: none;
}

/* ===== Partner & Help (moved from inline style) ===== */
.v2-section-cta {
    padding: 0;
    background: none;
    margin-top: 10px;
}

/* ===== Footer (moved from inline style) ===== */
.v2-section-footer {
    width: 100%;
    padding: 15px;
    min-height: 250px;
    position: relative;
    background: #f7f9fa;
    margin: 0 0 20px 0;
}

.v2-section-footer ul li {
    float: left;
    text-align: left;
    width: 100%;
}

.v2-section-footer ul li.logo {
    font-size: 1.2rem;
    color: #bfbfbf;
    font-weight: 600;
    padding: 10px 0 10px 0;
    position: relative;
}

.v2-section-footer ul li.logo a {
    position: absolute;
    right: 0;
    top: 13px;
    font-size: 0.8rem;
    color: #c0c0c0;
}

.v2-section-footer ul li.my_policy {
    font-size: 0.8rem;
    color: #c0c0c0;
    padding: 0px 0 10px 0;
}

.v2-section-footer ul li.my_policy a {
    color: #c0c0c0;
}

.v2-section-footer ul li.my_guide {
    font-size: 0.8rem;
    color: #333;
    min-height: 50px;
}

.v2-section-footer ul li.my_sns {
    height: 40px;
    text-align: right;
}

/* Company info details */
details.company_view > summary.manager_info::-webkit-details-marker {
    display: none;
}

summary.company_info {
    width: 100%;
    font-size: 0.8rem;
    color: #c0c0c0;
    outline: none;
    text-align: right;
    cursor: pointer;
    position: absolute;
    list-style: none;
    top: 13px;
}

details > summary.company_info::after {
    content: "";
    right: 0px;
    top: 16px;
    float: left;
}

details[open] > summary.company_info::after {
    content: "";
    right: 0px;
    font-size: 1.7rem;
}

.company_contents {
    width: 100%;
    font-size: 0.8rem;
    line-height: 20px;
    padding: 0px;
    margin-top: 7px;
    font-weight: 400;
    position: relative;
}

/* ===== Popup Layer (moved from inline style) ===== */
.online_event {
    width: 100%;
    max-width: 480px;
    position: absolute;
    z-index: 9999;
    top: 120px;
    left: 10%;
}

.online_event img {
    border-radius: 20px;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

.online_event div.banner_f {
    color: #fff;
    font-size: 1.0rem;
    font-weight: 600;
    cursor: pointer;
}
