/* ==============================================
   모바일 전용 스타일 (768px 이하)
   ==============================================
   이 파일은 모바일 디바이스에서만 로드됩니다.
   완전히 새로운 모바일 디자인을 여기에 작성하세요.
   ============================================== */

/* 모바일 기본 스타일 */
@media (max-width: 768px) {
    /* 전체 레이아웃 재설정 */
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        max-width: 100%;
        padding: 0;
        box-shadow: none;
    }

    /* Content Wrapper 및 Content Inner 모바일에서 무효화 */
    .content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .content-inner {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .content-inner .main-content {
        padding: 0 !important;
    }

    /* 헤더 모바일 스타일 */
    .site-header {
        padding: 5px 0;
        position: relative;
    }

    .header-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative;
        padding: 0.65rem 0.5rem 0.45rem 0.5rem;
    }

    /* 햄버거 메뉴 버튼 */
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 22px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
        transition: color 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        color: #FF7700;
    }

    .mobile-menu-toggle:focus {
        outline: none;
    }

    /* 로고 중앙 정렬 */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }

    .logo-image {
        height: 28px;
    }

    /* 데스크톱 네비게이션 숨김 */
    .main-nav {
        display: none !important;
    }

    .header-actions {
        display: none !important;
    }

    /* 모바일 메뉴 오버레이 */
    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 모바일 메뉴 (슬라이드) */
    .mobile-nav {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .mobile-nav.active {
        left: 0;
    }

    /* 모바일 메뉴 헤더 */
    .mobile-nav-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        background: #f8f9fa;
    }

    .mobile-menu-close {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        transition: color 0.3s ease;
    }

    .mobile-menu-close:hover {
        color: #FF7700;
    }

    /* 모바일 메뉴 리스트 */
    .mobile-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .mobile-nav-link:hover {
        background: #f8f9fa;
        color: #FF7700;
    }

    .mobile-nav-link i {
        margin-right: 12px;
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

    /* 모바일 메뉴에서 챗봇 배지 위치 조정 - '챗봇' 텍스트 옆에 나열 */
    .mobile-nav-link .aillee-badge {
        position: static !important;
        display: inline-block !important;
        margin-left: 8px !important;
        vertical-align: middle !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
    }

    /* 모바일 서브메뉴 */
    .mobile-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-nav-item.active .mobile-submenu {
        max-height: 500px;
    }

    .mobile-submenu li {
        border-bottom: 1px solid #e0e0e0;
    }

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

    .mobile-submenu a {
        display: block;
        padding: 12px 20px 12px 52px;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .mobile-submenu a:hover {
        background: #f0f0f0;
        color: #FF7700;
    }

    /* 검색 컨테이너 모바일 스타일 */
    .search-container {
        margin: 5px 10px;
        padding: 15px;
        border-radius: 12px;
    }

    .search-input-group {
        flex-direction: row;
        padding: 12px;
    }

    .search-input {
        font-size: 14px;
    }

    .search-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* 광고 컨테이너 모바일 스타일 */
    /* 데스크톱 광고 컨테이너 숨김 */
    #adsense-container.desktop-ad {
        display: none !important;
    }

    /* 모바일 광고 컨테이너 표시 */
    #mobile-adsense-container.mobile-ad {
        display: block !important;
        margin-top: 0 !important;
    }

    /* 뉴스 및 커뮤니티 섹션 모바일 스타일 */
    .news-section .container > div {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .news-container {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    /* 태국 여행 뉴스 헤더 margin-bottom 조정 */
    .news-header {
        padding-bottom: 5px !important;
        margin-bottom: 0px !important;
    }

    .community-container {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    /* 커뮤니티 헤더 margin-bottom 조정 */
    .community-header {
        padding-bottom: 5px !important;
        margin-bottom: 0px !important;
    }

    .news-item,
    .community-item {
        padding: 12px 0;
    }

    /* 태국 여행 뉴스 이미지 크기 20% 축소 */
    .news-image-wrapper {
        width: 96px !important;
        height: 72px !important;
    }

    /* 환율 티커 모바일 스타일 */
    .exchange-info-section > div {
        flex-direction: column;
        gap: 10px;
    }

    .domestic-exchange,
    .thailand-exchange {
        width: 100%;
        padding: 12px;
    }

    /* 그리드 시스템 모바일 */
    .spotlight-grid,
    .hotel-grid,
    .tour-services-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* 할인/쿠폰 그리드는 desktop-slide 제외 */
    .flight-coupons-grid:not(.desktop-slide) {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* 관광지 섹션 모바일: 2개씩 1줄 표시 (50% 50%) */
    .travel-section-left .spotlight-grid,
    #placeSlider .mobile-slide .spotlight-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* 관광지 카드 모바일: 50% 너비 보장 */
    #placeSlider .mobile-slide .spotlight-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        flex: 0 0 50% !important;
    }

    /* 관광지 제목 모바일: 1줄만 표시 */
    #placeSlider .mobile-slide .spotlight-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    /* 맛집 섹션 모바일: 2개씩 1줄 표시 (50% 50%) */
    .travel-section-right .spotlight-grid,
    #eatsSlider .mobile-slide .spotlight-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* 맛집 카드 모바일: 50% 너비 보장 */
    #eatsSlider .mobile-slide .spotlight-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        flex: 0 0 50% !important;
    }

    /* 맛집 제목 모바일: 1줄만 표시 */
    #eatsSlider .mobile-slide .spotlight-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    /* 맛집 슬라이더 래퍼 모바일 */
    #eatsSlider .spotlight-slider-wrapper {
        width: 100% !important;
    }

    /* 맛집 모바일 슬라이드 너비 보장 */
    #eatsSlider .mobile-slide {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* 맛집 슬라이더 모바일 스타일 */
    #eatsSlider .desktop-slide {
        display: none !important;
    }

    #eatsSlider .mobile-slide {
        display: block;
    }

    #eatsSlider .mobile-slide:not(:first-child) {
        display: none;
    }

    /* 맛집 인디케이터 모바일 스타일 */
    #eatsSlider .desktop-indicators {
        display: none !important;
    }

    #eatsSlider .mobile-indicators {
        display: flex !important;
    }

    /* 호텔 섹션 모바일: 1개씩 표시 */
    #hotelSlider .mobile-slide .hotel-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* 호텔 카드 모바일: 100% 너비 */
    #hotelSlider .mobile-slide .hotel-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 호텔 슬라이더 모바일 스타일 */
    #hotelSlider .desktop-slide {
        display: none !important;
    }

    #hotelSlider .mobile-slide {
        display: block;
    }

    #hotelSlider .mobile-slide:not(:first-child) {
        display: none;
    }

    /* 호텔 인디케이터 모바일 스타일 */
    #hotelSlider .desktop-indicators {
        display: none !important;
    }

    #hotelSlider .mobile-indicators {
        display: flex !important;
    }

    /* 투어 서비스 섹션 모바일: 1개씩 표시 */
    #tourServicesSlider .mobile-slide .tour-services-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* 투어 서비스 카드 모바일: 100% 너비 */
    #tourServicesSlider .mobile-slide .tour-service-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 투어 서비스 슬라이더 모바일 스타일 */
    #tourServicesSlider .desktop-slide {
        display: none !important;
    }

    #tourServicesSlider .mobile-slide {
        display: block;
    }

    #tourServicesSlider .mobile-slide:not(:first-child) {
        display: none;
    }

    /* 투어 서비스 인디케이터 모바일 스타일 */
    #tourServicesSlider .desktop-indicators {
        display: none !important;
    }

    #tourServicesSlider .mobile-indicators {
        display: flex !important;
    }

    /* 할인/쿠폰 섹션 모바일: 1개씩 표시 */
    #couponsSlider .mobile-slide {
        width: 100% !important;
        min-width: 100% !important;
        display: block;
    }

    #couponsSlider .mobile-slide:not(:first-child) {
        display: none;
    }

    #couponsSlider .desktop-slide {
        display: none !important;
    }

    /* 할인/쿠폰 카드 모바일: 100% 너비 */
    #couponsSlider .mobile-slide .flight-coupon-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 할인/쿠폰 슬라이더 모바일 스타일 */
    #couponsSlider {
        position: relative !important;
    }

    #couponsSlider .flight-coupons-slider-wrapper {
        width: 100% !important;
    }

    /* 할인/쿠폰 인디케이터 모바일 스타일 */
    #couponsSlider .desktop-indicators {
        display: none !important;
    }

    #couponsSlider .mobile-indicators {
        display: flex !important;
    }

    /* 할인/쿠폰 네비게이션 버튼 모바일 스타일 */
    #couponsSlider .coupons-nav-btn {
        display: flex !important;
        opacity: 0.7 !important;
        transition: opacity 0.3s ease !important;
    }

    #couponsSlider:hover .coupons-nav-btn {
        opacity: 1 !important;
    }

    /* 관광지 슬라이더 래퍼 모바일 */
    #placeSlider .spotlight-slider-wrapper {
        width: 100% !important;
    }

    /* 관광지 모바일 슬라이드 너비 보장 */
    #placeSlider .mobile-slide {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* 관광지 슬라이더 모바일 스타일 */
    #placeSlider .desktop-slide {
        display: none !important;
    }

    #placeSlider .mobile-slide {
        display: block;
    }

    #placeSlider .mobile-slide:not(:first-child) {
        display: none;
    }

    /* 관광지 인디케이터 모바일 스타일 */
    #placeSlider .desktop-indicators {
        display: none !important;
    }

    #placeSlider .mobile-indicators {
        display: flex !important;
    }

    /* 슬라이더 모바일 스타일 */
    .slider-nav-btn {
        width: 32px;
        height: 32px;
        opacity: 1;
    }

    /* 푸터 모바일 스타일 */
    .site-footer {
        padding: 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 버튼 모바일 스타일 */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 섹션 타이틀 모바일 스타일 */
    .section-title {
        font-size: 18px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* 할인/쿠폰 섹션 모바일 스타일 */
    .flight-coupons-section {
        padding: 0 15px !important;
    }

    /* 할인/쿠폰 섹션 헤더는 모바일에서도 가로 정렬 유지 */
    .flight-coupons-section .section-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 관광지/맛집 섹션 모바일 스타일 */
    .travel-spotlight-section {
        padding: 0 15px !important;
    }

    .travel-spotlight-section .section-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 호텔 섹션 모바일 스타일 */
    .hotel-spotlight-section {
        padding: 0 15px !important;
    }

    .hotel-spotlight-section .section-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 투어 서비스 섹션 모바일 스타일 */
    .tour-services-section {
        padding: 0 15px !important;
    }

    .tour-services-section .section-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 모바일에서 모든 섹션의 구분자와 부제목 숨기기 */
    .desktop-subtitle {
        display: none !important;
    }

    /* 날씨 위젯 모바일 스타일 */
    .weather-widget-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .weather-widget-slider {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .weather-widget-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .desktop-weather-slides {
        display: none !important;
    }

    .mobile-weather-slides {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-weather-slides .weather-widget-slide {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-weather-slides .weather-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
        flex: 0 0 100% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* 날씨 카드 내부 요소 너비 제한 */
    .mobile-weather-slides .weather-card > div {
        max-width: 100% !important;
        padding: 0 25px !important;
        box-sizing: border-box !important;
    }

    /* 날씨 카드 내부 첫 번째 div (아이콘 포함) */
    .mobile-weather-slides .weather-card > div:first-child {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 날씨 카드 내부 텍스트 요소 */
    .mobile-weather-slides .weather-card span {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* 날씨 아이콘 표시 보장 */
    .mobile-weather-slides .weather-card img {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 날씨 위젯 인디케이터 모바일 스타일 */
    .desktop-weather-indicators {
        display: none !important;
    }

    .mobile-weather-indicators {
        display: flex !important;
    }
}

