/* 숙소 등록 폼 스타일 */

/* 메인 컨테이너 */
.listing-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 폼 헤더 */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* 진행 상태 표시 */
.form-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background-color: #4361ee;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 20%; /* 초기값: 1단계 */
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background-color: #4361ee;
    color: #fff;
}

.progress-step.active .step-label {
    color: #4361ee;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background-color: #4caf50;
    color: #fff;
}

/* 폼 스타일 */
.listing-form {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

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

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #4361ee;
    outline: none;
}

.form-hint {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.input-group-text {
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #666;
}

/* 라디오 카드 스타일 */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.radio-card-content i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    transition: color 0.2s ease;
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: #4361ee;
    background-color: rgba(67, 97, 238, 0.05);
}

.radio-card input[type="radio"]:checked + .radio-card-content i {
    color: #4361ee;
}

/* 체크박스 스타일 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

/* 이미지 업로드 스타일 */
.image-upload-container {
    margin-bottom: 1rem;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-area:hover {
    border-color: #4361ee;
    background-color: rgba(67, 97, 238, 0.05);
}

.image-upload-area i {
    font-size: 2.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.image-upload-area p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.image-upload-area span {
    font-size: 0.875rem;
    color: #666;
}

.image-upload-input {
    display: none;
}

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

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

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

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-preview-remove:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 교환 옵션 섹션 */
.exchange-option-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.experience-item,
.service-item {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 버튼 스타일 - 숙소 등록 폼 내부에서만 사용되는 버튼에 한정 */
.listing-form-container .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.listing-form-container .btn-primary {
    background-color: #4361ee;
    color: #fff;
}

.listing-form-container .btn-primary:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.listing-form-container .btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.listing-form-container .btn-secondary:hover {
    background-color: #e9e9e9;
}

.listing-form-container .btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
}

.listing-form-container .btn-outline:hover {
    border-color: #4361ee;
    color: #4361ee;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* 검토 섹션 */
.review-section {
    margin-bottom: 2rem;
}

.review-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.review-content {
    font-size: 0.9375rem;
    color: #333;
}

.review-item {
    margin-bottom: 0.75rem;
}

.review-label {
    font-weight: 500;
    margin-right: 0.5rem;
}

.review-value {
    color: #666;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .listing-form {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .radio-group {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .progress-steps {
        display: none;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .listing-form-container {
        padding: 1rem;
    }

    .listing-form {
        padding: 1rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .radio-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .image-preview {
        width: 100px;
        height: 100px;
    }
}

/* Google Maps 스타일 */
#map-container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#map-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* PlaceAutocompleteElement 스타일 */
gmp-place-autocomplete {
    width: 100%;
    margin-top: 0.5rem;
}

/* 자동완성 드롭다운 스타일 */
.pac-container {
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.pac-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pac-item:hover {
    background-color: #f5f5f5;
}

.pac-item-selected {
    background-color: rgba(67, 97, 238, 0.1);
}

.pac-icon {
    margin-right: 0.5rem;
}

.pac-item-query {
    font-size: 0.9375rem;
    color: #333;
}

/* 숙소 수정 페이지 전용 스타일 */

/* 위치 정보 읽기 전용 표시 */
.location-readonly {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.location-info {
    margin-bottom: 0.75rem;
}

.location-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #495057;
}

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

.location-item i {
    margin-right: 0.5rem;
    color: #6c757d;
    width: 16px;
}

.location-notice {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

.location-notice i {
    margin-right: 0.5rem;
    color: #17a2b8;
}

/* 현재 등록된 이미지 섹션 */
.current-images-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.current-images-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.current-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.current-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.current-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

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

.current-image-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s ease;
}

.current-image-delete:hover {
    background-color: rgba(220, 53, 69, 1);
}

/* 검토 섹션 스타일 개선 */
.review-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4361ee;
    padding-bottom: 0.5rem;
}

.review-content {
    line-height: 1.6;
}

.review-item {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

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

.review-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.review-value {
    color: #6c757d;
    flex: 1;
    word-break: break-word;
}

/* 로딩 메시지 스타일 */
#loading-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #495057;
}

#loading-message i {
    color: #4361ee;
}

/* 반응형 디자인 개선 */
@media (max-width: 768px) {
    .current-images-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .location-readonly {
        padding: 0.75rem;
    }
    
    .review-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}
