/* 쿠폰 상세 페이지 스타일 */

/* 모바일 하단 날씨/검색바 (PC에서는 숨김) */
.mobile-bottom-weather-search-bar {
    display: none;
}

.detail-header {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.detail-header .header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.detail-header .btn-back {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.detail-header .btn-back:hover {
    color: var(--primary-color);
}

.detail-header .logo {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.detail-header .btn-search {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-dark);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.detail-header .btn-search:hover {
    color: var(--primary-color);
}

/* 카테고리 탭 (상세 페이지용) */
.detail-tabs {
    margin-top: 60px;
}

/* 대표 이미지 */
.detail-hero-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.detail-hero-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* 즉시할인 배너 */
.instant-discount-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 24px 16px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.discount-message h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.discount-message h2 strong {
    font-size: 26px;
    text-decoration: underline;
}

.discount-message p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.app-download-buttons {
    margin-top: 16px;
}

.btn-app-download {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.btn-app-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 컨텐츠 */
.detail-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px 16px;
    padding-bottom: 80px;
    margin: 0 auto;
}

/* 쿠폰 이미지 섹션 */
.coupon-image-section {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.coupon-image-wrapper {
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.coupon-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.coupon-overlay-line1 {
    display: block;
    font-size: clamp(14px, 4vw, 24px);
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.coupon-overlay-line2 {
    display: block;
    font-size: clamp(12px, 3.5vw, 20px);
    font-weight: 600;
    color: #4A90E2;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.coupon-main-image {
    max-width: 100%;
    max-height: 500px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0 auto;
}

/* 업체명 섹션 */
.business-name-section {
    padding: 20px 16px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
}

.business-name-section h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.star-rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star-rating span {
    font-size: 18px;
    line-height: 1;
    color: #ddd;
}

/* 채워진 별 스타일 */
.star-rating .filled {
    color: #FFA726 !important;
}

.star-rating .half {
    color: #FFA726 !important;
    opacity: 0.5;
}

.star-rating .empty {
    color: #ddd !important;
}

.business-rating .rating-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.business-rating .review-count {
    font-size: 14px;
    color: #666;
}

.business-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--primary-color);
}

.business-info-header h1 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 0;
}

/* 섹션 공통 */
.detail-content section {
    margin-bottom: 32px;
}

.detail-content h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: bold;
}

/* 할인 메뉴 */
.discount-section {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.discount-menu-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.discount-menu-item:last-child {
    border-bottom: none;
}

.discount-menu-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.price-row .original-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 15px;
}

.price-row .arrow {
    color: var(--text-gray);
    font-weight: bold;
}

.price-row .discount-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.price-row .discount-rate {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
}

.coupon-benefit {
    font-size: 17px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.8;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    border-left: 4px solid #afafaf;
    margin: 0;
    white-space: pre-line;
    word-break: keep-all;
}

/* 정보 카드 컨테이너 (2/3, 1/3 레이아웃) */
.info-container {
    display: flex;
    gap: 16px;
    width: 100%;
}

.info-card-wrapper {
    flex: 2;
    min-width: 0;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.break-time-card-wrapper {
    flex: 1;
    min-width: 0;
}

.break-time-card {
    background: linear-gradient(135deg, #ffffff 0%, #d7d7d7 100%);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #b3b3b3;
    position: relative;
    overflow: hidden;
}

.break-time-card::before {
    content: '⏰';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 32px;
    opacity: 0.2;
    z-index: 0;
}

.break-time-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.break-time-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.break-time-value {
    font-size: 20px;
    font-weight: 700;
    color: #e90606;
    margin: 0;
    text-align: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 2px solid #ffb84d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.break-time-empty {
    font-size: 15px;
    color: #999;
    margin: 0;
    text-align: center;
    font-weight: 500;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex-shrink: 0;
    width: 100px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.info-value {
    flex: 1;
    color: var(--text-gray);
    font-size: 16px;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* 메뉴판 섹션 */
.menu-section {
    margin-bottom: 32px;
}

.menu-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: bold;
}

.menu-image-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.menu-image-container h2 {
    text-align: left;
    margin-bottom: 20px;
}

.menu-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-text-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.menu-text-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
}

.menu-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #e0e0e0;
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 60%;
    position: relative;
}

.menu-item-info::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 32px;
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        #ccc 0,
        #ccc 3px,
        transparent 3px,
        transparent 6px
    );
    margin-left: 8px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.menu-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    min-width: 24px;
}

.menu-name {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
}

.menu-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 48px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
    padding-left: 4px;
}

