body {
    background-color: #ffffff;
}

.logo {
    font-weight: 800;
    letter-spacing: -3px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin-top: 120px;
}

.restaurant-card {
    cursor: pointer;
    transition: 0.2s;
}

.restaurant-card:hover {
    transform: translateY(-3px);
}

.detail-box {
    min-height: 550px;
}

.pin-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 24px;
}

.card-stars {
    position: absolute;
    top: 20px;
    right: 18px;
    color: white;
    font-size: 28px;
    letter-spacing: 1px;
}

.category-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 56px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background-color: #666;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.restaurant-card .category-badge {
    margin-top: 82px;
}

.restaurant-name {
    margin: 14px 0 8px;
    font-size: 27px;
    font-weight: 800;
}

.restaurant-address {
    margin: 0;
    color: white;
    font-size: 15px;
}

/* 오른쪽 */
.right-area {
    min-height: 585px;
    padding: 48px 56px;
    border-radius: 16px;
    background-color: #d9d9d9;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.empty-detail {
    height: 490px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-detail p {
    color: #777;
    font-size: 32px;
    font-weight: 700;
}

/* 상세 내용 */
.detail-content {
    width: 100%;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-radius: 8px;
    background-color: white;
    margin-bottom: 36px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-title-row h2 {
    margin: 0;
    font-size: 22px;
}

.detail-info p {
    margin: 8px 0 0;
    color: #777;
    font-size: 16px;
}

.creator-text {
    display: inline-block;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

.rating-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

.rating-star {
    color: #555;
    font-size: 32px;
}

.rating-area strong {
    font-size: 24px;
}

/* 리뷰 입력 */
.review-form {
    display: grid;
    grid-template-columns: 1fr 190px 90px;
    gap: 18px;
    align-items: center;
    padding: 22px 18px;
    background-color: #aaa;
    border-radius: 4px;
    margin-bottom: 36px;
}

.review-input {
    height: 64px;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
}

.rating-select {
    height: 48px;
    border: none;
    background-color: transparent;
    font-size: 22px;
    color: #555;
}

.review-submit-btn {
    height: 48px;
    border: none;
    border-radius: 8px;
    background-color: #555;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* 리뷰 목록 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    display: grid;
    grid-template-columns: 120px 1fr 90px 100px;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 8px 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background-color: white;
}

.review-nickname,
.review-comment {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border: 1px dashed #d0d0d0;
    border-radius: 8px;
    font-size: 18px;
}

.review-rating {
    font-size: 18px;
    color: #555;
}

.like-btn {
    border: none;
    background-color: transparent;
    color: #777;
    font-size: 18px;
    cursor: pointer;
}

/* 마이페이지 리뷰 */
.mreview-list {
    grid-template-columns: 40px 120px 1fr 90px 40px 60px;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    padding: 0;
    line-height: 32px;
    align-self: center;
    justify-self: start;
}

.mreview-item {
    min-height: 62px;
    padding: 8px 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background-color: white;
}

.review-nickname,
.review-comment {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border: 1px dashed #d0d0d0;
    border-radius: 8px;
    font-size: 18px;
}

.review-rating {
    font-size: 18px;
    color: #555;
}

.like-btn {
    border: none;
    background-color: transparent;
    color: #777;
    font-size: 18px;
    cursor: pointer;
}

.view-mode,
.edit-mode {
    display: grid;
    grid-template-columns: 120px 1fr 90px 100px;
    gap: 12px;
    align-items: center;
}

/* 식당 추가 모달 */
.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.45);
}

.modal-bg.active {
    display: flex;
}

.modal-box {
    position: relative;
    width: 420px;
    padding: 36px;
    border-radius: 16px;
    background-color: white;
}

.modal-box h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 28px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background-color: transparent;
    font-size: 28px;
    cursor: pointer;
}

.restaurant-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.restaurant-form input,
.restaurant-form select {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.modal-submit-btn {
    height: 46px;
    border: none;
    border-radius: 6px;
    background-color: #555;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
