/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 업소 상세보기 페이지 스타일 */
.business-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1a1a;
    color: white;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
}

.business-detail-header {
    position: relative;
    margin-bottom: 40px;
}

.back-btn {
    background: rgba(0,0,0,0.3);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-block;
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.business-main-title h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.business-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    margin-bottom: 20px;
}

.business-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.business-meta span {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.business-intro {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.business-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.business-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.card-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.business-image-section {
    margin-bottom: 40px;
}

.business-image-section h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.business-image-container {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.business-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.business-image-container img:hover {
    transform: scale(1.05);
}

.business-contact-section {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.5;
}

.phone-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.phone-link:hover {
    text-decoration: underline;
}

.business-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.reservation-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.reservation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.share-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.no-image-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.business-detail-info {
    padding: 30px;
}

.business-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.business-type-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    margin-bottom: 25px;
}

.business-type-badge.premium { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.business-type-badge.cafe { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.business-type-badge.public { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.business-type-badge.club { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.business-type-badge.room { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.business-type-badge.karaoke { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }

.business-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    font-size: 16px;
    color: #333;
}

.phone-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    text-decoration: underline;
}

.price-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.price-info h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.price-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.business-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.business-description h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-description p {
    line-height: 1.7;
    color: #555;
}

.business-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.call-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.share-btn {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.4);
}

.status-badge {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
}

.status-badge.status-operating {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-suspended {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-remodeling {
    background: #cce7ff;
    color: #004085;
}

/* 캐러셀 이미지 업로드 스타일 */
.carousel-image-upload {
    margin-top: 10px;
}

.carousel-image-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-image-upload input[type="file"]:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.carousel-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* 🖼️ 캐러셀 이미지 미리보기 개선 */
.carousel-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f8f9fa;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.carousel-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.carousel-preview-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-preview-item:hover img {
    transform: scale(1.05);
}

.carousel-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.carousel-preview-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 이미지 정보 표시 */
.image-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .business-detail-container {
        padding: 15px;
    }
    
    .business-main-title h1 {
        font-size: 32px;
    }
    
    .business-subtitle {
        font-size: 16px;
    }
    
    .business-meta {
        gap: 15px;
    }
    
    .business-meta span {
        font-size: 12px;
    }
    
    .business-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .business-card {
        padding: 20px 15px;
    }
    
    .card-icon {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-subtitle {
        font-size: 12px;
    }
    
    .business-contact-section {
        padding: 20px;
    }
    
    .business-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .reservation-btn,
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .carousel-image-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .carousel-preview-item img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .business-main-title h1 {
        font-size: 24px;
    }
    
    .business-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .business-meta {
        flex-direction: column;
        gap: 8px;
    }
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
}

.phone-number {
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.phone-number:hover {
    background: rgba(255,255,255,0.3);
}

.phone-number a {
    color: white;
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #f1f1f1;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 메인 콘텐츠 */
.main {
    min-height: 80vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 포스트 그리드 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-card-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
}

/* 포스트 목록 */
.post-list {
    margin-top: 2rem;
}

.post-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-item .post-image {
    width: 250px;
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.post-content {
    flex: 1;
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 글쓰기 폼 */
.write-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

/* 이미지 업로드 */
.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
    cursor: pointer;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: #667eea;
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.image-preview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* 버튼 */
.submit-btn,
.search-btn,
.back-btn,
.cancel-btn,
.edit-btn,
.delete-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn {
    background: #28a745;
    color: white;
}

.submit-btn:hover {
    background: #218838;
}

.search-btn {
    background: #007bff;
    color: white;
}

.search-btn:hover {
    background: #0056b3;
}

.back-btn {
    background: #6c757d;
    color: white;
}

.back-btn:hover {
    background: #545b62;
}

.cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cancel-btn:hover {
    background: #e2e6ea;
}

.edit-btn {
    background: #007bff;
    color: white;
}

.edit-btn:hover {
    background: #0056b3;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 위치 정보 섹션 */
.location-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.location-section h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.address-search-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.address-search-wrapper input {
    flex: 1;
}

#locationResult {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.location-map-preview h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.location-info small {
    color: #6c757d;
    font-style: italic;
}

/* 포스트 상세보기 */
.post-detail {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.post-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-header .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}

.post-admin-actions {
    display: flex;
    gap: 0.5rem;
}

.post-images {
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-images img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.post-images img:hover {
    transform: scale(1.05);
}

.post-content-detail {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.location-info {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    margin: 1rem 0;
}

.location-info h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.location-details p {
    margin-bottom: 0.5rem;
}

.post-actions {
    padding: 1rem 2rem 2rem;
}

/* 이미지 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* 빈 상태 */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-posts i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* SEO 섹션 */
.seo-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.seo-section h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.seo-section .form-group {
    margin-bottom: 1rem;
}

.seo-section small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* 푸터 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    color: #495057;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* 스크린리더 전용 텍스트 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        display: none;
        width: 100%;
        text-align: center;
    }
    
    .nav.mobile-menu-open {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-item .post-image {
        width: 100%;
        height: 200px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-images {
        padding: 1rem;
    }
    
    .post-content-detail {
        padding: 1rem;
    }
    
    .post-actions {
        padding: 1rem;
    }
    
    .location-info {
        padding: 1rem;
    }
    
    .address-search-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.4rem;
    }
    
    .phone-number {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .post-header h1 {
        font-size: 1.5rem;
    }
    
    .write-form {
        padding: 1rem;
    }
}

/* 캐러셀 스타일 */
.main-carousel-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 0;
    margin-bottom: 20px;
}

.business-carousel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.carousel-title-section h3 {
    font-size: 1.8rem;
    color: #495057;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.carousel-title-section p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.carousel-filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

.filter-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 15px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 15px;
}

.carousel-item {
    min-width: 300px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.carousel-item-image {
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    /* background-color: rgba(0, 0, 0, 0.2); 이미지 표시를 위해 주석 처리 */
    position: relative;
}

.carousel-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carousel-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-item-address {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-item-details {
    font-size: 0.8rem;
    opacity: 0.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.carousel-btn {
    background: #495057;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(73, 80, 87, 0.3);
    font-size: 1.1rem;
}

.carousel-btn:hover:not(:disabled) {
    background: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 80, 87, 0.4);
}

.carousel-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.phone-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.phone-icon:hover {
    background: rgba(40, 167, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* 업종별 색상 */
.carousel-item.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-item.cafe {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.carousel-item.public {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-item.club {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.carousel-item.room {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.carousel-item.karaoke {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

/* 영업상태별 스타일 */
.carousel-item.operating::before {
    content: '🟢';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    z-index: 10;
}

.carousel-item.closed {
    opacity: 0.6;
    filter: grayscale(60%);
}

.carousel-item.closed::before {
    content: '🔴 폐업';
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-item.suspended::before {
    content: '🟡 휴업';
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-item.remodeling::before {
    content: '🔵 리모델링';
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* 캐러셀 관리 폼 스타일 */
.carousel-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-form h3 {
    color: #495057;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.carousel-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.carousel-form-group {
    display: flex;
    flex-direction: column;
}

.carousel-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.carousel-form-group input,
.carousel-form-group select,
.carousel-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.carousel-form-group input:focus,
.carousel-form-group select:focus,
.carousel-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.carousel-image-upload {
    margin-bottom: 25px;
}

.carousel-image-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.carousel-image-preview {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.carousel-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.carousel-preview-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.carousel-form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.add-carousel-btn,
.cancel-carousel-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.add-carousel-btn {
    background: #28a745;
    color: white;
}

.add-carousel-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.cancel-carousel-btn {
    background: #6c757d;
    color: white;
}

.cancel-carousel-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.carousel-data-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sync-data-btn,
.export-data-btn,
.import-data-btn,
.clear-data-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.sync-data-btn {
    background: #28a745;
    color: white;
}

.sync-data-btn:hover {
    background: #218838;
}

.export-data-btn {
    background: #17a2b8;
    color: white;
}

.export-data-btn:hover {
    background: #138496;
}

.import-data-btn {
    background: #6c757d;
    color: white;
}

.import-data-btn:hover {
    background: #545b62;
}

.clear-data-btn {
    background: #dc3545;
    color: white;
}

.clear-data-btn:hover {
    background: #c82333;
}

/* 캐러셀 목록 스타일 */
.carousel-list-section {
    margin-bottom: 30px;
}

.carousel-list-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.carousel-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carousel-item-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.carousel-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.carousel-item-info {
    flex: 1;
}

.carousel-item-info h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.status-영업중 {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.status-폐업 {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-badge.status-휴업 {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-badge.status-리모델링 {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.carousel-item-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

.carousel-item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.carousel-item-actions .edit-btn,
.carousel-item-actions .delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-item-actions .edit-btn {
    background: #007bff;
    color: white;
}

.carousel-item-actions .edit-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.carousel-item-actions .delete-btn {
    background: #dc3545;
    color: white;
}

.carousel-item-actions .delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* 캐러셀 미리보기 스타일 */
.carousel-preview-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-preview-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.no-items {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

/* 반응형 디자인 - 캐러셀 */
@media (max-width: 768px) {
    .main-carousel-section {
        padding: 20px 0;
    }
    
    .business-carousel {
        padding: 20px 15px;
    }
    
    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .carousel-title-section h3 {
        font-size: 1.4rem;
    }
    
    .carousel-item {
        min-width: 280px;
        height: 220px;
    }
    
    .carousel-form {
        padding: 20px 15px;
    }
    
    .carousel-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .carousel-form-actions {
        flex-direction: column;
    }
    
    .carousel-data-controls {
        flex-direction: column;
    }
    
    .carousel-item-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .carousel-item-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        min-width: 260px;
        height: 200px;
    }
    
    .carousel-item-title {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .phone-icon {
        width: 35px;
        height: 35px;
    }
}
/* 
🖼️ 업소 상세보기 이미지 섹션 */
.business-image-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.business-image-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-image-container {
    text-align: center;
}

.business-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.business-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.additional-images {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.additional-images p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.no-image-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-image-placeholder i {
    display: block;
    margin-bottom: 15px;
    opacity: 0.7;
}

.no-image-placeholder p {
    font-size: 16px;
    margin: 0;
}

/* 캐러셀 아이템 이미지 개선 */
.carousel-item-image {
    transition: all 0.3s ease;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

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

/* 이미지 로딩 오류 처리 */
.carousel-item-image[style*="url"] {
    position: relative;
}

/* .carousel-item-image[style*="url"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
    opacity: 0;
} */

/* .carousel-item:hover .carousel-item-image[style*="url"]::after {
    opacity: 1;
} */

/* 리치 텍스트 에디터 스타일 */
.rich-text-editor {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rich-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    min-width: 80px;
}

.toolbar-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 28px;
    height: 28px;
}

.toolbar-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.toolbar-btn:active {
    background: #dee2e6;
}

.color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    padding: 0;
    margin: 0 2px;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #007bff;
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #dee2e6;
    margin: 0 4px;
}

.rich-editor-content {
    min-height: 100px;
    padding: 15px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.rich-editor-content:empty::before {
    content: attr(placeholder);
    color: #aaa;
    font-style: italic;
}

.rich-editor-content:focus {
    background: #f8f9ff;
}

/* 에디터 내부 스타일 */
.rich-editor-content b,
.rich-editor-content strong {
    font-weight: bold;
}

.rich-editor-content i,
.rich-editor-content em {
    font-style: italic;
}

.rich-editor-content u {
    text-decoration: underline;
}

.rich-editor-content ul,
.rich-editor-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.rich-editor-content li {
    margin: 5px 0;
}

.rich-editor-content div {
    margin: 5px 0;
}

/* ===========================================
   모바일 반응형 스타일 (Mobile Responsive)
   =========================================== */

/* 작은 화면 (모바일) - 768px 이하 */
@media (max-width: 768px) {
    /* 기본 레이아웃 */
    .container {
        padding: 10px !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* 헤더 및 네비게이션 */
    nav ul {
        flex-direction: column !important;
        gap: 5px !important;
        padding: 10px !important;
    }

    nav ul li {
        width: 100% !important;
    }

    nav ul li a {
        padding: 12px !important;
        font-size: 16px !important;
        text-align: center !important;
    }

    /* 메인 제목 */
    h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        padding: 0 10px !important;
    }

    h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* 캐러셀 스타일 */
    .carousel-container {
        padding: 10px !important;
        margin: 10px 0 !important;
    }

    .carousel-items {
        gap: 10px !important;
        padding: 0 !important;
    }

    .carousel-item {
        min-width: 280px !important;
        max-width: 300px !important;
        margin: 0 5px !important;
        padding: 15px !important;
    }

    .carousel-item h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 5px !important;
    }

    /* 캐러셀 이미지 */
    .carousel-item-image {
        height: 180px !important;
        border-radius: 8px !important;
    }

    /* 버튼 스타일 */
    .carousel-item .view-detail-btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        margin-top: 10px !important;
    }

    /* 업소 등록 폼 */
    .carousel-form {
        padding: 15px !important;
        margin: 10px 0 !important;
        border-radius: 8px !important;
    }

    .carousel-form-group {
        margin-bottom: 15px !important;
    }

    .carousel-form-group label {
        font-size: 14px !important;
        margin-bottom: 5px !important;
        display: block !important;
    }

    .carousel-form-group input,
    .carousel-form-group select,
    .carousel-form-group textarea {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    /* 리치 텍스트 에디터 모바일 최적화 */
    .rich-text-editor {
        margin: 10px 0 !important;
    }

    .rich-toolbar {
        padding: 8px !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .toolbar-group {
        gap: 3px !important;
        min-width: fit-content !important;
    }

    .toolbar-btn {
        min-width: 32px !important;
        height: 32px !important;
        padding: 6px !important;
        font-size: 12px !important;
        touch-action: manipulation !important;
    }

    .toolbar-select {
        font-size: 14px !important;
        padding: 6px 8px !important;
        min-width: 70px !important;
    }

    .color-btn {
        width: 28px !important;
        height: 28px !important;
        touch-action: manipulation !important;
    }

    .rich-editor-content {
        font-size: 16px !important;
        padding: 12px !important;
        min-height: 120px !important;
        line-height: 1.5 !important;
    }

    /* 업소 상세보기 페이지 */
    .business-detail-container {
        padding: 15px !important;
        margin: 0 !important;
    }

    .business-main-title h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .business-images-grid {
        gap: 10px !important;
    }

    .business-image-item {
        height: 200px !important;
        border-radius: 8px !important;
    }

    .business-card-info {
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }

    .info-item {
        padding: 8px 0 !important;
        font-size: 14px !important;
    }

    .info-item strong {
        display: block !important;
        margin-bottom: 3px !important;
        font-size: 13px !important;
        color: #666 !important;
    }

    /* 연락처 및 주소 섹션 */
    .contact-address-section {
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }

    /* 구글 지도 */
    .map-section {
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }

    .map-section iframe {
        width: 100% !important;
        height: 250px !important;
        border-radius: 6px !important;
    }

    /* 업소 소개 섹션 */
    .business-intro-section {
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }

    .text-controls {
        padding: 8px !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    .control-group {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    .control-group span {
        font-size: 12px !important;
        margin-bottom: 3px !important;
        display: block !important;
        width: 100% !important;
    }

    .color-btn {
        width: 30px !important;
        height: 30px !important;
        margin: 2px !important;
        touch-action: manipulation !important;
    }

    #businessIntroText {
        font-size: 16px !important;
        line-height: 1.6 !important;
        padding: 15px !important;
    }

    /* 뒤로가기 버튼 */
    .back-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        margin-bottom: 15px !important;
        touch-action: manipulation !important;
    }

    /* 폼 버튼들 */
    .add-carousel-btn,
    .cancel-carousel-btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 16px !important;
        margin: 10px 0 !important;
        border-radius: 8px !important;
        touch-action: manipulation !important;
    }

    /* 이미지 업로드 */
    .carousel-image-preview {
        gap: 8px !important;
    }

    .preview-image-item {
        width: 80px !important;
        height: 80px !important;
        border-radius: 6px !important;
    }

    /* 텍스트 길이 제한 (모바일에서 읽기 쉽게) */
    .carousel-item .business-description {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 터치 최적화 */
    button, 
    .toolbar-btn,
    .color-btn,
    .view-detail-btn {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    /* 스크롤 최적화 */
    .carousel-items {
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .carousel-items::-webkit-scrollbar {
        display: none !important;
    }

    /* 입력 필드 확대 방지 */
    input, 
    select, 
    textarea,
    .rich-editor-content {
        font-size: 16px !important;
        -webkit-transform-origin: left top !important;
        -webkit-transform: scale(1) !important;
        transform: scale(1) !important;
    }

    /* 모바일 뷰포트 최적화 */
    body {
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

/* 매우 작은 화면 (작은 모바일) - 480px 이하 */
@media (max-width: 480px) {
    .container {
        padding: 5px !important;
    }

    .carousel-item {
        min-width: 260px !important;
        max-width: 280px !important;
        padding: 12px !important;
    }

    .carousel-item h3 {
        font-size: 15px !important;
    }

    .carousel-item p {
        font-size: 13px !important;
    }

    .business-main-title h1 {
        font-size: 24px !important;
    }

    .business-card-info {
        padding: 12px !important;
    }

    .info-item {
        font-size: 13px !important;
    }

    .rich-editor-content {
        font-size: 15px !important;
        padding: 10px !important;
    }

    .toolbar-btn {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .color-btn {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* 작은 화면에서 모든 텍스트 최소 크기 보장 */
    body, p, span, div, label {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    /* 버튼 최소 터치 영역 보장 */
    button, 
    .view-detail-btn,
    .add-carousel-btn,
    .cancel-carousel-btn,
    .toolbar-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        font-size: 14px !important;
    }
}

/* 가로 모드 최적화 - 480px ~ 768px */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 5px !important;
    }
    
    .carousel-item {
        min-width: 240px !important;
        max-width: 260px !important;
    }
    
    .business-detail-container {
        padding: 10px !important;
    }
    
    .rich-toolbar {
        padding: 5px !important;
        gap: 3px !important;
    }
    
    .toolbar-btn {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }
}