.menu-plain-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-wrap;
}

/* 메뉴 모바일 */
@media (max-width: 768px) {
    .menu-section {
        padding: 0 12px;
        margin-bottom: 24px;
    }
    
    .menu-section h2 {
        font-size: 16px !important;
        margin-bottom: 12px;
    }
    
    .menu-image-container {
        padding: 12px;
        border-radius: 0;
    }
    
    .menu-image {
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    
    .menu-text-container {
        padding: 16px;
        border-radius: 0;
    }
    
    .menu-text-container h2 {
        font-size: 18px !important;
        margin-bottom: 16px;
    }
    
    .menu-text-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .menu-item {
        padding: 12px 0;
        flex-direction: row;
        align-items: center;
    }
    
    .menu-item-info {
        min-width: 150px;
        max-width: 70%;
        flex: 0 1 auto;
    }
    
    .menu-item-info::after {
        width: 20px;
        margin-left: 6px;
    }
    
    .menu-number {
        font-size: 14px;
        min-width: 20px;
    }
    
    .menu-name {
        font-size: 15px;
    }
    
    .menu-price {
        font-size: 15px;
        margin-left: 28px;
    }
}

/* 유의사항 */
.notice-section {
    margin-bottom: 32px;
}

.notice-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: bold;
}

.notice-card {
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    line-height: 1.8;
}

