/* 찾아요 서비스 - 펫 카드 스타일 */

/* 상세 페이지 지도 */
.detail-map {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.detail-map img {
    max-width: none !important;
}

/* 펫 카드 */
.pet-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.pet-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pet-card:active {
    background: #f8f8f8;
}

.pet-card-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.pet-card-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pet-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pet-card-meta {
    font-size: 12px;
    color: #888;
    margin: 0 0 5px 0;
}

.pet-card-location {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pet-card-location i {
    color: #8BB3E8;
}

.pet-card-date {
    font-size: 11px;
    color: #aaa;
    margin-top: 5px;
}

/* 상태 뱃지 */
.pet-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.pet-status-active {
    background: #ffebee;
    color: #e53935;
}

.pet-status-found {
    background: #e8f5e9;
    color: #43a047;
}

/* 반응형 */
@media (max-width: 400px) {
    .pet-card-image {
        width: 85px;
        height: 85px;
    }

    .pet-card-info {
        padding: 10px;
    }

    .pet-card-title {
        font-size: 14px;
    }
}

/* ===== 상세 페이지 스타일 ===== */
.pet-detail-container {
    min-height: 100vh;
    background: #fff;
    padding-bottom: 30px;
}

.pet-detail-back {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pet-detail-content {
    padding: 20px;
    padding-bottom: 120px;
}

.pet-detail-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

.pet-detail-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.pet-detail-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pet-detail-info-row:last-child {
    border-bottom: none;
}

.pet-detail-info-label {
    color: #888;
    font-size: 14px;
}

.pet-detail-info-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.pet-detail-map {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

/* Leaflet 타일 이미지 스타일 오버라이드 */
.pet-detail-map img {
    max-width: none !important;
    max-height: none !important;
}

.pet-detail-map .leaflet-tile-pane {
    z-index: 1;
}

.pet-detail-map .leaflet-marker-pane {
    z-index: 2;
}

/* 폼 섹션 */
.pet-form-section {
    margin-bottom: 20px;
}

.pet-form-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-form-section-title i {
    color: #8BB3E8;
}

.pet-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.pet-form-textarea:focus {
    outline: none;
    border-color: #8BB3E8;
}

/* 버튼 */
.pet-contact-btn {
    width: 100%;
    padding: 15px;
    background: #8BB3E8;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pet-contact-btn:active {
    opacity: 0.9;
}

.pet-submit-btn {
    width: 100%;
    padding: 12px;
    background: #8BB3E8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 댓글/제보 섹션 */
.pet-comments-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pet-comments-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

.pet-comment-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.pet-comment-author {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.pet-comment-content {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 5px;
}

.pet-comment-date {
    font-size: 11px;
    color: #aaa;
}

/* ===== 등록 페이지 스타일 ===== */
.pet-add-form {
    padding: 20px;
    padding-bottom: 100px;
}

.pet-form-group {
    margin-bottom: 15px;
}

.pet-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.pet-form-label .required {
    color: #e53935;
}

.pet-form-input,
.pet-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

.pet-form-input:focus,
.pet-form-select:focus {
    outline: none;
    border-color: #8BB3E8;
}

.pet-form-input::placeholder {
    color: #aaa;
}

/* 사진 업로드 */
.pet-photo-upload {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pet-photo-add {
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 12px;
    gap: 5px;
}

.pet-photo-add i {
    font-size: 24px;
    color: #8BB3E8;
}

.pet-photo-add:active {
    background: #f5f5f5;
}

.pet-photo-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

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

.pet-photo-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 위치 표시 */
.pet-location-display {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    gap: 10px;
}

.pet-location-display i {
    color: #8BB3E8;
    font-size: 18px;
}

.pet-location-text {
    flex: 1;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.pet-location-refresh {
    padding: 8px;
    border: none;
    background: #8BB3E8;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.pet-location-refresh:active {
    opacity: 0.8;
}
