/* 다크 테마 CSS 변수 */
:root {
    /* 라이트 테마 (기본) */
    --bg-primary:#ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8faff;
    --bg-card: #ffffff;
    --bg-modal: #ffffff;
    --bg-nav: #ffffff;
    
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-muted: #888888;
    --text-link: #1976d2;
    --text-button: #1976d2;
    
    --border-primary: rgba(25,118,210,0.06);
    --border-secondary: rgba(25,118,210,0.1);
    --border-tertiary: rgba(0,0,0,0.04);
    
    --shadow-primary: 0 4px 20px rgba(25,118,210,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-secondary: 0 2px 8px rgba(25,118,210,0.08), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card: 0 4px 16px rgba(25,118,210,0.06), 0 2px 8px rgba(0,0,0,0.03);
    --shadow-hover: 0 8px 30px rgba(15,119,255,0.15), 0 4px 12px rgba(0,0,0,0.08);
    
    --accent-primary: #1976d2;
    --accent-secondary: #4cafef;
    --accent-tertiary: #0f77ff;
    
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(255,255,255,0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31,38,135,0.15);
}


/* 메인 컨테이너 */
.main-container {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease;
}

/* 웹 최적화 - PC에서 더 넓은 레이아웃 */
@media (min-width: 768px) {
    .main-container {
        max-width: 600px;
        box-shadow: var(--shadow-primary);
        margin: 20px auto;
        border-radius: 12px;
        overflow: hidden;
    }
    
    /* 768px에서 헤더 카드 최적화 */
    .header-card {
        border-radius: 20px;
        margin: 0 20px;
        overflow: hidden;
    }
    
    .main-header {
        border-radius: 20px;
        margin: 24px 0 32px 0;
        padding: 24px 28px 20px 28px;
        background: var(--bg-header);
        box-shadow: var(--shadow-primary);
    }
    
    .search-container {
        margin: 0 0 12px 0;
    }
    
    .search-bar {
        border-radius: 28px;
        padding: 16px 24px;
        background: var(--bg-search);
        border: 1px solid var(--border-primary);
        box-shadow: var(--shadow-card);
    }
    
    .header-top {
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .location-info {
        font-size: 1.2rem;
        gap: 12px;
    }
    
    .location-info .material-icons {
        font-size: 1.3em;
        margin-right: 8px;
    }
    
    .country-select-btn {
        padding: 8px 16px 8px 12px;
        font-size: 1.05em;
        gap: 6px;
    }
    
    .header-actions {
        gap: 24px;
    }
    
    .header-actions .material-icons {
        font-size: 1.6em;
    }
    
    .search-input {
        font-size: 1.15em;
        padding: 0 16px;
    }
    
    .search-icon, .mic-icon {
        font-size: 1.4em;
    }
}

@media (min-width: 1024px) {
    .main-container {
        max-width: 700px;
        margin: 30px auto;
    }
}

@media (min-width: 1200px) {
    .main-container {
        max-width: 800px;
        margin: 40px auto;
    }
}

/* 컨테이너 커스텀 - 두 페이지 공통 레이아웃 */
.container-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 모바일 최적화 */
@media (max-width: 900px) {
    .container-custom {
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .container-custom {
        padding: 0 12px;
    }
}

/* 메인 헤더 이쁘게 디자인 (배달의민족 스타일) */
.main-header {
    background: var(--bg-header);
    box-shadow: var(--shadow-primary);
    border-radius: 20px;
    padding: 24px 28px 20px 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 24px;
    margin-bottom: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none !important;
    box-shadow: none !important;
}
@media (max-width: 900px) {
    .main-header {
        border-radius: 0;
        padding: 12px 10px 10px 10px;
        margin-top: 0;
        margin-bottom: 12px;
    }
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
    position: relative;
}
.location-info {
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    gap: 10px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (min-width: 768px) {
    .location-info {
        font-size: 1.2rem;
    }
}
.location-info .material-icons {
    font-size: 1.3em;
    color: var(--accent-primary);
    margin-right: 8px;
    filter: drop-shadow(0 1px 3px rgba(100,181,246,0.2));
}
.location-icon {
    transition: color 0.15s, transform 0.15s;
}
.location-icon:hover {
    color: var(--accent-secondary);
    transform: scale(1.1);
}
.location-icon:active {
    transform: scale(0.95);
}
.location-text {
    margin-right: 8px;
}
.country-select-btn {
    display: flex;
    align-items: center;
    background: var(--bg-button);
    border: 1px solid var(--border-secondary);
    border-radius: 18px;
    padding: 8px 16px 0px 12px;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-button);
    cursor: pointer;
    box-shadow: var(--shadow-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 6px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}
.country-select-btn:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 4px 16px rgba(25,118,210,0.15), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-color: rgba(25,118,210,0.2);
}
.country-flag {
    font-size: 1.2em;
    margin-right: 6px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.country-name {
    margin-right: 2px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-actions .material-icons {
    font-size: 1.6em;
    color: #555;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 50%;
    background: rgba(25,118,210,0.04);
}
.header-actions .material-icons:hover {
    color: #1976d2;
    background: rgba(25,118,210,0.1);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(25,118,210,0.15);
}
.search-container {
    margin-bottom: 12px;
}
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-search);
    border: 1px solid var(--border-primary);
    border-radius: 28px;
    padding: 16px 24px;
    box-shadow: var(--shadow-card);
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
    background: var(--bg-search);
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
@media (max-width: 900px) {
    .search-bar {
        padding: 10px 12px;
        border-radius: 16px;
    }
}
.search-icon {
    color: #1976d2;
    font-size: 1.4em;
    margin-right: 12px;
    filter: drop-shadow(0 1px 3px rgba(25,118,210,0.2));
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.15em;
    padding: 0 16px;
    outline: none;
    color: var(--text-primary);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
}
.search-input::placeholder {
    color: var(--text-muted);
    font-size: 1em;
    font-weight: 400;
}

/* 나라 선택 모달 */
.country-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    backdrop-filter: blur(4px);
    transform: translateZ(0);
}

/* 모달이 항상 화면 중앙에 위치하도록 강제 설정 */
.country-modal[style*="display: block"],
.country-modal[style*="display: flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
}

.country-modal[style*="display: none"] {
    display: none !important;
}

.country-modal-content {
    background: var(--bg-modal);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    margin: 0 auto;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
}

/* 웹에서 모달 최적화 */
@media (min-width: 768px) {
    .country-modal-content {
        max-width: 500px;
        border-radius: 20px;
    }
}

.country-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.country-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* 웹에서 모달 헤더 최적화 */
@media (min-width: 768px) {
    .country-modal-header h3 {
        font-size: 1.4rem;
    }
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.15s;
}

.modal-close:hover {
    background: #f5f5f5;
}

.country-modal-list {
    padding: 16px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.country-modal-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 1rem;
    font-weight: 500;
}

/* 웹에서 모달 아이템 최적화 */
@media (min-width: 768px) {
    .country-modal-item {
        padding: 18px 28px;
        font-size: 1.1rem;
    }
}

.country-modal-item:hover {
    background: #f8f9fa;
}

.country-modal-item .country-flag {
    font-size: 1.5em;
    margin-right: 12px;
}

/* 카테고리 섹션 */
.category-section {
    margin: 24px 0;
    padding: 0 18px;
}

/* 웹에서 카테고리 섹션 최적화 */
@media (min-width: 768px) {
    .category-section {
        padding: 0 24px;
        margin: 32px 0;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

/* 웹에서 카테고리 그리드 최적화 */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        margin-top: 20px;
    }
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.15s;
}

/* 웹에서 카테고리 아이템 최적화 */
@media (min-width: 768px) {
    .category-item {
        padding: 8px;
    }
}

.category-item:hover {
    transform: translateY(-2px);
}


/* 웹에서 카테고리 아이콘 최적화 */
@media (min-width: 768px) {
    .category-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 10px;
    }
}

.category-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* 웹에서 카테고리 이미지 최적화 */
@media (min-width: 768px) {
    .category-icon img {
        width: 28px;
        height: 28px;
    }
}

.category-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 웹에서 카테고리 라벨 최적화 */
@media (min-width: 768px) {
    .category-label {
        font-size: 0.9rem;
    }
}

/* 카테고리 배너 섹션 */
.category-banner-section {
    margin: 24px 0;
    padding: 0 18px;
    margin-bottom: 32px;
}

/* 웹에서 카테고리 배너 섹션 최적화 */
@media (min-width: 768px) {
    .category-banner-section {
        padding: 0 24px;
        margin: 32px 0;
    }
}

.category-banner {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(255,154,158,0.2);
}

/* 웹에서 카테고리 배너 최적화 */
@media (min-width: 768px) {
    .category-banner {
        padding: 28px;
        border-radius: 16px;
    }
}

.category-banner img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 16px;
    object-fit: cover;
}

/* 웹에서 카테고리 배너 이미지 최적화 */
@media (min-width: 768px) {
    .category-banner img {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        margin-right: 20px;
    }
}

.category-banner-content {
    flex: 1;
}

.category-banner-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

/* 웹에서 카테고리 배너 제목 최적화 */
@media (min-width: 768px) {
    .category-banner-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
}

.category-banner-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

/* 웹에서 카테고리 배너 설명 최적화 */
@media (min-width: 768px) {
    .category-banner-desc {
        font-size: 1rem;
    }
}

/* 추천 섹션 */
.recommend-section {
  margin: 0px 0 16px 0;
  padding: 0 12px;
}

/* 웹에서 추천 섹션 최적화 */
@media (min-width: 768px) {
    .recommend-section {
        width: 100%;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 32px;
    }
}

@media (min-width: 1024px) {
    .recommend-section {
        margin-bottom: 40px;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* 웹에서 섹션 헤더 최적화 */
@media (min-width: 768px) {
    .section-header {
        margin-bottom: 20px;
    }
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
}

/* 웹에서 섹션 제목 최적화 */
@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 1.6rem;
    }
}

.section-header .material-icons {
    color: #666;
    font-size: 1.2em;
    cursor: pointer;
}

/* 웹에서 섹션 헤더 아이콘 최적화 */
@media (min-width: 768px) {
    .section-header .material-icons {
        font-size: 1.3em;
    }
}

.category-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 2px;
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}
.category-status .material-icons {
    font-size: 1em;
}

