/* ===========================
   CSS 변수 정의
=========================== */
:root {
    --container-max-width: 1280px;
    --section-padding: 80px;
    --section-padding-mobile: 40px;
    --border-radius: 14px;
    --transition-normal: 0.3s ease;
    --box-shadow: 0 8px 32px rgba(31, 64, 127, 0.18);
    --box-shadow-hover: 0 12px 40px rgba(31, 64, 127, 0.25);
}

/* ===========================
   기본 텍스트/헤더 영역
=========================== */
.to-go-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 40px);
    flex-wrap: wrap;
    text-align: center;
}

.to-go-second-text {
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 500;
}

/* 모바일 전용 줄바꿈 */
.mobile-break {
    display: none;
}

.to-go {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

/* ===========================
   버튼 스타일
=========================== */
.store-button {
    background: #FF8000;
    color: #fff;
    box-shadow: 0px 12px 16px #FF800069 !important;
    transition: all var(--transition-normal);
    padding: 10px 30px;
    border: none;
    border-radius: 28px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-button:hover {
    background: #ffa346;
    color: #fff;
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

/* 화살표 스타일 */
.arrow {
    position: relative;
    width: 70px;
    height: 31px;
}

.arrow::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 1px;
    bottom: 8px;
    height: 2px;
    background: currentColor;
}

.arrow::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: -12px;
    width: 14px;
    height: 2px;
    background: currentColor;
    transform-origin: left center;
    transform: rotate(223deg);
}

/* ===========================
   맵/리스트 레이아웃
=========================== */
.map-area {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 800px;
    max-height: none;
    overflow: visible;
}

/* 좌측 페이지네이션 컨테이너 */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    min-width: 200px;
    max-width: 300px;
    flex-shrink: 0;
    height: auto;
    min-height: 600px;
}

/* 페이지네이션 버튼 */
.pagination-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: 50%;
}

.pagination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 128, 0, 0.1);
    transform: scale(1.1);
}

.pagination-btn svg {
    display: block;
}

/* 가게 리스트 */
.restaurant-icon-nav {
    width: 100%;
}

.restaurant-icon-ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: visible;
}

.restaurant-icon-button {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 95%;
    box-sizing: border-box;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #003A6C;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: #fff;
}

.restaurant-icon-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.number-icon {
    background: #003A6C;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.active-button {
    background: #003A6C !important;
    color: #fff !important;
}

.active-number-button {
    background: #fff !important;
    color: #003A6C !important;
}

/* 지도 */
#map {
    margin-top:40px;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    min-height: 710px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.map-info-window-wrapper {
    overflow: visible !important;
}

.map-info-window-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.map-info-window-content {
    overflow: visible !important;
}

.map-info-window {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #ff7a00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 16px;
    white-space: nowrap;
}

.map-info-window__text {
    display: inline-block;
}

.map-info-window::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #ff7a00 transparent transparent transparent;
}

/* ===========================
   배너 섹션
=========================== */
.banner-image-1 {
    width: 100vw;
    height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: var(--section-padding);
}

.banner-image-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content {
    width: 100%;
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    margin: 0 auto;
    color: #fff;
}

