@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 480px; /* 모바일 최대 너비 제한 */
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.store-tag {
    display: inline-block;
    font-size: 12px;
    color: #54C695;
    padding: 6px 6px;
	border-radius:12px;
    margin-bottom: 8px;
	font-weight:500;
	background:#f5f9f7;
	margin-right:8px;
}

/* 새로운 헤더 디자인 */
.header {
    position: relative;
    color: white;
    padding: 45px 0;
    width: 100%;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../icon/background.png');
    background-size: cover;
    background-position: center;
    max-width: 450px;
    margin: 0 auto;
    z-index: 1;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.header-subtitle {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.5;
}

.partner-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 네비게이션 메뉴 */
.nav-menu {
    background-color: white;
    border-radius: 8px;
    margin-top: -25px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 16px 10px;
    color: #444;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #1C1C1C;
}

.nav-item.active {
    color: #1C1C1C;
    font-weight: 700;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #1C1C1C;
    border-radius: 3px 3px 0 0;
}

/* 검색 섹션 */
.search-section {
    margin-top: -25px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    z-index: 10;
}

.search-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

/* 탭 스타일 - 수정된 스타일 */
.search-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    justify-content: center;
}

.search-tab {
    width: 50%;
    padding: 10px 0;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.search-tab.active {
    color: #1C1C1C;
    font-weight: 700;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1C1C1C;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 검색 컨트롤 수정 */
.search-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 지역 선택 드롭다운 스타일 - 새로운 디자인 */
.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
}

.dropdown-container {
    flex: 1;
    position: relative;
}

/* 검색 입력 필드 - 원래 스타일 유지 */
.search-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f9f9f9;
    outline: none;
    transition: all 0.3s;
    -webkit-appearance: none;
}

.search-input input:focus {
    border-color: #1C1C1C;
    box-shadow: 0 0 0 3px rgba(85, 197, 149, 0.1);
}

/* Select Box - 새 디자인 적용 */
.dropdown-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url('../icon/arrowbottom.png');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.dropdown-select:focus {
    border-color: #54C695;
    box-shadow: 0 0 0 1px #54C695;
    background-image: url('../icon/arrowtop.png');
}

/* 드롭다운 메뉴 스타일 */
.dropdown-container select option {
    padding: 10px 16px;
    font-size: 14px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.8;
}

/* 크롬 브라우저 대응 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .dropdown-select {
        padding-right: 30px;
    }
    
    .dropdown-select option {
        padding: 10px;
    }
    
    .dropdown-select option:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }
}

/* Firefox용 스타일링 */
@-moz-document url-prefix() {
    .dropdown-select {
        text-indent: 0.01px;
        text-overflow: '';
        padding-right: 30px;
    }
    
    .dropdown-select option {
        padding: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* 드롭다운 메뉴가 열렸을 때 z-index 설정 */
.dropdown-container:focus-within {
    z-index: 100;
}

/* 검색 버튼 - 원래 스타일 유지 */
.search-button {
    width: 100%;
    padding: 12px;
    background-color: #1C1C1C;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
	font-size:14px;
    transition: background-color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.search-button:hover {
    background-color: #1C1C1C;
}

/* 예약 조회 결과 스타일 */
.reservation-result {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #1C1C1C;
}

.reservation-info {
    margin-bottom: 15px;
}

.reservation-info h4 {
    color: #1C1C1C;
    margin-bottom: 8px;
    font-size: 16px;
}

.reservation-detail {
    display: flex;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.detail-label {
    flex: 0 0 90px;
    font-weight: 500;
    color: #555;
}

.reservation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.reservation-button {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.modify-button {
    background-color: #f0f7ff;
    color: #1C1C1C;
    border: 1px solid #d0e3ff;
}

.modify-button:hover {
    background-color: #e0efff;
}

.cancel-button {
    background-color: #fff0f0;
    color: #e74c3c;
    border: 1px solid #ffd0d0;
}

.cancel-button:hover {
    background-color: #ffe0e0;
}

/* 스토어 카드 그리드 - 모바일 최적화 */
.store-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.store-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.store-card-row {
    display: flex;
    flex-direction: column;
}

.store-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.store-content {
    padding: 15px;
}

.store-content1 {
    padding: 0 15px 15px 15px;
}

.store-name {
    font-size: 18px;
    font-weight: 700;
    color: #1C1C1C;
    margin-bottom: 5px;
}

.store-location {
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.store-details {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.store-detail-item {
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
}

.detail-icon {
    flex: 0 0 20px;
    margin-right: 8px;
    opacity: 0.7;
}

/* 액션 버튼 3개로 수정 */
.store-actions {
    display: flex;
    border-top: 1px solid #e4e4e4;
}

.action-button {
    flex: 1;
    padding: 20px 5px;
    text-align: center;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
/*
.action-button:hover, .action-button:active {
    background-color: #f0f7ff;
    color: #1C1C1C;
}
*/
.action-button:not(:last-child) {
    border-right: 1px solid #e4e4e4;
}

.action-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

/* 예약하기 버튼 */
.reserve-button {
    width: 100%;
    padding: 14px;
    background-color: #1C1C1C;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
    -webkit-tap-highlight-color: transparent;
    display: block;
    text-decoration: none;
}

.reserve-button:hover {
    background-color: #1C1C1C;
}

/* 혜택 받기 버튼 */
.benefit-button {
    width: 100%;
    padding: 14px;
    background-color: #f0f7ff;
    color: #1C1C1C;
    border: 1px solid #d0e3ff;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    -webkit-tap-highlight-color: transparent;
    display: block;
    text-decoration: none;
}

.benefit-button:hover {
    background-color: #e0efff;
}

/* 예약 없음 메시지 */
.no-reservation-msg {
    display: none;
    margin-top: 15px;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.no-reservation-msg p {
    color: #555;
    font-size: 15px;
    margin: 0;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.page-item {
    margin: 0 3px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}

.page-item:hover, .page-item:active {
    background-color: #e9f0f9;
    color: #1C1C1C;
}

.page-item.active {
    background-color: #1C1C1C;
    color: white;
}

/* 맨 위로 버튼 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1C1C1C;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    font-size: 18px;
    opacity: 0.9;
    transition: all 0.3s;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top:hover, .back-to-top:active {
    background-color: #1C1C1C;
    transform: translateY(-3px);
    opacity: 1;
}

/* 모바일 터치 최적화 */
a, button, input, select, textarea, .action-button, .page-item, .reservation-button {
    touch-action: manipulation;
}

/* 아이폰 사파리 버튼 스타일 초기화 */
input[type="button"], input[type="submit"], input[type="reset"], button {
    -webkit-appearance: none;
    border-radius: 0;
}

/* 매장 없음 메시지 */
.no-store-msg {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.no-store-msg p {
    color: #555;
    font-size: 16px;
}