/* 새로운 지도 스타일 */
.new-map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    animation: mapFadeIn 0.4s ease;
}

.new-map-container.hidden {
    display: none;
}

@keyframes mapFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 지도 헤더 */
.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 50%, #ffedd5 100%);
    border-bottom: 2px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1001;
}

.map-title-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-logo {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #fb923c;
    box-shadow: 0 3px 10px rgba(251, 146, 60, 0.25);
}

.map-title-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ea580c;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.map-title-text p {
    font-size: 0.85rem;
    color: #92400e;
    margin: 0;
    opacity: 0.8;
}

.map-close-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.map-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* 우측 플로팅 컨트롤 - 헤더 아래로 이동 */
.map-floating-controls {
    position: absolute;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-control-btn {
    min-width: 80px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    position: relative;
    overflow: hidden;
    padding: 0 12px;
}

.floating-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.floating-control-btn:hover::before {
    left: 100%;
}

.floating-control-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.floating-control-btn.active {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(251, 146, 60, 0.4);
}

.floating-control-btn.active:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 35px rgba(251, 146, 60, 0.5);
}

/* 카테고리 필터 버튼 */
.category-filter-btn {
    position: relative;
}

.category-filter-btn .filter-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.category-filter-btn.filtered .filter-badge {
    opacity: 1;
    transform: scale(1);
}

/* 위치 버튼 - 오렌지 테마로 변경 */
.location-btn {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
}

.location-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.location-btn.active {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 6px 25px rgba(234, 88, 12, 0.4);
}

.location-btn.loading {
    animation: locationPulse 2s infinite;
}

@keyframes locationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.btn-icon {
    font-size: 1rem;
}

.btn-text {
    font-size: 0.85rem;
}

/* 기존 컨트롤 숨김 */
.map-controls,
.mobile-filter-toggle,
.map-category-filters,
.map-action-buttons {
    display: none !important;
}

/* 모바일 필터 토글 */
.mobile-filter-toggle {
    display: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(251, 146, 60, 0.1);
}

.filter-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.toggle-text {
    font-size: 0.85rem;
}

/* 카테고리 필터 */
.map-category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.map-category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.map-category-btn:hover {
    background: #fef7f0;
    border-color: #fed7aa;
    color: #fb923c;
    transform: translateY(-1px);
}