.recommend-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  width: 100%;
  max-width: 875px;
  scroll-snap-type: x mandatory;
  background: #fff;
}
.recommend-list {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE, Edge */
}
.recommend-list::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}

/* 웹에서 추천 리스트 최적화 */
@media (min-width: 768px) {
    .recommend-list {
        gap: 16px;
    }
}

.recommend-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-width: 220px;
  width: 220px;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: box-shadow 0.2s;
}

/* 웹에서 추천 카드 최적화 */
@media (min-width: 768px) {
    .recommend-card {
        padding: 0px;
        border-radius: 16px;
        min-width: 280px;
        width: 280px;
    }
}

@media (min-width: 1024px) {
    .recommend-card {
        min-width: 300px;
        width: 300px;
    }
}

.recommend-card:hover {
    box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}

.recommend-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


.ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff9800;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* 웹에서 광고 배지 최적화 */
@media (min-width: 768px) {
    .ad-badge {
        top: 12px;
        right: 12px;
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

.recommend-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* 웹에서 추천 이미지 최적화 */
@media (min-width: 768px) {
    .recommend-image {
        height: 180px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .recommend-image {
        height: 200px;
    }
}

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

.recommend-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1976d2;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 3px 10px;
  z-index: 2;
}

/* 웹에서 추천 배지 최적화 */
@media (min-width: 768px) {
    .recommend-badge {
        top: 12px;
        left: 12px;
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

.recommend-info {
  padding: 16px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 웹에서 추천 정보 최적화 */
@media (min-width: 768px) {
    .recommend-info {
        gap: 6px;
    }
}

.recommend-name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
  word-break: keep-all;
}

/* 웹에서 추천 이름 최적화 */
@media (min-width: 768px) {
    .recommend-name {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .recommend-name {
        font-size: 1.25rem;
    }
}

.recommend-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #666;
}

/* 웹에서 추천 메타 최적화 */
@media (min-width: 768px) {
    .recommend-meta {
        font-size: 0.9rem;
        gap: 6px;
    }
}

.star {
    color: #ffc107;
    font-weight: 600;
}

.rating {
    font-weight: 600;
}

.review-count {
    color: #999;
}

.dot-separator {
    color: #ccc;
}

.recommend-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tag, .ad-tag {
  background: #f3f8ff;
  color: #1976d2;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* 웹에서 태그 최적화 */
@media (min-width: 768px) {
    .tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

.tag.ad-tag {
    background: #1976d2;
    color: #fff;
}

/* 하단 배너 섹션 */
.bottom-banner-section {
    margin: 24px 0 80px 0;
    padding: 0 18px;
}
@media (max-width: 600px) {
    .bottom-banner-section {
        margin-bottom: 70px;
    }
}

/* 웹에서 하단 배너 섹션 최적화 */
@media (min-width: 768px) {
    .bottom-banner-section {
        padding: 0 24px;
        margin: 32px 0;
    }
}

.bottom-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(102,126,234,0.2);
}

/* 웹에서 하단 배너 최적화 */
@media (min-width: 768px) {
    .bottom-banner {
        padding: 28px;
        border-radius: 16px;
    }
}

.bottom-banner img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 16px;
    object-fit: cover;
}

/* 웹에서 하단 배너 이미지 최적화 */
@media (min-width: 768px) {
    .bottom-banner img {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        margin-right: 20px;
    }
}

.bottom-banner-content {
    flex: 1;
}

.bottom-banner-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* 웹에서 하단 배너 제목 최적화 */
@media (min-width: 768px) {
    .bottom-banner-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
}

.bottom-banner-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    backdrop-filter: blur(10px);
}

/* 웹에서 하단 배너 버튼 최적화 */
@media (min-width: 768px) {
    .bottom-banner-btn {
        padding: 10px 20px;
        font-size: 1rem;
        border-radius: 24px;
    }
}

.bottom-banner-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 200;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.04);
    max-width: 420px;
    margin: 0 auto;
}

/* 웹에서 하단 네비게이션 최적화 */
@media (min-width: 768px) {
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: 600px;
        width: 600px;
        margin: 0 auto;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -1px 8px rgba(0,0,0,0.04);
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        max-width: 700px;
        width: 700px;
    }
}