.banner-head-text {
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-image-1 p {
    font-size: clamp(16px, 2vw, 20px);
    margin: 0;
    line-height: 1.4;
}

.highlight {
    color: #FF8000;
}

/* ===========================
   이벤트 섹션
=========================== */
.banner-image-event {
    display: flex;
    width: 100vw;
    min-height: 546px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 40px 260px;
    overflow: hidden;
}


.event-swiper {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
    opacity: 0;
    visibility: hidden;
}

.event-swiper.is-ready {
    opacity: 1;
    visibility: visible;
}

.event-swiper .swiper-wrapper {
    transition-property: none !important;
    transition-duration: 0ms !important;
}

.event-swiper .swiper-slide {
    transition-property: none !important;
    transition-duration: 0ms !important;
}

.event-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.event-card {
    width: 100%;
    max-width: 140px;
    height: 200px;
    background: center/cover no-repeat;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    padding: 15px;
    flex-direction: column;
    transition: box-shadow var(--transition-normal);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    justify-content: flex-end;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    transition: transform 0.2s ease, box-shadow var(--transition-normal);
}

.text-card {
    color: #003A6C;
    font-size: 28px;
    font-weight: 500;
    justify-content: center;
    height: 240px;
}

.text-card-border {
    font-weight: bolder;
}

.event-card-text {
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* 이벤트 스와이퍼 페이지네이션 숨김 */
.event-pagination {
    display: none !important;
}

/* ===========================
   뉴스 섹션
=========================== */
.news-section {
    padding: var(--section-padding) 0;
}

.news-head {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-head h2 {
    color: #003A6C;
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
}

.news-head p {
    color: #7A7A7A;
    margin: 0;
    font-size: clamp(14px, 2vw, 18px);
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #003A6C;
    line-height: 1.4;
}

.news-content .date {
    color: #7A7A7A;
    font-size: 14px;
    margin: 0;
}

/* ===========================
   플로팅 버튼 (모바일용)
=========================== */
.floating-restaurants-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FF8000;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 128, 0, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
    align-items: center;
    justify-content: center;
}

.floating-restaurants-btn:hover {
    background: #ffa346;
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 128, 0, 0.4);
}

.floating-restaurants-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ===========================
   모바일 레스토랑 오버레이
=========================== */
.mobile-restaurants-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.mobile-restaurants-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 25px 25px 0 0;
    padding: 25px 20px 35px;
    max-height: 70vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-restaurants-overlay.active .mobile-restaurants-container {
    transform: translateY(0);
}

.mobile-restaurants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-restaurants-title {
    font-size: 20px;
    font-weight: 700;
    color: #003A6C;
    margin: 0;
}

.close-mobile-restaurants {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.close-mobile-restaurants svg {
    width: 24px;
    height: 24px;
    fill: #666;
}

/* 관람차 형태 컴테이너 */
.mobile-restaurants-carousel {
    overflow: hidden;
    position: relative;
    height: 320px;
}

.mobile-restaurants-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-restaurant-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    padding: 0 5px;
    height: 100%;
}

.mobile-restaurant-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-restaurant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #FF8000, #ffa346);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-restaurant-card:hover {
    border-color: #FF8000;
    box-shadow: 0 8px 20px rgba(255, 128, 0, 0.15);
}

.mobile-restaurant-card:hover::before {
    opacity: 0.05;
}

.mobile-restaurant-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #FF8000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}

.mobile-restaurant-name {
    font-size: 14px;
    font-weight: 600;
    color: #003A6C;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.mobile-restaurant-card.active {
    border-color: #003A6C;
    background: #003A6C;
}

.mobile-restaurant-card.active .mobile-restaurant-number {
    background: #fff;
    color: #003A6C;
}

.mobile-restaurant-card.active .mobile-restaurant-name {
    color: #fff;
}

/* Placeholder 카드 스타일 */
.mobile-restaurant-placeholder {
    background: transparent;
    border: 2px dashed #e0e0e0;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    opacity: 0.3;
    pointer-events: none;
}

.mobile-restaurant-placeholder .mobile-restaurant-number {
    background: #e0e0e0;
    color: #999;
}

.mobile-restaurant-placeholder .mobile-restaurant-name {
    color: #999;
}

/* 네비게이션 버튼 */
.mobile-restaurants-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.mobile-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mobile-nav-btn:not(:disabled):hover {
    background: #FF8000;
    transform: scale(1.05);
}

.mobile-nav-btn:not(:disabled):hover svg {
    fill: #fff;
}

.mobile-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: #666;
    transition: fill 0.3s ease;
}

/* 페이지 인디케이터 */
.mobile-page-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-dot.active {
    background: #FF8000;
    transform: scale(1.2);
}

/* ===========================
   반응형 미디어 쿼리
=========================== */