.map-category-btn.active {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border-color: #fb923c;
    color: white;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.map-category-btn.special {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border-color: #fb923c;
    color: white;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.map-category-btn.special:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.category-icon {
    font-size: 1rem;
}

.category-text {
    font-size: 0.8rem;
}

/* 새로운 액션 버튼들 */
.map-action-buttons {
    display: flex;
    gap: 1rem;
}

.new-action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.new-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.new-action-btn:hover::before {
    left: 100%;
}

.location-btn {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.location-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

/* 지도 영역 */
.map-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.map-canvas {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    position: relative;
}

/* 지도 내 모든 마커가 확실히 보이도록 */
.mapboxgl-marker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    position: absolute !important;
}

.mapboxgl-marker .custom-marker {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* 지도 컨테이너 내 마커 강제 표시 */
.mapboxgl-canvas-container .mapboxgl-marker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mapboxgl-canvas-container .custom-marker {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 심플한 네비게이션 위치 정보 */
.location-nav {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.location-nav.hidden {
    display: none;
}

.location-nav-content {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

.location-nav-icon {
    font-size: 1.1rem;
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-nav-info {
    flex: 1;
}

.location-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.location-nav-address {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.3;
}

.clear-nav-location-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 60px;
}

.clear-nav-location-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

/* 기존 위치 패널 숨김 */
.location-panel {
    display: none !important;
}

.location-info {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.location-icon {
    font-size: 1.5rem;
    color: #fb923c;
}

.location-details {
    flex: 1;
}

.location-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.location-address {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.clear-location-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.clear-location-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* 선택된 레스토랑 정보 패널 */
.restaurant-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    z-index: 10;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
    display: none;
    /* 기본적으로 숨김 */
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
    .restaurant-info-panel {
        display: block;
    }
}

.restaurant-info-panel.selected {
    border: 2px solid #fb923c;
    box-shadow: 0 8px 32px rgba(251, 146, 60, 0.3);
    background: rgba(255, 255, 255, 1);
}

/* 선택된 마커 표시는 마커 자체에만 적용 */

.restaurant-info-panel.hidden {
    display: none;
}

.restaurant-info-content {
    padding: 1.5rem;
}

.restaurant-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.restaurant-emoji {
    font-size: 2rem;
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.restaurant-details {
    flex: 1;
}

.restaurant-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.restaurant-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.restaurant-category {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.restaurant-rating {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

.close-info-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.close-info-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.restaurant-body {
    margin-top: 1rem;
}

.restaurant-address {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    padding-left: 1.2rem;
    position: relative;
}


.restaurant-signature {
    background: #fef7f0;
    border-left: 3px solid #fb923c;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #374151;
}

.restaurant-signature::before {
    content: '🍽️ ';
    font-weight: 600;
    color: #fb923c;
}

.restaurant-actions {
    display: flex;
    gap: 0.75rem;
}

.info-action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-action-btn.details {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.info-action-btn.details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.info-action-btn.maps {
    background: white;
    color: #fb923c;
    border: 2px solid #fb923c;
}

.info-action-btn.maps:hover {
    background: #fb923c;
    color: white;
    transform: translateY(-2px);
}

/* 개선된 툴팁 - 안정적이고 깔끔한 디자인 */
.mapbox-tooltip {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    animation: tooltipFadeIn 0.2s ease;
    transform: translate(-50%, -100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 138, 101, 0.3);
    backdrop-filter: blur(10px);
    max-width: 250px;
    text-align: center;
    margin-top: -10px;
}

.mapbox-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.tooltip-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.85rem;
    line-height: 1.2;
    color: #333;
}

.tooltip-category {
    font-size: 0.75rem;
    opacity: 0.7;
    color: #666;
}

/* 현재위치 기반 맛집 메뉴 */
.nearby-restaurants-menu {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 40vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.nearby-restaurants-menu.show {
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.menu-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.menu-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.menu-close-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.menu-close-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.menu-content {
    max-height: calc(40vh - 70px);
    overflow-y: auto;
    padding: 0.25rem 0;
}

/* 스크롤바 스타일링 */
.menu-content::-webkit-scrollbar {
    width: 4px;
}

.menu-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.menu-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.nearby-restaurant-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    min-height: 70px;
    gap: 0.75rem;
}

.nearby-restaurant-item:hover {
    background-color: #f8fafc;
}

.nearby-restaurant-item:last-child {
    border-bottom: none;
}

.restaurant-image-container {
    width: 400px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.nearby-restaurant-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.restaurant-info {
    flex: 1;
    min-width: 0;
}

.restaurant-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    max-height: 1.2rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.restaurant-details {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.7rem;
    flex-wrap: wrap;
}

.restaurant-category {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.65rem;
    white-space: nowrap;
}

/* 카테고리별 아이콘 스타일 */
.restaurant-icon.category-fine-dining {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.restaurant-icon.category-fine-dining::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    border-radius: 12px;
}

.restaurant-icon.category-japanese {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.restaurant-icon.category-japanese::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
    border-radius: 12px;
}

.restaurant-icon.category-brunch {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.restaurant-icon.category-brunch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    border-radius: 12px;
}

.restaurant-icon.category-bakery {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.restaurant-icon.category-bakery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 50%, transparent 50%);
    border-radius: 12px;
}

.restaurant-icon.category-chinese {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.restaurant-icon.category-chinese::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 4px);
    border-radius: 12px;
}

.restaurant-icon.category-western {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.restaurant-icon.category-western::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 12px;
}

.restaurant-icon.category-thai {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.restaurant-icon.category-thai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 12px;
}

.restaurant-icon.category-others {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.restaurant-icon.category-others::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
}

/* 아이콘 이모지 스타일 */
.icon-emoji {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    display: block;
    line-height: 1;
}

/* 카테고리별 배지 색상 */
.restaurant-category.category-fine-dining {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.restaurant-category.category-japanese {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.restaurant-category.category-brunch {
    background: rgba(6, 182, 212, 0.15);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.restaurant-category.category-bakery {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.restaurant-category.category-chinese {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.restaurant-category.category-western {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.restaurant-category.category-thai {
    background: rgba(251, 146, 60, 0.15);
    color: #f97316;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.restaurant-category.category-others {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.restaurant-distance {
    color: #fb923c;
    font-weight: 600;
    font-size: 0.75rem;
}



.rating-number {
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
}

.restaurant-arrow {
    color: #94a3b8;
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* 심플한 모달 스타일 - 마커 추적 개선 */
.restaurant-modal.modal-positioned {
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1003;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일에서 모달 반응형 스타일 */
@media (max-width: 768px) {
    .restaurant-modal.modal-positioned {
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
        animation: modalSlideUp 0.3s ease;
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 20px !important;
        top: auto !important;
        transform: none !important;
        max-height: 60vh;
        overflow-y: auto;
    }

    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 모바일 버튼 개선 */
.floating-control-btn {
    min-width: 70px;
    height: 45px;
    font-size: 0.9rem;
    padding: 0 10px;
}

.floating-control-btn .btn-text {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.clear-nav-location-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 70px;
}

.clear-nav-location-btn .btn-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.nearby-restaurants-menu {
    max-height: 50vh;
}

.menu-content {
    max-height: calc(50vh - 70px);
}

.nearby-restaurant-item {
    padding: 1rem 1.25rem;
    min-height: 75px;
    gap: 1rem;
}

.restaurant-image-container {
    width: 100px;
    height: 70px;
    border-radius: 12px;
}

.icon-emoji {
    font-size: 1.6rem;
}

.restaurant-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    max-height: 2.8rem;
    line-height: 1.3;
}

.restaurant-details {
    gap: 0.8rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.restaurant-category {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
}

.restaurant-distance {
    font-size: 0.85rem;
    font-weight: 700;
}

.rating-stars {
    font-size: 0.85rem;
    width: 70px;
    height: 14px;
}

.rating-number {
    font-size: 0.85rem;
    font-weight: 600;
}

.restaurant-arrow {
    font-size: 1.3rem;
    color: #94a3b8;
}


/* 참여자 마커 */
.participant-marker .marker-icon {
    border-color: #fb923c;
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.3);
}

.participant-marker .marker-pulse {
    background: rgba(251, 146, 60, 0.4);
}

/* 특별 마커 */
.special-marker .marker-icon {
    border-width: 4px;
    border-color: #fbbf24;
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.4);
}

.special-marker .marker-pulse {
    background: rgba(251, 191, 36, 0.4);
}

/* 심플한 사용자 위치 마커 */
.user-location-marker {
    position: relative;
}

.location-dot {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 2;
}

.location-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(59, 130, 246, 0.3);
    animation: locationPulse 2s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes locationPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    70% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.custom-marker.participant {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    color: white !important;
    animation: pulse 2s infinite;
    border: 4px solid #fff !important;
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.5) !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(251, 146, 60, 0.5), 0 0 0 0 rgba(251, 146, 60, 0.7);
    }

    70% {
        box-shadow: 0 8px 25px rgba(251, 146, 60, 0.5), 0 0 0 20px rgba(251, 146, 60, 0);
    }

    100% {
        box-shadow: 0 8px 25px rgba(251, 146, 60, 0.5), 0 0 0 0 rgba(251, 146, 60, 0);
    }
}

.custom-marker.fine-dining {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4) !important;
}

.custom-marker.japanese {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.custom-marker.brunch {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4) !important;
}

.custom-marker.bakery {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.custom-marker.chinese {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.custom-marker.western {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

.custom-marker.thai {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4) !important;
}

.custom-marker.western {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
}

.custom-marker.user-location {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    animation: userPulse 2s infinite;
}

@keyframes userPulse {
    0% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .map-header {
        padding: 1rem 1.5rem;
    }

    .map-title-text h2 {
        font-size: 1.2rem;
    }

    .map-title-text p {
        font-size: 0.8rem;
    }

    /* 모바일에서 플로팅 컨트롤 크기 조정 */
    .map-floating-controls {
        top: 95px;
        right: 15px;
        gap: 12px;
        flex-direction: column;
    }

    .floating-control-btn {
        width: auto;
        min-width: 50px;
        height: 40px;
        padding: 0 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .btn-text {
        font-weight: 600;
        color: #374151;
    }

    .filter-badge {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -5px;
        right: -5px;
    }

    /* 모바일에서 마커 크기 조정 */
    .marker-body {
        width: 38px;
        height: 38px;
    }

    .marker-icon {
        font-size: 1.1rem;
    }

    .marker-star {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -6px;
        right: -6px;
    }

    .marker-tooltip {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .map-controls {
        padding: 0.75rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .map-controls {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .map-category-filters {
        display: none;
        justify-content: flex-start;
        gap: 0.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(251, 146, 60, 0.1);
        animation: slideDown 0.3s ease;
    }

    .map-category-filters.show {
        display: flex;
    }

    .map-category-filters::-webkit-scrollbar {
        display: none;
    }

    .map-category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
        flex-shrink: 0;
        border-radius: 20px;
    }

    .category-text {
        display: inline;
        font-size: 0.75rem;
    }

    .category-icon {
        font-size: 0.9rem;
    }

    .map-action-buttons {
        padding: 1rem 1.5rem;
        justify-content: center;
        gap: 1rem;
        border-top: 1px solid rgba(251, 146, 60, 0.1);
    }

    .map-title-content {
        gap: 0.75rem;
    }

    .map-logo {
        width: 40px;
        height: 40px;
    }

    .map-title-text h2 {
        font-size: 1.3rem;
    }

    .map-action-buttons {
        justify-content: center;
        gap: 0.75rem;
    }

    .new-action-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .location-nav-content {
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }

    .location-nav-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .location-nav-title {
        font-size: 0.75rem;
    }

    .location-nav-address {
        font-size: 0.85rem;
    }

    .clear-nav-location-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .location-panel,
    .restaurant-info-panel {
        left: 10px;
        right: 10px;
    }

    .location-info,
    .restaurant-info-content {
        padding: 1rem;
    }

    .restaurant-header {
        gap: 0.75rem;
    }

    .restaurant-emoji {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .restaurant-name {
        font-size: 1.1rem;
    }

    .restaurant-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 
맵박스 저작권 및 로고 숨기기 */
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib,
.mapboxgl-ctrl-attrib-inner,
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-left {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.mapboxgl-canvas-container {
    position: relative;
}

.mapboxgl-canvas-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 30px;
    background: white;
    z-index: 1000;
}

/*
 슬라이드 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.map-category-filters.hiding {
    animation: slideUp 0.3s ease;
}

/*
 카테고리 필터 팝업 */
.category-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.category-popup.hidden {
    display: none;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(251, 146, 60, 0.15), 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(251, 146, 60, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
}

.popup-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.close-popup-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.close-popup-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.popup-body {
    padding: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.category-popup-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.category-popup-btn:hover {
    background: #fef7f0;
    border-color: #fed7aa;
    color: #fb923c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.15);
}

.category-popup-btn.active {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border-color: #fb923c;
    color: white;
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.3);
}

.category-popup-btn.special {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
}

.category-popup-btn.special:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.category-popup-btn .category-icon {
    font-size: 1.5rem;
}

.category-popup-btn .category-text {
    font-size: 0.8rem;
    text-align: center;
}

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

    .map-header {
        padding: 0.8rem 1rem;
    }

    .map-title-text h2 {
        font-size: 1.2rem;
    }

    .map-title-text p {
        font-size: 0.8rem;
    }

    .map-close-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .map-floating-controls {
        top: 85px;
        right: 10px;
        gap: 10px;
    }

    .floating-control-btn {
        min-width: 70px;
        height: 40px;
        font-size: 0.8rem;
        padding: 0 8px;
    }

    .floating-control-btn .btn-text {
        font-size: 0.75rem;
    }

    /* 레스토랑 정보 패널 모바일 최적화 */
    .restaurant-info-panel {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        border-radius: 12px;
    }

    .restaurant-info-content {
        padding: 1rem;
    }

    .restaurant-header {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .restaurant-emoji {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .restaurant-name {
        font-size: 1rem;
        line-height: 1.2;
    }

    .restaurant-meta {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .restaurant-category,
    .restaurant-rating {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .restaurant-address {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        padding-left: 1rem;
    }

    .restaurant-signature {
        font-size: 0.8rem;
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .restaurant-actions {
        gap: 0.5rem;
        flex-direction: column;
    }

    .info-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* 카테고리 팝업 모바일 최적화 */
    .popup-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 80vh;
        overflow-y: auto;
    }

    .popup-header {
        padding: 1rem 1.2rem;
    }

    .popup-title {
        font-size: 1.1rem;
    }

    .popup-body {
        padding: 1.2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .category-popup-btn {
        padding: 0.8rem 0.6rem;
        min-height: 80px;
    }

    .category-popup-btn .category-icon {
        font-size: 1.3rem;
    }

    .category-popup-btn .category-text {
        font-size: 0.75rem;
    }

    /* 툴팁 모바일 최적화 */
    .mapbox-tooltip {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        max-width: 200px;
        text-align: center;
    }

    .tooltip-name {
        font-size: 0.85rem;
    }

    .tooltip-category {
        font-size: 0.7rem;
    }

    .tooltip-rating {
        font-size: 0.75rem;
    }

    /* 위치 네비게이션 모바일 최적화 */
    .location-nav-content {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }

    .location-nav-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .location-nav-title {
        font-size: 0.7rem;
    }

    .location-nav-address {
        font-size: 0.8rem;
    }

    .clear-nav-location-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 50px;
    }
}

/* 
지도 마커 툴팁 */
.mapbox-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
}

.mapbox-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 120px;
}

.tooltip-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.tooltip-category {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 500;
}

.tooltip-rating {
    font-size: 0.8rem;
    color: #fbbf24;
}

/* 모바일 지도 카테고리 겹침 문제 해결 */
@media (max-width: 480px) {
    .map-floating-controls {
        top: 100px;
        right: 10px;
        gap: 8px;
    }

    .floating-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* 카테고리 팝업 전체 화면 */
    .category-popup-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-height: none;
    }

    .category-popup-header {
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .category-popup-body {
        padding: 1rem;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-popup-btn {
        padding: 1rem 0.75rem;
        min-height: 90px;
        border-radius: 12px;
    }

    /* 지도 헤더 모바일 최적화 */
    .map-header {
        padding: 1rem;
        min-height: 70px;
    }

    .map-title-text h2 {
        font-size: 1.2rem;
    }

    .map-title-text p {
        font-size: 0.8rem;
    }

    .map-close-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* 모바일 팝업 스타일 */
.mobile-popup {
    max-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-popup .popup-image-container {
    height: 140px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
}

.mobile-popup .popup-restaurant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mobile-popup .popup-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-popup .popup-info {
    padding: 1.25rem;
    background: linear-gradient(to bottom, #ffffff 0%, #fefbf8 100%);
}

.mobile-popup .popup-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    line-height: 1.2;
}

.mobile-popup .popup-meta {
    display: flex;
    margin: 0.75rem 0;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.mobile-popup .popup-category {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
}

.mobile-popup .popup-address-mobile {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.75rem 0;
    line-height: 1.5;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.mobile-popup .popup-footer {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    background: linear-gradient(135deg, #fefefe 0%, #faf9f7 100%);
    border-top: 1px solid rgba(251, 146, 60, 0.1);
}

.mobile-popup .mobile-detail-btn {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.mobile-popup .mobile-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

/* 데스크톱 팝업 스타일 */
.desktop-popup {
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.desktop-popup .popup-restaurant-info {
    display: flex;
    flex-direction: column;
}

.desktop-popup .popup-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.desktop-popup .popup-restaurant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.desktop-popup .popup-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.desktop-popup .popup-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefbf8 100%);
}

.desktop-popup .popup-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #1e293b;
    line-height: 1.2;
}

.desktop-popup .popup-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.desktop-popup .popup-category {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(251, 146, 60, 0.3);
}

.desktop-popup .popup-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, #fefefe 0%, #faf9f7 100%);
    border-top: 1px solid rgba(251, 146, 60, 0.1);
    display: flex;
    gap: 1rem;
}

.desktop-popup .popup-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.desktop-popup .google-btn {
    background: #4285f4;
    color: white;
    border: none;
    box-shadow: 0 3px 12px rgba(66, 133, 244, 0.3);
}

.desktop-popup .google-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
}

.desktop-popup .detail-btn {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(251, 146, 60, 0.3);
}

.desktop-popup .detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(251, 146, 60, 0.4);
}

/* 팝업 이미지 호버 효과 */
.popup-image-container:hover .popup-restaurant-image {
    transform: scale(1.08);
}/* 완전히 새로
운 팝업 스타일 - 인라인 스타일 우선 */
.mapboxgl-popup .mapboxgl-popup-content {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border: none !important;
    background: white !important;
}

/* 팝업 이미지 강제 표시 */
.mapboxgl-popup img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    outline: none !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 팝업 닫기 버튼 개선 */
.mapboxgl-popup .mapboxgl-popup-close-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.mapboxgl-popup .mapboxgl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1) !important;
}

/* 팝업 화살표 스타일 */
.mapboxgl-popup .mapboxgl-popup-tip {
    border-top-color: white !important;
}/* 커스
텀 팝업 스타일 */
.mapboxgl-popup.custom-popup .mapboxgl-popup-content {
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.mapboxgl-popup.custom-popup .mapboxgl-popup-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.mapboxgl-popup.custom-popup .mapboxgl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.mapboxgl-popup.custom-popup .mapboxgl-popup-tip {
    border-top-color: white;
}