@media (min-width: 1200px) {
    .bottom-nav {
        max-width: 800px;
        width: 800px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 0.8rem;
    text-decoration: none;
    padding: 4px 0;
    flex: 1;
    transition: color 0.15s;
}

/* 웹에서 네비 아이템 최적화 */
@media (min-width: 768px) {
    .nav-item {
        font-size: 0.9rem;
        padding: 6px 0;
    }
}

.nav-item .material-icons {
    font-size: 1.4em;
    margin-bottom: 2px;
}

/* 웹에서 네비 아이콘 최적화 */
@media (min-width: 768px) {
    .nav-item .material-icons {
        font-size: 1.6em;
        margin-bottom: 4px;
    }
}

.nav-item.active,
.nav-item:hover {
    color: #1976d2;
}

.nav-item div {
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 900px) {
    .main-container,
    .main-header,
    .main-banner-section,
    .category-banner-section {
        max-width: 100%;
        padding: 0 10px;
    }
    .main-banner-section {
        margin-bottom: 16px;
    }
    .category-banner-section {
        margin-bottom: 16px;
    }
    
    .bottom-nav {
        max-width: 100vw;
    }
}

@media (max-width: 600px) {
  .main-header {
    padding: 16px 18px 14px 18px;
    box-sizing: border-box;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 3px 16px rgba(25,118,210,0.06), 0 1px 6px rgba(0,0,0,0.03);
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
    margin-bottom: 16px;
  }
  .header-top {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
  }
  .location-info {
    min-width: 0;
    flex: 1 1 120px;
    gap: 2px;
    font-size: 0.95em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .location-text, .country-select-btn, .country-flag, .country-name {
    font-size: 0.95em;
  }
  .country-select-btn {
    padding: 4px 8px;
    min-width: 0;
    font-size: 0.95em;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions {
    gap: 2px;
  }
  .material-icons {
    font-size: 1.2em !important;
  }
  .search-container {
    margin-top: 8px;
    padding: 0 2px;
    margin-bottom: 0;
  }
  .search-bar {
    border-radius: 16px;
    font-size: 0.98em;
    padding: 4px 8px;
  }
  .search-input {
    font-size: 0.98em;
    padding: 6px 4px;
  }
}

@media (max-width: 400px) {
    .main-header {
        padding: 10px 8px 6px 8px;
    }
    
    .location-info {
        font-size: 0.9rem;
    }
    
    .country-select-btn {
        font-size: 0.85em;
        padding: 4px 10px 4px 8px;
        max-width: 110px;
    }
}

@media (max-width: 360px) {
    .main-header {
        padding: 8px 6px 4px 6px;
    }
    
    .header-top {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .location-info {
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .location-info .material-icons {
        font-size: 1.1em;
        margin-right: 4px;
    }
    
    .country-select-btn {
        font-size: 0.8em;
        padding: 3px 8px 3px 6px;
        max-width: 90px;
        gap: 3px;
    }
    
    .country-flag {
        font-size: 1em;
        margin-right: 3px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-actions .material-icons {
        font-size: 1.3em;
        padding: 6px;
    }
    
    .search-container {
        margin-top: 6px;
    }
    
    .search-bar {
        padding: 8px 10px;
        border-radius: 14px;
        gap: 6px;
    }
    
    .search-input {
        font-size: 0.9em;
        padding: 0 6px;
    }
    
    .search-icon {
        font-size: 1.2em;
        margin-right: 8px;
    }
}

@media (max-width: 320px) {
    .main-header {
        padding: 6px 4px 3px 4px;
    }
    
    .header-top {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .location-info {
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .location-info .material-icons {
        font-size: 1em;
        margin-right: 3px;
    }
    
    .country-select-btn {
        font-size: 0.75em;
        padding: 2px 6px 2px 4px;
        max-width: 80px;
        gap: 2px;
        border-radius: 12px;
    }
    
    .country-flag {
        font-size: 0.9em;
        margin-right: 2px;
    }
    
    .country-name {
        margin-right: 1px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .header-actions .material-icons {
        font-size: 1.2em;
        padding: 4px;
    }
    
    .search-container {
        margin-top: 4px;
    }
    
    .search-bar {
        padding: 6px 8px;
        border-radius: 12px;
        gap: 4px;
    }
    
    .search-input {
        font-size: 0.85em;
        padding: 0 4px;
    }
    
    .search-input::placeholder {
        font-size: 0.85em;
    }
    
    .search-icon {
        font-size: 1.1em;
        margin-right: 6px;
    }
}

@media (max-width: 400px) {
    .banner-carousel {
        margin: 0 0px;
        height: 220px;
    }
    
    .banner-slide img {
        object-fit: contain;
    }
    
    .banner-content {
        padding: 0px 0px 0px 0px;
        border-radius: 8px;
    }
    
    .banner-title {
        font-size: 1rem;
    }
    
    .category-grid {
        padding: 0 8px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon img {
        width: 24px;
        height: 24px;
    }
    
    .category-label {
        font-size: 0.75rem;
    }
    
    .category-banner-section,
    .recommend-list,
    .bottom-banner-section {
        padding-left: 0px;
        padding-right: 8px;
    }
    
    .section-header {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .recommend-info {
        gap: 3px;
    }
    
    .recommend-name {
        font-size: 0.9rem;
    }
    
    .recommend-meta {
        font-size: 0.8rem;
    }
}

.city-wrapper {
    padding: 16px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.city-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.city-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 1rem;
    font-weight: 500;
}
@media (min-width: 768px) {
    .city-item {
        padding: 18px 28px;
        font-size: 1.1rem;
    }
}
.city-item:hover {
    background: #f8f9fa;
}
.city-name {
    font-size: 1rem;
    font-weight: 500;
}
.back-btn {
    margin: 16px 24px 0 24px;
    padding: 8px 0;
    background: none;
    border: none;
    color: #1976d2;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.city-wrapper .section-title, #city-title {
    padding-left: 24px;
    padding-right: 24px;
    margin-bottom: 8px;
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}
@media (min-width: 768px) {
    .city-wrapper .section-title, #city-title {
        padding-left: 28px;
        padding-right: 28px;
        font-size: 1.2rem;
        margin-top: 18px;
        margin-bottom: 10px;
    }
}

/* item-list container-custom과 동일한 폭으로 메인페이지 전체 통일 */
.main-container,
.main-header,
.main-banner-section,
.category-banner-section {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.main-header .search-container {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .main-container,
    .main-header,
    .main-banner-section,
    .category-banner-section {
        max-width: 100%;
        padding: 0 10px;
    }
}

.header-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin: 24px 0 32px 0;
  padding-bottom: 8px;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  width: 100%;
  border-bottom: none !important;
  box-shadow: none !important;
}
@media (max-width: 600px) {
  .header-card {
    margin: 12px 0 20px 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
    padding-bottom: 6px;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-header {
    padding: 12px 0 0px 0;
    box-sizing: border-box;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    margin-bottom: 0;
  }
  .header-top {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
  }
  .location-info {
    min-width: 0;
    flex: 1 1 120px;
    gap: 2px;
    font-size: 0.95em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .location-text, .country-select-btn, .country-flag, .country-name {
    font-size: 0.95em;
  }
  .country-select-btn {
    padding: 4px 2px;
    min-width: 0;
    font-size: 0.95em;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions {
    gap: 2px;
  }
  .material-icons {
    font-size: 1.2em !important;
  }
  .search-container {
    margin-top: 0px;
    padding: 0 2px;
    margin-bottom: 0;
  }
  .search-bar {
    border-radius: 16px;
    font-size: 0.98em;
    padding: 0px 8px;
  }
  .search-input {
    font-size: 0.98em;
    padding: 6px 4px;
  }
}
body {
  background: #f7f7f7;
}

body.item-list {
  background: #f7f7f7;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* --- 폭/여백 통일: main-container만 담당, header-card/container-custom은 내부 여백X --- */
@media (max-width: 600px) {
  .main-container {
    max-width: 100%;
    padding: 0 8px;
  }
  .header-card,
  .container-custom {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .header-card {
    margin: 0px 0 0px 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
    padding-bottom: 6px;
  }
}
@media (min-width: 601px) {
  .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .header-card,
  .container-custom {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .header-card {
    margin: 24px 0 32px 0;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
    padding-bottom: 8px;
  }
}

/* nav, nav-tabs, nav-menu 스타일 (item-list.html 호환) */
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  margin-bottom: 24px;
  padding: 0 10px;
  overflow-x: auto;
  white-space: nowrap;
  gap: 2px;
}
.nav-menu .nav-item {
  display: inline-block;
}
.nav-menu .nav-link {
  display: inline-block;
  color: #666;
  border: none;
  padding: 8px 16px;
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
  background: none;
  transition: all 0.2s;
  margin-right: 2px;
  text-decoration: none;
}
.nav-menu .nav-link.active,
.nav-menu .nav-link:focus,
.nav-menu .nav-link:hover {
  color: #1976d2;
  background: #e3f2fd;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 600px) {
  .nav-menu {
    padding: 0 2px;
    font-size: 0.95em;
  }
  .nav-menu .nav-link {
    padding: 6px 8px;
    font-size: 0.95em;
  }
}

/* ===== 리스트/카드/필터/탭/AI리뷰/메뉴/공통 스타일 통합 ===== */

/* 네비게이션 탭 스타일 */
.nav-menu,
.sub-menu {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.nav-menu {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 16px 20px;
    position: relative;
    z-index: 1000;
}

.nav-menu .nav-link {
    color: #666;
    border: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-menu .nav-link:hover {
    background: #f5f5f5;
    color: #333;
}

.nav-menu .nav-link.active {
    color: #1976d2;
    background: #e3f2fd;
    font-weight: 600;
}

.sub-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow-x: visible;
    position: relative;
    z-index: 999;
}

.store-count {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    flex: 1;
}

.pd3 {
    color: #1976d2;
    font-weight: 600;
}

.item-sort {
    width: 300px;
}

.item-sort .custom-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: #fff;
}

.filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: auto;
    justify-content: flex-end;
    flex-shrink: 0;
}

.filter-bar .custom-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background-color: #fff;
    min-width: 120px;
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    transition: all 0.2s ease;
}

.filter-bar .custom-select:hover {
    border-color: #1976d2;
}

.filter-bar .custom-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
    outline: none;
}

/* superlist, big-column, restaurant-list, 카드, 그리드, 리스트, 반응형 등 item-list.html 관련 모든 스타일 */
.superlist, .superlist02 {
    margin: 20px 0 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}
.superlist .badge-danger {
    background: #f44336;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    font-weight: bold;
}
.superlist02 .badge-info {
    background: #2196f3;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    font-weight: bold;
}
.big-column,
#restaurant-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.middle-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.item-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 0 0 16px 0;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.item-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}
.item-image {
    flex-shrink: 0;
}
.item-image img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 8px;
}
.item-info {
    padding: 16px 18px 0 18px;
    width: 100%;
    box-sizing: border-box;
}
.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    word-break: keep-all;
}
.special-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.badge-primary {
    background-color: #1976d2;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.badge-warning {
    background-color: #ff9800;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.scope {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 4px;
    text-align: left;
}
.scope-rate {
    color: #ffc107;
    font-size: 16px;
}
.pd1 {
    font-size: 0.85rem !important;
    color: #666;
    margin-bottom: 4px;
}
.pd2 {
    font-size: 1rem !important;
    font-weight: 600;
    color: #333;
}
.info-detailmenu {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}
@media (max-width: 900px) {
    .big-column,
    #restaurant-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    .item-card { margin-bottom: 16px; }
    .item-image2 { height: 140px; }
    .item-info { padding: 12px 10px 0 10px; }
}
@media (max-width: 600px) {
    .big-column,
    #restaurant-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .item-card {
        padding: 0px;
        gap: 12px;
    }
    .item-image2 { height: 110px; }
    .item-info { padding: 10px 6px 6px 6px; }
    .info-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    .scope {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    .pd1 {
        font-size: 0.8rem !important;
    }
    .pd2 {
        font-size: 0.9rem !important;
    }
}
@media (max-width: 400px) {
    .item-card {
        flex-direction: column;
        text-align: center;
        padding: 0px;
    }
    .item-image {
        margin-bottom: 10px;
    }
    .info-title {
        justify-content: center;
    }
    .scope {
        justify-content: center;
    }
}

/* ===== item-list.css에서 누락된 스타일들을 index.css에 추가 ===== */



/* item-list 전용 container-custom 스타일 */
.container-custom.item-list {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: 40px !important;
}

/* item-list 전용 nav-menu 스타일 */
.nav-menu.item-list {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: -5px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 16px 20px;
    position: relative;
    z-index: 100;
}

/* item-list 전용 sub-menu 스타일 */
.sub-menu.item-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow-x: visible;
    position: relative;
    z-index: 99;
}

/* item-list 전용 store-count 스타일 */
.store-count.item-list {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    flex: 1;
}

/* item-list 전용 item-sort 스타일 */
.item-sort {
    width: 300px;
}

.item-sort .custom-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: #fff;
}

/* item-list 전용 AI 리뷰 미리보기 스타일 */
.ai-review-preview {
    background: #f8f9ff;
    border: 1px solid #e3f2fd;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.ai-review-text {
    font-size: 0.85rem;
    color: #1976d2;
    line-height: 1.4;
    flex: 1;
}

/* item-list 전용 메뉴 미리보기 스타일 */
.menu-preview {
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.menu-text {
    font-size: 0.85rem;
    color: #2e7d32;
    line-height: 1.4;
    flex: 1;
}

.menu-text2 {
    font-size: 0.85rem;
    color: #2e7d32;
    line-height: 1.4;
    flex: 1;
}

/* item-list 전용 item-image2 스타일 */
.item-image2 {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f5f5f5;
}

.item-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

/* item-list 전용 open-reservation-row 스타일 */
.open-reservation-row {
    font-size: 0.92rem;
    color: #666;
    margin-bottom: 2px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* item-list 전용 navbar 스타일 */
.navbar.item-list {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* item-list 전용 delivery-status 스타일 */
.delivery-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 2px;
}

.delivery-available {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.delivery-unavailable {
    background: #f5f5f5;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.delivery-status .material-icons {
    font-size: 1em;
}

/* item-list 전용 reservation-status 스타일 */
.reservation-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 4px;
    margin-bottom: 2px;
}

.reservation-available {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.reservation-unavailable {
    background: #f5f5f5;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.reservation-status .material-icons {
    font-size: 1em;
}

/* item-list 전용 반응형 스타일 */
@media (max-width: 900px) {
    .container-custom.item-list {
        padding: 0 16px;
    }
    
    .big-column.item-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .sub-menu.item-list {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .store-count.item-list {
        text-align: center;
    }
    
    .filter-bar.item-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .item-sort.item-list {
        width: 100%;
    }
    
    .item-card.item-list { 
        margin-bottom: 16px; 
    }
    
    .item-image2.item-list { 
        height: 140px; 
    }
    
    .item-info.item-list { 
        padding: 12px 10px 0 10px; 
    }
}

@media (max-width: 600px) {
    .container-custom.item-list {
        padding: 0 12px;
    }
    
    .big-column.item-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .item-card.item-list {
        margin-bottom: 12px;
    }
    
    .item-image2.item-list { 
        height: 110px; 
    }
    
    .item-info.item-list { 
        padding: 10px 6px 0 6px; 
    }
    
    .info-title.item-list {
        font-size: 1rem;
    }
    
    .scope.item-list {
        font-size: 0.85rem;
    }
    
    .pd1.item-list {
        font-size: 0.85rem;
    }
    
    .pd2.item-list {
        font-size: 0.85rem;
    }
    
    .ai-review-preview.item-list {
        padding: 6px 10px;
    }
    
    .ai-review-text.item-list {
        font-size: 0.8rem;
    }
    
    .menu-preview.item-list {
        padding: 6px 10px;
    }
    
    .menu-text.item-list {
        font-size: 0.8rem;
    }
    
    ul.nav-menu.item-list {
        padding: 0px 0px;
    }
    
    ul.nav-menu.item-list a.nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .sub-menu.item-list {
        padding: 12px 16px;
    }
    
    .store-count.item-list {
        font-size: 0.85rem;
    }
    
    .item-sort.item-list .custom-select {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .filter-bar.item-list {
        gap: 8px;
    }
    
    .filter-bar.item-list .custom-select {
        font-size: 0.85rem;
        padding: 6px 10px;
        min-width: 100px;
    }
}

@media (max-width: 400px) {
    .item-card.item-list {
        margin-bottom: 10px;
    }
    
    .item-image.item-list {
        width: 60px;
        height: 60px;
    }
    
    .info-title.item-list {
        font-size: 0.95rem;
    }
    
    .scope.item-list {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
  .bottom-nav {
    height: 48px;
    max-width: 100vw;
    padding: 0 2px;
  }
  .nav-item {
    font-size: 0.7rem;
    padding: 2px 0;
  }
  .nav-item .material-icons {
    font-size: 1.1em;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .search-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 1em;
    padding: 6px 8px;
    box-sizing: border-box;
  }
}

/* --- TRIPLE 스타일 메인 배너 (사진 전체, 둥근 모서리, 좌상단 흰색 글씨) --- */
.main-banner-section {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.banner-carousel {
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 900px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: #fff;
  margin-bottom: 12px;
}

.banner-slide {
  position: relative;
  min-width: 220px;
  width: 220px;
  height: 220px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  scroll-snap-align: start;
  background: #eee;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow 0.2s;
}

/* 웹에서 배너 슬라이드 최적화 */
@media (min-width: 768px) {
    .banner-slide {
        min-width: 320px;
        width: 320px;
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .banner-slide {
        min-width: 360px;
        width: 360px;
        height: 360px;
    }
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.banner-content {
  position: absolute;
  top: 8px;
  left: 7px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.5px;
  text-align: left;
  word-break: keep-all;
}

/* 웹에서 배너 제목 최적화 */
@media (min-width: 768px) {
    .banner-title {
        font-size: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .banner-title {
        font-size: 1.45rem;
    }
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.banner-dots .dot {
  width: 7px;
  height: 7px;
  background: #e0e0e0;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}
.banner-dots .dot.active {
  background: #1976d2;
  transform: scale(1.2);
}
/* --- TRIPLE 스타일 메인 배너 End --- */

.main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #222;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-align: left;
  padding-left: 12px;
}

/* 웹에서 메인 제목 최적화 */
@media (min-width: 768px) {
    .main-title {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }
}

@media (min-width: 1024px) {
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }
}

.banner-carousel {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE, Edge */
}
.banner-carousel::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}

.popular-reviews-section {
  padding: 0 12px;
}
.popular-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.popular-review-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0px 0px 0px 0px;
}
.review-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* 인기 리뷰 프로필 이미지 스타일 */
.popular-reviews-section .profile-image-container {
  position: relative;
  display: inline-block;
  margin: 3px 1px 2px 6px;
}

.popular-reviews-section .profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.popular-reviews-section .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.popular-reviews-section .profile-icon {
  font-size: 1.5rem;
  color: #999;
}

/* Material Icons가 로드되지 않을 때를 위한 대체 아이콘 */
.popular-reviews-section .profile-icon::before {
  content: "👤";
  font-size: 1.2rem;
}

/* Material Icons가 로드되면 대체 아이콘 숨김 */
.popular-reviews-section .material-icons.profile-icon::before {
  content: "";
}

/* 리뷰 이미지 그리드 반응형 스타일 */
.review-images-grid {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: 100%;
  min-height: 120px;
}

.review-image-item {
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.review-image-item:hover {
  transform: scale(1.05);
}

.review-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
  .review-images-grid {
    min-height: 100px;
    gap: 1px;
  }
  
  .review-image-item {
    border-radius: 6px;
  }
}

@media (max-width: 360px) {
  .review-images-grid {
    min-height: 80px;
  }
}

/* 태블릿 최적화 */
@media (min-width: 768px) {
  .review-images-grid {
    min-height: 140px;
    gap: 3px;
  }
  
  .review-image-item {
    border-radius: 10px;
  }
}

/* 데스크톱 최적화 */
@media (min-width: 1024px) {
  .review-images-grid {
    min-height: 160px;
    gap: 4px;
  }
}
.review-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.review-meta {
  color: #888;
  font-size: 0.95rem;
}
.review-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.review-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  object-fit: cover;
}
.review-desc {
  color: #444;
  font-size: 1rem;
  margin-bottom: 4px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  max-height: 4.2em;
  white-space: normal;
}
.review-tags {
  margin-top: 6px;
}
.review-tag {
  color: #1976d2;
  font-size: 0.92rem;
  margin-right: 6px;
}

/* 인기 리뷰 모달 스타일 */
.popular-review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.popular-review-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    box-sizing: border-box;
    transform: scale(1);
    transition: transform 0.2s ease;
    overflow-x: hidden;
}

.popular-review-modal-content .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.popular-review-modal-content .modal-header {
    margin-bottom: 16px;
}

.popular-review-modal-content .modal-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* 모달 헤더 반응형 처리 */
@media (max-width: 600px) {
    .popular-review-modal-content .modal-header {
        margin-bottom: 12px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1.1em;
        margin-bottom: 6px;
        line-height: 1.2;
    }
}

@media (max-width: 425px) {
    .popular-review-modal-content .modal-header {
        margin-bottom: 10px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1em;
        margin-bottom: 4px;
        line-height: 1.1;
    }
}

@media (max-width: 320px) {
    .popular-review-modal-content .modal-header {
        margin-bottom: 8px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 0.9em;
        margin-bottom: 3px;
        line-height: 1.1;
    }
}

/* 가로 모드에서 헤더 */
@media (max-height: 500px) and (orientation: landscape) {
    .popular-review-modal-content .modal-header {
        margin-bottom: 8px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1em;
        margin-bottom: 4px;
    }
}

/* 태블릿에서 헤더 */
@media (min-width: 768px) and (max-width: 1024px) {
    .popular-review-modal-content .modal-header {
        margin-bottom: 20px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1.3em;
        margin-bottom: 10px;
        line-height: 1.4;
    }
}

/* 데스크톱에서 헤더 */
@media (min-width: 1025px) {
    .popular-review-modal-content .modal-header {
        margin-bottom: 24px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1.4em;
        margin-bottom: 12px;
        line-height: 1.4;
    }
}

.popular-review-modal-content .modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 16px;
    flex-wrap: wrap;
    line-height: 1.4;
    word-break: break-all;
    overflow-wrap: break-word;
}

.popular-review-modal-content .modal-meta span {
    white-space: normal;
    word-break: break-all;
    display: inline;
}

/* 모달 메타 정보 반응형 처리 */
@media (max-width: 600px) {
    .popular-review-modal-content .modal-meta {
        font-size: 0.8em;
        gap: 6px;
        margin-bottom: 12px;
    }
}

@media (max-width: 425px) {
    .popular-review-modal-content .modal-meta {
        font-size: 0.75em;
        gap: 4px;
        margin-bottom: 10px;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .popular-review-modal-content .modal-meta span {
        white-space: normal;
        word-break: break-all;
    }
}

@media (max-width: 320px) {
    .popular-review-modal-content .modal-meta {
        font-size: 0.7em;
        gap: 2px;
        margin-bottom: 8px;
    }
}

/* 가로 모드에서 메타 정보 */
@media (max-height: 500px) and (orientation: landscape) {
    .popular-review-modal-content .modal-meta {
        font-size: 0.75em;
        gap: 4px;
        margin-bottom: 8px;
    }
}

/* 태블릿에서 메타 정보 */
@media (min-width: 768px) and (max-width: 1024px) {
    .popular-review-modal-content .modal-meta {
        font-size: 0.9em;
        gap: 10px;
        margin-bottom: 20px;
    }
}

/* 데스크톱에서 메타 정보 */
@media (min-width: 1025px) {
    .popular-review-modal-content .modal-meta {
        font-size: 0.95em;
        gap: 12px;
        margin-bottom: 24px;
    }
}

.popular-review-modal-content .modal-content,
.popular-review-modal-content #modalReviewContent {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    border-top: 1px solid #e3f3ff;
    padding-top: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.popular-review-modal-content .modal-content p,
.popular-review-modal-content .modal-content span,
.popular-review-modal-content #modalReviewContent p,
.popular-review-modal-content #modalReviewContent span {
    margin: 8px 0;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* 모달 컨텐츠 반응형 처리 */
@media (max-width: 600px) {
    .popular-review-modal-content .modal-content {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
        padding-top: 12px;
    }
    
    .popular-review-modal-content .modal-content p,
    .popular-review-modal-content .modal-content span {
        margin: 6px 0;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 425px) {
    .popular-review-modal-content .modal-content {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 12px;
        padding-top: 10px;
    }
    
    .popular-review-modal-content .modal-content p,
    .popular-review-modal-content .modal-content span {
        margin: 4px 0;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 320px) {
    .popular-review-modal-content .modal-content {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 10px;
        padding-top: 8px;
    }
    
    .popular-review-modal-content .modal-content p,
    .popular-review-modal-content .modal-content span {
        margin: 3px 0;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* 가로 모드에서 컨텐츠 */
@media (max-height: 500px) and (orientation: landscape) {
    .popular-review-modal-content .modal-content {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 10px;
        padding-top: 8px;
    }
}

/* 태블릿에서 컨텐츠 */
@media (min-width: 768px) and (max-width: 1024px) {
    .popular-review-modal-content .modal-content {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 24px;
        padding-top: 20px;
    }
}

/* 데스크톱에서 컨텐츠 */
@media (min-width: 1025px) {
    .popular-review-modal-content .modal-content {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 28px;
        padding-top: 24px;
    }
}

/* 모달 내부 모든 이미지 제어 */
.popular-review-modal-content img,
.popular-review-modal-content .modal-content img,
.popular-review-modal-content #modalReviewContent img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.popular-review-modal-content img:hover,
.popular-review-modal-content .modal-content img:hover,
.popular-review-modal-content #modalReviewContent img:hover {
    transform: scale(1.02);
}

/* 모달 내부 p 태그와 span 태그 내의 이미지들도 반응형으로 처리 */
.popular-review-modal-content p img,
.popular-review-modal-content span img,
.popular-review-modal-content .modal-content p img,
.popular-review-modal-content .modal-content span img,
.popular-review-modal-content #modalReviewContent p img,
.popular-review-modal-content #modalReviewContent span img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.popular-review-modal-content p img:hover,
.popular-review-modal-content span img:hover,
.popular-review-modal-content .modal-content p img:hover,
.popular-review-modal-content .modal-content span img:hover,
.popular-review-modal-content #modalReviewContent p img:hover,
.popular-review-modal-content #modalReviewContent span img:hover {
    transform: scale(1.02);
}

/* 모달 내부 이미지 반응형 처리 */
@media (max-width: 600px) {
    .popular-review-modal-content img,
    .popular-review-modal-content .modal-content img,
    .popular-review-modal-content #modalReviewContent img,
    .popular-review-modal-content p img,
    .popular-review-modal-content span img,
    .popular-review-modal-content .modal-content p img,
    .popular-review-modal-content .modal-content span img,
    .popular-review-modal-content #modalReviewContent p img,
    .popular-review-modal-content #modalReviewContent span img {
        border-radius: 6px !important;
        margin: 6px 0 !important;
        max-height: 250px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 425px) {
    .popular-review-modal-content img,
    .popular-review-modal-content .modal-content img,
    .popular-review-modal-content #modalReviewContent img,
    .popular-review-modal-content p img,
    .popular-review-modal-content span img,
    .popular-review-modal-content .modal-content p img,
    .popular-review-modal-content .modal-content span img,
    .popular-review-modal-content #modalReviewContent p img,
    .popular-review-modal-content #modalReviewContent span img {
        border-radius: 4px !important;
        margin: 4px 0 !important;
        max-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 320px) {
    .popular-review-modal-content img,
    .popular-review-modal-content .modal-content img,
    .popular-review-modal-content #modalReviewContent img,
    .popular-review-modal-content p img,
    .popular-review-modal-content span img,
    .popular-review-modal-content .modal-content p img,
    .popular-review-modal-content .modal-content span img,
    .popular-review-modal-content #modalReviewContent p img,
    .popular-review-modal-content #modalReviewContent span img {
        border-radius: 3px !important;
        margin: 3px 0 !important;
        max-height: 150px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* 가로 모드에서 이미지 높이 제한 */
@media (max-height: 500px) and (orientation: landscape) {
    .popular-review-modal-content img,
    .popular-review-modal-content .modal-content img,
    .popular-review-modal-content #modalReviewContent img,
    .popular-review-modal-content p img,
    .popular-review-modal-content span img,
    .popular-review-modal-content .modal-content p img,
    .popular-review-modal-content .modal-content span img,
    .popular-review-modal-content #modalReviewContent p img,
    .popular-review-modal-content #modalReviewContent span img {
        max-height: 120px !important;
        margin: 4px 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* 태블릿에서 이미지 크기 */
@media (min-width: 768px) and (max-width: 1024px) {
    .popular-review-modal-content .modal-content img,
    .popular-review-modal-content .modal-content p img,
    .popular-review-modal-content .modal-content span img {
        max-height: 400px;
        border-radius: 10px;
        margin: 10px 0;
    }
}

/* 데스크톱에서 이미지 크기 */
@media (min-width: 1025px) {
    .popular-review-modal-content .modal-content img,
    .popular-review-modal-content .modal-content p img,
    .popular-review-modal-content .modal-content span img {
        max-height: 500px;
        border-radius: 12px;
        margin: 12px 0;
    }
}

.popular-review-modal-content .restaurant-button {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popular-review-modal-content .restaurant-button:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25,118,210,0.3);
}

.popular-review-modal-content .restaurant-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(25,118,210,0.3);
}

/* 모달 반응형 스타일 */
@media (max-width: 600px) {
    .popular-review-modal {
        padding: 8px;
    }
    
    .popular-review-modal-content {
        margin: 0;
        padding: 20px;
        max-height: 85vh;
        width: 100%;
        max-width: none;
        border-radius: 12px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1.1em;
    }
    
    .popular-review-modal-content .modal-meta {
        font-size: 0.8em;
        gap: 6px;
    }
    
    .popular-review-modal-content .restaurant-button {
        padding: 10px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 425px) {
    .popular-review-modal {
        padding: 6px;
    }
    
    .popular-review-modal-content {
        margin: 0;
        padding: 16px;
        max-height: 90vh;
        width: 100%;
        max-width: none;
        border-radius: 10px;
    }
    
    .popular-review-modal-content .close-btn {
        top: 12px;
        right: 12px;
        font-size: 20px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .popular-review-modal-content .modal-meta {
        font-size: 0.75em;
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .popular-review-modal-content .modal-content {
        margin-bottom: 16px;
        padding-top: 12px;
    }
    
    .popular-review-modal-content .restaurant-button {
        padding: 8px 12px;
        font-size: 0.85em;
        margin-top: 12px;
    }
}

@media (max-width: 320px) {
    .popular-review-modal {
        padding: 4px;
    }
    
    .popular-review-modal-content {
        margin: 0;
        padding: 12px;
        max-height: 95vh;
        width: 100%;
        max-width: none;
        border-radius: 8px;
    }
    
    .popular-review-modal-content .close-btn {
        top: 8px;
        right: 8px;
        font-size: 18px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .popular-review-modal-content .modal-meta {
        font-size: 0.7em;
        gap: 2px;
        margin-bottom: 8px;
    }
    
    .popular-review-modal-content .modal-content {
        margin-bottom: 12px;
        padding-top: 8px;
        font-size: 0.9em;
    }
    
    .popular-review-modal-content .restaurant-button {
        padding: 6px 8px;
        font-size: 0.8em;
        margin-top: 8px;
    }
}

/* 추가 세밀한 반응형 처리 */
@media (max-width: 280px) {
    .popular-review-modal {
        padding: 2px;
    }
    
    .popular-review-modal-content {
        padding: 8px;
        border-radius: 6px;
    }
    
    .popular-review-modal-content .close-btn {
        top: 6px;
        right: 6px;
        font-size: 16px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 0.85em;
    }
    
    .popular-review-modal-content .modal-meta {
        font-size: 0.65em;
        gap: 1px;
    }
    
    .popular-review-modal-content .modal-content {
        font-size: 0.85em;
    }
    
    .popular-review-modal-content .restaurant-button {
        padding: 4px 6px;
        font-size: 0.75em;
    }
}

/* 가로 모드 대응 */
@media (max-height: 500px) and (orientation: landscape) {
    .popular-review-modal-content {
        max-height: 95vh;
        padding: 16px;
    }
    
    .popular-review-modal-content .modal-header {
        margin-bottom: 12px;
    }
    
    .popular-review-modal-content .modal-content {
        margin-bottom: 12px;
        padding-top: 8px;
    }
    
    .popular-review-modal-content .restaurant-button {
        margin-top: 12px;
    }
}

/* 태블릿 대응 */
@media (min-width: 768px) and (max-width: 1024px) {
    .popular-review-modal-content {
        max-width: 600px;
        padding: 28px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1.3em;
    }
    
    .popular-review-modal-content .modal-meta {
        font-size: 0.9em;
    }
    
    .popular-review-modal-content .restaurant-button {
        padding: 14px 24px;
        font-size: 1em;
    }
}

/* 데스크톱 대응 */
@media (min-width: 1025px) {
    .popular-review-modal-content {
        max-width: 700px;
        padding: 32px;
    }
    
    .popular-review-modal-content .modal-title {
        font-size: 1.4em;
    }
    
    .popular-review-modal-content .modal-meta {
        font-size: 0.95em;
    }
    
    .popular-review-modal-content .restaurant-button {
        padding: 16px 28px;
        font-size: 1.05em;
    }
}