.notice-card p {
    margin: 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.hashtags {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

/* 지도 */
.map-section {
    margin-bottom: 32px;
}

.map-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: var(--text-gray);
    font-size: 16px;
}

/* 후기 섹션 */
.review-policy {
    background: #fff3e0;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.review-policy p {
    margin: 4px 0;
}

.review-policy strong {
    color: var(--text-dark);
}

.review-form {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.review-form h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 28px;
}

.rating-input .star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.rating-input .star:hover {
    color: var(--accent-color);
}

.review-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

.btn-submit-review {
    flex: 1;
    padding: 17px 16px;
    background: #9e9e9e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    max-width: 150px;
}

.btn-submit-review:hover {
    background: #757575;
}

.btn-submit-review:active {
    background: #616161;
}

/* 후기 액션 버튼 컨테이너 */
.review-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 카메라 업로드 버튼 */
.btn-camera-upload {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-camera-upload:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-camera-upload:active {
    background: #eeeeee;
}

/* 카메라 아이콘 동그랗게 */
.camera-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-camera-upload svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.btn-camera-upload .camera-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 후기 리스트 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.review-rating {
    color: var(--accent-color);
    font-weight: bold;
}

.review-text {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
}

/* 관리자 답글 (덧글 형태) */
.admin-reply-wrapper {
    margin-top: 8px;
    margin-left: 40px;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0;
    position: relative;
}

.admin-reply-wrapper::before {
    content: '↳';
    position: absolute;
    left: -12px;
    top: 0;
    color: #4A90E2;
    font-size: 18px;
    font-weight: bold;
}

.admin-reply {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
}

.admin-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-reply-label {
    font-weight: 700;
    color: #4A90E2;
    font-size: 14px;
}

.admin-reply-date {
    font-size: 12px;
    color: #999;
}

.admin-reply-content {
    color: #333;
    line-height: 1.7;
    font-size: 14px;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

/* 하단 고정 버튼 */
.detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 100;
}

.detail-footer > * {
    max-width: 1200px;
}

.btn-call,
.btn-use-coupon {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-call {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-use-coupon {
    background: var(--primary-color);
    color: white;
}

.btn-call:hover {
    background: #f0f8ff;
}

.btn-use-coupon:hover {
    background: #3a7bc8;
}

/* 쿠폰 모달 */
.coupon-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.coupon-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.coupon-modal-content h2 {
    margin-bottom: 24px;
    color: var(--primary-color);
}

.coupon-code {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.business-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.big-discount {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.price-info {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.coupon-benefit {
    font-size: 18px;
    font-weight: bold;
    color: #575757;
    margin: 20px 0;
}

.coupon-barcode {
    margin: 20px 0;
}

.barcode-lines {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 8px;
}

.barcode-lines div {
    width: 3px;
    background: #000;
    height: 100%;
}

.barcode-lines div:nth-child(odd) {
    width: 2px;
}

.barcode-lines div:nth-child(even) {
    width: 4px;
}

.coupon-number {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.coupon-notice {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-close-modal {
    width: 100%;
    padding: 14px;
    background: var(--text-gray);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-close-modal:hover {
    background: var(--text-dark);
}

/* 검색 모달 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    overflow-y: auto;
}

.search-modal-content {
    background: white;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.search-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.btn-close-search {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close-search:hover {
    background: #f0f0f0;
    color: #333;
}

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.btn-search-submit {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-search-submit:hover {
    background: #3a7bc8;
}

.search-results {
    min-height: 200px;
}

.search-placeholder,
.search-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.search-result-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.search-result-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.search-result-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-badge {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.search-result-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-badge {
    font-size: 14px;
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.search-desc {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-stats {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-stats span:first-child {
    color: var(--accent-color);
    font-weight: bold;
}

/* 이미지 갤러리 */
.image-gallery-section {
    margin: 30px 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 350px;
    gap: 25px;
    margin-top: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 가로가 긴 이미지 */
.gallery-item.landscape-image {
    grid-column: span 2;
}

/* 세로가 긴 이미지 */
.gallery-item.portrait-image {
    grid-row: span 2;
}

@media (max-width: 768px) {
    /* 헤더 모바일 */
    .detail-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .break-time-empty {
        margin-top: 10px;
    }
    
    .detail-header .header-inner {
        padding: 0 12px;
    }
    
    .detail-header .btn-back {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .detail-header .btn-back span:first-child {
        font-size: 18px;
    }
    
    .detail-header .logo {
        font-size: 16px;
    }
    
    .detail-header .btn-search {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }
    
    /* 카테고리 탭 모바일 */
    .detail-tabs {
        position: fixed;
        top: 35px;
        left: 0;
        right: 0;
        z-index: 999;
        background: white;
        margin-top: 0 !important;
        padding: 8px 4px !important;
    }
    
    /* 컨텐츠 모바일 - 좌우 패딩 제거 */
    .detail-content {
        padding: 0 !important;
        margin-top: 80px !important; /* 헤더(50px) + 카테고리(50px) */
    }
    
    /* 쿠폰 이미지 모바일 */
    .coupon-image-section {
        margin-bottom: 20px;
        padding: 0;
    }
    
    .coupon-main-image {
        border-radius: 0;
        width: 100%;
        max-height: 400px;
        height: auto;
        object-fit: contain;
    }
    
    /* 섹션 모바일 패딩 */
    .detail-content section {
        margin-bottom: 24px;
    }
    
    .detail-content > div {
        padding: 0 12px;
    }
    
    /* 할인 메뉴 모바일 */
    .discount-section {
        margin: 0 12px 24px;
        padding: 16px;
        border-radius: 15px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        margin-bottom: 5px !important;
    }
    
    .coupon-benefit {
        font-size: 15px;
        padding: 16px;
        border-radius: 8px;
        border-left-width: 3px;
    }
    
    /* 메뉴 모바일 */
    .menu-section {
        padding: 0 12px;
        margin-bottom: 24px;
    }
    
    .menu-section h2 {
        font-size: 16px !important;
        margin-bottom: 12px;
    }
    
    .menu-image-container {
        padding: 12px;
        border-radius: 0;
        border-radius: 15px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }
    
    .menu-image {
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    
    .menu-text-container {
        padding: 16px;
        border-radius: 0;
    }
    
    .menu-text-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* 업체명 모바일 */
    .business-name-section {
        padding: 16px 12px !important;
        margin: 0 0 20px 0 !important;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .business-name-section h1 {
        font-size: 18px !important;
    }
    
    .business-rating {
        margin-top: 10px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .star-rating {
        gap: 1px;
    }
    
    .star-rating span {
        font-size: 16px !important;
    }
    
    .business-rating .rating-value {
        font-size: 14px !important;
    }
    
    .business-rating .review-count {
        font-size: 12px !important;
    }
    
    /* 업체 정보 헤더 (이미지 + 이름) */
    .business-info-header {
        text-align: center;
        padding: 16px 12px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 20px;
    }
    
    /* 정보 카드 컨테이너 모바일 */
    .info-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .info-card-wrapper {
        border-radius: 15px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }

    .info-card-wrapper,
    .break-time-card-wrapper {
        flex: 1;
        width: 100%;
    }
        
    .break-time-card {
        padding: 18px 14px;
    }
    
    .break-time-card::before {
        font-size: 24px;
        top: 8px;
        right: 8px;
    }
    
    .break-time-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .break-time-value {
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .break-time-empty {
        font-size: 14px;
        padding: 10px;
    }
    
    /* 갤러리 모바일 - 한 줄에 1개씩, 좌우 패딩 제거 */
    .image-gallery-section {
        padding: 0px !important; /* 위아래만 패딩 */
        margin: 0 !important;
    }
    
    .image-gallery-section h2 {
        padding: 0 12px;
        margin-bottom: 16px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(1, 1fr) !important; /* 한 줄에 1개씩 */
        grid-auto-rows: auto !important;
        gap: 12px !important; /* 위아래 간격 */
        margin-top: 0 !important;
        padding: 0 !important; /* 좌우 패딩 제거 */
    }
    
    .gallery-item {
        aspect-ratio: auto; /* 이미지 비율 유지 */
        border-radius: 0;
        width: 100%;
    }
    
    .gallery-item img {
        width: 100%;
        height: auto; /* 이미지 비율 유지 */
        object-fit: contain; /* 이미지 전체 표시 */
    }
    
    /* 모바일에서는 가로/세로 확장 제한 */
    .gallery-item.landscape-image,
    .gallery-item.portrait-image {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    /* 카메라 버튼 모바일 */
    .btn-camera-upload {
        padding: 10px 14px;
        gap: 6px;
    }
    
    .btn-camera-upload svg {
        width: 20px;
        height: 20px;
    }
    
    .btn-camera-upload .camera-text {
        font-size: 13px;
    }
    
    /* 업체정보 모바일 */
    .info-section {
        padding: 0 12px;
    }
    
    .info-card {
        padding: 16px;
        border-radius: 0;
    }
    
    .info-label {
        width: 80px;
        font-size: 14px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    /* 유의사항 모바일 */
    .notice-section {
        padding: 0 12px;
    }
    
    .notice-card {
        padding: 16px !important;
        border-radius: 0;
    }
    
    .notice-card p {
        font-size: 14px !important;
        margin: 8px 0;
    }
    
    /* 지도 모바일 */
    .map-section {
        padding: 0 12px;
    }
    
    .map-container {
        border-radius: 0;
    }
    
    #kakaoMap {
        border-radius: 0 !important;
    }
    
    /* 후기 모바일 */
    .review-section {
        padding: 0 12px;
    }
    
    .review-policy {
        padding: 12px;
        border-radius: 0;
        font-size: 12px;
    }
    
    .review-form {
        padding: 16px;
        border-radius: 0;
    }
    
    .review-card {
        padding: 12px;
        border-radius: 0;
    }
    
    .admin-reply-wrapper {
        margin-left: 20px;
        padding-left: 15px;
    }
    
    .admin-reply {
        padding: 12px;
    }
    
    .admin-reply-label {
        font-size: 13px;
    }
    
    .admin-reply-content {
        font-size: 13px;
    }
    
    /* 후기 액션 버튼 모바일 */
    .review-action-buttons {
        gap: 8px;
    }
    
    .btn-camera-upload {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .camera-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .btn-camera-upload svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-camera-upload .camera-text {
        font-size: 13px;
    }
    
    .btn-submit-review {
        padding: 15px 12px;
        font-size: 13px;
        max-width: 120px;
    }
    
    /* 제목 모바일 */
    .detail-content h1 {
        font-size: 18px !important;
        margin-bottom: 0px !important;
    }
    
    .detail-content h2 {
        font-size: 16px !important;
        margin-bottom: 12px;
        margin-top: 12px;
    }
    .detail-content h3 {
        margin-bottom: 0px;
    }

    .discount-menu-item {
        padding: 5px;
    }
    
    .discount-section h1 {
        font-size: 18px !important;
    }

    /* 모바일 하단 날씨/검색바 */
    .mobile-bottom-weather-search-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 10000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-weather-search-container {
        position: relative;
        width: 100%;
        height: 50px;
        overflow: hidden;
    }
    
    /* 날씨 표시 상태 */
    .mobile-weather-display {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-weather-display.slide-out {
        transform: translateX(-100%);
    }
    
    .mobile-weather-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(74, 144, 226, 0.1);
        color: #4A90E2;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .mobile-weather-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .mobile-weather-temp {
        font-size: 1rem;
        font-weight: 700;
        color: #111827;
        line-height: 1.2;
    }
    
    .mobile-weather-desc {
        font-size: 0.75rem;
        color: #6b7280;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-weather-location {
        font-size: 0.75rem;
        font-weight: 600;
        color: #6b7280;
        white-space: nowrap;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    .mobile-search-toggle-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #4A90E2;
        color: #ffffff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s;
    }
    
    .mobile-search-toggle-btn:active {
        background: #357ABD;
    }
    
    /* 검색 입력 상태 */
    .mobile-search-form-display {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 100%;
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-search-form-display.slide-in {
        transform: translateX(-100%);
    }
    
    .mobile-search-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(74, 144, 226, 0.1);
        color: #4A90E2;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .mobile-search-form {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-search-input {
        width: 100%;
        height: 40px;
        padding: 0 12px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 0.9rem;
        outline: none;
        transition: border-color 0.2s;
    }
    
    .mobile-search-input:focus {
        border-color: #4A90E2;
    }
    
    .mobile-search-submit-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #4A90E2;
        color: #ffffff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s;
    }
    
    .mobile-search-submit-btn:active {
        background: #357ABD;
    }
    
    .mobile-weather-toggle-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #f3f4f6;
        color: #374151;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s, color 0.2s;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .mobile-weather-toggle-btn:active {
        background: #e5e7eb;
        color: #111827;
    }

    /* 하단바 공간 확보 */
    .main-content-wrapper {
        padding-bottom: 75px;
    }

    .main-content {
        padding-bottom: 75px !important;
    }

    .footer {
        margin-bottom: 75px;
    }
    
    /* 모바일 검색 모달 스타일 */
    .search-modal {
        padding-top: 0;
        align-items: flex-end;
        z-index: 10001; /* 하단바보다 위에 표시 */
    }
    
    .search-modal-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .search-modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }
    
    .search-modal-body {
        padding: 16px 20px;
        max-height: calc(90vh - 80px);
        overflow-y: auto;
    }
    
    .search-input-wrapper {
        margin-bottom: 16px;
    }
    
    .search-input-wrapper input {
        font-size: 16px; /* iOS 줌 방지 */
    }
    
    .search-results {
        min-height: 150px;
    }
    
    .search-result-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .search-result-image {
        width: 70px;
        height: 70px;
    }
}