/* 대형 데스크톱 (≥1200px) */
@media (min-width: 1200px) {
    .pagination-container {
        width: 300px;
        min-height: 700px;
    }
    
    .restaurant-icon-ul {
        gap: 18px;
    }
    
    .restaurant-icon-button {
        padding: 14px;
        font-size: 16px;
    }
}

/* 태블릿 (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    .map-area {
        max-height: none;
        min-height: 500px;
    }
    
    .to-go {

        justify-content: center;
        text-align: center;
    }
    
    .pagination-container {
        width: 220px;
    }
    
    .banner-image-1 {
        margin-top: 60px;
    }
    
    .event-swiper {
        padding: 0 12px;
    }
    
    .event-card {
        max-width: 140px;
        height: 180px;
        font-size: 17px;
        padding: 12px;
    }
    
    .news-section {
        padding: 60px 0;
    }
}

/* 모바일 (≤768px) */
@media (max-width: 768px) {
    :root {
        --section-padding-mobile: 30px;
    }
    
    /* 상단 영역 */
    .to-go {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
        padding: 0 15px;
        margin-top: 10px;
    }
    
    .to-go-text {
        justify-content: center;
        gap: 12px;
        font-size: clamp(24px, 6vw, 32px);
        line-height: 1.3;
        flex-wrap: nowrap;
        max-width: 90%;
    }
    
    .mobile-break {
        display: block;
    }
    
    .to-go-text img {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    /* 버튼 스타일 변경 */
    .store-button {
        background: #fff;
        color: #FF8000;
        box-shadow: none;
        border: 2px solid #FF8000;
        align-self: center;
        width: 100%;
        min-width: 0;
        max-width: 320px;
        padding: 20px 30px;
        justify-content: center;
        border-radius: 25px;
    }
    
    .to-go-second-text {
        font-size: clamp(18px, 4vw, 22px);
        font-weight: 600;
        white-space: normal;
        text-align: center;
    }
    
    .store-button:hover {
        color: #fff;
        background: #FF8000;
        box-shadow: 0 8px 12px rgba(255, 128, 0, 0.3);
    }
    
    .arrow {
        display: none;
    }
    
    /* 지도 영역 - 모바일에서는 지도만 표시 */
    .map-area {
        flex-direction: column;
        gap: 0;
        margin-bottom: 40px;
        max-height: none;
        min-height: auto;
        width: 100%;
        padding: 0 16px;
    }
    
    .pagination-container {
        display: none;
    }
    
    #map {
        width: 100%;
        height: 320px;
        min-height: 320px;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }
    
    /* 플로팅 버튼 표시 */
    .floating-restaurants-btn {
        display: flex;
    }
    
    /* 배너 */
    .banner-image-1 {
        height: 260px;
        margin: var(--section-padding-mobile) 16px;
        width: calc(100% - 32px);
        border-radius: 18px;
    }

    .banner-content {
        padding: 0 18px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    /* 이벤트 섹션 */
    .banner-image-event {
        width: calc(100% - 32px);
        min-height: 260px;
        margin: 0 16px 32px;
        padding: 16px 0 28px;
        border-radius: 18px;
    }

    .event-swiper {
        padding: 0 18px;
    }

    .event-card {
        max-width: 150px;
        height: 150px;
        font-size: 15px;
        padding: 12px;
    }
    
    .text-card {
        font-size: 24px;
        height: 200px;
    }
    
    .event-card-text {
        margin: 2px 0;
    }
    
    /* 모바일 레스토랑 오버레이 관련 */
    .mobile-restaurants-container {
        padding: 22px 18px 30px;
        max-height: 72vh;
    }
    
    .mobile-restaurants-title {
        font-size: 20px;
    }
    
    .mobile-restaurants-carousel {
        height: 300px;
    }

    .mobile-restaurant-card {
        padding: 14px 10px;
    }
    
    .mobile-restaurant-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .mobile-restaurant-name {
        font-size: 14px;
    }
    
    .mobile-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .mobile-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* 뉴스 섹션 */
    .news-section {
        padding: calc(var(--section-padding-mobile) + 10px) 16px;
    }
    
    .news-head {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .news-image {
        height: 170px;
    }

    .news-content {
        padding: 18px;
    }
    
    .news-content h3 {
        font-size: 16px;
    }
}

/* 소형 모바일 (≤480px) */
@media (max-width: 480px) {
    .to-go {
        gap: 20px;
        padding: 0 10px;
    }
    
    .to-go-text {
        gap: 10px;
        font-size: clamp(20px, 5.5vw, 26px);
    }
    
    .to-go-text img {
        width: 28px;
        height: 28px;
    }
    
    .store-button {
        max-width: 280px;
        padding: 18px 20px;
    }
    
    .to-go-second-text {
        font-size: clamp(16px, 4vw, 20px);
    }
    
    .arrow {
        display: none;
    }
    
    /* 모바일 레스토랑 오버레이 조정 */
    .mobile-restaurants-container {
        padding: 18px 14px 26px;
        max-height: 70vh;
    }
    
    .mobile-restaurants-title {
        font-size: 18px;
    }
    
    .mobile-restaurants-carousel {
        height: 260px;
    }
    
    .mobile-restaurant-card {
        padding: 12px 8px;
    }
    
    .mobile-restaurant-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .mobile-restaurant-name {
        font-size: 12px;
    }
    
    .mobile-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .mobile-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    #map {
        height: 280px;
        min-height: 260px;
        border-radius: 14px;
    }

    .floating-restaurants-btn {
        width: 52px;
        height: 52px;
        bottom: 25px;
        left: 15px;
    }
    
    .floating-restaurants-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .banner-image-1 {
        height: 300px;
    }
    
    .banner-image-event {
        min-height: 280px;
        padding: 15px 0;
    }
    
    .event-card {
        max-width: 140px;
        height: 150px;
        font-size: 15px;
        padding: 8px;
    }
    
    .text-card {
        font-size: 22px;
        height: 180px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content h3 {
        font-size: 15px;
    }
    
    .news-content .date {
        font-size: 13px;
    }
}

/* 매우 소형 모바일 (≤320px) */
@media (max-width: 320px) {
    .to-go {
        gap: 18px;
        padding: 0 8px;
    }
    
    .to-go-text {
        gap: 8px;
        font-size: clamp(18px, 5.5vw, 22px);
    }
    
    .to-go-text img {
        width: 24px;
        height: 24px;
    }
    
    .store-button {
        min-width: 160px;
        max-width: 220px;
        padding: 16px 20px;
    }
    
    .to-go-second-text {
        font-size: clamp(14px, 4vw, 18px);
    }
    
    .arrow {
        width: 50px;
        height: 20px;
    }
    
    /* 모바일 레스토랑 오버레이 더 컴팩트 */
    .mobile-restaurants-container {
        padding: 18px 12px 25px;
        max-height: 80vh;
    }
    
    .mobile-restaurants-title {
        font-size: 16px;
    }
    
    .mobile-restaurants-carousel {
        height: 250px;
    }
    
    .mobile-restaurant-card {
        padding: 10px 6px;
    }
    
    .mobile-restaurant-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .mobile-restaurant-name {
        font-size: 11px;
    }
    
    .floating-restaurants-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 12px;
    }
    
    .floating-restaurants-btn svg {
        width: 20px;
        height: 20px;
    }
    
    #map {
        height: 250px;
        min-height: 250px;
    }
    
    .banner-image-event {
        min-height: 260px;
        padding: 10px 0;
    }
    
    .event-card {
        max-width: 140px;
        height: 140px;
        font-size: 14px;
        padding: 6px;
    }
    
    .text-card {
        font-size: 20px;
        height: 160px;
    }
    
    .event-card-text {
        margin: 1px 0;
    }
}

/* 가로 모드 대응 (태블릿) */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 768px) {
    .map-area {
        max-height: 50vh;
        min-height: 400px;
    }
    
    .banner-image-1 {
        height: 60vh;
    }
    
    .banner-image-event {
        min-height: 60vh;
    }
}
