/* ===== main.jsp 전용 스타일 ===== */

/* ✅ 커스텀 마커 스타일 - 데스크톱 최적화 */
.custom-marker {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    line-height: 36px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* 카테고리별 마커 색상 */
.marker-club {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.marker-hunting {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.marker-lounge {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.marker-pocha {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
}

.marker-guesthouse {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
}

/* 마커 아래 상호명 */
.marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.custom-marker:hover .marker-label {
    opacity: 1;
}

/* 마커 컨테이너 */
.marker-container {
    position: relative;
    display: inline-block;
}

/* === 동/구 오버레이(큰 원/라벨) === */
.region-label {
  background: rgba(255,255,255,0.92);
  color: #222;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 14px;
  padding: 8px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: 1.5px solid #e0e0e0;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  letter-spacing: 0.01em;
  opacity: 0.98;
}
.region-label:hover {
  background: #e3f0fb;
  color: #1275E0;
  border-color: #b6dafe;
  box-shadow: 0 4px 16px rgba(18,117,224,0.10);
}

/* === 카테고리별 개수 오버레이(마커+숫자) === */
.region-counts {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  justify-content: center;
  align-items: center;
}
.region-count-marker {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 16px;
  padding: 4px 10px 4px 8px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin-right: 2px;
}
.region-count-marker.marker-club { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.region-count-marker.marker-hunting { background: linear-gradient(135deg, #f44336, #ef5350); }
.region-count-marker.marker-lounge { background: linear-gradient(135deg, #4caf50, #66bb6a); }
.region-count-marker.marker-pocha { background: linear-gradient(135deg, #8d6e63, #a1887f); }
.region-count-marker.marker-guesthouse { background: linear-gradient(135deg, #2196f3, #42a5f5); }
.region-count-marker .count {
  font-size: 12px;
  margin-left: 4px;
  color: #fff;
  opacity: 0.85;
}

.region-label {
  pointer-events: auto !important;
}
.region-counts, .dong-category-counts {
  pointer-events: none !important;
}
.dong-category-counts {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1.5px solid #e0e0e0;
  backdrop-filter: blur(4px);
}
.category-ball {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  margin-right: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.marker-club   { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.marker-hunting{ background: linear-gradient(135deg, #f44336, #ef5350); }
.marker-lounge { background: linear-gradient(135deg, #4caf50, #66bb6a); }
.marker-pocha  { background: linear-gradient(135deg, #8d6e63, #a1887f); }
  .marker-guesthouse { background: linear-gradient(135deg, #2196f3, #42a5f5); }

/* 지도 위 카테고리 버튼 스타일 - 데스크톱 최적화 */
.map-category-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.map-category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.map-category-btn.active {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.map-category-btn.marker-club {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.map-category-btn.marker-hunting {
  background: linear-gradient(135deg, #f44336, #ef5350);
}

.map-category-btn.marker-lounge {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.map-category-btn.marker-pocha {
  background: linear-gradient(135deg, #8d6e63, #a1887f);
}

.map-category-btn.marker-guesthouse {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
}

/* 전체 버튼 특별 스타일 */
.map-category-btn[data-category="all"] {
  width: 50px;
  height: 36px;
  border-radius: 18px;
  font-size: 14px;
  background: linear-gradient(135deg, #666, #888);
}

/* main.jsp 카테고리 필터 버튼 스타일 - 데스크톱 최적화 */
.category-filter-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.category-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.category-filter-btn.active {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 카테고리별 색상 */
.category-filter-btn.marker-club {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.category-filter-btn.marker-hunting {
  background: linear-gradient(135deg, #f44336, #ef5350);
}

.category-filter-btn.marker-lounge {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.category-filter-btn.marker-pocha {
  background: linear-gradient(135deg, #8d6e63, #a1887f);
}

.category-filter-btn.marker-guesthouse {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
}

/* 전체 버튼 특별 스타일 */
.category-filter-btn[data-category="all"] {
  width: 50px;
  height: 36px;
  border-radius: 18px;
  font-size: 14px;
  background: linear-gradient(135deg, #666, #888);
}

/* 찜 버튼 특별 스타일 */
.category-filter-btn.wishlist-filter-btn {
  background: linear-gradient(135deg, #e91e63, #f06292);
  font-size: 14px;
}

/* 검색 결과 카테고리 바 1줄 배치 스타일 */
.search-category-counts-bar {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 20px;
}

.search-category-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.search-category-row:first-child {
  justify-content: flex-start;
}

.search-category-row:last-child {
  justify-content: flex-start;
  margin-left: 0;
}

.search-category-ball {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  margin-right: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-category-ball:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.search-category-ball.active {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.search-cat-count-num {
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
  min-width: 20px;
  text-align: center;
}

/* 검색 결과 카드 기본 스타일 (데스크톱 3열 배치) */
.hotplace-list-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  width: calc(33.333% - 14px);
  margin-right: 20px;
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  max-width: 300px;
}

.hotplace-list-card:nth-child(3n) {
  margin-right: 0;
}

/* 지역 목록 카드 스타일 */
.region-list-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  flex: 0 0 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

.region-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: #1275E0;
}

/* 데스크톱 지역 카드 폰트 크기 */
.region-list-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.region-list-card span[style*="background:#"] {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 0px;
}

/* 페이지네이션 스타일 */
.pagination-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 20px !important;
  padding: 16px 0 !important;
  border-top: 1px solid #eee !important;
  width: 100% !important;
}

.pagination-btn {
  background: white !important;
  color: #1275E0 !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  transition: all 0.2s ease !important;
}

.pagination-btn:hover {
  background: #f8f9fa !important;
  border-color: #1275E0 !important;
}

.pagination-btn.active {
  background: #1275E0 !important;
  color: white !important;
  border-color: #1275E0 !important;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
  background: #1275E0 !important;
  color: white !important;
  border: none !important;
}

.pagination-btn.prev-btn:hover,
.pagination-btn.next-btn:hover {
  background: #0d5bb8 !important;
}

.pagination-btn.prev-btn:disabled,
.pagination-btn.next-btn:disabled {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
}

/* 정렬 버튼 스타일 */
.sort-btn {
  padding: 10px 16px !important;
  border: 1px solid #ddd !important;
  background: white !important;
  color: #333 !important;
  border-radius: 20px !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  flex: 1 !important;
  min-width: 0 !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sort-btn:hover {
  background: #f8f9fa !important;
  border-color: #1275E0 !important;
  color: #1275E0 !important;
}

.sort-btn.active {
  background: #1275E0 !important;
  color: white !important;
  border-color: #1275E0 !important;
  font-weight: 600 !important;
}

.sort-btn.active:hover {
  background: #0d5bb8 !important;
  border-color: #0d5bb8 !important;
}

/* 투표 별점 스타일 */
.rating-stars {
  font-size: 18px;
  color: #ffc107;
  cursor: pointer;
}
.rating-stars .bi-star {
  transition: color 0.2s;
}
.rating-stars .bi-star:hover,
.rating-stars .bi-star-fill {
  color: #ffc107;
}

/* 핫플 정보 카드 - 제거됨 (nowhot.jsp 관련) */

/* 투표 폼 버튼 */
.btn.vote-btn, .btn-primary.btn-sm.w-100 {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.9) 0%, rgba(255, 20, 147, 0.8) 100%);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}
.btn.vote-btn:hover, .btn-primary.btn-sm.w-100:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
  color: white;
}

.pick-location-btn:active, .btn-primary.btn-sm.w-100:active {
  transform: translateY(0);
}

/* 투표 카테고리 뱃지 */
.badge.bg-light.text-dark, .category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.category-club { background: #9c27b0; }
.category-hunting { background: #f44336; }
.category-lounge { background: #4caf50; }
.category-pocha { background: #8d6e63; }

/* 투표 안내 메시지 스타일 - 제거됨 (nowhot.jsp 관련) */

/* ===== 모바일 반응형 스타일 ===== */

/* 태블릿 스타일 (768px 이하) */
@media (max-width: 768px) {
    /* 전체 컨테이너 모바일 최적화 */
    .main-container {
        padding: 0 10px;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-lg-9, .col-lg-6, .col-md-9, .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* 모바일 터치 최적화 */
    /* 터치 영역 최소 44px 보장 */
    button, .btn, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 링크 터치 영역 확대 */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* 폼 요소 터치 최적화 */
    input, select, textarea {
        min-height: 44px;
        font-size: 16px; /* iOS 줌 방지 */
    }
  /* vote-guide 관련 CSS 제거됨 (nowhot.jsp 관련) */
}

/* 모바일 스타일 (480px 이하) */
@media (max-width: 480px) {
    /* 전체 컨테이너 더 작은 화면 최적화 */
    .main-container {
        padding: 0 8px;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-lg-9, .col-lg-6, .col-md-9, .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }
  /* vote-guide 관련 CSS 제거됨 (nowhot.jsp 관련) */
}

/* 소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    /* 전체 컨테이너 최소 화면 최적화 */
    .main-container {
        padding: 0 6px;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-lg-9, .col-lg-6, .col-md-9, .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }
  /* vote-guide 관련 CSS 제거됨 (nowhot.jsp 관련) */
}


/* 지정하기 버튼 스타일 */
.pick-location-btn {
  background: rgba(255,255,255,0.8);
  border: 2px solid rgba(255,255,255,0.6);
  color: #333;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pick-location-btn:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.8);
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

/* 투표 폼 체크박스 스타일 */
.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.pick-location-btn:active {
  transform: translateY(0);
}

/* 지도 번쩍 효과 (투명한 트렌디한 핑크) */
.map-glow-effect {
  box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.3), 
              0 0 20px 8px rgba(255, 20, 147, 0.2),
              0 0 40px 16px rgba(255, 20, 147, 0.1) !important;
  transition: box-shadow 0.6s ease-in-out;
}

/* 오늘핫 오른쪽 고정 패널 */
.todayhot-float-panel {
  position: fixed;
  top: 170px;
  right: 32px;
  width: 320px;
  background: none;
  box-shadow: none;
  z-index: 2000;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.today-hot-box.card-box {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 18px 16px;
  min-width: 220px;
}

@media (max-width: 900px) {
  .todayhot-float-panel {
    display: none;
  }
}

/* ✅ 토스트 메시지 (투표 등 알림용) */
.toast-message {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  opacity: 0.95;
  transition: opacity 0.5s;
  pointer-events: none;
}
.toast-message.success {
  background: #28a745;
}
.toast-message.error {
  background: #dc3545;
}

/* 위시리스트 하트 아이콘 */
.wish-heart {
  font-size: 1.6em;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  vertical-align: middle;
}
.wish-heart.on {
  color: #ff357a;
}
.wish-heart:hover {
  color: #ff357a;
}

/* ===== main.jsp 전용 이미지 모달 스타일 ===== */
.main-image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.main-image-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.main-image-modal-content {
    position: relative;
    max-width: 60%;
    max-height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.main-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 90%;
    min-height: 90%;
    width: auto;
    height: auto;
}

.main-image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 모달 좌우 화살표 버튼 */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev-btn {
    left: -80px;
}

.modal-next-btn {
    right: -80px;
}

/* 모달 이미지 개수 표시 */
.modal-image-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2001;
}

/* ✅ InfoWindow 반응형 스타일 - 데스크톱 최적화 */
.infoWindow {
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    min-width: 260px !important;
    max-width: 300px !important;
    width: 280px !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
}

/* InfoWindow 이미지 컨테이너 데스크톱 최적화 */
.infoWindow .place-images-container {
    height: 120px !important;
    border-radius: 8px !important;
}

.infoWindow * {
    box-sizing: border-box !important;
}

/* InfoWindow 반응형 최적화 */
@media (max-width: 768px) {
    .infoWindow {
        min-width: 200px !important;
        max-width: 60vw !important;
        width: clamp(200px, 240px, 60vw) !important;
        z-index: 10000 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    }
    
    .infoWindow .place-images-container {
        height: 160px !important;
    }
    
    /* 맵 필터 버튼 모바일 최적화 */
    #categoryFilterBar {
        top: 8px !important;
        left: 8px !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }
    
    .category-filter-btn {
        padding: 6px 8px !important;
        font-size: 12px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 16px !important;
    }
    
    /* 맵 높이 조정 */
    #map {
        height: 400px !important;
    }
    
    /* 내 위치 버튼 모바일 최적화 */
    .map-location-btn {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    /* 맵 설명 텍스트 모바일 최적화 */
    .text-muted-small {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .infoWindow {
        min-width: 180px !important;
        max-width: 65vw !important;
        width: 65vw !important;
        z-index: 9999 !important;
    }
    
    .infoWindow .place-images-container {
        height: 140px !important;
    }
    
    /* 맵 필터 버튼 더 작게 */
    .category-filter-btn {
        padding: 4px 6px !important;
        font-size: 11px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
    
    /* 맵 높이 더 작게 */
    #map {
        height: 350px !important;
    }
    
    /* 내 위치 버튼 더 작게 */
    .map-location-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
    
    /* 맵 설명 텍스트 더 작게 */
    .text-muted-small {
        font-size: 0.8rem !important;
    }
    
    .infoWindow strong {
        font-size: 14px !important;
    }
    
    .infoWindow span,
    .infoWindow div {
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    .infoWindow {
        min-width: 160px !important;
        max-width: 70vw !important;
        width: 70vw !important;
    }
    
    .infoWindow .place-images-container {
        height: 120px !important;
    }
}

/* InfoWindow 내부 요소들의 텍스트 오버플로우 방지 */
.infoWindow strong,
.infoWindow div,
.infoWindow span {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* InfoWindow 내부 링크들의 반응형 처리 */
.infoWindow a {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

/* InfoWindow 버튼 hover 효과 강화 */
.infoWindow a[onclick*="showVoteSection"] {
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #ff6b9d, #ff85a2) !important;
    border-color: #ff6b9d !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.25) !important;
}

.infoWindow a[onclick*="showVoteSection"]:hover {
    background: linear-gradient(135deg, #ff5a8c, #ff6b9d) !important;
    border-color: #ff5a8c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4) !important;
}

.infoWindow a[onclick*="openGenreEditModal"] {
    transition: all 0.3s ease !important;
}

.infoWindow a[onclick*="openGenreEditModal"]:hover {
    background: #ffe0b2 !important;
    border-color: #ff6b35 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

/* InfoWindow 이미지 컨테이너 반응형 */
.infoWindow .place-images-container {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* InfoWindow 내부 레이아웃 최적화 */
.infoWindow .place-name-wish-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.infoWindow .action-buttons-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-bottom: 24px !important;
}

/* InfoWindow 내 "역대 투표:" 텍스트 크기 증가 */
.infoWindow div[id*="voteTrends"] {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

/* InfoWindow 내 "장르:" 텍스트 앞에 음표 이모티콘 추가 */
.infoWindow div[style*="color:#9c27b0"][style*="장르:"]::before {
    content: "🎵 ";
    color: #9c27b0;
    margin-right: 4px;
}


/* 검색 결과 카드 반응형 최적화 */
@media (max-width: 768px) {
    /* 검색창 내부 카테고리 버튼 모바일 최적화 */
    .search-category-counts-bar {
        gap: 12px !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .search-category-row {
        gap: 12px !important;
    }
    
    .search-category-ball {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        margin-right: 3px !important;
    }
    
    .search-cat-count-num {
        font-size: 13px !important;
        margin-right: 6px !important;
        min-width: 18px !important;
    }
    
    /* 정렬 버튼 모바일 최적화 */
    .sort-btn {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        border-radius: 16px !important;
    }
    
    .hotplace-list-card {
        padding: 22px !important;
        margin-bottom: 20px !important;
        border-radius: 14px !important;
        width: 100% !important;
        margin-right: 0 !important;
        display: block !important;
        max-width: none !important;
    }
    
    #searchResultBoxBelow {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* 페이지네이션 모바일 최적화 */
    .pagination-container {
        gap: 6px !important;
        padding: 12px 0 !important;
    }
    
    .pagination-btn {
        padding: 6px 10px !important;
        font-size: 13px !important;
        min-width: 36px !important;
    }
    
    /* 지역 목록 카드 모바일 최적화 */
    .region-list-card {
        padding: 12px !important;
        border-radius: 8px !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* 모바일에서 지역 카드 폰트 크기 */
    .region-list-card h3 {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .region-list-card span[style*="background:#"] {
        padding: 3px 7px !important;
        font-size: 0.75rem !important;
        border-radius: 0px !important;
    }
    
    /* 전체 지역 목록 제목 모바일 최적화 */
    h2[style*="전체 지역 목록"] {
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
    }
    
    .hotplace-list-card .hotplace-name {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
    }
    
    .hotplace-list-card .hotplace-category {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .hotplace-list-card .wish-count {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .hotplace-list-card .vote-trends {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .hotplace-list-card .vote-details {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    
    .hotplace-list-card .genre-info {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .hotplace-list-card .hotplace-address {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }
    
    .hotplace-list-card .action-buttons-container a {
        font-size: 1rem !important;
        padding: 12px 18px !important;
        border-radius: 8px !important;
    }
    
    .hotplace-list-card div[id*="voteDetails"] {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    
    .hotplace-list-card div[id*="voteTrends"] {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    
    .hotplace-list-card div[style*="color:#666"][style*="line-height:1.4"] {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 480px) {
    /* 검색창 내부 카테고리 버튼 더 작게 */
    .search-category-counts-bar {
        gap: 8px !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin-top: 14px !important;
        margin-bottom: 14px !important;
    }
    
    .search-category-row {
        gap: 8px !important;
    }
    
    .search-category-ball {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
        margin-right: 2px !important;
    }
    
    .search-cat-count-num {
        font-size: 12px !important;
        margin-right: 4px !important;
        min-width: 16px !important;
    }
    
    /* 정렬 버튼 더 작게 */
    .sort-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 14px !important;
    }
    
    .hotplace-list-card {
        padding: 18px !important;
        margin-bottom: 18px !important;
        border-radius: 12px !important;
        width: 100% !important;
        margin-right: 0 !important;
        display: block !important;
        max-width: none !important;
    }
    
    #searchResultBoxBelow {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* 페이지네이션 더 작게 */
    .pagination-container {
        gap: 4px !important;
        padding: 10px 0 !important;
    }
    
    .pagination-btn {
        padding: 5px 8px !important;
        font-size: 12px !important;
        min-width: 32px !important;
    }
    
    /* 지역 목록 카드 더 작게 */
    .region-list-card {
        padding: 10px !important;
        margin-bottom: 6px !important;
        width: 100% !important;
        border-radius: 6px !important;
        display: block !important;
        margin-right: 0 !important;
    }
    
    .region-list-card h3 {
        font-size: 0.9rem !important;
        margin: 0 !important;
    }
    
    .region-list-card span[style*="background:#"] {
        padding: 2px 5px !important;
        font-size: 0.7rem !important;
        border-radius: 0px !important;
    }
    
    /* 전체 지역 목록 제목 더 작게 */
    h2[style*="전체 지역 목록"] {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    .hotplace-list-card .hotplace-name {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
    }
    
    .hotplace-list-card .hotplace-category {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }
    
    .hotplace-list-card .wish-count {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }
    
    .hotplace-list-card .vote-trends {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }
    
    .hotplace-list-card .vote-details {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    .hotplace-list-card .genre-info {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }
    
    .hotplace-list-card .hotplace-address {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
    
    .hotplace-list-card .action-buttons-container a {
        font-size: 0.95rem !important;
        padding: 10px 16px !important;
        border-radius: 6px !important;
    }
    
    .hotplace-list-card div[id*="voteDetails"] {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .hotplace-list-card div[id*="voteTrends"] {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .hotplace-list-card div[style*="color:#666"][style*="line-height:1.4"] {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 360px) {
    /* 맵 필터 버튼 최소 크기 */
    .category-filter-btn {
        padding: 3px 5px !important;
        font-size: 10px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
    
    /* 맵 높이 최소 크기 */
    #map {
        height: 300px !important;
    }
    
    /* 내 위치 버튼 최소 크기 */
    .map-location-btn {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
    
    /* 맵 설명 텍스트 최소 크기 */
    .text-muted-small {
        font-size: 0.75rem !important;
    }
    
    /* InfoWindow 최소 크기 */
    .infoWindow {
        min-width: 160px !important;
        max-width: 70vw !important;
        width: 70vw !important;
    }
    
    .infoWindow .place-images-container {
        height: 140px !important;
    }
    
    /* 검색창 내부 카테고리 버튼 최소 크기 */
    .search-category-counts-bar {
        gap: 6px !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .search-category-row {
        gap: 6px !important;
    }
    
    .search-category-ball {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
        margin-right: 2px !important;
    }
    
    .search-cat-count-num {
        font-size: 11px !important;
        margin-right: 3px !important;
        min-width: 14px !important;
    }
    
    /* 정렬 버튼 최소 크기 */
    .sort-btn {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
        border-radius: 12px !important;
    }
    
    /* 검색 결과 카드 최소 화면 최적화 */
    .hotplace-list-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 10px !important;
        width: 100% !important;
        margin-right: 0 !important;
        display: block !important;
        max-width: none !important;
    }
    
    #searchResultBoxBelow {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* 페이지네이션 최소 크기 */
    .pagination-container {
        gap: 3px !important;
        padding: 8px 0 !important;
    }
    
    .pagination-btn {
        padding: 4px 6px !important;
        font-size: 11px !important;
        min-width: 28px !important;
    }
    
    /* 지역 목록 카드 최소 크기 */
    .region-list-card {
        padding: 8px !important;
        margin-bottom: 4px !important;
        width: 100% !important;
        border-radius: 4px !important;
        display: block !important;
        margin-right: 0 !important;
    }
    
    .region-list-card h3 {
        font-size: 0.85rem !important;
        margin: 0 !important;
    }
    
    .region-list-card span[style*="background:#"] {
        padding: 2px 4px !important;
        font-size: 0.65rem !important;
        border-radius: 0px !important;
    }
    
    /* 전체 지역 목록 제목 최소 크기 */
    h2[style*="전체 지역 목록"] {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .hotplace-list-card .hotplace-name {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }
    
    .hotplace-list-card .hotplace-category {
        font-size: 0.9rem !important;
        margin-bottom: 3px !important;
    }
    
    .hotplace-list-card .wish-count {
        font-size: 0.9rem !important;
        margin-bottom: 3px !important;
    }
    
    .hotplace-list-card .vote-trends {
        font-size: 0.9rem !important;
        margin-bottom: 3px !important;
    }
    
    .hotplace-list-card .vote-details {
        font-size: 0.85rem !important;
        margin-bottom: 3px !important;
    }
    
    .hotplace-list-card .genre-info {
        font-size: 0.9rem !important;
        margin-bottom: 3px !important;
    }
    
    .hotplace-list-card .hotplace-address {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
    }
    
    .hotplace-list-card .action-buttons-container a {
        font-size: 0.9rem !important;
        padding: 8px 14px !important;
        border-radius: 5px !important;
    }
    
    .hotplace-list-card div[id*="voteDetails"] {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .hotplace-list-card div[id*="voteTrends"] {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .hotplace-list-card div[style*="color:#666"][style*="line-height:1.4"] {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
}

/* ===== 지도 모달 스타일 ===== */
.map-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.map-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.map-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.map-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.map-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.map-modal-body {
    padding: 0;
    height: calc(100% - 80px);
    position: relative;
}

/* 모달 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== 지도 모달 모바일 반응형 ===== */

/* 태블릿 스타일 (768px 이하) */
@media (max-width: 768px) {
    .map-modal-content {
        width: 98%;
        height: 92%;
        margin: 1% auto;
        border-radius: 8px;
    }
    
    .map-modal-header {
        padding: 15px 18px;
        border-radius: 8px 8px 0 0;
    }
    
    .map-modal-title {
        font-size: 1.3rem;
    }
    
    .map-modal-title img {
        width: 25px !important;
        height: 25px !important;
        margin-right: 8px !important;
    }
    
    .map-modal-close {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .map-modal-body {
        height: calc(100% - 70px);
    }
}

/* 모바일 스타일 (480px 이하) */
@media (max-width: 480px) {
    .map-modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        max-height: none;
    }
    
    .map-modal-header {
        padding: 12px 15px;
        border-radius: 0;
    }
    
    .map-modal-title {
        font-size: 1.2rem;
    }
    
    .map-modal-title img {
        width: 22px !important;
        height: 22px !important;
        margin-right: 6px !important;
    }
    
    .map-modal-close {
        font-size: 1.6rem;
        width: 32px;
        height: 32px;
    }
    
    .map-modal-body {
        height: calc(100% - 60px);
    }
    
    #fullMap {
        border-radius: 0 !important;
    }
}

/* 소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    .map-modal-header {
        padding: 10px 12px;
    }
    
    .map-modal-title {
        font-size: 1.1rem;
    }
    
    .map-modal-title img {
        width: 20px !important;
        height: 20px !important;
        margin-right: 5px !important;
    }
    
    .map-modal-close {
        font-size: 1.4rem;
        width: 30px;
        height: 30px;
    }
    
    .map-modal-body {
        height: calc(100% - 55px);
    }
}

/* ===== 핫플 지도 모바일 반응형 개선 ===== */

/* 검색창 모바일 반응형 수정 */
@media (max-width: 768px) {
    /* 검색창 전체 컨테이너 */
    #searchBar {
        padding: 12px 10px 6px 10px !important;
    }
    
    /* 검색 타입 드롭다운 버튼 */
    .search-type-btn {
        min-width: 40px !important;
        max-width: 50px !important;
        font-size: 0.8rem !important;
        height: 32px !important;
        padding: 0 6px !important;
    }
    
    /* 검색 입력창 */
    #searchInput {
        height: 32px !important;
        font-size: 0.9rem !important;
        padding: 0 32px 0 10px !important;
    }
    
    /* 검색 버튼 */
    #searchBtn {
        width: 22px !important;
        height: 22px !important;
        right: 6px !important;
        font-size: 1rem !important;
    }
    
    /* 자동완성 항목 모바일 최적화 */
    .autocomplete-item {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .autocomplete-item:hover {
        background-color: #f8f9fa !important;
    }
    
    /* 지역 검색 결과 모바일 최적화 */
    .region-item {
        padding: 16px 20px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .region-item > div:first-child {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
    }
    
    .region-item .category-counts {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    /* 오른쪽 패널 너비 조정 */
    #rightPanel {
        width: 260px !important;
        max-width: 70vw !important;
    }
    
    /* 내 위치 버튼 크기 조정 */
    .map-location-btn {
        width: 90px !important;
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
        height: 32px !important;
    }
    
    /* 카테고리 필터 버튼들 크기 조정 */
    .category-filter-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        border-radius: 14px !important;
        min-width: 28px !important;
    }
    
    .category-filter-btn[data-category="all"] {
        width: 40px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
        padding: 0 5px !important;
    }
    
    /* 지도 높이 조정 */
    #map {
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    /* 검색창 더 작게 */
    #searchBar {
        padding: 10px 6px 4px 6px !important;
    }
    
    .search-type-btn {
        min-width: 36px !important;
        max-width: 45px !important;
        font-size: 0.75rem !important;
        height: 28px !important;
    }
    
    /* 자동완성 항목 더 작게 */
    .autocomplete-item {
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
    }
    
    /* 지역 검색 결과 더 작게 */
    .region-item {
        padding: 14px 16px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }
    
    .region-item > div:first-child {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }
    
    .region-item .category-counts {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
    
    #searchInput {
        height: 28px !important;
        font-size: 0.85rem !important;
        padding: 0 28px 0 8px !important;
    }
    
    #searchBtn {
        width: 20px !important;
        height: 20px !important;
        right: 5px !important;
        font-size: 0.9rem !important;
    }
    
    /* 오른쪽 패널 더 좁게 */
    #rightPanel {
        width: 240px !important;
        max-width: 75vw !important;
    }
    
    /* 내 위치 버튼 더 작게 */
    .map-location-btn {
        width: 80px !important;
        font-size: 0.75rem !important;
        padding: 2px 6px !important;
        height: 28px !important;
    }
    
    /* 카테고리 필터 버튼들 더 작게 */
    .category-filter-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
        border-radius: 12px !important;
    }
    
    .category-filter-btn[data-category="all"] {
        width: 36px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
        padding: 0 4px !important;
    }
    
    /* 지도 높이 더 작게 */
    #map {
        height: 450px !important;
    }
    
    /* 카테고리 필터 바 위치 조정 */
    #categoryFilterBar {
        top: 8px !important;
        left: 8px !important;
        gap: 6px !important;
    }
}

@media (max-width: 360px) {
    /* 검색창 최소 크기 */
    #searchBar {
        padding: 8px 4px 3px 4px !important;
    }
    
    .search-type-btn {
        min-width: 32px !important;
        max-width: 40px !important;
        font-size: 0.7rem !important;
        height: 26px !important;
    }
    
    /* 자동완성 항목 최소 크기 */
    .autocomplete-item {
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
    }
    
    /* 지역 검색 결과 최소 크기 */
    .region-item {
        padding: 12px 14px !important;
        margin-bottom: 8px !important;
        border-radius: 6px !important;
    }
    
    .region-item > div:first-child {
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 5px !important;
    }
    
    .region-item .category-counts {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    
    #searchInput {
        height: 26px !important;
        font-size: 0.8rem !important;
        padding: 0 26px 0 6px !important;
    }
    
    #searchBtn {
        width: 18px !important;
        height: 18px !important;
        right: 4px !important;
        font-size: 0.8rem !important;
    }
    
    /* 오른쪽 패널 최소 너비 */
    #rightPanel {
        width: 220px !important;
        max-width: 80vw !important;
    }
    
    /* 내 위치 버튼 최소 크기 */
    .map-location-btn {
        width: 75px !important;
        font-size: 0.7rem !important;
        padding: 2px 4px !important;
        height: 26px !important;
    }
    
    /* 카테고리 필터 버튼들 최소 크기 */
    .category-filter-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.6rem !important;
        border-radius: 11px !important;
    }
    
    .category-filter-btn[data-category="all"] {
        width: 32px !important;
        height: 22px !important;
        font-size: 0.6rem !important;
        padding: 0 3px !important;
    }
    
    /* 지도 높이 최소 */
    #map {
        height: 400px !important;
    }
    
    /* 카테고리 필터 바 최소 간격 */
    #categoryFilterBar {
        gap: 4px !important;
    }
}

/* ===== 핫플 지도 전체 레이아웃 개선 ===== */

/* 모바일에서 지도 컨테이너 패딩 조정 */
@media (max-width: 768px) {
    .main-container {
        padding: 12px 8px !important;
    }
    
    .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }
    
    .col-12 {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    
    /* 카드 박스 패딩 조정 */
    .card-box {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    
    /* 지도 전체 보기 버튼 위치 조정 */
    .text-end {
        margin-top: 8px !important;
    }
    
    .text-end .btn {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 8px 4px !important;
    }
    
    .row {
        margin-left: -2px !important;
        margin-right: -2px !important;
    }
    
    .col-12 {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    
    /* 카드 박스 패딩 더 작게 */
    .card-box {
        padding: 8px !important;
        border-radius: 10px !important;
    }
    
    /* 지도 전체 보기 버튼 더 작게 */
    .text-end .btn {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 360px) {
    .main-container {
        padding: 6px 2px !important;
    }
    
    .row {
        margin-left: -1px !important;
        margin-right: -1px !important;
    }
    
    .col-12 {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
    
    /* 카드 박스 패딩 최소 */
    .card-box {
        padding: 6px !important;
        border-radius: 8px !important;
    }
    
    /* 지도 전체 보기 버튼 최소 */
    .text-end .btn {
        font-size: 0.8rem !important;
        padding: 5px 10px !important;
        border-radius: 5px !important;
    }
}